joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219

Function at 0x408901
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4085d8
call fcn.00408922
mov edi, 0xa85109f1
xor dword [eax], edx
and ecx, ecx
dec ecx
inc eax
mov ecx, 0x87fdea4f
cmp eax, esi
jne fcn.00408901
mov ecx, ecx
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
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
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x4055d0
Capabilities:
Get session user name

Disassembly:
push esi
mov esi, ecx
call fcn.00405470
test al, al
jne 0x4055f7
mov ecx, dword [esi + 0x268]
call fcn.00415390
test al, al
je 0x4055f7
mov ecx, dword [esi + 0x26c]
pop esi
jmp fcn.00411d30
pop esi
ret
Function at 0x408c60
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a85b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
call fcn.004086a0
lea ecx, [esi + 8]
mov dword [ebp - 4], 0
mov dword [esi], vtable.sync_o::mutex.0
call fcn.00406e00
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 4], eax
test eax, eax
jne 0x408cc0
push str.CreateMutex
lea ecx, [esi + 4]
call fcn.00408500
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x408ce2
push 0x47e439
lea ecx, [esi + 8]
call fcn.00407a60
test al, al
je 0x408ce2
mov byte [esi + 0x20], 1
push 0
push 0
push 0
push 0
push 4
push 6
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x409d40
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
push esi
mov esi, ecx
mov dword [esp + 4], esi
call fcn.004125d0
mov dword [esi], vtable.tcp_socket.0
mov byte [esi + 0x3c], 1
mov eax, dword [0x4b2394]
test eax, eax
jne 0x409d85
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
inc dword [0x4b2394]
mov eax, esi
pop esi
add esp, 0x194
ret
inc eax
mov dword [0x4b2394], eax
mov eax, esi
pop esi
add esp, 0x194
ret

Function at 0x409dc0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a958
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov bh, byte [ebp + 8]
xor eax, eax
push esi
test bh, bh
mov esi, ecx
push edi
sete al
lea ecx, [ebp - 0x24]
push str.changing_socket_mode_to
mov dword [ebp + 8], eax
call fcn.00406ae0
mov eax, str.non_blocking
mov dword [ebp - 4], 0
test bh, bh
lea ecx, [ebp - 0x24]
mov edi, str.blocking
cmove edi, eax
push edi
call fcn.00407ba0
lea ecx, [ebp - 0x24]
call fcn.00406e10
push eax
lea eax, [ebp + 8]
push eax
push 0x8004667e
push dword [esi + 0x38]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push eax
mov ecx, esi
call fcn.0040a320
mov bl, al
test bl, bl
je 0x409e5b
mov edx, dword [esi + 0x24]
test edx, edx
je 0x409e58
mov ecx, dword [edx]
push edi
push str.socket_mode_is_set_to__s_n
push edx
call dword [ecx + 0x18]
add esp, 0xc
mov byte [esi + 0x3c], bh
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x409e70
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.00420790
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x409f20
Capabilities:
Get socket status

Disassembly:
sub esp, 0x210
push ebx
push esi
mov esi, dword [esp + 0x21c]
mov eax, 0x10624dd3
mul esi
push edi
shr edx, 6
mov edi, ecx
imul eax, edx, 0x3e8
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], edx
push ecx
push 0
sub esi, eax
mov dword [esp + 0x124], 1
imul eax, esi, 0x3e8
lea ecx, [esp + 0x124]
push ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x38]
mov dword [esp + 0x12c], eax
mov dword [esp + 0x28], eax
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x409fa9
lea eax, [esp + 0x14]
push eax
push dword [edi + 0x38]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x409fa9
xor bl, bl
jmp 0x409fab
mov bl, 1
lea eax, [esp + 0x118]
push eax
push dword [edi + 0x38]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x409fd1
test bl, bl
jne 0x409fd1
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x210
ret 4
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x210
ret 4

Function at 0x409fe0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov esi, dword [esp + 0x118]
mov eax, 0x10624dd3
mul esi
push edi
shr edx, 6
mov ebx, ecx
imul eax, edx, 0x3e8
mov dword [esp + 0x14], 1
mov dword [esp + 0xc], edx
mov edi, dword [ebx + 0x38]
mov dword [esp + 0x18], edi
sub esi, eax
imul eax, esi, 0x3e8
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
lea eax, [esp + 0x14]
push eax
push dword [ebx + 0x38]
call sub.WS2_32.dll___WSAFDIsSet
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
add esp, 0x10c
ret 4

Function at 0x40a190
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
push esi
push edi
push dword [esp + 0x24]
mov eax, 2
mov edi, ecx
mov word [esp + 0xc], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xa], ax
call fcn.0040ac70
mov esi, dword [esp + 0x20]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
test esi, esi
je 0x40a232
mov ecx, str.BROADCAST
mov eax, esi
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40a1f0
test dl, dl
je 0x40a1ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40a1f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40a1d0
xor eax, eax
jmp 0x40a1f5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40a203
mov dword [esp + 0xc], 0xffffffff
jmp 0x40a20e
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0xc], eax
push 0x10
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x24]
push 0
push dword [eax + 0xc]
push dword [eax + 8]
push dword [edi + 0x38]
call dword [sym.imp.WS2_32.dll_sendto]
pop edi
pop esi
add esp, 0x10
ret 0xc
mov eax, dword [esp + 0x1c]
push 0
push dword [eax + 0xc]
push dword [eax + 8]
push dword [edi + 0x38]
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
add esp, 0x10
ret 0xc
Function at 0x40a250
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ebx, ecx
push edi
push esi
mov dword [esp + 0x14], 0x10
call fcn.0044996b
add esp, 4
mov ebp, eax
call fcn.0040ac70
mov dword [ebx + 0x10], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
mov dword [ebx + 0x14], edx
push eax
push 0
push esi
push ebp
push dword [ebx + 0x38]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
test edi, edi
jne 0x40a2af
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x40a2e3
mov ecx, dword [eax]
push str.Connection_has_been_gracefully_closed_n
push eax
call dword [ecx + 0x18]
add esp, 8
jmp 0x40a2e3
push str.receiving_from_socket
push edi
mov ecx, ebx
call fcn.0040a320
test al, al
jne 0x40a2d8
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x40a2e3
mov eax, dword [ecx]
push edi
push str.recvfrom___return__d_n
push ecx
call dword [eax + 8]
add esp, 0xc
jmp 0x40a2e3
mov ecx, dword [esp + 0x28]
push edi
push ebp
call fcn.00409150
push ebp
call fcn.00449974
mov esi, dword [esp + 0x34]
add esp, 4
test esi, esi
je 0x40a30d
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
sub esi, eax
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [esi + eax - 1], cl
test cl, cl
jne 0x40a300
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc

Function at 0x40a480
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47a988
push eax
mov dword fs:[0], esp
sub esp, 0x18
push edi
mov edi, ecx
cmp dword [edi + 0x4c], 0
je 0x40a555
cmp dword [edi + 0x1c], 0xffffffff
je 0x40a555
mov eax, dword [edi + 0x24]
lea ecx, [edi + 0x24]
push ebx
push esi
push 0xffffffffffffffff
call dword [eax]
mov esi, dword [ebp + 8]
test esi, esi
je 0x40a54b
push dword [edi + 0x4c]
call fcn.0045c84a
add esp, 4
cmp esi, eax
jge 0x40a54b
push dword [edi + 0x4c]
call fcn.0045bec6
push str..bak
lea esi, [edi + 4]
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.00407d50
add esp, 0x10
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.00406e00
push eax
call fcn.0045c855
add esp, 4
lea ecx, [ebp - 0x24]
call fcn.00406e10
push eax
mov ecx, esi
call fcn.00406e10
push eax
call fcn.0045cf95
add esp, 8
mov ecx, esi
push dword [edi + 0x20]
call fcn.00406e10
push eax
call fcn.0045c007
add esp, 8
mov dword [edi + 0x4c], eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0041d110
lea ecx, [edi + 0x24]
call fcn.00408d20
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x40aa50
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
mov edi, ecx
xor ebx, ebx
mov eax, dword [edi + 0x48]
cmp eax, dword [esp + 0xc]
jl 0x40aaa6
push dword [edi + 0x1c]
call fcn.0040a480
cmp dword [edi + 0x4c], ebx
jne 0x40aa73
pop edi
xor eax, eax
pop ebx
ret 0xc
mov eax, dword [edi + 0x24]
lea ecx, [edi + 0x24]
push esi
push 0xffffffffffffffff
call dword [eax]
push dword [edi + 0x4c]
push dword [esp + 0x1c]
push 1
push dword [esp + 0x20]
call fcn.0045cf3d
push dword [edi + 0x4c]
mov ebx, eax
call fcn.0045ca30
add esp, 0x14
lea ecx, [edi + 0x24]
call fcn.00408d20
pop esi
pop edi
mov eax, ebx
pop ebx
ret 0xc
Function at 0x40ad70
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47aa18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18c
push dword [ebp + 8]
lea ecx, [ebp - 0x40]
call fcn.00406a80
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.004071a0
dec eax
lea ecx, [ebp - 0x40]
push eax
call fcn.00407900
mov al, byte [eax]
cmp al, 0x5c
je 0x40adc9
cmp al, 0x2f
je 0x40adc9
push 0x47ef64
lea ecx, [ebp - 0x40]
call fcn.00407ba0
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406a80
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
push 0x47e439
mov byte [ebp - 4], 1
call fcn.00407a60
lea ecx, [ebp - 0x28]
test al, al
je 0x40adf8
push ebx
call fcn.00407b80
jmp 0x40ae02
push 0x47ef68
call fcn.00407ba0
push edi
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406e00
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov bl, 1
mov byte [ebp - 0xe], bl
cmp edi, 0xffffffff
je 0x40af36
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x14]
mov ecx, 0x47ed80
lea eax, [ebp - 0x16c]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40ae60
test dl, dl
je 0x40ae5c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40ae60
add eax, 2
add ecx, 2
test dl, dl
jne 0x40ae40
xor eax, eax
jmp 0x40ae65
sbb eax, eax
or eax, 1
test eax, eax
je 0x40af1c
mov ecx, 0x47ef6c
lea eax, [ebp - 0x16c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40ae98
test dl, dl
je 0x40ae94
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40ae98
add eax, 2
add ecx, 2
test dl, dl
jne 0x40ae78
xor eax, eax
jmp 0x40ae9d
sbb eax, eax
or eax, 1
test eax, eax
je 0x40af1c
test byte [ebp - 0x198], 0x10
je 0x40aefc
test si, si
je 0x40aefc
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00407d50
push ebx
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
push eax
call fcn.0040ad70
add esp, 0x20
test al, al
je 0x40af8b
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x40aefc
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00420790
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], 0
push eax
push ebx
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [ebp + 0x10]
add esp, 0x10
cmp byte [ebp - 0xd], 0
jne 0x40af97
lea eax, [ebp - 0x198]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40ae30
mov bl, byte [ebp - 0xe]
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x14]
pop edi
cmp eax, 0x10
jb 0x40af53
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00420790
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x40af7a
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.00420790
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x58]
xor bl, bl
call fcn.0041d110
jmp 0x40af35
xor bl, bl
jmp 0x40af35
Function at 0x40afa0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push 0x3c
lea eax, [esp + 4]
push 0
push eax
call fcn.0044c670
mov eax, dword [esp + 0x4c]
add esp, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x1c], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x3c
mov dword [esp + 8], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [esp + 0x38]
add esp, 0x3c
ret

Function at 0x40b350
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push dword [esp + 0x14]
push dword [esp + 0x14]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ecx
ret

Function at 0x40bae0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47ab0f
push eax
mov eax, 0x115c
mov dword fs:[0], esp
call fcn.00449df0
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push eax
push 0x1000
lea eax, [ebp - 0x1168]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x40bc4f
mov ebx, dword [ebp - 0x14]
xor esi, esi
shr ebx, 2
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x40bc4f
nop word [eax + eax]
push dword [ebp + esi*4 - 0x1168]
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40bc46
push 0x105
lea ecx, [ebp - 0x168]
push ecx
push 0
push eax
call sub.PSAPI.DLL_GetModuleBaseNameA
test eax, eax
je 0x40bc3d
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x60]
push eax
call fcn.004071c0
mov ebx, eax
lea eax, [ebp - 0x168]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x48]
call fcn.00406ae0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.004071c0
mov edi, eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00406e10
push eax
mov ecx, edi
call fcn.00406e10
push eax
call fcn.0044c7d0
mov ecx, dword [ebp - 0x1c]
add esp, 8
mov edi, eax
cmp ecx, 0x10
jb 0x40bbe1
inc ecx
push ecx
push dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
call fcn.00420790
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
cmp eax, 0x10
jb 0x40bc08
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.00420790
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x40bc36
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.00420790
test edi, edi
jne 0x40bc62
mov ebx, dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, ebx
jl 0x40bb40
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40bde0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.0044c670
add esp, 0xc
mov dword [esp], 0x94
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x40be26
jne 0x40be1d
cmp dword [esp + 8], 1
jae 0x40be26
xor al, al
add esp, 0x94
ret
mov al, 1
add esp, 0x94
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40bf46
test al, 0x10
jne 0x40bf46
mov al, 1
ret
xor al, al
ret

Function at 0x40c000
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ab6f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push esi
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.00406a60
push 0x47e439
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00407a60
test al, al
je 0x40c195
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [eax]
push 0x5c
lea ecx, [ebp + 8]
call fcn.004072a0
push 0x2f
lea ecx, [ebp + 8]
mov esi, eax
call fcn.004072a0
lea ecx, [ebp + 8]
cmp esi, eax
jae 0x40c071
push 0x5c
jmp 0x40c073
push 0x2f
call fcn.004072a0
lea esi, [eax + 1]
test esi, esi
jns 0x40c08b
lea ecx, [ebp + 8]
call fcn.004071a0
mov esi, eax
jmp 0x40c091
je 0x40c1eb
push esi
push 0
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp + 8]
call fcn.00407350
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004069f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.00406b40
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 2
cmp eax, 0x10
jb 0x40c10c
mov ecx, dword [ebp - 0x3c]
inc eax
cmp eax, 0x1000
jb 0x40c103
test cl, 0x1f
jne 0x40c1e6
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40c1e6
sub ecx, eax
cmp ecx, 4
jb 0x40c1e6
cmp ecx, 0x23
ja 0x40c1e6
mov ecx, eax
push ecx
call fcn.0043edb0
add esp, 4
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x40c168
mov ecx, dword [ebp - 0x54]
inc eax
cmp eax, 0x1000
jb 0x40c15f
test cl, 0x1f
jne 0x40c1e6
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40c1e6
sub ecx, eax
cmp ecx, 4
jb 0x40c1e6
cmp ecx, 0x23
ja 0x40c1e6
mov ecx, eax
push ecx
call fcn.0043edb0
add esp, 4
push 0
lea ecx, [ebp - 0x24]
call fcn.00406e00
push eax
call edi
push esi
push 0
lea ecx, [ebp + 8]
call fcn.00407630
push 0x47e439
lea ecx, [ebp + 8]
call fcn.00407a60
test al, al
jne 0x40c050
mov bl, 1
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x40c1ac
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.00420790
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
cmp ecx, 0x10
jb 0x40c1d3
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00420790
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.00453798
xor bl, bl
jmp 0x40c197
Function at 0x40cbb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push 1
push 0
mov ecx, edi
call fcn.00406e00
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push reloc.WS2_32.dll_accept
call ebx
test eax, eax
je 0x40cbf8
lea eax, [esp + 0xc]
mov ecx, edi
push eax
push 1
push 0
call fcn.00406e00
push eax
push reloc.WS2_32.dll_bind
call ebx
mov esi, eax
test esi, esi
jne 0x40cc77
push dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push dword [esp + 0x24]
push dword [esp + 0x24]
push 0
call fcn.00406e00
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40cc77
lea eax, [esp + 0xc]
mov ecx, edi
push eax
push 1
push 0
call fcn.00406e00
push eax
push reloc.WS2_32.dll_bind
call ebx
mov esi, eax
test esi, esi
jne 0x40cc77
push dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push dword [esp + 0x24]
push dword [esp + 0x24]
push eax
call fcn.00406e00
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop edi
pop esi
sete al
pop ebx
pop ecx
ret

Function at 0x40cee0
Capabilities:
Terminate thread

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
call fcn.0040ce90
test al, al
je 0x40cef6
mov al, 1
pop esi
ret 8
push ebx
push dword [esp + 0x10]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
mov ecx, esi
setne bl
call fcn.0040ce50
mov al, bl
pop ebx
pop esi
ret 8

Function at 0x40d130
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ac9f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.0040b070
add esp, 4
push 0x47f884
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call fcn.00406e00
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040c380
add esp, 0xc
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00406b40
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x40d19f
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.00420790
push 0x47f888
lea ecx, [ebp - 0x3c]
call fcn.00406e10
push eax
call fcn.0045c007
mov esi, eax
add esp, 8
test esi, esi
je 0x40d1db
push dword [ebp + 0xc]
call fcn.0040b370
push eax
push dword [ebp + 8]
push str.Thread__s_catch_unexpected_error__n_s_n
push esi
call fcn.00409d10
push esi
call fcn.0045bec6
add esp, 0x18
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]