joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x51c008], 0x8088405
inc edx
mov dword [ebx + 0x51c008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf44
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf75
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf5d
add dl, dl
jne 0x41cf80
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cfd1
xor eax, eax
add dl, dl
jne 0x41cf8d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d06e
add dl, dl
jne 0x41cf9c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfb2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfbd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cfc7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf6c
mov eax, 1
add dl, dl
jne 0x41cfdf
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfea
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfd6
sub eax, ebx
mov ebx, 1
jne 0x41d01d
mov ecx, 1
add dl, dl
jne 0x41d003
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d00e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cffa
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d034
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d03f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d02b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d08f
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf6c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f0a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x50058e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ef
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
jmp 0x41f10e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f180
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f169
test esi, esi
jbe 0x41f180
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f15b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f180
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f138
jmp 0x41f180
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f180
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500595
ret
Function at 0x4202d8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x5018f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420313
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x42032c
lea eax, [ebp - 0x10]
mov edx, dword [0x51e54c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x42033f
lea eax, [ebp - 0x10]
mov edx, dword [0x51e54c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42034b
adc edx, 0
mov edx, dword [edx*4 + 0x51d378]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4204c5
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4204b8
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4204b8
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420456
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420456
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420456
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420456
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4204b8
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4204b8
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x4204dd
inc ebx
cmp ebx, 0x19
jne 0x420305
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5018fa
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x407510
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40756b
cmp byte [esi + ebx - 1], 0xa
je 0x40753f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4092bc], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x408140
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop

Function at 0x40208b
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push 0
push 2
push 0x404052
push 0x404044
call dword [sym.imp.Winmm.dll_mciSendStringA]
cmp eax, 0x107
jne 0x402103
mov byte [0x404067], al
push 0x404067
push 0x404070
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
cmp eax, 1
jne 0x402103
call fcn.00403535
push edx
mov eax, eax
push 0
push 2
push 0x404052
push 0x404054
call dword [sym.imp.Winmm.dll_mciSendStringA]
pop edx
add edx, eax
push edx
push 2
push 0x404069
push 0x404070
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
pop edx
add dl, byte [0x404069]
add edx, 0x100
call edx
xor eax, eax
add esp, 0x18
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x403570
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
push 0x40
push ebx
push eax
call dword [sym.imp.kernel32.dll_VirtualProtect]
ret
Function at 0x10001008
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10001012
repz ret
jmp fcn.10001307

Function at 0x10002b02
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 + 0x1000b0e0]
je 0x10002b1d
inc edi
cmp edi, 0x17
jb 0x10002b0e
cmp edi, 0x17
jae 0x10002c9d
push ebp
push 3
call fcn.1000590c
cmp eax, 1
pop ecx
je 0x10002c69
push 3
call fcn.1000590c
test eax, eax
pop ecx
jne 0x10002b51
cmp dword [0x100324d0], 1
je 0x10002c69
cmp ebx, 0xfc
je 0x10002c9c
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10032968
push ebp
call fcn.10005017
add esp, 0xc
test eax, eax
je 0x10002b87
push esi
push esi
push esi
push esi
push esi
call fcn.10002e8c
add esp, 0x14
push 0x104
mov esi, 0x10032981
push esi
push 0
mov byte [0x10032a85], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10002bcb
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10005017
add esp, 0xc
test eax, eax
je 0x10002bcb
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10002e8c
add esp, 0x14
push esi
call fcn.10005080
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10002c10
push esi
call fcn.10005080
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10032c7c
push 0x10008764
sub ecx, eax
push ecx
push eax
call fcn.10005859
add esp, 0x14
test eax, eax
je 0x10002c10
xor esi, esi
push esi
push esi
jmp 0x10037f40
xor esi, esi
push 0x10008760
push ebx
push ebp
call fcn.100057e8
add esp, 0xc
test eax, eax
je 0x10002c32
push esi
push esi
push esi
push esi
push esi
call fcn.10002e8c
add esp, 0x14
push dword [edi*8 + 0x1000b0e4]
push ebx
push ebp
call fcn.100057e8
add esp, 0xc
test eax, eax
je 0x10002c54
push esi
push esi
push esi
push esi
push esi
call fcn.10002e8c
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1000562b
add esp, 0xc
jmp 0x10002c9c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10002c9c
cmp ebp, 0xffffffff
je 0x10002c9c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1000b0e4]
push dword [esi]
call fcn.10005080
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 0x10003150
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
je 0x1000315e
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
jmp loc.10036e10
Function at 0x1000562b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100017e1
xor ebx, ebx
cmp dword [0x10032e48], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10005701
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100057e1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x100057e1
push eax
call fcn.10001773
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10032e48], eax
call esi
push eax
call fcn.10001773
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10032e4c], eax
call esi
push eax
call fcn.10001773
mov dword [0x10032e50], eax
lea eax, [ebp - 0xc]
push eax
call fcn.100014b4
test eax, eax
pop ecx
pop ecx
je 0x100056cf
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10002e8c
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10005701
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10001773
cmp eax, ebx
pop ecx
mov dword [0x10032e58], eax
je 0x10005701
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10001773
pop ecx
mov dword [0x10032e54], eax
mov eax, dword [0x10032e54]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10005786
cmp dword [0x10032e58], ecx
je 0x10005786
push eax
call fcn.100017ea
push dword [0x10032e58]
mov esi, eax
call fcn.100017ea
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10005786
cmp edi, ebx
je 0x10005786
call esi
cmp eax, ebx
je 0x10005753
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10005753
test byte [ebp - 0x18], 1
jne 0x10005786
lea eax, [ebp - 0x10]
push eax
call fcn.100014eb
test eax, eax
pop ecx
je 0x1000576e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10002e8c
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1000577d
or dword [ebp + 0x10], 0x200000
jmp 0x100057c1
or dword [ebp + 0x10], 0x40000
jmp 0x100057c1
mov eax, dword [0x10032e4c]
cmp eax, dword [ebp - 8]
je 0x100057c1
push eax
call fcn.100017ea
cmp eax, ebx
pop ecx
je 0x100057c1
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100057c1
mov eax, dword [0x10032e50]
cmp eax, dword [ebp - 8]
je 0x100057c1
push eax
call fcn.100017ea
cmp eax, ebx
pop ecx
je 0x100057c1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10032e48]
call fcn.100017ea
cmp eax, ebx
pop ecx
je 0x100057e1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100057e3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10006c93
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
jmp loc.10036c80
Function at 0x407e66
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, eax
push esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffc
jbe 0x407eaa
rol eax, 5
xor eax, dword [edx + esi]
add edx, 4
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, 4
imul eax, eax, 0x9e3779b9
cmp edx, ecx
jb 0x407e79
jmp 0x407eaa
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x407e9a
pop esi
pop ebp
ret

Function at 0x408938
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40896d
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x408997
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x408997
test edi, edi
je 0x408964
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x408964
test edi, edi
je 0x40899f
mov eax, edi
jmp 0x408966
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x408966
int3
Function at 0x40aee5
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestSmallPointerArray.exe_gMozillaPoisonSize], eax
call fcn.00408938
pop ecx
mov ecx, dword [sym.TestSmallPointerArray.exe_gMozillaPoisonSize]
mov dword [sym.TestSmallPointerArray.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40af1d
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestSmallPointerArray.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x403df0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
push edx
mov eax, dword [ebp + 8]
cmp eax, 2
jne 0x403e29
mov edi, 0
mov dword [0x548040], edi
mov byte [0x52c681], 1
mov byte [0x548472], 0
mov byte [0x548473], 0
mov byte [0x548474], 0
jmp 0x403e4c
cmp eax, 1
jne 0x403e4c
mov edi, 0
mov dword [0x548044], edi
mov byte [0x52c6b3], 1
mov eax, 0
mov dword [0x54846a], eax
cmp dword [section.BSS], 0
jbe 0x403e57
jmp 0x403e7f
push section.BSS
push 0
push 0
push 0x403e90
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x548010], eax
push 0xfffffffffffffff6
call sub.kernel32.dll_GetStdHandle
mov dword [0x54801c], eax
pop edx
pop ecx
pop ebx
leave
ret 4
Function at 0x4376d0
Capabilities:
Move file

Disassembly:
enter 0x814, 1
push ebx
push ecx
push edx
mov dword [ebp - 8], esp
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x308]
push eax
call fcn.0040ba70
mov word [ebp - 0x50c], 0
lea edi, [ebp - 0x518]
mov esi, 0x531050
push 9
call fcn.00401950
lea esi, [ebp - 0x108]
lea edi, [ebp - 0x618]
call fcn.00401b30
mov esi, dword [ebp + 8]
call fcn.00401af0
mov esi, 0x531051
call fcn.00401af0
lea esi, [ebp - 0x208]
call fcn.00401af0
lea esi, [ebp - 0x518]
call fcn.00401af0
lea esi, [ebp - 0x308]
call fcn.00401af0
mov eax, edi
push eax
call fcn.0040c5a0
test al, al
je 0x4377bd
inc word [ebp - 0x50c]
push 9
lea eax, [ebp - 0x518]
mov byte [eax], 0
push eax
movsx eax, word [ebp - 0x50c]
bound eax, qword [0x52c428]
push eax
push 0
call fcn.00406ab0
add esp, 8
mov esi, 0x531053
lea edi, [ebp - 0x718]
call fcn.00401b30
lea esi, [ebp - 0x518]
call fcn.00401af0
mov edi, esi
lea esi, [ebp - 0x718]
push 9
call fcn.00401950
jmp 0x437713
lea eax, [ebp - 0x408]
push eax
push dword [ebp + 0xc]
call fcn.00401a00
lea eax, [ebp - 0x508]
push eax
lea esi, [ebp - 0x108]
lea edi, [ebp - 0x718]
call fcn.00401b30
mov esi, dword [ebp + 8]
call fcn.00401af0
mov esi, 0x531055
call fcn.00401af0
lea esi, [ebp - 0x208]
call fcn.00401af0
lea esi, [ebp - 0x518]
call fcn.00401af0
lea esi, [ebp - 0x308]
call fcn.00401af0
mov eax, edi
push eax
call fcn.00401a00
lea esi, [ebp - 0x108]
lea edi, [ebp - 0x718]
call fcn.00401b30
mov esi, dword [ebp + 8]
call fcn.00401af0
mov eax, edi
push eax
call fcn.0040c5a0
test al, al
jne 0x43786a
lea esi, [ebp - 0x108]
lea edi, [ebp - 0x818]
call fcn.00401b30
mov esi, dword [ebp + 8]
call fcn.00401af0
mov eax, edi
push eax
call fcn.00413520
call fcn.00406350
lea eax, [ebp - 0x508]
push eax
lea ebx, [ebp - 0x408]
push ebx
call sub.kernel32.dll_MoveFileA
pop edx
pop ecx
pop ebx
leave
ret 8
Function at 0x442f00
Capabilities:
Parse pe header

Disassembly:
cmp ebp, esp
ja 0x442f09
call fcn.00402750
enter 8, 2
push ebx
push ecx
push edx
mov dword [ebp - 0xc], esp
movzx eax, byte [ebp + 8]
bound eax, qword [0x52c95c]
cmp ax, 0x30
je 0x442f29
cmp ax, 0x41
jne 0x442f34
mov word [ebp - 0x10], 1
jmp 0x4430f3
cmp ax, 0x31
je 0x442f40
cmp ax, 0x42
jne 0x442f4b
mov word [ebp - 0x10], 0
jmp 0x4430f3
cmp ax, 0x32
je 0x442f57
cmp ax, 0x43
jne 0x442f62
mov word [ebp - 0x10], 5
jmp 0x4430f3
cmp ax, 0x33
je 0x442f6e
cmp ax, 0x44
jne 0x442f79
mov word [ebp - 0x10], 7
jmp 0x4430f3
cmp ax, 0x34
je 0x442f85
cmp ax, 0x45
jne 0x442f90
mov word [ebp - 0x10], 9
jmp 0x4430f3
cmp ax, 0x35
je 0x442f9c
cmp ax, 0x46
jne 0x442fa7
mov word [ebp - 0x10], 0xd
jmp 0x4430f3
cmp ax, 0x36
je 0x442fb3
cmp ax, 0x47
jne 0x442fbe
mov word [ebp - 0x10], 0xf
jmp 0x4430f3
cmp ax, 0x37
je 0x442fca
cmp ax, 0x48
jne 0x442fd5
mov word [ebp - 0x10], 0x11
jmp 0x4430f3
cmp ax, 0x38
je 0x442fe1
cmp ax, 0x49
jne 0x442fec
mov word [ebp - 0x10], 0x13
jmp 0x4430f3
cmp ax, 0x39
je 0x442ff8
cmp ax, 0x4a
jne 0x443003
mov word [ebp - 0x10], 0x15
jmp 0x4430f3
cmp ax, 0x4b
jne 0x443014
mov word [ebp - 0x10], 2
jmp 0x4430f3
cmp ax, 0x4c
jne 0x443025
mov word [ebp - 0x10], 4
jmp 0x4430f3
cmp ax, 0x4d
jne 0x443036
mov word [ebp - 0x10], 0x12
jmp 0x4430f3
cmp ax, 0x4e
jne 0x443047
mov word [ebp - 0x10], 0x14
jmp 0x4430f3
cmp ax, 0x4f
jne 0x443058
mov word [ebp - 0x10], 0xb
jmp 0x4430f3
cmp ax, 0x50
jne 0x443069
mov word [ebp - 0x10], 3
jmp 0x4430f3
cmp ax, 0x51
jne 0x443077
mov word [ebp - 0x10], 6
jmp 0x4430f3
cmp ax, 0x52
jne 0x443085
mov word [ebp - 0x10], 8
jmp 0x4430f3
cmp ax, 0x53
jne 0x443093
mov word [ebp - 0x10], 0xc
jmp 0x4430f3
cmp ax, 0x54
jne 0x4430a1
mov word [ebp - 0x10], 0xe
jmp 0x4430f3
cmp ax, 0x55
jne 0x4430af
mov word [ebp - 0x10], 0x10
jmp 0x4430f3
cmp ax, 0x56
jne 0x4430bd
mov word [ebp - 0x10], 0xa
jmp 0x4430f3
cmp ax, 0x57
jne 0x4430cb
mov word [ebp - 0x10], 0x16
jmp 0x4430f3
cmp ax, 0x58
jne 0x4430d9
mov word [ebp - 0x10], 0x19
jmp 0x4430f3
cmp ax, 0x59
jne 0x4430e7
mov word [ebp - 0x10], 0x18
jmp 0x4430f3
cmp ax, 0x5a
jne 0x4430f3
mov word [ebp - 0x10], 0x17
mov ax, word [ebp - 0x10]
pop edx
pop ecx
pop ebx
leave
ret 4
Function at 0x44c530
Capabilities:
Create process on windows

Disassembly:
enter 0x464, 1
push ebx
push ecx
push edx
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x108]
call fcn.00401940
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x208]
call fcn.00401940
mov eax, 0
mov ecx, 0x44
lea edi, [ebp - 0x24c]
jecxz 0x44c567
rep stosb byte es:[edi], al
mov dword [ebp - 0x24c], 0x44
mov word [ebp - 0x21c], 1
lea eax, [ebp - 0x107]
push eax
lea ebx, [ebp - 0x360]
push ebx
movzx ecx, byte [ebp - 0x108]
push ecx
call fcn.00401720
movzx edx, byte [ebp - 0x108]
mov byte [ebp + edx - 0x360], 0
mov byte [ebp - 0x460], 0x2d
mov byte [ebp - 0x45f], 0x20
lea eax, [ebp - 0x207]
push eax
lea ebx, [ebp - 0x45e]
push ebx
movzx ecx, byte [ebp - 0x208]
push ecx
call fcn.00401720
movzx edx, byte [ebp - 0x208]
mov byte [ebp + edx - 0x45e], 0
call fcn.0044c6c0
lea eax, [ebp - 0x25c]
push eax
lea ebx, [ebp - 0x24c]
push ebx
push 0
push 0
push 0x20
push 0
push 0
push 0
lea ecx, [ebp - 0x460]
push ecx
lea edx, [ebp - 0x360]
push edx
call sub.kernel32.dll_CreateProcessA
test al, al
jne 0x44c625
call sub.kernel32.dll_GetLastError
mov dword [0x52d16a], eax
call fcn.0044c690
jmp 0x44c684
mov eax, 0
mov dword [0x52d16a], eax
call fcn.0044c690
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x260], eax
push dword [ebp - 0x258]
call sub.kernel32.dll_CloseHandle
push 0xffffffffffffffff
push dword [ebp - 0x260]
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0xffffffff
je 0x44c66f
push 0x54da94
push dword [ebp - 0x260]
call sub.kernel32.dll_GetExitCodeProcess
jmp 0x44c679
mov dword [0x54da94], 0xffffffff
push dword [ebp - 0x260]
call sub.kernel32.dll_CloseHandle
pop edx
pop ecx
pop ebx
leave
ret 8

Function at 0x44c770
Capabilities:
Terminate thread

Disassembly:
enter 0xc, 0
push ebx
push ecx
push edx
lea eax, [ebp - 0xc]
push eax
push dword [0x548010]
call sub.kernel32.dll_GetExitCodeThread
push dword [ebp - 0xc]
push dword [0x548010]
call sub.kernel32.dll_TerminateThread
mov eax, 0
mov dword [0x548010], eax
mov edi, 0
mov dword [section.BSS], edi
pop edx
pop ecx
pop ebx
leave
ret