joyce8/EMBER2024-capa huggingface dataset:
Function at 0x572c80
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
push eax
call sub.ws2_32.dll_connect
mov esp, ebp
pop ebp
ret

Function at 0x401c65
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4050e0
cmp edx, dword [eax]
je 0x401c87
add eax, 8
inc ecx
cmp eax, 0x405170
jl 0x401c78
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4050e0]
jne 0x401db5
mov eax, dword [0x405498]
cmp eax, 1
je 0x401d8f
test eax, eax
jne 0x401cb8
cmp dword [0x405034], 1
je 0x401d8f
cmp edx, 0xfc
je 0x401db5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401cef
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402210
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402380
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x401d32
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402380
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x404380
push edi
call fcn.00403010
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402210
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402220
lea eax, [ebp - 0xa0]
push 0x404360
push eax
call fcn.00402220
push dword [esi + 0x4050e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402220
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00402f7e
add esp, 0x2c
pop edi
jmp 0x401db5
lea eax, [ebp + 8]
lea esi, [esi + 0x4050e4]
push 0
push eax
push dword [esi]
call fcn.00402380
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40149a
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea eax, [ebp - 0x124]
sub esp, 0x14c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [0x7a9568]
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
or eax, 8
mov dword [esp + 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
jne 0x4015be
mov eax, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edi, [ebp - 0x11d]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x124]
mov dword [esp + 0xc], 0x105
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [ebp - 0x12c]
sub esp, 0x10
test eax, eax
jne 0x401558
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp - 0x124]
je 0x40153d
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov eax, 1
jmp 0x4015be
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0040149a
sub esp, 0xc
test eax, eax
je 0x4014f3
mov eax, dword [ebp - 0x124]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov dword [esp], 2
call fcn.00407e03
test eax, eax
push edi
je 0x401599
mov edx, dword [0x7a9568]
mov dword [esp + 0xc], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 8], edx
call eax
sub esp, 0x10
jmp 0x4015be
cmp dword [0x7a9568], 0
mov eax, 1
jne 0x4015be
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
push edx
push edx
setne al
movzx eax, al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x4039dd
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 8], 0
je 0x403a08
mov eax, dword [0x426c80]
test eax, eax
je 0x4039fc
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push ecx
mov dword [0x426c80], 0
jmp 0x403a77
cmp dword [0x426c80], 0
je 0x403a20
mov dword [esp], 0
call fcn.0040838d
push edx
jmp 0x403a77
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x7a9600]
jbe 0x403a77
mov eax, dword [0x7a9648]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x403928
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
sub esp, 0x14
mov dword [0x426c80], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
leave
ret

Function at 0x403a79
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [0x40a010]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x403aba
xor eax, eax
jmp loc.007c3a28
mov ebx, dword [ebp - 4]
leave
ret 8
Function at 0x407368
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [0x7a9080], 0x44
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], 0x7a9080
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor edx, edx
sub esp, 0x28
test eax, eax
je 0x4073e4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push eax
mov eax, edx
leave
ret 4

Function at 0x407636
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
push edx
je 0x407661
and eax, 0xfffffffe
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push eax
push eax
mov ebx, dword [ebp - 4]
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
push edx
mov edx, 0
cmove eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x4076c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ebp - 0x1c]
mov esi, 0x65
sub esp, 0x2c
mov ebx, dword [ebp + 8]
dec esi
je 0x40771b
mov dword [ebp - 0x1c], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1a
xor edx, edx
mov dword [esp + 0xc], ebx
div ecx
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 0
mov dword [esp + 4], edi
add byte [ebp - 0x1a], dl
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
sub esp, 0x10
test eax, eax
je 0x4076d8
mov eax, ebx
jmp 0x407720
mov byte [ebx], 0
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x40772a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea edx, [ebp - 0x14]
sub esp, 0x34
cmp dword [ebp + 0x18], 1
mov ebx, dword [ebp + 0x14]
mov byte [ebx], 0
mov dword [esp + 0x10], edx
sbb eax, eax
mov dword [esp + 8], 0
xor al, al
add eax, 0x20119
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
jne 0x4077cc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x400
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
jne 0x4077b5
jmp loc.007c34b0
mov byte [ebx], 0
mov eax, dword [ebp - 0x14]
mov byte [ebx + 0x3ff], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov ebx, dword [ebp - 4]
leave
ret 0x14
Function at 0x407d50
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [esp], 0x7a8880
mov dword [esp + 4], eax
call fcn.004078a6
push ebx
push ebx
mov dword [esp], 0x7a8880
call fcn.00407525
test eax, eax
push esi
mov ebx, eax
jne 0x407d84
xor eax, eax
jmp 0x407dfa
mov dword [esp], eax
call fcn.00407929
test byte [0x7a9604], 0x80
push ecx
je 0x407da0
mov al, byte [ebx]
cmp al, 0x5c
je 0x407d80
test al, al
je 0x407d80
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub ebx, 0x7a8880
mov dword [esp], 0x7a8880
call esi
push ecx
cmp eax, ebx
mov dword [esp], 0x7a8880
jle 0x407ddf
call fcn.00407d18
test eax, eax
push edx
je 0x407dd0
test byte [eax], 0x10
je 0x407d80
mov dword [esp], 0x7a8880
call fcn.004074be
push eax
jmp 0x407dac
call fcn.004078e4
push eax
mov dword [esp], 0x7a8880
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
inc eax
push edx
setne al
movzx eax, al
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 4
Function at 0x4083dc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a9104], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
je 0x4083f9
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
jmp 0x408427
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x408402
mov dword [ecx*4 + 0x7a9100], eax
inc ecx
cmp ecx, 0x100
jne 0x4083fb
jmp 0x4083ed
cmp edx, ebx
je 0x408440
inc edx
mov cl, al
shr eax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x7a9100]
jmp 0x408427
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp int.00401219
Function at 0x401280
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00414160
lea eax, [ebp - 4]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
jne 0x4012af
mov eax, 1
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 4]
push edi
shr ebx, 2
xor edi, edi
test ebx, ebx
je 0x401305
push esi
nop
mov eax, dword [ebp + edi*4 - 0x1004]
test eax, eax
je 0x4012ff
push eax
call fcn.00401310
add esp, 4
cmp eax, 1
jne 0x4012ff
push dword [ebp + edi*4 - 0x1004]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, ebx
jb 0x4012c0
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402a00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431cff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.00412fe1
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x402a8b
push eax
push esi
call fcn.00413306
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.00412f93
int3
Function at 0x40b7d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x104
cmp dword [eax + 0x14], 0x10
jb 0x40b7e4
mov eax, dword [eax]
lea ecx, [ebp + 0x10]
push ecx
push 0x20019
push 0
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b837
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], 0xff
cmp dword [eax + 0x14], 0x10
jb 0x40b811
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x104]
push ecx
push 0
push 0
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40b85f
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [eax + 0x10], 0
mov byte [eax], 0
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x104]
lea edx, [ecx + 1]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b890
sub ecx, edx
lea eax, [ebp - 0x104]
push ecx
push eax
mov ecx, esi
call fcn.00401fa0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b8b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 0x10
jb 0x40b8be
mov eax, dword [eax]
lea ecx, [ebp + 0xc]
push ecx
push 2
push 0
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b90d
mov eax, dword [ebp + 0x14]
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x40b8e3
mov edx, dword [eax]
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x14], 0x10
jb 0x40b8ee
mov ecx, dword [ecx]
push dword [eax + 0x10]
push edx
push 1
push 0
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
test eax, eax
je 0x40b911
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop ebp
ret
Function at 0x40cf20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432300
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov eax, ecx
push esi
push edi
push 8
mov dword [ebp - 0x10], eax
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0041411e
mov esi, eax
add esp, 4
test esi, esi
je 0x40cf6f
push 1
mov dword [ebp - 4], 0
call fcn.00413206
add esp, 4
mov dword [esi + 4], eax
jmp 0x40cf71
xor esi, esi
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
pop edi
pop esi
mov dword [edx], 0
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40ea90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [ecx]
mov ebx, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], 0
movups xmm0, xmmword [ecx]
movups xmmword [ebp - 0x50], xmm0
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [ebp - 0x40], xmm0
movups xmm0, xmmword [ecx + 0x20]
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [ecx + 0x30]
movups xmmword [ebp - 0x20], xmm0
mov esi, eax
mov dword [ebp + 0xc], eax
mov ecx, ebx
not esi
and ecx, eax
and esi, edi
or esi, ecx
mov edx, edi
mov ecx, dword [ebp - 8]
mov edi, ebx
mov ebx, dword [ebp - 8]
mov ecx, dword [ecx + 0x433c68]
add ecx, dword [ebp + ebx - 0x50]
add ecx, esi
add ecx, dword [ebp - 4]
rol ecx, 7
add eax, ecx
mov dword [ebp - 4], edx
mov ecx, ebx
mov ebx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 8], ecx
cmp ecx, 0x40
jb 0x40ead6
mov dword [ebp - 0xc], 0x433ca8
mov dword [ebp - 8], 0x51
mov esi, edi
mov dword [ebp + 0xc], eax
not esi
mov ecx, edi
and ecx, eax
and esi, ebx
or esi, ecx
mov edx, edi
mov ecx, dword [ebp - 8]
mov edi, ebx
mov ebx, dword [ebp - 0xc]
and ecx, 0xf
add dword [ebp - 0xc], 4
mov ecx, dword [ebp + ecx*4 - 0x50]
add ecx, dword [ebx]
mov ebx, dword [ebp + 0xc]
add ecx, esi
add ecx, dword [ebp - 4]
rol ecx, 0xc
add eax, ecx
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 8]
add ecx, 5
mov dword [ebp - 8], ecx
cmp ecx, 0xa1
jb 0x40eb24
mov ecx, 0x65
mov dword [ebp - 0xc], 0x433ce8
mov dword [ebp - 8], ecx
nop word [eax + eax]
and ecx, 0xf
mov dword [ebp + 0xc], eax
mov edx, edi
mov esi, edi
xor edx, ebx
mov edi, ebx
mov ebx, dword [ebp - 0xc]
xor edx, eax
mov ecx, dword [ebp + ecx*4 - 0x50]
add dword [ebp - 0xc], 4
add ecx, dword [ebx]
mov ebx, dword [ebp + 0xc]
add ecx, edx
add ecx, dword [ebp - 4]
ror ecx, 0xf
add eax, ecx
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 8]
add ecx, 3
mov dword [ebp - 8], ecx
cmp ecx, 0x95
jb 0x40eb80
mov ecx, 0x150
mov dword [ebp + 0xc], 0xc0
mov dword [ebp - 0xc], ecx
nop dword [eax]
add dword [ebp - 0xc], 7
and ecx, 0xf
mov edx, edi
mov dword [ebp - 8], edi
mov edi, dword [ebp + 0xc]
not edx
or edx, eax
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + ecx*4 - 0x50]
xor edx, ebx
mov ebx, eax
add ecx, dword [edi + 0x433c68]
add ecx, edx
mov edx, dword [ebp - 8]
add ecx, esi
mov esi, edx
ror ecx, 0xa
add eax, ecx
mov ecx, edi
mov edi, dword [ebp - 4]
add ecx, 4
mov dword [ebp + 0xc], ecx
cmp ecx, 0x100
mov ecx, dword [ebp - 0xc]
jb 0x40ebd0
mov ecx, dword [ebp - 0x10]
add ecx, edx
mov edx, dword [ebp + 8]
add dword [edx + 8], ebx
add dword [edx + 4], eax
add dword [edx + 0xc], edi
pop edi
pop esi
mov dword [edx], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40eec0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x40eece
mov eax, dword [eax]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop ebp
ret

Function at 0x40f160
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43248d
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
push edi
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0041411e
mov edi, eax
add esp, 4
test edi, edi
je 0x40f1f2
push 1
mov dword [ebp - 4], 0
call fcn.00413206
add esp, 4
mov dword [edi + 4], eax
jmp 0x40f1f4
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
push ebx
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.00402450
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x40f250
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x40f250
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
pop ebx
jne 0x40f26d
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x40f28e
cmp byte [ebp + 0xc], 0
je 0x40f27c
push esi
call fcn.00413682
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x40f29a
mov esi, str.ios_base::badbit_set
jmp 0x40f2aa
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00404470
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.00402cf0
push 0x4409ac
lea eax, [ebp - 0x28]
push eax
call fcn.0041511f
int3
Function at 0x42153b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x437e74
push 0x437e6c
push str.FlsAlloc
push 0x1e
call fcn.00421368
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42156f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4331f0]
call esi
jmp 0x421575
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4215b9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x437e84
push 0x437e7c
push str.FlsGetValue
push 0x20
call fcn.00421368
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4215f0
push dword [ebp + 8]
mov ecx, esi
call dword [0x4331f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x422d03
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00422b74

Function at 0x4230fd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00414160
mov eax, dword [0x443070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00421bd7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42313f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42329b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004315b0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x444e28]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004240f4
mov ecx, dword [esi*4 + 0x444e28]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x423294
cmp eax, dword [edi + ecx + 0x24]
jne 0x423294
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x423294
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004240f4
add esp, 0x14
test edx, edx
jl 0x423294
jg 0x42320a
test eax, eax
jb 0x423294
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x423294
jl 0x423224
cmp dword [ebp - 0x1008], eax
ja 0x423294
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x423242
test ebx, ebx
je 0x42327b
cmp ecx, edi
jae 0x42327b
mov al, byte [ecx]
cmp al, 0xd
jne 0x42325c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x423268
cmp byte [ecx + 1], 0xa
jne 0x423268
inc ecx
jmp 0x423268
movzx eax, al
movsx eax, byte [eax + 0x4432e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x423242
cmp edx, ebx
jne 0x423242
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x423299
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041493b
leave
ret