joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5869b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5d1b18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push 0x7a3d24
lea ecx, [esp + 4]
call fcn.005ba873
push 0x7584ec
lea ecx, [esp + 8]
mov dword [esp + 0x40], 0
call fcn.005ba873
push 0x7584e8
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 1
call fcn.005ba873
push 0x7584e4
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 2
call fcn.005ba873
push 0x7584e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 3
call fcn.005ba873
push 0x7584dc
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 4
call fcn.005ba873
push 0x7584d8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 5
call fcn.005ba873
push 0x7584d4
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 6
call fcn.005ba873
push 0x7584d0
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 7
call fcn.005ba873
push 0x7584cc
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 8
call fcn.005ba873
push 0x7584c8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x40], 9
call fcn.005ba873
push 0x7584c4
lea ecx, [esp + 0x30]
mov byte [esp + 0x40], 0xa
call fcn.005ba873
push 0x7584c0
lea ecx, [esp + 0x34]
mov byte [esp + 0x40], 0xb
call fcn.005ba873
mov eax, dword [esp + 0x44]
mov byte [esp + 0x3c], 0xc
cmp eax, 1
jge 0x586ae0
cmp eax, 0xc
jle 0x586ae0
mov ecx, dword [esp + 0x48]
push 0x7a3d24
call fcn.005ba942
jmp 0x586aee
mov ecx, dword [esp + 0x48]
lea eax, [esp + eax*4]
push eax
call fcn.005ba8f2
lea ecx, [esp + 0x30]
mov byte [esp + 0x3c], 0xb
call fcn.005ba805
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 0xa
call fcn.005ba805
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 9
call fcn.005ba805
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 8
call fcn.005ba805
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 7
call fcn.005ba805
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 6
call fcn.005ba805
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 5
call fcn.005ba805
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 4
call fcn.005ba805
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 3
call fcn.005ba805
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 2
call fcn.005ba805
lea ecx, [esp + 8]
mov byte [esp + 0x3c], 1
call fcn.005ba805
lea ecx, [esp + 4]
mov byte [esp + 0x3c], 0
call fcn.005ba805
lea ecx, [esp]
mov dword [esp + 0x3c], 0xffffffff
call fcn.005ba805
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret

Function at 0x58afe0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x58b046
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x58b046
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x58b027
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x58bb80
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0058bcd0
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x58bba0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x58bb81
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0058bcd0
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x58bba0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x58bbd0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x58bc27
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x58bc3d
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.0058bc60
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x58bc60
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x58bcf0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x58bd39
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x58c1b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5d2130
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0058bd60
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0058bde0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0058bde0
lea ecx, [esi + 0xc]
call fcn.005ba790
lea ecx, [esi + 0x10]
call fcn.005ba790
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0058e610
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0058e610
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0058e610
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.005ba805
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.005ba805
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x58ce58
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d2358
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x58ce68
call fcn.0058d380
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x58cf4b
cmp byte [edi], 0
je 0x58cf4b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x58ce8d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0058bb80
test eax, eax
jne 0x58cead
push 0x758ac0
lea ecx, [esi + 0x38]
call fcn.005ba942
jmp 0x58cf4b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0058bbd0
test eax, eax
jne 0x58cedc
mov ecx, esi
call fcn.0058bcd0
push edi
add esi, 0x38
push 0x758a9c
push esi
call fcn.005b7439
add esp, 0xc
jmp 0x58cf4b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0058dc00
test eax, eax
je 0x58cf44
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0058d020
test eax, eax
jne 0x58cf60
push edi
lea eax, [esi + 0x38]
push 0x758a78
push eax
call fcn.005b7439
add esp, 0xc
mov ecx, esi
call fcn.0058d380
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x58d008
mov ecx, dword [0x75e770]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.005b7439
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0058bc80
test eax, eax
jne 0x58cfca
push 0x758a5c
lea ecx, [esi + 0x38]
call fcn.005ba942
jmp 0x58cfda
push 0xfa
mov ecx, esi
call fcn.0058dc00
test eax, eax
jne 0x58cff7
mov ecx, esi
call fcn.0058d380
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.005ba805
jmp 0x58cf4b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.005ba805
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x591660
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x7c24a8]
xor edx, edx
cmp eax, edx
jne 0x591686
xor eax, eax
mov byte [eax + 0x7c23a8], al
inc eax
cmp eax, 0x100
jl 0x59166e
mov dword [0x7c24a8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x7c23a8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x591717
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x5916ea
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x5916b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x591720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x591773
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x59175a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5980f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5d26ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00598a10
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x7257ec
call fcn.005ba546
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x598183
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005ba546
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x59817c
push 0
mov ecx, eax
call fcn.0058f2e0
mov dword [esi + 0xc], eax
jmp 0x598185
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x598185
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x5bcc4e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5bcc86
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005bac60
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005bac38
jmp 0x5bcc92
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5be5d1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5be613
call fcn.005c4e27
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5be613
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5be60a
xor eax, eax
jmp 0x5be61b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005be621
pop edi
pop esi
pop ebx
ret 4

Function at 0x5c5357
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5c5385
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5c53a3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005c52bd
jmp 0x5c53a3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5c53a3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005c52bd
test edi, edi
mov eax, edi
jne 0x5c538d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x5c7ca6
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x5c7cce
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x5c7cdf
push 2
call edi
test ax, ax
jge 0x5c7cdf
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.005bc283
cmp dword [esi + 0x30], ebx
jne 0x5c7db9
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.005bc283
cmp eax, dword [esp + 0x34]
jne 0x5c7db9
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x5c7d55
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x5c7d9a
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x5c7db9
cmp eax, 0x205
je 0x5c7db9
cmp eax, 0x201
je 0x5c7db9
cmp eax, 0x204
je 0x5c7db9
cmp eax, ebx
jne 0x5c7d80
cmp dword [esp + 0x1c], 0x1b
je 0x5c7db9
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x7d3fac]
jbe 0x5c7daf
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x5c7d12
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x42b103]
shl eax, 2
mov dword [0x42b107], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
pop edx
push 0
call fcn.00425490
pop ecx
push 0x42b0ac
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x42b10b], eax
push 0
jmp fcn.00428e4c

Function at 0x402b0c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
cmp byte [ebp + 8], 0
mov edi, 0x80000000
mov esi, ecx
mov ebx, eax
je 0x402b2d
or edi, 0x40000000
mov dword [ebp - 8], 1
cmp dword [0x43132c], 0
jne 0x402b43
cmp byte [ebp + 0xc], 0
je 0x402b47
or dword [ebp - 8], 2
call fcn.00409268
test eax, eax
je 0x402b74
test esi, esi
je 0x402b74
cmp word [esi], 0
je 0x402b74
push 0
push 0x8000000
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov dword [ebx + 4], eax
jmp 0x402b8e
push 0
push 0x8000000
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebx + 4], eax
cmp dword [ebx + 4], 0xffffffff
jne 0x402bac
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x402ba5
mov eax, 2
jmp 0x402ba7
xor eax, eax
mov dword [0x42eb50], eax
mov byte [ebx + 8], 0
mov byte [ebx + 0xa], 0
mov byte [ebx + 0xb], 0
test esi, esi
je 0x402bc9
lea eax, [ebx + 0x40e]
mov edx, esi
call fcn.00408f34
push dword [ebp - 4]
lea ecx, [ebx + 0xd]
push ecx
call fcn.00424d38
add esp, 8
cmp dword [ebx + 4], 0xffffffff
setne al
and eax, 1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x402da0
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, eax
cmp byte [ebx + 0xa], 0
je 0x402dad
xor eax, eax
pop ebx
ret
cmp dword [ebx + 4], 0xffffffff
je 0x402dba
mov eax, ebx
call fcn.00402d30
call fcn.00409268
test eax, eax
je 0x402de3
cmp word [ebx + 0x40e], 0
je 0x402de3
add ebx, 0x40e
push ebx
call sub.KERNEL32.DLL_DeleteFileW
test eax, eax
setne al
and eax, 1
jmp 0x402df4
add ebx, 0xd
push ebx
call sub.KERNEL32.DLL_DeleteFileA
test eax, eax
setne al
and eax, 1
pop ebx
ret

Function at 0x4034a4
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
call fcn.00409268
test eax, eax
je 0x4034ca
test ebx, ebx
je 0x4034ca
cmp word [ebx], 0
je 0x4034ca
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x4034d2
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x4034e5
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.004039e4
xor eax, eax
jmp 0x403501
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x4034f4
cmp eax, 3
jne 0x4034fe
mov dword [0x42eb50], 2
or eax, 0xffffffff
pop edi
pop esi
pop ebx
ret
Function at 0x40361c
Capabilities:
Get disk information

Disassembly:
push ebx
mov ebx, eax
add esp, 0xfffffff4
xor eax, eax
mov al, byte [ebx]
push eax
call fcn.004274bc
pop ecx
test eax, eax
je 0x403654
xor edx, edx
mov dl, byte [ebx + 1]
cmp edx, 0x3a
jne 0x403654
xor ecx, ecx
mov cl, byte [ebx]
push ecx
push str._c:_
lea eax, [esp + 8]
push eax
call fcn.004271b4
add esp, 0xc
jmp 0x403658
mov byte [esp], 0
cmp byte [esp], 0
je 0x403662
mov edx, esp
jmp 0x403664
xor edx, edx
push edx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
je 0x403678
cmp eax, 5
je 0x403678
xor eax, eax
jmp 0x40367d
mov eax, 1
add esp, 0xc
pop ebx
ret

Function at 0x403684
Capabilities:
Get disk size

Disassembly:
push ebx
push esi
mov esi, eax
add esp, 0xffffffd4
xor eax, eax
mov ebx, edx
mov al, byte [esi]
push eax
call fcn.004274bc
pop ecx
test eax, eax
je 0x4036bf
xor edx, edx
mov dl, byte [esi + 1]
cmp edx, 0x3a
jne 0x4036bf
xor ecx, ecx
mov cl, byte [esi]
push ecx
push str._c:_
lea eax, [esp + 8]
push eax
call fcn.004271b4
add esp, 0xc
jmp 0x4036c3
mov byte [esp], 0
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x18]
push edx
cmp byte [esp + 0x10], 0
je 0x4036e4
lea ecx, [esp + 0x10]
jmp 0x4036e6
xor ecx, ecx
push ecx
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
test eax, eax
jne 0x403700
mov edx, 0x163e00
mov eax, ebx
call fcn.00401f50
mov eax, ebx
jmp 0x40375a
mov edx, dword [esp + 0xc]
imul edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
call fcn.00401f50
add esp, 0xfffffff8
mov edx, dword [esp + 0x24]
mov dword [esp], edx
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], ecx
add esp, 0xfffffff8
mov eax, esp
mov edx, dword [esp + 0x24]
call fcn.00401f50
lea eax, [esp + 0x34]
call fcn.00402174
mov edx, dword [esp + 0x24]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 0x1c]
mov dword [ebx], ecx
mov eax, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov eax, ebx
add esp, 0x2c
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.00409268
test eax, eax
je 0x40378b
test ebx, ebx
je 0x40378b
cmp word [ebx], 0
je 0x40378b
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret

Function at 0x4039b8
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.00409268
test eax, eax
je 0x4039da
test ebx, ebx
je 0x4039da
cmp word [ebx], 0
je 0x4039da
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
pop esi
pop ebx
ret
Function at 0x4039e4
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
call fcn.00409268
test eax, eax
je 0x403a09
test ebx, ebx
je 0x403a09
cmp word [ebx], 0
je 0x403a09
push esi
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
jmp 0x403a10
push esi
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
pop edi
pop esi
pop ebx
ret

Function at 0x404050
Capabilities:
Encode data using xor

Disassembly:
movzx edx, word [eax]
cmp edx, 0x11
jle 0x404076
mov cx, word [eax + edx*2]
xor word [eax + edx*2 - 0x22], cx
mov cx, word [eax + edx*2]
xor word [eax + edx*2 - 0x1c], cx
mov word [eax + edx*2], 0
dec edx
cmp edx, 0x11
jg 0x404058
cmp word [eax], 0x11
jbe 0x404098
mov word [eax], 0x11
jmp 0x404086
dec word [eax]
mov dx, word [eax]
test dx, dx
je 0x404098
movzx edx, dx
cmp word [eax + edx*2], 0
je 0x404083
ret

Function at 0x404099
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movzx edx, dx
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, dword [0x42b490]
push esi
mov dx, word [ebx + edx*2]
mov word [ebp - 2], dx
movzx edx, cx
add edx, edx
add edx, eax
mov dword [ebp - 8], edx
jmp 0x4040ca
inc word [eax]
movzx edx, word [eax]
mov word [eax + edx*2], 0
mov ebx, dword [ebp + 8]
movzx edx, cx
movzx ebx, word [ebx]
add edx, ebx
movzx ebx, word [eax]
cmp edx, ebx
jg 0x4040be
mov edx, dword [ebp + 8]
mov dx, word [edx]
test dx, dx
je 0x40413a
movzx ecx, dx
mov ebx, dword [ebp + 8]
movzx ecx, word [ebx + ecx*2]
mov ebx, dword [0x42b490]
mov cx, word [ebx + ecx*2]
cmp cx, 0x7fff
je 0x40412f
add cx, word [ebp - 2]
cmp cx, 0x7fff
jb 0x404118
movzx ebx, cx
sub ebx, 0x7fff
jmp 0x40411b
movzx ebx, cx
mov ecx, dword [0x42b48c]
mov esi, dword [ebp - 8]
mov cx, word [ecx + ebx*2]
movzx ebx, dx
xor word [esi + ebx*2], cx
dec edx
test dx, dx
jne 0x4040e7
jmp 0x40413a
dec word [eax]
mov dx, word [eax]
test dx, dx
je 0x40414c
movzx ecx, dx
cmp word [eax + ecx*2], 0
je 0x404137
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4