joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472f6d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
mov edx, 0x104
push edi
mov edi, ecx
xor ecx, ecx
mov eax, dword [esi + 4]
cmp eax, edx
ja 0x47314f
je 0x473179
cmp eax, 0xa1
jb 0x4731bc
cmp eax, 0xa2
jbe 0x473179
cmp eax, 0xa3
jbe 0x4731bc
cmp eax, 0xa5
jbe 0x473179
cmp eax, 0xa6
jbe 0x4731bc
cmp eax, 0xa8
jbe 0x473179
cmp eax, 0x100
jne 0x4731bc
cmp dword [edi + 0xc0], 0xffffffff
je 0x473179
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x473177
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x4730c0
sub eax, 1
jne 0x473177
mov eax, dword [edi + 0xc0]
lea ecx, [eax + 1]
jmp 0x47304d
mov eax, ecx
cdq
idiv esi
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 8], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call fcn.0054dd20
mov ecx, edi
call esi
test eax, eax
jne 0x47305e
mov ecx, dword [ebp - 4]
mov eax, dword [edi + 0xc0]
inc ecx
mov esi, dword [edi + 0xbc]
add eax, esi
mov dword [ebp - 4], ecx
cmp ecx, eax
jl 0x473021
jmp 0x4730b8
mov eax, dword [edi]
push dword [ebp - 8]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call fcn.0054dd20
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call fcn.0054dd20
mov ecx, edi
call esi
mov ecx, eax
call fcn.0041ef33
mov ecx, dword [edi]
mov esi, dword [ecx + 0x270]
push dword [edi + 0xc0]
mov ecx, esi
call fcn.0054dd20
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
xor eax, eax
inc eax
jmp 0x4731e2
mov eax, dword [edi + 0xbc]
mov ecx, dword [edi + 0xc0]
dec eax
add eax, ecx
cmp eax, ecx
jmp 0x473101
cdq
idiv dword [edi + 0xbc]
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 8], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call fcn.0054dd20
mov ecx, edi
call esi
test eax, eax
jne 0x473108
mov eax, dword [ebp - 4]
dec eax
cmp eax, dword [edi + 0xc0]
mov dword [ebp - 4], eax
jg 0x4730d3
jmp 0x4730b8
mov eax, dword [edi]
push dword [ebp - 8]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call fcn.0054dd20
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call fcn.0054dd20
mov ecx, edi
call esi
mov ecx, eax
call fcn.0041ef33
mov eax, dword [edi]
mov esi, dword [eax + 0x270]
jmp 0x4730a0
cmp eax, 0x200
jb 0x4731bc
cmp eax, 0x202
jbe 0x473179
cmp eax, 0x203
jbe 0x4731bc
cmp eax, 0x205
jbe 0x473179
add eax, 0xfffffdf9
cmp eax, 1
ja 0x4731bc
jmp 0x473179
xor ecx, ecx
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x473199
cmp dword [eax + 0x20], 0
je 0x473199
push esi
push ecx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0xf8]
test eax, eax
je 0x4731ba
cmp dword [eax + 0x20], 0
je 0x4731ba
push esi
push 0
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
cmp dword [esi + 4], 0x203
jne 0x4731da
lea eax, [edi + 0x2250]
test eax, eax
je 0x4731d2
mov ecx, dword [eax + 0x20]
cmp dword [esi], ecx
je 0x4730b8
push esi
mov ecx, edi
call fcn.0046ae16
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x477108
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x636f58]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
jne 0x47712b
xor eax, eax
jmp 0x4771fc
cmp dword [ebp + 0xc], 0
je 0x477124
xor esi, esi
call fcn.00416bc5
push dword [ebp + 0xc]
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x477124
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x477124
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x477212
push eax
call fcn.0055d990
pop ecx
lea edx, [eax + 1]
lea eax, [edx + edx]
mov dword [ebp - 0xc], edx
lea ecx, [eax + 8]
cmp eax, ecx
sbb eax, eax
and eax, ecx
je 0x4771bc
cmp eax, 0x400
ja 0x4771a1
call fcn.0054e200
mov edi, esp
test edi, edi
je 0x4771b7
mov dword [edi], 0xcccc
jmp 0x4771b4
push eax
call fcn.0055d7de
mov edi, eax
pop ecx
test edi, edi
je 0x4771b7
mov dword [edi], 0xdddd
add edi, 8
mov edx, dword [ebp - 0xc]
jmp 0x4771be
mov edi, esi
test edi, edi
je 0x477212
push edx
push dword [ebp - 8]
push edi
call fcn.00414df5
mov dword [ebp - 8], eax
test eax, eax
je 0x4771ec
mov esi, dword [ebp - 0x10]
push eax
call fcn.00559869
pop ecx
push eax
push dword [ebp - 8]
lea ecx, [esi + 4]
call fcn.0041410e
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call fcn.00478b57
pop ecx
mov eax, esi
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054d4f5
mov esp, ebp
pop ebp
ret 8
call fcn.004146d9
int3
Function at 0x488335
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
push 5
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x48838c
push edi
push esi
call fcn.00422395
mov edi, eax
test edi, edi
je 0x48837c
mov ebx, dword [ebx + 0x20]
cmp ebx, esi
je 0x488379
mov eax, esi
cmp ebx, eax
je 0x488394
push eax
call fcn.00420c64
test eax, eax
jne 0x48836b
mov ebx, dword [ebp - 4]
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x488356
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x18000000
cmp dword [ebp + 8], 0
jne 0x4883be
cmp eax, 0x10000000
jne 0x488379
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
or dword [edi + 0x60], 2
jmp 0x488379
test eax, eax
jne 0x488379
test byte [edi + 0x60], 2
mov ebx, dword [ebp - 4]
je 0x48837c
cmp dword [ebx + 0xe0], eax
jne 0x48837c
push 4
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [edi + 0x60], 0xfffffffd
jmp 0x48837c
Function at 0x4e8b05
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, dword [ecx + 0x14]
cmp dword [edi - 0xc], 0
jne 0x4e8b18
xor eax, eax
jmp 0x4e8b67
mov eax, dword [ecx + 8]
push ebx
push esi
mov esi, dword [ecx + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 8], eax
call fcn.0041dfba
mov ebx, eax
test ebx, ebx
je 0x4e8b46
mov ecx, dword [ebx]
mov esi, dword [ecx + 0x74]
mov ecx, esi
call fcn.0054dd20
mov ecx, ebx
call esi
mov esi, dword [ebp - 4]
jmp 0x4e8b48
xor eax, eax
test eax, eax
je 0x4e8b4f
mov eax, dword [eax + 0x20]
push 1
push esi
push dword [ebp - 8]
push edi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
pop esi
sbb eax, eax
inc eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4e8d44
Capabilities:
Get file system object information

Disassembly:
push 0x4cc
mov eax, 0x5892f9
call fcn.0054dd91
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00414eaf
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x611a4c
call fcn.0041f944
cmp eax, 0xffffffff
jne 0x4e8e1d
push 0
push 0x5998d8
lea ecx, [ebp - 0x4d0]
call fcn.0041f944
cmp eax, 0xffffffff
jne 0x4e8e1d
push 0
push 0x592410
lea ecx, [ebp - 0x4d0]
call fcn.0041f944
cmp eax, 0xffffffff
jne 0x4e8e1d
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00414eaf
mov edi, eax
pop ecx
mov dword [ebp - 0x4d4], edi
lea ecx, [edi + 0x10]
mov dword [ebp - 0x4d8], ecx
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea eax, [ebp - 0x218]
push eax
push 0x104
push edx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4e8dec
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call fcn.0054dd20
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x4d4]
mov edi, eax
call fcn.00404640
jmp 0x4e8e55
lea eax, [ebp - 0x218]
push eax
call fcn.00559869
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.0041410e
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00404640
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4e8e43
mov edi, dword [ebp - 0x4cc]
jmp 0x4e8e55
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call fcn.0054dd20
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.00404640
mov eax, edi
call fcn.0054dd3b
ret
Function at 0x4f8f67
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x4f9025
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x4f901a
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4f901a
neg eax
sbb eax, eax
and eax, ecx
cmp dword [ebx], eax
jne 0x4f901a
mov eax, dword [ebx + 4]
sub eax, 1
je 0x4f8fee
sub eax, 1
je 0x4f8fba
sub eax, 1
jne 0x4f901a
mov edi, 0x428e
jmp 0x4f8ff3
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4f8ff3
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call fcn.0054dd20
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x4f8ff3
add edi, 3
jmp 0x4f8ff3
mov edi, 0x3ea0
push edi
call fcn.00414967
test eax, eax
je 0x4f9025
push edi
push eax
mov ecx, 0x6401a0
call fcn.00413f6c
test eax, eax
je 0x4f9025
mov eax, dword [0x6401a0]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
jmp 0x4f901c
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.004146d9
int3

Function at 0x50444d
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x50449c
push esi
mov ebx, 0x811c9dc5
xor edi, edi
call fcn.00559869
xor edx, edx
mov dword [ebp - 4], 0xa
pop ecx
mov ecx, eax
div dword [ebp - 4]
inc eax
test ecx, ecx
je 0x504491
mov edx, ecx
movzx ecx, word [esi + edi*2]
add edi, eax
imul ebx, ebx, 0x1000193
xor ebx, ecx
cmp edi, edx
jb 0x50447f
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004146d9
int3
Function at 0x54eccc
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x58d0dd
call fcn.0054dd91
mov edi, ecx
mov dword [ebp - 0x30], edi
xor ebx, ebx
cmp dword [edi + 0x38], ebx
je 0x54edf6
cmp byte [edi + 0x3d], bl
je 0x54edf6
mov eax, dword [edi]
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call fcn.0054dd20
mov ecx, edi
call esi
cmp eax, 0xffffffff
jne 0x54ed0f
xor al, al
jmp 0x54edf8
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.00402280
lea eax, [edi + 0x40]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
lea esi, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
cmp ecx, 0x10
jb 0x54ed44
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x28]
cmp ecx, 0x10
jb 0x54ed4e
mov edx, eax
mov edi, dword [edi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x2c]
mov esi, dword [edi]
push eax
push edx
push dword [ebp - 0x34]
mov ecx, dword [esi + 0x20]
call fcn.0054dd20
mov ecx, edi
call dword [esi + 0x20]
sub eax, ebx
je 0x54ed7d
sub eax, 1
jne 0x54eddb
mov edi, dword [ebp - 0x30]
jmp 0x54ed83
mov edi, dword [ebp - 0x30]
mov byte [edi + 0x3d], bl
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x54ed93
mov edx, eax
mov esi, dword [ebp - 0x38]
sub esi, edx
je 0x54edbd
lea edx, [ebp - 0x28]
cmp ecx, 0x10
jb 0x54eda4
mov edx, eax
push dword [edi + 0x4c]
push esi
push 1
push edx
call fcn.0055f486
add esp, 0x10
cmp esi, eax
jne 0x54ede6
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
cmp byte [edi + 0x3d], 0
je 0x54ede4
test esi, esi
jne 0x54ed36
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.00410ba0
jmp 0x54ed30
dec eax
sub eax, 1
jne 0x54edea
inc eax
jmp 0x54ede8
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [ebp - 0x28]
call fcn.00402770
mov al, bl
jmp 0x54edf8
mov al, 1
call fcn.0054dd3b
ret
Function at 0x550b60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x636f58]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
push 0x10
mov dword [ebp - 0x40], edi
lea eax, [edi + 0x3c8]
push eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x34]
push eax
call fcn.005527f0
mov ebx, dword [ebp + 0x10]
add esp, 0xc
test ebx, ebx
jle 0x550cc4
mov edx, dword [ebp + 0xc]
dec ebx
add edx, 2
shr ebx, 4
add esi, 2
mov dword [ebp - 0x38], edx
inc ebx
mov dword [ebp - 0x3c], ebx
movzx ecx, byte [edx - 2]
movzx eax, byte [edx - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 3]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], ecx
movzx ecx, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 7]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], ecx
movzx ecx, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xb]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], ecx
movzx ecx, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], ecx
call fcn.00550b40
add esp, 8
xor edi, edi
nop word [eax + eax]
mov al, byte [ebp + edi - 0x34]
xor al, byte [ebp + edi - 0x14]
mov edx, dword [ebp + edi - 0x34]
mov ebx, dword [ebp + edi - 0x14]
mov ecx, ebx
mov byte [esi + 1], al
mov eax, edx
shr ecx, 8
shr eax, 8
xor cl, al
mov eax, edx
mov byte [esi], cl
mov ecx, ebx
shr eax, 0x10
shr ecx, 0x10
xor cl, al
shr ebx, 0x18
mov eax, dword [ebp + edi - 0x24]
shr edx, 0x18
xor bl, dl
mov dword [ebp + edi - 0x34], eax
mov byte [esi - 1], cl
add edi, 4
mov byte [esi - 2], bl
add esi, 4
cmp edi, 0x10
jl 0x550c60
mov edx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x40]
add edx, 0x10
sub dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], edx
jne 0x550bb3
push 0x10
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x44]
call fcn.005527f0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0054d4f5
mov esp, ebp
pop ebp
ret
Function at 0x55797e
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x6057a4
push 0x60579c
push str.FlsAlloc
push 0
call fcn.005578f7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5579b0
push dword [ebp + 8]
mov ecx, esi
call fcn.0054dd20
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x5579f2
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x6057b4
push 0x6057ac
push str.FlsGetValue
push 2
call fcn.005578f7
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x557a23
mov ecx, esi
call fcn.0054dd20
call esi
jmp 0x557a29
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x557a2c
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x6057bc
push 0x6057b4
push str.FlsSetValue
push 3
call fcn.005578f7
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x557a60
mov ecx, esi
call fcn.0054dd20
call esi
jmp 0x557a66
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x5713a0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0057105f

Function at 0x5713ab
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005711e2

Function at 0x574db8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005746d0

Function at 0x574dc3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0057490f

Function at 0x577970
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x5779ab
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x577992
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x5779a3
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x5779ad
inc edi
add eax, 0x28
cmp edi, esi
jb 0x577988
invalid
xor eax, eax
pop edi
pop esi
ret
Function at 0x40231f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, edx
not eax
mov edx, 0xff
cmp edi, 8
jb 0x4023d4
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5360d0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5360d0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5360d0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5360d0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5360d0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5360d0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5360d0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5360d0]
inc ecx
sub edi, 8
dec esi
jne 0x402339
pop ebx
test edi, edi
je 0x4023ed
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x5360d0]
inc ecx
dec edi
jne 0x4023d8
pop edi
not eax
pop esi
ret

Function at 0x4023f2
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x5360d0]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x5360d0]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x40247a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
test byte [esi], 1
push edi
mov edi, eax
jne 0x4024ac
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4024a7
and dword [ebp - 4], eax
mov dword [esi + 8], 7
mov eax, dword [ebp - 4]
jmp 0x4024d4
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x4024bd
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 4]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0050bdd0
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, edi
pop edi
leave
ret
Function at 0x402dfb
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
and dword [ebp - 8], 0
cmp byte [eax], 0
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], 1
mov dword [ebp + 8], eax
je 0x402e26
cmp byte [eax + 1], 0x3a
jne 0x402e26
inc eax
inc eax
cmp byte [eax], 0x5c
jne 0x402e2c
inc eax
push esi
jmp 0x402e7b
cmp cl, 0x5c
je 0x402e4c
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x402e2f
xor esi, esi
test esi, esi
jne 0x402e50
cmp dword [ebp + 0xc], esi
jne 0x402e53
xor eax, eax
inc eax
pop esi
leave
ret
mov esi, eax
jmp 0x402e3d
mov byte [esi], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x402e71
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402e83
test esi, esi
je 0x402e46
mov byte [esi], 0x5c
lea eax, [esi + 1]
mov cl, byte [eax]
test cl, cl
jne 0x402e2f
jmp 0x402e46
test esi, esi
je 0x402e8a
mov byte [esi], 0x5c
xor eax, eax
jmp 0x402e49

Function at 0x402e8e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
and dword [ebp - 8], 0
cmp word [eax], 0
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], 1
mov dword [ebp + 8], eax
je 0x402ebc
cmp word [eax + 2], 0x3a
jne 0x402ebc
add eax, 4
push ebx
push esi
push 0x5c
pop ebx
cmp word [eax], bx
jne 0x402f23
inc eax
inc eax
jmp 0x402f23
movzx ecx, cx
jmp 0x402ed9
cmp cx, bx
je 0x402ef0
inc eax
inc eax
movzx ecx, word [eax]
test cx, cx
jne 0x402ecf
xor esi, esi
test esi, esi
jne 0x402ef4
cmp dword [ebp + 0xc], esi
jne 0x402ef9
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret
mov esi, eax
jmp 0x402ee0
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402f17
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402f2d
test esi, esi
je 0x402ee9
mov eax, ebx
mov word [esi], ax
lea eax, [esi + 2]
movzx ecx, word [eax]
test cx, cx
jne 0x402eca
jmp 0x402ee9
test esi, esi
je 0x402f34
mov word [esi], bx
xor eax, eax
jmp 0x402eec
Function at 0x404337
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [edi + 0x74], eax
mov eax, dword [edi + 0x8c]
cmp ecx, eax
jbe 0x40435a
mov ecx, eax
mov dword [edi + 0x78], ecx
test ecx, ecx
je 0x4044de
cmp dword [edi + 0x6c], 0
jne 0x4043e7
mov eax, dword [edi + 0x88]
test eax, eax
je 0x4043e7
mov ebx, 0x4000
cmp eax, ebx
jae 0x404380
mov ebx, eax
push dword [edi + 0x64]
mov eax, ebx
mov esi, edi
call fcn.0040247a
pop ecx
test eax, eax
je 0x4044e6
sub dword [edi + 0x88], ebx
test byte [edi + 0x3c], 1
mov eax, dword [edi + 0x64]
mov dword [edi + 0x68], eax
mov dword [edi + 0x6c], ebx
je 0x4043e7
xor esi, esi
test ebx, ebx
jbe 0x4043e7
mov eax, dword [edi + 0x98]
mov ecx, dword [edi + 0x64]
lea edx, [esi + ecx]
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor byte [edx], cl
mov eax, dword [edi + 0x64]
mov dl, byte [esi + eax]
lea ecx, [edi + 0x90]
call fcn.004023f2
inc esi
cmp esi, ebx
jb 0x4043b0
mov eax, dword [edi + 0x9c]
mov ecx, dword [edi + 0x6c]
cmp eax, ecx
jbe 0x4043f6
mov eax, ecx
test eax, eax
je 0x404425
mov edx, dword [edi + 0x68]
lea esi, [edx + eax]
mov dl, byte [esi - 1]
sub dword [edi + 0x8c], eax
sub ecx, eax
sub dword [edi + 0x9c], eax
mov dword [edi + 0x6c], ecx
mov dword [edi + 0x68], esi
jne 0x404425
cmp dl, byte [edi + 0xa0]
jne 0x4044ef
cmp word [edi + 0x3e], 0
jne 0x404482
mov eax, dword [edi + 0x78]
mov esi, dword [edi + 0x6c]
cmp eax, esi
jae 0x404438
mov esi, eax
push esi
push dword [edi + 0x68]
push dword [edi + 0x74]
call fcn.0050bdd0
mov ecx, dword [edi + 0x74]
lea ebx, [edi + 0x84]
mov eax, dword [ebx]
add esp, 0xc
mov edx, esi
call fcn.0040231f
sub dword [edi + 0x8c], esi
mov ecx, dword [edi + 0x8c]
sub dword [edi + 0x6c], esi
sub dword [edi + 0x78], esi
add dword [edi + 0x68], esi
add dword [edi + 0x7c], esi
add dword [ebp - 4], esi
mov dword [ebx], eax
mov eax, dword [edi + 0x74]
add eax, esi
mov dword [edi + 0x74], eax
test ecx, ecx
jmp 0x4044d2
mov eax, dword [edi + 0x74]
mov ebx, dword [edi + 0x7c]
push 2
lea esi, [edi + 0x68]
mov dword [ebp + 8], eax
call fcn.00404043
pop ecx
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4044a2
cmp eax, 1
jne 0x4044f8
mov esi, dword [edi + 0x7c]
mov ecx, dword [ebp + 8]
sub esi, ebx
lea ebx, [edi + 0x84]
mov eax, dword [ebx]
mov edx, esi
call fcn.0040231f
sub dword [edi + 0x8c], esi
add dword [ebp - 4], esi
cmp dword [ebp + 0xc], 1
mov dword [ebx], eax
mov eax, dword [edi + 0x8c]
je 0x4044de
test eax, eax
je 0x4044de
cmp dword [edi + 0x78], 0
jne 0x404365
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
mov dword [edi + 8], 7
jmp 0x4044ff
mov dword [edi + 8], 0x13
jmp 0x4044ff
mov dword [edi + 8], 0x12
xor eax, eax
jmp 0x4044e1