joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x432000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401070
Capabilities:
Hide graphical window

Disassembly:
mov ebp, esp
push esi
mov eax, dword [ebp + 4]
mov dword [0x4040c3], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401082
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x4040c3]
mov dword [ebp - 0x48], eax
mov eax, 0x40214c
mov dword [ebp - 0x54], eax
mov ecx, str.uquamarine
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov dword [0x4041ac], 8
mov dword [0x4041b0], 0x4000
push 0x4041ac
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
xor ecx, ecx
push ecx
push dword [0x4040c3]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.kippohome
push eax
mov eax, str.uquamarine
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x404200], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x404200]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x401132
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x401124
mov esp, ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x1bd046db
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x327c7a31
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x16a4120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.GVD1
lea edi, [esi - 0x1270000]
push edi
or ebp, 0xffffffff
jmp 0x16a4142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a4149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x16a4138
mov eax, 1
add ebx, ebx
jne 0x16a415d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a416e
jne 0x16a417e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a417e
dec eax
add ebx, ebx
jne 0x16a417a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a4152
xor ecx, ecx
sub eax, 3
jb 0x16a4196
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a420a
sar eax, 1
mov ebp, eax
jmp 0x16a41a1
add ebx, ebx
jne 0x16a41a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x16a41ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x16a41d2
inc ecx
add ebx, ebx
jne 0x16a41be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a41b3
jne 0x16a41cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a41b3
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x16a41f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a41e6
jmp 0x16a413e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a41f4
add edi, ecx
jmp 0x16a413e
pop esi
mov edi, esi
mov ecx, 0x346a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a4212
cmp byte [edi], 0x16
jne 0x16a4212
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x16a4217
lea edi, [esi + 0x12a1000]
mov eax, dword [edi]
or eax, eax
je 0x16a4286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a57f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a58e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a4244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a58ec]
or eax, eax
je 0x16a4280
mov dword [ebx], eax
add ebx, 4
jmp 0x16a4261
call dword [esi + 0x12a58f0]
popal
jmp 0x46b748

Function at 0xdd3d04
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdd3d0e
pushal
call 0xdd3d14
pop ebp
sub ebp, 0x10
sub ebp, 0x9d3d04
jmp 0xdd3d2a
mov eax, 0x9d3d04
add eax, ebp
add eax, 0x4c
mov ecx, 0x5d6
mov edx, 0x108712a
xor byte [eax], dl
inc eax
dec ecx
jne 0xdd3d41
jmp 0xdd3d54
mov eax, dword [0x16a3a1e7]
sub ch, byte [edx]
sub ch, byte [ebx + 0x2a2ad2eb]
sub ch, byte [ecx]
out 0x92, eax
sub ch, byte cs:[edx]
sub dl, byte [eax + 0x2a2a2a02]
invalid
Function at 0x40eea0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb000]
push edi
jmp 0x40eeba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40eec1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40eeb0
mov eax, 1
add ebx, ebx
jne 0x40eed3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40eec8
jne 0x40eee4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40eec8
xor ecx, ecx
sub eax, 3
jb 0x40eef8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40ef6a
mov ebp, eax
add ebx, ebx
jne 0x40ef03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40ef10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40ef34
inc ecx
add ebx, ebx
jne 0x40ef20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40ef15
jne 0x40ef31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40ef15
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40ef54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40ef45
jmp 0x40eeb6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40ef54
add edi, ecx
jmp 0x40eeb6
pop esi
lea edi, [esi + 0xc000]
mov eax, dword [edi]
or eax, eax
je 0x40efbc
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10cf8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10d34]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40ef71
mov ecx, edi
jns 0x40efa0
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x10d3c]
or eax, eax
je 0x40efb6
mov dword [ebx], eax
add ebx, 4
jmp 0x40ef8e
call dword [esi + 0x10d38]
mov ebp, dword [esi + 0x10d40]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40eff0
sub esp, 0xffffff80
jmp 0x40148c
Function at 0x4030d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486370
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push edi
mov eax, dword [0x4c0f34]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebx + 0x30]
push 0x48b734
push 3
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [ebx + 0x30]
add esp, 0xc
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
mov edi, dword [eax]
mov eax, dword [ebp + 0x14]
push dword [eax + 0xc]
call fcn.004059d0
mov ecx, dword [ebp + 8]
push eax
push dword [ebp + 0x10]
call fcn.004226a0
movzx eax, ax
push eax
mov eax, dword [ebp - 0x10]
push str.__d___c___s__size:__d_n
push dword [eax + 0x30]
call dword [edi + 0x18]
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x10]
add esp, 0x18
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00422300
push ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.0040cc30
mov ebx, dword [ebp + 0x14]
lea ecx, [ebp - 0x24]
push 4
mov eax, dword [ebx + 0xc]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.0040cbd0
cmp dword [ebx + 0xc], 0
je 0x4031ac
push ebx
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 0x38]
push eax
mov ecx, ebx
call fcn.004041c0
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.0040cbb0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.0040cb40
jmp 0x4031c4
push 4
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
lea ecx, [ebp - 0x24]
call fcn.0040cbd0
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
lea ecx, [ebp - 0x24]
push 0
push 0
push ecx
mov ecx, ebx
call dword [eax + 0x34]
mov eax, dword [ebx + 0x30]
push str._SendAnswer_n
push 3
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.0040cb40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x404670
Capabilities:
Get session user name

Disassembly:
push esi
mov esi, ecx
call fcn.00404510
test al, al
jne 0x404697
mov ecx, dword [esi + 0x268]
call fcn.004239d0
test al, al
je 0x404697
mov ecx, dword [esi + 0x26c]
pop esi
jmp fcn.00410d90
pop esi
ret
Function at 0x407650
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486898
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.00405640
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.00405d60
dec eax
lea ecx, [ebp - 0x40]
push eax
call fcn.004064c0
mov al, byte [eax]
cmp al, 0x5c
je 0x4076a9
cmp al, 0x2f
je 0x4076a9
push 0x48bde8
lea ecx, [ebp - 0x40]
call fcn.00406760
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00405640
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
push 0x48bdbd
mov byte [ebp - 4], 1
call fcn.00406620
lea ecx, [ebp - 0x28]
test al, al
je 0x4076d8
push ebx
call fcn.00406740
jmp 0x4076e2
push 0x48bdec
call fcn.00406760
push edi
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x28]
call fcn.004059c0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov bl, 1
mov byte [ebp - 0xe], bl
cmp edi, 0xffffffff
je 0x407816
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x14]
mov ecx, 0x48bdf0
lea eax, [ebp - 0x16c]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407740
test dl, dl
je 0x40773c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407740
add eax, 2
add ecx, 2
test dl, dl
jne 0x407720
xor eax, eax
jmp 0x407745
sbb eax, eax
or eax, 1
test eax, eax
je 0x4077fc
mov ecx, 0x48bdf4
lea eax, [ebp - 0x16c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407778
test dl, dl
je 0x407774
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407778
add eax, 2
add ecx, 2
test dl, dl
jne 0x407758
xor eax, eax
jmp 0x40777d
sbb eax, eax
or eax, 1
test eax, eax
je 0x4077fc
test byte [ebp - 0x198], 0x10
je 0x4077dc
test si, si
je 0x4077dc
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00406910
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.00407650
add esp, 0x20
test al, al
je 0x40786b
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x4077dc
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00401a60
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 0x407877
lea eax, [ebp - 0x198]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407710
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 0x407833
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00401a60
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x40785a
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.00401a60
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.00401820
jmp 0x407815
xor bl, bl
jmp 0x407815
Function at 0x407c30
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 0x4083c0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48698f
push eax
mov eax, 0x115c
mov dword fs:[0], esp
call fcn.004542f0
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 0x40852f
mov ebx, dword [ebp - 0x14]
xor esi, esi
shr ebx, 2
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x40852f
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 0x408526
push 0x105
lea ecx, [ebp - 0x168]
push ecx
push 0
push eax
call sub.PSAPI.DLL_GetModuleBaseNameA
test eax, eax
je 0x40851d
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x60]
push eax
call fcn.00405d80
mov ebx, eax
lea eax, [ebp - 0x168]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x48]
call fcn.004056a0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.00405d80
mov edi, eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004059d0
push eax
mov ecx, edi
call fcn.004059d0
push eax
call fcn.00456fe0
mov ecx, dword [ebp - 0x1c]
add esp, 8
mov edi, eax
cmp ecx, 0x10
jb 0x4084c1
inc ecx
push ecx
push dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
call fcn.00401a60
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
cmp eax, 0x10
jb 0x4084e8
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.00401a60
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 0x408516
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.00401a60
test edi, edi
jne 0x408542
mov ebx, dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, ebx
jl 0x408420
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 0x4086c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.00457250
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 0x408706
jne 0x4086fd
cmp dword [esp + 8], 1
jae 0x408706
xor al, al
add esp, 0x94
ret
mov al, 1
add esp, 0x94
ret
Function at 0x4088e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4869ef
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.00405620
push 0x48bdbd
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00406620
test al, al
je 0x408a75
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [eax]
push 0x5c
lea ecx, [ebp + 8]
call fcn.00405e60
push 0x2f
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00405e60
lea ecx, [ebp + 8]
cmp esi, eax
jae 0x408951
push 0x5c
jmp 0x408953
push 0x2f
call fcn.00405e60
lea esi, [eax + 1]
test esi, esi
jns 0x40896b
lea ecx, [ebp + 8]
call fcn.00405d60
mov esi, eax
jmp 0x408971
je 0x408acb
push esi
push 0
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp + 8]
call fcn.00405f10
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004055b0
add esp, 0xc
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.00405700
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 2
cmp eax, 0x10
jb 0x4089ec
mov ecx, dword [ebp - 0x3c]
inc eax
cmp eax, 0x1000
jb 0x4089e3
test cl, 0x1f
jne 0x408ac6
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x408ac6
sub ecx, eax
cmp ecx, 4
jb 0x408ac6
cmp ecx, 0x23
ja 0x408ac6
mov ecx, eax
push ecx
call fcn.0044a980
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 0x408a48
mov ecx, dword [ebp - 0x54]
inc eax
cmp eax, 0x1000
jb 0x408a3f
test cl, 0x1f
jne 0x408ac6
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x408ac6
sub ecx, eax
cmp ecx, 4
jb 0x408ac6
cmp ecx, 0x23
ja 0x408ac6
mov ecx, eax
push ecx
call fcn.0044a980
add esp, 4
push 0
lea ecx, [ebp - 0x24]
call fcn.004059c0
push eax
call edi
push esi
push 0
lea ecx, [ebp + 8]
call fcn.004061f0
push 0x48bdbd
lea ecx, [ebp + 8]
call fcn.00406620
test al, al
jne 0x408930
mov bl, 1
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x408a8c
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.00401a60
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
cmp ecx, 0x10
jb 0x408ab3
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00401a60
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.0045f8f8
xor bl, bl
jmp 0x408a77
Function at 0x409490
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.004059c0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push reloc.WS2_32.dll_accept
call ebx
test eax, eax
je 0x4094d8
lea eax, [esp + 0xc]
mov ecx, edi
push eax
push 1
push 0
call fcn.004059c0
push eax
push reloc.WS2_32.dll_bind
call ebx
mov esi, eax
test esi, esi
jne 0x409557
push dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push dword [esp + 0x24]
push dword [esp + 0x24]
push 0
call fcn.004059c0
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 0x409557
lea eax, [esp + 0xc]
mov ecx, edi
push eax
push 1
push 0
call fcn.004059c0
push eax
push reloc.WS2_32.dll_bind
call ebx
mov esi, eax
test esi, esi
jne 0x409557
push dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push dword [esp + 0x24]
push dword [esp + 0x24]
push eax
call fcn.004059c0
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 0x409960
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486b11
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.0040e8a0
mov dword [edi], vtable.asafe_thread.0
cmp byte [0x4c31ec], 0
mov dword [ebp - 4], 0
jne 0x4099ca
lea ecx, [ebp - 0x7c]
call fcn.00409650
push eax
mov byte [ebp - 4], 1
call fcn.00409a90
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00409750
cmp byte [0x4c31ec], 0
je 0x409a6a
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x28]
push ebx
push dword [ebp + 8]
mov dword [edi + 0x4c], eax
call fcn.00405640
push 0x28
mov byte [ebp - 4], 2
call fcn.00453c80
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
mov byte [ebp - 4], 3
test ebx, ebx
je 0x409a1d
mov eax, dword [ebp + 0xc]
lea ecx, [ebx + 0xc]
push esi
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 8], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebx], edi
call fcn.00405640
mov dword [ebx + 0x24], esi
pop esi
jmp 0x409a1f
xor ebx, ebx
mov ecx, dword [ebp + 0x14]
mov edx, 4
mov byte [ebp - 4], 2
lea eax, [ecx + 8]
push eax
xor eax, eax
cmp byte [ecx + 4], al
cmovne eax, edx
push eax
push ebx
push 0x4097f0
push 0
push 0
call fcn.00469cb9
add esp, 0x18
mov dword [edi + 8], eax
mov ecx, edi
call fcn.0040e770
mov eax, dword [ebp - 0x14]
pop ebx
cmp eax, 0x10
jb 0x409a6a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00401a60
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10