joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483190
Capabilities:
Read file on windows
Write file on windows

Disassembly:
jmp 0x483190
push 0xffffffffffffffff
push 0x5569ec
mov eax, dword fs:[0]
push eax
sub esp, 0x104
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c1d10]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov esi, dword [esp + 0x128]
xor ebx, ebx
cmp esi, ebx
jne 0x4831d9
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4833d1
cmp dword [esp + 0x12c], ebx
je 0x4831f0
push esi
call fcn.0047ae10
add esp, 4
jmp 0x4833cc
mov ebp, dword [esi + 0x12c]
cmp dword [esi + 0x128], ebp
lea edi, [esi + 0x124]
jbe 0x483209
call fcn.00402590
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [esp + 0x14], eax
jbe 0x48321e
call fcn.00402590
mov eax, dword [esp + 0x14]
push ebp
push edi
push eax
push edi
call fcn.004027f2
push esi
call fcn.0040377e
add esp, 0x14
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x120], ebx
lea eax, [esp + 0x18]
push eax
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push edi
call fcn.0040254f
mov byte [esp + 0x134], 1
mov byte [esp + 0x134], 0
call fcn.00482610
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ebx
add ecx, 0x14
push ecx
push edx
call fcn.004fa081
mov eax, dword [esi]
push eax
push 1
lea ecx, [esp + 0x60]
push 0xe0
push ecx
call fcn.004fa972
lea edi, [esp + 0x48]
call fcn.00474e30
mov ebx, eax
mov eax, esi
call fcn.00478e50
mov ebp, eax
call fcn.00474fe0
mov ecx, dword [esp + 0x8c]
lea edi, [ebx + 3]
add ebp, 3
and ebp, 0xfffffffc
add eax, ebp
and edi, 0xfffffffc
add eax, edi
lea edx, [ecx - 1]
lea ebx, [ecx + eax - 1]
not edx
and ebx, edx
mov edx, dword [esp + 0x88]
push edx
push ecx
mov ecx, dword [esp + 0xa8]
push ecx
push eax
push esi
call fcn.0040447b
add esp, 0x44
test eax, eax
je 0x483315
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call fcn.0047ae10
add esp, 4
mov dword [esp + 0x120], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004021df
xor eax, eax
jmp 0x4833d1
push ebx
call fcn.004b14ff
push ebx
push 0
push eax
mov dword [esp + 0x24], eax
call fcn.004f4420
mov edx, dword [esp + 0x24]
add edx, edi
push edx
lea eax, [esp + 0x3c]
push esi
push eax
call fcn.0047f140
add esp, 0x1c
mov byte [esp + 0x120], 2
add ebp, edi
push ebp
push edi
sub esp, 0xc
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.00401870
mov byte [esp + 0x134], 3
mov edi, dword [esp + 0x28]
push edi
push esi
mov byte [esp + 0x13c], 2
lea ecx, [esp + 0x34]
call fcn.0047f330
mov eax, dword [esi + 0x110]
mov ecx, dword [esi]
push 0
push eax
push ecx
call fcn.004fa081
mov edx, dword [esi]
push edx
push ebx
push 1
push edi
call fcn.004fa265
push edi
call fcn.004b1504
push esi
call fcn.0047ae10
add esp, 0x40
mov byte [esp + 0x120], 0
lea ecx, [esp + 0x28]
call fcn.00401a5f
mov dword [esp + 0x120], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004021df
mov eax, 1
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
Function at 0x4bc999
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4bc9d2
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004036fc
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004035fd
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4be289
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x5647d4
mov ecx, edi
call fcn.00401a50
cmp dword [esi + 0x4c], 0
push dword [esp + 0xc]
jne 0x4be2dc
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x4be2ef
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.004036fc
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004035fd
jmp 0x4be2ef
mov ecx, esi
call fcn.004bf5a3
test eax, eax
je 0x4be2ef
push edi
mov ecx, eax
call fcn.004bc999
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x4be8d9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4be91c
call fcn.004c7ba0
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4be91c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4be937
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004be490
test ebx, ebx
mov esi, eax
je 0x4be935
test edi, edi
je 0x4be935
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4bff69
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x557cc9
call fcn.004fb03b
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4bff8e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4bffda
call fcn.004b3d4a
push eax
lea ecx, [ebp - 0x10]
call fcn.00402842
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b2468
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040268a
mov eax, esi
call fcn.004fb113
ret 8
Function at 0x4c0b81
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x557d82
call fcn.004fb06e
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.004c7ba0
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x4c0bcc
call fcn.004c7ba0
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x4c0bdd
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x4c0bea
or eax, 0xffffffff
jmp 0x4c0d46
mov ecx, esi
call fcn.004c06c2
mov dword [ebp - 0x14], eax
call fcn.004bb3ed
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x4c0c68
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4c0c68
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4c0c68
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.004b4441
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x4c0c68
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x4c0c68
mov ecx, ebx
call fcn.004bf872
test eax, eax
je 0x4c0c68
push 0
mov ecx, ebx
call fcn.004bf88d
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.004bd5c4
push dword [ebp - 0x14]
call fcn.004bb345
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004c0989
xor edi, edi
cmp eax, edi
je 0x4c0cc5
test byte [esi + 0x3c], 0x10
je 0x4c0caf
push 4
pop edi
mov ecx, esi
call fcn.004bf70c
test ax, 0x100
je 0x4c0ca5
push 5
pop edi
push edi
mov ecx, esi
call fcn.004baecd
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x4c0cc5
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004bfb6d
or dword [ebp - 4], 0xffffffff
jmp 0x4c0cf0
cmp dword [ebp - 0x28], edi
je 0x4c0cfe
push 1
mov ecx, ebx
call fcn.004bf88d
cmp dword [ebp - 0x2c], edi
je 0x4c0d0e
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4c0d27
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x4c0d27
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.004c06fc
cmp dword [esi + 0x58], edi
je 0x4c0d43
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.004fb113
ret
Function at 0x4c2205
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xe0]
sub esp, 0x160
mov eax, dword [0x5c1d10]
xor eax, ebp
mov dword [ebp + 0xdc], eax
cmp dword [ebp + 0xec], 0x800
mov eax, dword [ebp + 0xe8]
push esi
mov dword [ebp - 0x3c], eax
mov esi, ecx
lea eax, [ebp - 0x40]
jne 0x4c229d
push 0x58883c
push 4
push eax
call fcn.004f63c1
push eax
call fcn.004023e2
add esp, 0x10
push ebx
push edi
call fcn.004fb3b9
mov edi, dword [eax]
call fcn.004fb3b9
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.004f7a05
add esp, 0x18
mov dword [ebp - 0x3c], eax
call fcn.004fb3b9
cmp dword [eax], ebx
je 0x4c22b4
call fcn.004fb3b9
push dword [eax]
call fcn.004b2a07
pop ecx
jmp 0x4c22bb
push 4
push eax
push 3
push dword [ebp + 0xec]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4c2251
jmp 0x4c232d
call fcn.004fb3b9
mov dword [eax], edi
cmp dword [ebp - 0x3c], 0xffffffff
je 0x4c2329
cmp dword [ebp - 0x3c], esi
jae 0x4c2329
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.004f4420
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x4c231b
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4c231b
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x4c231b
push ebx
push ebx
push esi
jmp 0x4c2321
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x4c232b
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0xdc]
xor ecx, ebp
pop esi
call fcn.004f409d
add ebp, 0xe0
leave
ret
Function at 0x4c8167
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x4c81ad
call fcn.004c7ba0
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4c81ad
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4c81f0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x4c81d9
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4c81d9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4c81ed
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4d2f97
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4d2fad
mov edi, dword [esi + 0xc]
jmp 0x4d2fed
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4d2fc6
call fcn.004b4d97
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4d2fdb
call fcn.004b4d97
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4d2fed
call fcn.004b4d97
call fcn.004c7ba0
cmp dword [eax + 0x3c], 0
je 0x4d3002
push edi
mov ecx, ebx
call fcn.004d1c82
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004d2eb1
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4d3020
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4d302c
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4d3f6b
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x4d3f74
xor eax, eax
jmp 0x4d3fdd
cmp dword [esp + 8], 0
jne 0x4d3f80
call fcn.004b3abd
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.004fa972
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4d3fbb
push dword [esi + 0x10]
call fcn.004ff313
test eax, eax
pop ecx
jne 0x4d3fbb
mov esi, dword [esi + 0xc]
call fcn.004fb3cc
push esi
push dword [eax]
push 1
call fcn.004d3d44
push dword [esi + 0x10]
call fcn.004ff342
test eax, eax
pop ecx
je 0x4d3fda
push dword [esi + 0x10]
call fcn.004ff262
push eax
call fcn.004023e2
pop ecx
pop ecx
jmp 0x4d3fa9
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x4d3fe6
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x4d3ff0
call fcn.004b3abd
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.004fa265
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x4d401d
mov esi, dword [esi + 0xc]
call fcn.004fb3cc
push esi
push dword [eax]
push 1
call fcn.004d3d44
pop esi
ret 8

Function at 0x4f409d
Capabilities:
Terminate process

Disassembly:
jmp fcn.00462d50
cmp ecx, dword [0x5c1d10]
jne 0x4f40a7
repz ret
jmp 0x401b1d

Function at 0x4f6426
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4f6453
call fcn.004fb3cc
mov dword [eax], esi
call fcn.004fb3b9
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040227f
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4f642f
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4f6482
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004fb3df
pop ecx
call fcn.004fb3b9
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4f64a9
test al, 1
je 0x4f64a9
test byte [esp + 0xc], 2
je 0x4f64a9
call fcn.004fb3cc
mov dword [eax], 5
call fcn.004fb3b9
mov dword [eax], 0xd
jmp 0x4f6479
xor eax, eax
pop esi
ret
Function at 0x4fa6bb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4fa6f8
cmp dword [ebp + 0x14], edi
je 0x4fa6f8
cmp ecx, edi
jne 0x4fa6ff
call fcn.004fb3b9
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0040227f
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4fa713
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4fa734
cmp ebx, 0xffffffff
je 0x4fa723
push ebx
push edi
push ecx
call fcn.004f4420
add esp, 0xc
cmp esi, edi
je 0x4fa6e0
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4fa6e0
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4fa750
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4fa757
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4fa848
test word [esi + 0xc], 0x10c
je 0x4fa7ab
mov eax, dword [esi + 4]
test eax, eax
je 0x4fa7ab
jl 0x4fa8a9
cmp ebx, eax
mov edi, ebx
jb 0x4fa77c
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4fa850
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004f4ad4
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4fa840
cmp ebx, dword [ebp - 0xc]
jb 0x4fa818
cmp dword [ebp - 0xc], 0
je 0x4fa7d5
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4fa7ca
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4fa7d1
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4fa7e0
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4fa7e0
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4fa87c
push eax
push dword [ebp - 8]
push esi
call fcn.004ff0af
pop ecx
push eax
call fcn.0050de86
add esp, 0xc
test eax, eax
je 0x4fa8bb
cmp eax, 0xffffffff
je 0x4fa8a9
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4fa840
push esi
call fcn.0050c4fc
cmp eax, 0xffffffff
pop ecx
je 0x4fa8ad
cmp dword [ebp - 4], 0
je 0x4fa87c
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4fa75f
mov eax, dword [ebp + 0x14]
jmp 0x4fa6fa
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4fa867
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004f4420
add esp, 0xc
call fcn.004fb3b9
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4fa6f0
cmp dword [ebp + 0xc], 0xffffffff
je 0x4fa892
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004f4420
add esp, 0xc
call fcn.004fb3b9
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4fa6f0
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4fa6fa
or dword [esi + 0xc], 0x10
jmp 0x4fa8ad
Function at 0x5073a5
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x5c2770]
je 0x5073c0
inc edi
cmp edi, 0x17
jb 0x5073b1
cmp edi, 0x17
jae 0x507540
push ebp
push 3
call fcn.00517218
cmp eax, 1
pop ecx
je 0x50750c
push 3
call fcn.00517218
test eax, eax
pop ecx
jne 0x5073f4
cmp dword [0x5c1e7c], 1
je 0x50750c
cmp ebx, 0xfc
je 0x50753f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x5c7a88
push ebp
call fcn.004f63c1
add esp, 0xc
test eax, eax
je 0x50742a
push esi
push esi
push esi
push esi
push esi
call fcn.00404200
add esp, 0x14
push 0x104
mov esi, 0x5c7aa1
push esi
push 0
mov byte [0x5c7ba5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x50746e
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004f63c1
add esp, 0xc
test eax, eax
je 0x50746e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00404200
add esp, 0x14
push esi
call fcn.004fafb0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x5074b3
push esi
call fcn.004fafb0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x5c7d9c
push 0x57ddbc
sub ecx, eax
push ecx
push eax
call fcn.004fa2e7
add esp, 0x14
test eax, eax
je 0x5074b3
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00404200
add esp, 0x14
jmp 0x5074b5
xor esi, esi
push 0x58e8a8
push ebx
push ebp
call fcn.004f817c
add esp, 0xc
test eax, eax
je 0x5074d5
push esi
push esi
push esi
push esi
push esi
call fcn.00404200
add esp, 0x14
push dword [edi*8 + 0x5c2774]
push ebx
push ebp
call fcn.004f817c
add esp, 0xc
test eax, eax
je 0x5074f7
push esi
push esi
push esi
push esi
push esi
call fcn.00404200
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0051705b
add esp, 0xc
jmp 0x50753f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x50753f
cmp ebp, 0xffffffff
je 0x50753f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x5c2774]
push dword [esi]
call fcn.004fafb0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x51705b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004f924f
xor ebx, ebx
cmp dword [0x5c7ff0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x517131
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x517211
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x517211
push eax
call fcn.004f91e1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5c7ff0], eax
call esi
push eax
call fcn.004f91e1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5c7ff4], eax
call esi
push eax
call fcn.004f91e1
mov dword [0x5c7ff8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004f8dd8
test eax, eax
pop ecx
pop ecx
je 0x5170ff
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404200
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x517131
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004f91e1
cmp eax, ebx
pop ecx
mov dword [0x5c8000], eax
je 0x517131
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004f91e1
pop ecx
mov dword [0x5c7ffc], eax
mov eax, dword [0x5c7ffc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x5171b6
cmp dword [0x5c8000], ecx
je 0x5171b6
push eax
call fcn.004f9258
push dword [0x5c8000]
mov esi, eax
call fcn.004f9258
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x5171b6
cmp edi, ebx
je 0x5171b6
call esi
cmp eax, ebx
je 0x517183
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x517183
test byte [ebp - 0x18], 1
jne 0x5171b6
lea eax, [ebp - 0x10]
push eax
call fcn.004f8e87
test eax, eax
pop ecx
je 0x51719e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404200
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x5171ad
or dword [ebp + 0x10], 0x200000
jmp 0x5171f1
or dword [ebp + 0x10], 0x40000
jmp 0x5171f1
mov eax, dword [0x5c7ff4]
cmp eax, dword [ebp - 8]
je 0x5171f1
push eax
call fcn.004f9258
cmp eax, ebx
pop ecx
je 0x5171f1
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x5171f1
mov eax, dword [0x5c7ff8]
cmp eax, dword [ebp - 8]
je 0x5171f1
push eax
call fcn.004f9258
cmp eax, ebx
pop ecx
je 0x5171f1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5c7ff0]
call fcn.004f9258
cmp eax, ebx
pop ecx
je 0x517211
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x517213
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x521a03
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x5c1d10]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00521862
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004f4420
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x521a52
cmp dword [ebp - 0x1c], 5
jb 0x521a6a
jmp 0x521a66
cmp dword [ebp - 0x10], 1
jne 0x521a6a
cmp dword [ebp - 0x1c], 4
ja 0x521a66
jne 0x521a6a
cmp dword [ebp - 0x18], 0
jbe 0x521a6a
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x596744
call fcn.0052161f
test eax, eax
jge 0x521a8b
mov byte [0x5c4c60], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004f409d
add ebp, 0x78
leave
ret