joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4469c0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov edi, eax
mov al, 0x20
mov cl, byte [edi]
inc edi
cmp cl, 0x22
jne 0x4469da
mov al, cl
mov dl, byte [edi]
inc edi
cmp dl, al
je 0x4469e8
mov cl, byte [edi]
inc edi
cmp cl, al
jne 0x4469e1
cmp al, 0x20
je 0x4469f2
cmp byte [edi], 0x20
jne 0x4469f2
inc edi
lea ecx, [esp + 0xc]
call fcn.0044c900
mov dword [esp + 0xc], 0x45b2a4
mov al, byte [edi]
test al, al
je 0x446ab6
mov esi, dword [esp + 0x28]
cmp al, 0x22
jne 0x446a5e
mov al, byte [edi + 1]
inc edi
test al, al
mov esi, edi
je 0x446a39
mov al, byte [esi]
cmp al, 0x22
je 0x446a39
test al, al
jge 0x446a31
mov al, byte [esi + 1]
test al, al
je 0x446a39
inc esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x446a1f
mov edx, esi
sub edx, edi
push edx
push edi
call fcn.0044cde0
add esp, 8
lea ecx, [esp + 0xc]
push eax
call fcn.0044cb90
mov al, byte [esi]
mov edi, esi
test al, al
je 0x446aac
lea edi, [esi + 1]
jmp 0x446aac
cmp al, 0x20
jg 0x446a6a
cmp byte [esi], 0
jl 0x446a6a
inc edi
jmp 0x446aac
test al, al
mov esi, edi
je 0x446a92
mov al, byte [esi]
cmp al, 0x22
je 0x446a92
cmp al, 0x20
jg 0x446a7e
test al, al
jge 0x446a92
test al, al
jge 0x446a8a
mov al, byte [esi + 1]
test al, al
je 0x446a92
inc esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x446a70
mov eax, esi
sub eax, edi
push eax
push edi
call fcn.0044cde0
add esp, 8
lea ecx, [esp + 0xc]
push eax
call fcn.0044cb90
mov edi, esi
mov al, byte [edi]
test al, al
jne 0x446a11
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx]
test eax, eax
je 0x446ac9
push eax
call fcn.0044cd80
add esp, 4
mov edi, dword [esp + 0x1c]
shr edi, 2
shl edi, 2
lea ecx, [edi + 8]
push ecx
call fcn.004467a0
mov dword [eax], 1
mov edx, dword [esp + 0x20]
shr edx, 2
mov dword [eax + 4], edx
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
add esp, 4
neg esi
sbb esi, esi
and esi, ecx
mov ecx, edi
mov edx, ecx
lea edi, [eax + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
mov dword [ebx], eax
mov dword [esp + 0xc], 0x45b2a0
call fcn.0044cb00
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x446cf0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x446d59
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.004467a0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x447420
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4474b2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x4474a4
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x44749c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x447465
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x448080
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.0045035e
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x4480ea
push esi
lea edi, [eax + 0x400]
call fcn.0044fe51
push edi
call fcn.0045035e
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x4480ba
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x448106
push ecx
push esi
call fcn.0044cde0
add esp, 8
mov ebx, eax
push esi
call fcn.0044fe51
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x448130
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push 0x104
call fcn.004467a0
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, eax
push 0x104
push edi
push ebp
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
mov esi, eax
cmp esi, 0x104
jbe 0x448187
push ebx
push edi
call fcn.00446830
push esi
mov ebx, esi
call fcn.004467a0
add esp, 8
mov edi, eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
ja 0x44815e
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x4483e0
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x4483ed
xor eax, eax
pop esi
ret
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
jne 0x4483ff
pop esi
ret
cmp ecx, 1
jne 0x44840d
cmp byte [esi], 0x5c
jne 0x44840d
xor eax, eax
pop esi
ret
push esi
call fcn.00448190
add esp, 4
test eax, eax
je 0x448421
push esi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
pop esi
ret

Function at 0x448550
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
mov dword [esp], 0xc
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
add esp, 0xc
ret

Function at 0x44a900
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x44a91e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x44a913
pop esi
ret
Function at 0x44b190
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x44b1a3
xor eax, eax
pop esi
add esp, 8
ret
push esi
call fcn.0044dbd0
add esp, 4
test eax, eax
jne 0x44b1b5
pop esi
add esp, 8
ret
mov eax, dword [esi]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push edi
mov dword [esp + 0x10], 0
jne 0x44b22c
mov eax, dword [esp + 0x1c]
mov edi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x44b25e
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x44b218
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x44b1e8
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
pop edi
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop esi
add esp, 8
ret
cmp eax, 2
jne 0x44b25e
mov eax, dword [esp + 0x1c]
mov esi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x44b25e
lea edi, [esp + 0x2c]
lea ebx, [eax - 1]
mov eax, dword [edi]
mov edx, dword [esi]
mov ecx, dword [eax + 4]
add eax, 8
push ecx
push eax
mov ecx, esi
call dword [edx + 0x24]
add edi, 0xc
dec ebx
jne 0x44b247
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret

Function at 0x44b2d0
Capabilities:
Get file size

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x44b2de
or eax, 0xffffffff
pop esi
ret
push esi
call fcn.0044dbd0
add esp, 4
test eax, eax
jne 0x44b2f0
or eax, 0xffffffff
pop esi
ret
mov ecx, dword [esi]
or eax, 0xffffffff
cmp ecx, 1
jne 0x44b30b
mov esi, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
pop esi
ret
cmp ecx, 2
jne 0x44b318
mov ecx, dword [esi + 4]
call fcn.0044dbc0
pop esi
ret
Function at 0x44b320
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
jne 0x44b333
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push ebx
call fcn.0044dbd0
add esp, 4
test eax, eax
jne 0x44b345
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, dword [esp + 0x24]
test edi, edi
jg 0x44b354
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x44b3ab
mov ebx, dword [ebx + 4]
push edi
call fcn.0045035e
add esp, 4
mov ebp, eax
lea eax, [esp + 0x18]
push esi
push eax
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x44b38e
push ebp
call fcn.0044fe51
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x18]
push ecx
push ebp
call fcn.0044d270
push ebp
mov esi, eax
call fcn.0044fe51
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x44b3ed
mov ebx, dword [ebx + 4]
lea edx, [edi + 8]
push edx
call fcn.004467a0
mov esi, eax
add esp, 4
lea ecx, [esi + 8]
mov dword [esi], 1
mov dword [esi + 4], edi
mov eax, dword [ebx]
push edi
push ecx
mov ecx, ebx
call dword [eax + 0x20]
test eax, eax
jne 0x44b3ea
push esi
call fcn.00446830
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 4], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x44b410
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
push edi
jne 0x44b429
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push esi
call fcn.0044dbd0
add esp, 4
test eax, eax
jne 0x44b43e
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ebp, dword [esp + 0x2c]
test ebp, ebp
jg 0x44b450
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esi]
mov dword [esp + 0x20], 0
cmp eax, 1
jne 0x44b52e
mov edi, dword [esi + 4]
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x10], ebx
jne 0x44b487
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push 0
push edi
mov dword [esp + 0x28], 1
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
sub esi, ebp
sub esi, ebx
test esi, esi
jle 0x44b51b
push esi
call fcn.0045035e
add esp, 4
mov ebx, eax
push 1
push 0
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push edi
call ebp
lea eax, [esp + 0x14]
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x44b4e2
push ebx
call fcn.0044fe51
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x10]
push 0
push 0
push ecx
push edi
call ebp
lea edx, [esp + 0x14]
push 0
push edx
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x44b506
mov dword [esp + 0x20], eax
push ebx
call fcn.0044fe51
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x44b5a3
push edi
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp eax, 2
jne 0x44b5a3
mov esi, dword [esi + 4]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x14]
mov ecx, esi
mov ebx, eax
call fcn.0044dbc0
mov edi, eax
mov dword [esp + 0x20], 1
sub edi, ebp
sub edi, ebx
test edi, edi
jle 0x44b59b
mov edx, dword [esi]
push 1
push ebp
mov ecx, esi
call dword [edx + 0x18]
push edi
call fcn.0045035e
add esp, 4
mov ebp, eax
mov eax, dword [esi]
mov ecx, esi
push edi
push ebp
call dword [eax + 0x20]
mov edx, dword [esi]
push 0
push ebx
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esi]
push edi
push ebp
mov ecx, esi
call dword [eax + 0x24]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
push ebp
mov ebx, eax
call fcn.0044fe51
add esp, 4
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x1c]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x44bd90
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x14c]
push ebp
mov ebp, dword [esp + 0x15c]
push esi
push edi
mov esi, dword [ebp]
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x44be1b
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x44be1b
test esi, esi
je 0x44bdd5
cmp esi, 0xffffffff
je 0x44bdd5
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp], esi
je 0x44be61
mov eax, dword [esp + 0x160]
test eax, eax
je 0x44be04
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
je 0x44be1b
jmp 0x44be13
mov edx, dword [esp + 0x15c]
mov eax, dword [esp + 0x14]
test edx, eax
je 0x44be1b
mov dword [esp + 0x10], 1
test esi, esi
je 0x44be61
cmp esi, 0xffffffff
je 0x44be61
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x44be98
mov eax, dword [esp + 0x160]
mov edi, dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
lea eax, [esp + 0x14]
push eax
push esi
je 0x44be6e
call edi
test eax, eax
je 0x44be61
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
jne 0x44be98
lea edx, [esp + 0x14]
push edx
push esi
call edi
test eax, eax
jne 0x44be49
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
call edi
test eax, eax
je 0x44be61
mov ebx, dword [esp + 0x15c]
test dword [esp + 0x14], ebx
jne 0x44be98
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
jne 0x44be7b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.004467a0
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x79121f74
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x3c551ea5
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x40e3c0
Capabilities:
Link many functions at runtime

Disassembly:
jmp 0x4692a0
push esi
push 0
push 0
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [0x54d1f0], eax
test eax, eax
je 0x4694a3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.AdjustWindowRect
push eax
call esi
mov dword [0x54d1d8], eax
test eax, eax
jne 0x469310
push str.AdjustWindowRect
push str.Failed_to_get__s_function_address__n
push 2
call fcn.004051d0
add esp, 4
push eax
call fcn.0040e5f0
add esp, 0xc
call fcn.0043f990
test eax, eax
je 0x4694af
cmp byte [section..data], 0
je 0x4694af
jmp 0x4694a7
push str.CreateWindowExA
push dword [0x54d1f0]
call esi
mov dword [0x54d1dc], eax
test eax, eax
jne 0x469362
push str.CreateWindowExA
push str.Failed_to_get__s_function_address__n
push 2
call fcn.004051d0
add esp, 4
push eax
call fcn.0040e5f0
add esp, 0xc
call fcn.0043f990
test eax, eax
je 0x4694be
cmp byte [section..data], 0
je 0x4694be
jmp 0x4694b6
push str.DefWindowProcA
push dword [0x54d1f0]
call esi
mov dword [0x54d1e0], eax
test eax, eax
jne 0x4693b4
push str.DefWindowProcA
push str.Failed_to_get__s_function_address__n
push 2
call fcn.004051d0
add esp, 4
push eax
call fcn.0040e5f0
add esp, 0xc
call fcn.0043f990
test eax, eax
je 0x4694cd
cmp byte [section..data], 0
je 0x4694cd
jmp 0x4694c5
push str.DestroyWindow
push dword [0x54d1f0]
call esi
mov dword [0x54d1e4], eax
test eax, eax
jne 0x469406
push str.DestroyWindow
push str.Failed_to_get__s_function_address__n
push 2
call fcn.004051d0
add esp, 4
push eax
call fcn.0040e5f0
add esp, 0xc
call fcn.0043f990
test eax, eax
je 0x4694dc
cmp byte [section..data], 0
je 0x4694dc
jmp 0x4694d4
push str.LoadIconA
push dword [0x54d1f0]
call esi
mov dword [0x54d1e8], eax
test eax, eax
jne 0x469458
push str.LoadIconA
push str.Failed_to_get__s_function_address__n
push 2
call fcn.004051d0
add esp, 4
push eax
call fcn.0040e5f0
add esp, 0xc
call fcn.0043f990
test eax, eax
je 0x4694eb
cmp byte [section..data], 0
je 0x4694eb
jmp 0x4694e3
push str.RegisterClassExA
push dword [0x54d1f0]
call esi
mov dword [0x54d1ec], eax
test eax, eax
jne 0x46949f
push str.RegisterClassExA
push str.Failed_to_get__s_function_address__n
push 2
call fcn.004051d0
add esp, 4
push eax
call fcn.0040e5f0
add esp, 0xc
call fcn.0043f990
test eax, eax
je 0x4694fa
cmp byte [section..data], 0
je 0x4694fa
jmp 0x4694f2
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call fcn.00410d80
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call fcn.00410d80
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call fcn.00410d80
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call fcn.00410d80
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call fcn.00410d80
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call fcn.00410d80
int3
Function at 0x4120f0
Capabilities:
Query environment variable

Disassembly:
jmp 0x4f350a
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4f351e
xor edi, edi
jmp 0x4f3555
push ebx
push esi
call fcn.004f3412
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040fdc0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4f3545
push ebx
push esi
push edi
call fcn.004066b0
add esp, 0xc
push 0
call fcn.00408670
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x4127f0
Capabilities:
Terminate process

Disassembly:
jmp 0x4b6b7f
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4b6b90
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00407080
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x43f8e0
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x54b094]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x43f927
mov ecx, dword [ebp - 0x1c]
mov eax, 0x4e20
add ecx, 0x1e
mov word [ebp - 0x1e], ax
mov word [ebp - 0x20], cx
push dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x1d
mov word [ebp - 0x24], ax
mov eax, 0x32
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x28]
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
push dword [0x54b004]
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040f220
mov esp, ebp
pop ebp
ret

Function at 0x493a99
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
mov ecx, 0x811c9dc5
cmp dword [ebp + 0xc], edx
jbe 0x493abf
push esi
mov esi, dword [ebp + 8]
movzx eax, byte [edx + esi]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x493aac
pop esi
mov eax, ecx
pop ebp
ret
Function at 0x40d8e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
lea eax, [ebp - 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_ClearCommError]
push edi
push eax
lea eax, [ebp - 8]
mov esi, ecx
push eax
push dword [esi + 0x10]
call ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
cmp ecx, eax
mov dword [ebp - 4], ecx
jb 0x40d90e
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x40d97f
lea edi, [esi + 0x44]
lea eax, [ebp - 0xc]
push edi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40d97f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40d96e
lea eax, [ebp - 4]
push 1
push eax
push edi
push dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
call edi
test eax, eax
jne 0x40d97f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
jne 0x40d972
lea eax, [ebp - 4]
push 1
push eax
lea eax, [esi + 0x44]
push eax
push dword [esi + 0x10]
jmp 0x40d94c
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push dword [esi + 0x10]
call ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x420f73
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x44a428
cmp edx, dword [eax]
je 0x420f95
add eax, 8
inc ecx
cmp eax, 0x44a4b8
jl 0x420f86
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x44a428]
jne 0x4210c3
mov eax, dword [0x44cd90]
cmp eax, 1
je 0x42109d
test eax, eax
jne 0x420fc6
cmp dword [0x4497d4], 1
je 0x42109d
cmp edx, 0xfc
je 0x4210c3
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x420ffd
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00419a10
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00419fe0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x421040
lea eax, [ebp - 0x1a4]
push eax
call fcn.00419fe0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43b944
push edi
call fcn.00425190
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00419a10
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00419a20
lea eax, [ebp - 0xa0]
push 0x43b924
push eax
call fcn.00419a20
push dword [esi + 0x44a42c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00419a20
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004252d3
add esp, 0x2c
pop edi
jmp 0x4210c3
lea eax, [ebp + 8]
lea esi, [esi + 0x44a42c]
push 0
push eax
push dword [esi]
call fcn.00419fe0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret