joyce8/EMBER2024-capa huggingface dataset:
Function at 0x529c1f
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, 0x605639
call fcn.005ac5b0
sub esp, 0xc
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
push edi
mov dword [ebp - 0x10], esp
je 0x529cac
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x529cac
push 0x4c
call fcn.005655ab
test eax, eax
pop ecx
je 0x529c66
mov ecx, eax
call fcn.00529add
jmp 0x529c68
xor eax, eax
push eax
push dword [esi]
mov dword [ebp - 0x14], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test eax, eax
jne 0x529c8f
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x18], eax
push 0x66a568
lea eax, [ebp - 0x18]
push eax
call fcn.005ab3f1
lea edi, [esi + 0x10]
push edi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi + 4]
call fcn.00529bf6
push edi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x530080
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x69e3d4]
xor eax, ebp
mov dword [ebp - 0xc], eax
call fcn.0052fd90
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5300a8
xor eax, eax
jmp 0x5301a0
mov eax, dword [ebp - 4]
mov dword [eax], 0xb
push 0xc
call fcn.0052b880
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5300d7
mov ecx, dword [ebp - 4]
push ecx
call fcn.00530280
add esp, 4
xor eax, eax
jmp 0x5301a0
mov edx, dword [ebp - 8]
mov dword [edx], 0xffffffff
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 0x38], eax
lea ecx, [ebp - 0x118]
push ecx
push 0x101
call dword [sym.imp.kernel32.dll_GetTempPathA]
push 0x694a68
lea edx, [ebp - 0x118]
push edx
call fcn.005ad9a1
add esp, 8
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
push 0x1b6
push 0x8702
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
call fcn.005ad7d2
add esp, 0xc
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov edx, dword [ebp - 8]
cmp dword [edx], 0
jge 0x53015f
mov eax, dword [ebp - 4]
push eax
call fcn.00530280
add esp, 4
xor eax, eax
jmp 0x5301a0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
call fcn.005ad99c
add esp, 4
test eax, eax
je 0x530181
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
or ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx + 4], ecx
push 0
push 0
push 2
mov eax, dword [ebp - 4]
push eax
call fcn.00530df0
add esp, 0x10
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x34], 0x694a38
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005a58d9
mov esp, ebp
pop ebp
ret
Function at 0x5653fe
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x56540c
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x5654ed
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x625460]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x625460]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x625460]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x625460]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x625460]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x625460]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x625460]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x625460]
xor eax, esi
inc edx
dec edi
jne 0x565429
pop ebx
cmp dword [ebp + 0x10], 0
je 0x56550e
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x625460]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x5654f3
pop edi
pop esi
not eax
pop ebp
ret

Function at 0x5693ed
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x569426
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.005693b0
push eax
push dword [esi + 0x20]
call dword [sym.imp.user32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045fbb0
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x56aaaa
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x641d28
mov ecx, edi
call fcn.00401600
cmp dword [esi + 0x4c], 0
push dword [esp + 0xc]
jne 0x56aafd
push dword [esi + 0x20]
call dword [sym.imp.user32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x56ab10
push esi
call dword [sym.imp.user32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.005693b0
push eax
push esi
call dword [sym.imp.user32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0045fbb0
jmp 0x56ab10
mov ecx, esi
call fcn.0056c9f5
test eax, eax
je 0x56ab10
push edi
mov ecx, eax
call fcn.005693ed
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8
Function at 0x56b0fa
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 0x56b13d
call fcn.005702dd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
test eax, eax
je 0x56b13d
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x56b158
push edi
call dword [sym.imp.kernel32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0056acb1
test ebx, ebx
mov esi, eax
je 0x56b156
test edi, edi
je 0x56b156
push edi
call dword [sym.imp.kernel32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x56c4d8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x605e6c
call fcn.005aac76
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.005702dd
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x56c523
call fcn.005702dd
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 0x56c534
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x56c541
or eax, 0xffffffff
jmp 0x56c69d
mov ecx, esi
call fcn.0056c02a
mov dword [ebp - 0x14], eax
call fcn.0056816c
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x56c5bf
call dword [sym.imp.user32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x56c5bf
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_IsWindowEnabled]
test eax, eax
je 0x56c5bf
push 0
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00401da0
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x56c5bf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + pe_nt_image_headers32]
test eax, eax
je 0x56c5bf
mov ecx, ebx
call fcn.0056cc6e
test eax, eax
je 0x56c5bf
push 0
mov ecx, ebx
call fcn.0056cc89
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00569edb
push dword [ebp - 0x14]
call fcn.005680c4
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0056c2e0
xor edi, edi
cmp eax, edi
je 0x56c61c
test byte [esi + 0x3c], 0x10
je 0x56c606
push 4
pop edi
mov ecx, esi
call fcn.0056cb08
test ax, 0x100
je 0x56c5fc
push 5
pop edi
push edi
mov ecx, esi
call fcn.00567c8c
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x56c61c
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0056ce58
or dword [ebp - 4], 0xffffffff
jmp 0x56c647
cmp dword [ebp - 0x28], edi
je 0x56c655
push 1
mov ecx, ebx
call fcn.0056cc89
cmp dword [ebp - 0x2c], edi
je 0x56c665
push 1
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x56c67e
call dword [sym.imp.user32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x56c67e
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.0056c064
cmp dword [esi + 0x58], edi
je 0x56c69a
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.005aad1b
ret
Function at 0x56c6ce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.005702dd
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x56c705
push edi
call dword [sym.imp.kernel32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0056c2e0
push edi
mov esi, eax
call dword [sym.imp.kernel32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x56c75d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x56c77d
cmp dword [edi + 0x54], 0
jne 0x56c77d
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.005702dd
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0056c724
push ebx
mov esi, eax
call dword [sym.imp.kernel32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x56d167
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x605e8f
call fcn.005aac43
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x56d18c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.user32.dll_GetWindowTextA]
jmp 0x56d1d8
call fcn.0056d592
push eax
lea ecx, [ebp - 0x10]
call fcn.00401250
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.0056b329
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_lstrlen]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004012a0
mov eax, esi
call fcn.005aad1b
ret 8
Function at 0x5714e0
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 0x5714f6
mov edi, dword [esi + 0xc]
jmp 0x571536
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.kernel32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x57150f
call fcn.00576e9e
push edi
push dword [esi + 8]
call dword [sym.imp.kernel32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x571524
call fcn.00576e9e
push edi
call dword [sym.imp.kernel32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x571536
call fcn.00576e9e
call fcn.005702dd
cmp dword [eax + 0x3c], 0
je 0x57154b
push edi
mov ecx, ebx
call fcn.00570400
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.005713fa
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x571569
push eax
call dword [sym.imp.kernel32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x571575
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 0x57b54b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x69e3d4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x57b58b
push 0x629a74
push 4
push eax
call fcn.005b1ace
push eax
call fcn.0041c9d0
add esp, 0x10
jmp 0x57b59d
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
test eax, eax
je 0x57b60b
push edi
call fcn.005b02d1
mov edi, dword [eax]
call fcn.005b02d1
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.005a5ac5
add esp, 0x18
mov ebx, eax
call fcn.005b02d1
cmp dword [eax], 0
je 0x57b5eb
call fcn.005b02d1
push dword [eax]
call fcn.004ed6f0
pop ecx
jmp 0x57b5f2
call fcn.005b02d1
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x57b60b
cmp ebx, esi
jae 0x57b60b
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
jmp 0x57b60d
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005a58d9
leave
ret
Function at 0x57d386
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 0x57d3cc
call fcn.005702dd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
test eax, eax
je 0x57d3cc
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x57d40f
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 0x57d3f8
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 0x57d3f8
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x57d40c
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 0x5a58d9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x69e3d4]
jne 0x5a58e3
repz ret
jmp fcn.005b408c

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x5a7f97
call fcn.005b02e4
mov dword [eax], esi
call fcn.005b02d1
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.005ab3bd
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x5a7f73
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5a7fc6
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.005b02f7
pop ecx
call fcn.005b02d1
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x5a7fed
test al, 1
je 0x5a7fed
test byte [esp + 0xc], 2
je 0x5a7fed
call fcn.005b02e4
mov dword [eax], 5
call fcn.005b02d1
mov dword [eax], 0xd
jmp 0x5a7fbd
xor eax, eax
pop esi
ret
Function at 0x5a95a5
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 0x5a95e2
cmp dword [ebp + 0x14], edi
je 0x5a95e2
cmp ecx, edi
jne 0x5a95e9
call fcn.005b02d1
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.005ab3bd
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x5a95fd
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x5a961e
cmp ebx, 0xffffffff
je 0x5a960d
push ebx
push edi
push ecx
call fcn.005ab440
add esp, 0xc
cmp esi, edi
je 0x5a95ca
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x5a95ca
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x5a963a
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x5a9641
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x5a9732
test word [esi + 0xc], 0x10c
je 0x5a9695
mov eax, dword [esi + 4]
test eax, eax
je 0x5a9695
jl 0x5a9793
cmp ebx, eax
mov edi, ebx
jb 0x5a9666
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x5a973a
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.005a58e8
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 0x5a972a
cmp ebx, dword [ebp - 0xc]
jb 0x5a9702
cmp dword [ebp - 0xc], 0
je 0x5a96bf
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x5a96b4
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x5a96bb
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x5a96ca
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x5a96ca
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x5a9766
push eax
push dword [ebp - 8]
push esi
call fcn.005abd79
pop ecx
push eax
call fcn.005ae51e
add esp, 0xc
test eax, eax
je 0x5a97a5
cmp eax, 0xffffffff
je 0x5a9793
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x5a972a
push esi
call fcn.005b64c4
cmp eax, 0xffffffff
pop ecx
jmp 0x5a9797
test ebx, ebx
jne 0x5a9649
mov eax, dword [ebp + 0x14]
jmp 0x5a95e4
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x5a9751
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.005ab440
add esp, 0xc
call fcn.005b02d1
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x5a95da
cmp dword [ebp + 0xc], 0xffffffff
je 0x5a977c
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.005ab440
add esp, 0xc
call fcn.005b02d1
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x5a95da
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x5a95e4
or dword [esi + 0xc], 0x10
jmp 0x5a9797
Function at 0x5b979d
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 + 0x69f180]
je 0x5b97b8
inc edi
cmp edi, 0x17
jb 0x5b97a9
cmp edi, 0x17
jae 0x5b9938
push ebp
push 3
call fcn.005c1401
cmp eax, 1
pop ecx
je 0x5b9904
push 3
call fcn.005c1401
test eax, eax
pop ecx
jne 0x5b97ec
cmp dword [0x69e3d0], 1
je 0x5b9904
cmp ebx, 0xfc
je 0x5b9937
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x6b0e40
push ebp
call fcn.005b1ace
add esp, 0xc
test eax, eax
je 0x5b9822
push esi
push esi
push esi
push esi
push esi
call fcn.005ab2c1
add esp, 0x14
push 0x104
mov esi, 0x6b0e59
push esi
push 0
mov byte [0x6b0f5d], 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5b9866
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.005b1ace
add esp, 0xc
test eax, eax
je 0x5b9866
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.005ab2c1
add esp, 0x14
push esi
call fcn.005ab0c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x5b98ab
push esi
call fcn.005ab0c0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x6b1154
push 0x652298
sub ecx, eax
push ecx
push eax
call fcn.005afff0
add esp, 0x14
test eax, eax
je 0x5b98ab
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.005ab2c1
add esp, 0x14
jmp 0x5b98ad
xor esi, esi
push 0x6476c0
push ebx
push ebp
call fcn.005b1c3a
add esp, 0xc
test eax, eax
je 0x5b98cd
push esi
push esi
push esi
push esi
push esi
call fcn.005ab2c1
add esp, 0x14
push dword [edi*8 + 0x69f184]
push ebx
push ebp
call fcn.005b1c3a
add esp, 0xc
test eax, eax
je 0x5b98ef
push esi
push esi
push esi
push esi
push esi
call fcn.005ab2c1
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.005caf33
add esp, 0xc
jmp 0x5b9937
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x5b9937
cmp ebp, 0xffffffff
je 0x5b9937
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x69f184]
push dword [esi]
call fcn.005ab0c0
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 0x5c0fd0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.005b3b0d
xor ebx, ebx
cmp dword [0x6b134c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x5c10a6
push 0x636bf4
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x5c1186
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxW
push edi
call esi
cmp eax, ebx
je 0x5c1186
push eax
call fcn.005b3a9f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x6b134c], eax
call esi
push eax
call fcn.005b3a9f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x6b1350], eax
call esi
push eax
call fcn.005b3a9f
mov dword [0x6b1354], eax
lea eax, [ebp - 0xc]
push eax
call fcn.005a7a0e
test eax, eax
pop ecx
pop ecx
je 0x5c1074
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.005ab2c1
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x5c10a6
push str.GetUserObjectInformationW
push edi
call esi
push eax
call fcn.005b3a9f
cmp eax, ebx
pop ecx
mov dword [0x6b135c], eax
je 0x5c10a6
push 0x636b90
push edi
call esi
push eax
call fcn.005b3a9f
pop ecx
mov dword [0x6b1358], eax
mov eax, dword [0x6b1358]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x5c112b
cmp dword [0x6b135c], ecx
je 0x5c112b
push eax
call fcn.005b3b16
push dword [0x6b135c]
mov esi, eax
call fcn.005b3b16
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x5c112b
cmp edi, ebx
je 0x5c112b
call esi
cmp eax, ebx
je 0x5c10f8
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5c10f8
test byte [ebp - 0x18], 1
jne 0x5c112b
lea eax, [ebp - 0x10]
push eax
call fcn.005a7a45
test eax, eax
pop ecx
je 0x5c1113
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.005ab2c1
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x5c1122
or dword [ebp + 0x10], 0x200000
jmp 0x5c1166
or dword [ebp + 0x10], 0x40000
jmp 0x5c1166
mov eax, dword [0x6b1350]
cmp eax, dword [ebp - 8]
je 0x5c1166
push eax
call fcn.005b3b16
cmp eax, ebx
pop ecx
je 0x5c1166
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x5c1166
mov eax, dword [0x6b1354]
cmp eax, dword [ebp - 8]
je 0x5c1166
push eax
call fcn.005b3b16
cmp eax, ebx
pop ecx
je 0x5c1166
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x6b134c]
call fcn.005b3b16
cmp eax, ebx
pop ecx
je 0x5c1186
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5c1188
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret