joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43100c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], ebx
test byte [edi + 4], 1
mov esi, dword [edi + 0xc]
jne 0x431062
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x43103b
call fcn.00423c71
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x431050
call fcn.00423c71
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x431062
call fcn.00423c71
call fcn.0041fd76
cmp dword [eax + 0x3c], 0
je 0x431077
push esi
mov ecx, ebx
call fcn.00430732
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.0043125d
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4310a0
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4310ac
mov esi, ebx
mov dword [eax + 0x88], ebx
or dword [edi + 4], 1
mov dword [edi + 0xc], esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x434bbd
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x434d03
mov ecx, 0x5e56d8
call fcn.0041f703
mov esi, eax
test esi, esi
je 0x434cf8
xor eax, eax
cmp word [esi + 8], ax
jne 0x434cc2
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x434c7e
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x434c44
push 0x593f48
call fcn.00434d41
pop ecx
test eax, eax
je 0x434c44
mov eax, edi
neg eax
push 0xfc11
sbb eax, eax
and eax, 0xe
add eax, 0x3ee
push eax
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x434c5f
neg edi
push 5
sbb edi, edi
and edi, 0xe
add edi, 0x3ee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x434c7e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test eax, eax
je 0x434c84
push ebx
push edi
push eax
call fcn.00434766
add esp, 0xc
jmp 0x434c84
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 2
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.00407db5
pop ecx
pop ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x434cfd
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.0041becc
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x434cc5
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x434cd3
push edi
call fcn.00555a4b
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.00406985
movzx ecx, word [esi + 8]
mov edx, 0xffff
xor eax, eax
mov word [ebx], cx
pop edi
cmp cx, dx
pop esi
setne al
pop ebx
pop ebp
ret 0xc
call fcn.0041a26b
call fcn.0041a285
int3
Function at 0x443e67
Capabilities:
Get file system object information

Disassembly:
push 0x6f8
mov eax, 0x57ea8d
call fcn.0054d3f7
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x700], edi
test ecx, ecx
je 0x443ff8
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x443fca
sub eax, 1
je 0x443ee6
sub eax, 1
je 0x443ebe
sub eax, 1
je 0x443ee6
push 0x58c00c
mov ecx, edi
call fcn.00401ed2
mov eax, edi
call fcn.0054d3a6
ret 0x10
push 0x408
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x443ea8
lea eax, [ebp - 0x4e8]
push eax
jmp 0x443ead
lea eax, [ebp - 0x218]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x443ea8
push esi
lea eax, [ebp - 0x448]
mov dword [ebp - 0x448], esi
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x444], esi
push eax
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x434], esi
call fcn.00420def
test eax, eax
je 0x443ea8
lea ecx, [ebp - 0x700]
call fcn.00401fc2
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x443f80
test byte [ebp - 0x428], 0x18
jne 0x443fa2
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
push dword [ebp - 0x42c]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x430]
call dword [0x58ba4c]
mov ecx, ebx
call esi
jmp 0x443fa2
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
lea ecx, [ebp - 0x440]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x58ba4c]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x700]
add eax, 0xfffffff0
push eax
call fcn.00403470
pop ecx
mov ecx, dword [ebp - 0x700]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.00406137
jmp 0x443eb4
push 0x208
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x443ea8
lea eax, [ebp - 0x6f0]
jmp 0x443ee3
call fcn.0041a26b
int3

Function at 0x444170
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0049439d
call fcn.0041fdc4
cmp dword [eax + 0x14], 0
jne 0x44418b
mov ecx, esi
pop esi
jmp fcn.00443489
pop esi
ret

Function at 0x444b06
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x5e61a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2bc], esi
test eax, eax
je 0x444b70
push 0x208
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, esi
test eax, eax
je 0x444b55
lea eax, [ebp - 0x2ac]
push eax
jmp 0x444b5a
push 0x597028
call fcn.00401ed2
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0054d384
leave
ret 8
call fcn.0041a26b
int3

Function at 0x445057
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00406def
call fcn.0041fdc4
cmp dword [eax + 0x14], 0
jne 0x445072
mov ecx, esi
pop esi
jmp fcn.004448b0
pop esi
ret
Function at 0x44df44
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x44df5d
call fcn.0041fd76
mov esi, dword [eax + 0xc]
push 0x598714
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x44df9f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44df9f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x44df9f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0044dfaa
jmp 0x44dfa1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4eac90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4eacbd
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x4eacd2
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4eacd2
or dword [esi + 0x3c], 2
or dword [esi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], edx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0042717c
jmp 0x4eada3
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0042717c
cmp eax, edi
jne 0x4eadad
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4ead3f
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4ead83
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x4eadad
cmp eax, 0x205
je 0x4eadad
cmp eax, 0x201
je 0x4eadad
cmp eax, 0x204
je 0x4eadad
cmp eax, 0x100
jne 0x4ead6b
cmp dword [ebp - 0x18], 0x1b
je 0x4eadad
push dword [ebp - 8]
lea eax, [esi + 0x24]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, ebx
sbb edx, dword [ebp - 4]
test edx, edx
jb 0x4eada3
ja 0x4ead9c
cmp eax, dword [0x5ee450]
jbe 0x4eada3
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x4eacf4
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4eb185
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x4eb1bb
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.0041ee2e
test eax, eax
je 0x4eb1a3
mov eax, dword [eax + 0x20]
push 1
push edi
push ebx
push esi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x505256
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.005634b5
pop ecx
test eax, eax
jne 0x505298
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0041c546
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x50525e
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x50c244
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x57cb15
call fcn.0054d3c4
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x50c330
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x50c330
cmp esi, 0x43
je 0x50c286
cmp esi, 0x2d
jne 0x50c330
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x50c330
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00401fc2
movzx eax, byte [edi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [edi + 0xe5]
push eax
movzx eax, byte [edi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push 0x5ae6d8
push eax
call fcn.00403c75
mov esi, dword [ebp - 0x10]
add esp, 0x14
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
lea eax, [eax*2 + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x50c31e
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x50c31e
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
call fcn.00406137
push ebx
mov ecx, edi
call fcn.005096ca
call fcn.0054d392
ret 4
Function at 0x54e51c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x54e55b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x54e55b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x54e55b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x54e55b
cmp dword [ecx + 0x74], 0xe
jbe 0x54e55b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x54ed5e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x54ee2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x54ed8e
xor esi, esi
jmp 0x54ee2f
cmp eax, 3
je 0x54ed9f
push 0
push edi
call fcn.0054ee37
test eax, eax
jne 0x54ed87
movzx eax, word [edi]
mov ecx, edi
push ebx
xor ebx, ebx
test ax, ax
je 0x54ee1c
push 0x5c
mov edx, eax
pop edi
cmp dx, di
jne 0x54edb8
mov ebx, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x54edb1
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x54ee1c
push dword [ebp + 0xc]
xor eax, eax
push edi
mov word [ebx], ax
call fcn.0054ed5e
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x54ee2e
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x54ee18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x54ee09
xor esi, esi
inc esi
jmp 0x54ee2e
test esi, esi
jle 0x54ee2e
movzx esi, si
or esi, 0x80070000
jmp 0x54ee2e
xor esi, esi
jmp 0x54ee2e
mov esi, 0x80070003
push esi
push 0x72
push str.c:_agent_work66_s_srclibsdutildirutil.cpp
call fcn.0043282d
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x54ee5b
test al, 0x10
je 0x54ee5b
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x54ee58
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x550dfa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x550e1b
jl 0x550e12
test edi, edi
jne 0x550e1b
xor eax, eax
xor edx, edx
jmp 0x550edc
cmp dword [ebx + 0x38], 0
je 0x550e30
push eax
push edi
push dword [ebp + 8]
call fcn.00550ee2
jmp 0x550edc
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x550e77
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x550e77
cmp eax, edi
jb 0x550e51
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00552020
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x550e7d
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x550ed1
mov ecx, ebx
call fcn.005506af
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x550ebc
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00563dd1
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x550ed1
jmp 0x550e8f
test edx, edx
je 0x550ed1
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00563dd1
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x550fd1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x550ff3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005510b6
jmp 0x5510b1
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x551019
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x55101e
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov eax, ecx
cdq
mov dword [ebp - 4], eax
mov ecx, edx
mov dword [ebp - 8], ecx
test edi, edi
jl 0x55107e
jg 0x551033
test esi, esi
je 0x55107e
test ecx, ecx
jl 0x551079
jg 0x55103d
test eax, eax
je 0x551079
cmp edi, ecx
jg 0x55104f
jl 0x551047
cmp esi, eax
jae 0x55104f
mov eax, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
call fcn.00552020
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 8]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x551081
mov ecx, dword [ebp + 8]
jmp 0x55108b
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x5510a5
jg 0x55108b
test esi, esi
je 0x5510a5
cmp dword [ebx + 0x4c], 0
je 0x5510a5
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0055f471
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x56f174
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056efea

Function at 0x570e0a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0057095d

Function at 0x579e30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x579e5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x579e5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x356061a2
nop
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x6c015de7
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4
Function at 0x402a7e
Capabilities:
Execute shellcode via indirect call

Disassembly:
sub esp, 0xc
mov eax, dword [0x432018]
xor eax, esp
mov dword [esp + 8], eax
push ebp
push esi
push edi
mov dword [esp + 0xc], edx
mov esi, ecx
push edi
or edi, 0xe2d6
and edi, 0xf951
pop edi
push ebx
push esi
add esp, 4
sub ebx, 0xbb59
call 0x402abb
add byte [edx + 0x3a], cl
inc esp
xor eax, 0x83364b50
les eax, [ebx + ebx*2]
push ecx
sub ecx, 0x20ed
pop ecx
cmp byte [esi + 9], 0
je 0x402c3e
mov edi, dword [esi + 4]
sub edi, dword [esi]
push ebx
xor ebx, 0x9a57
pop ebx
push ecx
push edx
add esp, 4
call 0x402af1
add byte [edx], bh
dec ecx
inc edx
dec ebx
dec ecx
inc ecx
dec ecx
add esp, 4
jmp 0x402afb
add ecx, 0x3a73
sub ecx, 0x3b88
pop ecx
je 0x402c3e
and dword [esp + 0x10], 0
push ecx
and ecx, 0x2ecd
add ecx, 0xd140
sub ecx, 0x775d
pop ecx
push ecx
push edi
add esp, 4
and ecx, 0xc2d7
add ecx, 0x8a6b
and ecx, 0x161dd
or ecx, 0x2429
pop ecx
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0x10]
push eax
push 0x40
push edi
push dword [esi]
call ebp
test eax, eax
je 0x402c3e
push ebx
mov ebx, dword [esi]
lea eax, [ebx + edi]
cmp ebx, eax
jae 0x402bc3
mov ebp, dword [esp + 0x10]
push eax
push edi
add esp, 4
jmp 0x402b78
sub eax, 0x117f9
call 0x402b8c
add byte [eax + 0x32], al
dec ebp
inc eax
xor ecx, dword [eax + 0x4d]
dec esp
add esp, 4
call 0x402b9b
add byte [ebx + 0x42], al
xor al, byte [edx + 0x3d]
cmp eax, dword [ebx - 0x74a7fb3c]
inc ebp
add byte [ebx - 0x75ef7433], cl
inc esi
or byte [eax - 0xefdbbc], cl
je 0x402bd4
adc byte [ebx - 1], dl
ror byte [ebx - 0x38fcbcfa], cl
cmp ebx, eax
jb 0x402b6d
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
or eax, 0x1e63
pop eax
push esi
push esi
add esp, 4
or esi, 0x16e93
add dword [eax], eax
and esi, 0x13904
pop esi
push eax
push eax
add esp, 4
and eax, 0xad82
xor eax, 0x5e9d
or eax, 0xc585
pop eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push edi
push dword [esi]
call ebp
pop ebx
test eax, eax
je 0x402c3e
push esi
push edx
add esp, 4
jmp 0x402c13
and esi, 0x1ed3
and esi, 0x16a02
pop esi
push edx
xor edx, 0xbf1b
call 0x402c36
add byte [edx + 0x37], cl
cmp dl, byte [eax + 0x3c]
inc ebx
cmp byte [ebx + edi], dh
add esp, 4
pop edx
mov al, 1
jmp 0x402c40
xor al, al
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00411120
add esp, 0xc
ret