joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404bf0
Capabilities:
Print debug messages

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.00404bb0
mov ebp, dword [esp + 0x20]
mov edx, eax
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [ecx + edx + 0x1e]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, eax
test esi, esi
jne 0x404c57
push 0
push str.Fatal_Error
push str.Cannot_properly_report_error.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x10]
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x10]
push edx
push ebp
push ebx
push str.Error__d:__s._n_r_s_r_n
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call edi
mov eax, dword [esp + 0x10]
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x404c90
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push eax
call fcn.00404bf0
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x404cb0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push eax
call fcn.00404bf0
add esp, 4
call fcn.00404fa0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x404ea0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0xc
mov eax, dword [0x40cabc]
mov ecx, dword [0x40cac0]
mov edx, dword [0x40cac4]
mov dword [esp], eax
mov eax, dword [0x40ca14]
push ebx
push edi
push eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 8]
push ecx
push 1
push edx
push 3
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ebx, eax
cmp ebx, 2
jbe 0x404f5a
cmp ebx, 0x102
jne 0x404f70
mov eax, dword [0x40cabc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp eax, ebx
jne 0x404f13
push str.Reader_Status_Thread_didnt_exit._n_r
call edi
mov ecx, dword [0x40cac0]
push 0
push ecx
call esi
cmp eax, 0x102
jne 0x404f2c
push str.Writer_Thread_didnt_exit._n_r
call edi
mov edx, dword [0x40cac4]
push 0
push edx
call esi
cmp eax, 0x102
pop esi
jne 0x404f7d
push str.Timer_Thread_didnt_exit.__n_r
call edi
mov eax, dword [0x40ca14]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, ebx
pop edi
pop ebx
add esp, 0xc
ret
mov eax, dword [0x40ca14]
xor ebx, ebx
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, ebx
pop edi
pop ebx
add esp, 0xc
ret
push str.WaitForMultipleObjects
call fcn.00404bf0
add esp, 4
mov eax, dword [0x40ca14]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, ebx
pop edi
pop ebx
add esp, 0xc
ret
Function at 0x401a7d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_malloc]
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x401ac6
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 7
push ecx
call esi
push dword [ebp + 0x10]
mov edi, eax
push str._Xms_s
push edi
call ebx
mov eax, dword [ebp + 0xc]
add esp, 0x10
mov dword [ebp - 4], 1
mov dword [eax], edi
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x401af8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 7
push ecx
call esi
push dword [ebp + 0x14]
mov esi, eax
push str._Xmx_s
push esi
call ebx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
add esp, 0x10
inc dword [ebp - 4]
mov dword [eax + ecx*4], esi
push 0x4143b0
call dword [sym.imp.MSVCRT.dll_getenv]
mov edx, eax
pop ecx
test edx, edx
je 0x401b2b
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401b2b
push edx
call fcn.004017de
mov edx, dword [ebp - 4]
inc dword [ebp - 4]
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + edx*4], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x401b9c
mov al, byte [esi]
test al, al
je 0x401b9c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov edi, dword [sym.imp.MSVCRT.dll_iswctype]
lea ebx, [ecx + edx*4]
push 8
movsx ax, al
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x401b60
movsx ax, byte [esi + 1]
inc esi
push 8
jmp 0x401b4d
cmp byte [esi], 0
je 0x401b96
inc dword [ebp - 4]
mov dword [ebx], esi
add ebx, 4
mov al, byte [esi]
test al, al
je 0x401b85
movsx ax, al
push 8
push eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x401b85
inc esi
jmp 0x401b6d
cmp byte [esi], 0
je 0x401b8e
and byte [esi], 0
inc esi
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x18]
jge 0x401b9f
mov al, byte [esi]
test al, al
jne 0x401b47
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4021ac
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
lea eax, [ebp - 4]
push edi
push eax
call fcn.00404ab2
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
jne 0x4021d7
push 5
call fcn.00406930
push eax
call fcn.00406ba5
pop ecx
pop ecx
push esi
call fcn.00405711
push eax
push 0x5c
call fcn.0040536c
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
lea eax, [ebp - 0x44c]
push 0x414478
push eax
call esi
push dword [ebp - 4]
lea eax, [ebp - 0x4c]
push 0x414480
push eax
call esi
lea eax, [ebp - 0x4c]
xor esi, esi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44c]
push eax
push esi
mov dword [ebp - 0x2c], str.JavaWSSplashScreen
mov dword [ebp - 0x28], str._splash
mov dword [ebp - 0x18], esi
call fcn.004052e6
xor eax, eax
lea edi, [ebp - 0x1a]
mov word [ebp - 0x1c], si
add esp, 0x2c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x10
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.WSOCK32.dll_accept]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40227b
push 6
call fcn.00406930
push eax
call fcn.00406ba5
pop ecx
pop ecx
push esi
lea eax, [ebp - 0xc]
push 6
push eax
push edi
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 6
je 0x40229d
push 7
call fcn.00406930
push eax
call fcn.00406ba5
pop ecx
pop ecx
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
cmp eax, esi
mov dword [0x414010], eax
pop esi
jg 0x4022c1
push 8
call fcn.00406930
push eax
call fcn.00406ba5
pop ecx
pop ecx
push edi
call fcn.004052c1
push ebx
call fcn.004052c1
pop ecx
pop ecx
pop edi
pop ebx
leave
ret

Function at 0x4022ed
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push str.PATH
call dword [sym.imp.MSVCRT.dll_getenv]
pop ecx
mov ebx, eax
call fcn.0040536c
mov esi, eax
test ebx, ebx
mov edi, esi
je 0x402341
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
push esi
mov edi, eax
push ebx
push str.PATH_s___s_
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
jmp 0x402366
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 9
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
push esi
push str.PATH__s_
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
push edi
call dword [sym.imp.MSVCRT.dll__putenv]
pop ecx
pop edi
pop esi
pop ebx
ret
Function at 0x4024c5
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push 0x414568
push 0x5c
call fcn.00405c1a
push eax
lea eax, [ebp - 0x400]
push 0x414580
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
push dword [0x41d040]
lea eax, [ebp - 0x400]
push eax
call fcn.004041fa
push str.JAVAWS_TRACE_NATIVE
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 0x20
test eax, eax
je 0x40251d
push dword [0x41d040]
call fcn.0040470b
pop ecx
leave
ret

Function at 0x4041fa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411be0
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__strdup]
mov esi, eax
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0xc
test eax, eax
je 0x40423d
cmp eax, esi
jbe 0x404232
cmp byte [eax - 1], 0x3a
je 0x404232
and byte [eax], 0
jmp 0x404236
and byte [eax + 1], 0
push esi
call fcn.00405066
pop ecx
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov dword [esp], 0x414980
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov dword [ebp + 8], eax
test eax, eax
pop ecx
je 0x40435f
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x404354
push edi
push dword [ebx]
call fcn.0040418f
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x404298
push esi
call fcn.00402bdb
test eax, eax
pop ecx
je 0x404298
push esi
call fcn.00402c07
cmp eax, 1
pop ecx
jne 0x404348
mov ecx, dword [ebx]
test ecx, ecx
je 0x404348
cmp dword [ebx + 4], 0
je 0x404348
xor eax, eax
mov dl, byte [ecx]
test dl, dl
je 0x4042ce
cmp dl, 0x5c
jne 0x4042c1
mov byte [ebp + eax - 0x1000], dl
inc eax
mov dl, byte [ecx]
mov byte [ebp + eax - 0x1000], dl
inc eax
inc ecx
jmp 0x4042ae
mov byte [ebp + eax - 0x1000], 0x3d
mov ecx, dword [ebx + 4]
inc eax
mov dl, byte [ecx]
test dl, dl
je 0x4042fa
cmp dl, 0x5c
jne 0x4042ed
mov byte [ebp + eax - 0x1000], dl
inc eax
mov dl, byte [ecx]
mov byte [ebp + eax - 0x1000], dl
inc eax
inc ecx
jmp 0x4042da
and byte [ebp + eax - 0x1000], 0
lea edi, [ebp - 0x1000]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
lea eax, [ebp - 0x1000]
dec edi
mov esi, 0x414984
push eax
movsw word es:[edi], word [esi]
call fcn.004057db
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
push dword [ebp + 8]
not ecx
dec ecx
push ecx
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x18
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40426e
pop edi
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop ebx
pop esi
leave
ret
Function at 0x404ab2
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and word [ebp - 0x14], 0
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x12]
mov dword [ebp - 4], 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00405232
push 0x414dbc
mov word [ebp - 0x14], 2
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 0
push 1
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
je 0x404b39
lea eax, [ebp - 0x14]
push 0x10
push eax
push esi
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, edi
je 0x404b32
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_getsockname]
cmp eax, edi
je 0x404b32
push 0x7fffffff
push esi
call dword [sym.imp.WSOCK32.dll_listen]
cmp eax, edi
jne 0x404b3d
push esi
call fcn.004052c1
pop ecx
mov eax, edi
jmp 0x404b50
push dword [ebp - 0x12]
call dword [sym.imp.WSOCK32.dll_ntohs]
mov ecx, dword [ebp + 8]
movzx eax, ax
mov dword [ecx], eax
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x404bd8
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and word [ebp - 0x10], 0
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00405232
push dword [ebp + 8]
mov word [ebp - 0x10], 2
call dword [sym.imp.WSOCK32.dll_htons]
push 0x414dd4
mov word [ebp - 0xe], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 0
push 1
push 2
mov dword [ebp - 0xc], eax
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
je 0x404c42
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, edi
jne 0x404c46
push esi
call fcn.004052c1
pop ecx
mov eax, edi
jmp 0x404c48
mov eax, esi
pop edi
pop esi
leave
ret

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

Disassembly:
cmp dword [esp + 8], 0
push esi
push edi
je 0x404d17
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
inc ecx
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
jne 0x404d1b
xor eax, eax
jmp 0x404d5c
push dword [esp + 0x10]
push str._s_r_n
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0
push ecx
push esi
push dword [esp + 0x18]
call dword [sym.imp.WSOCK32.dll_send]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push esi
mov edi, ecx
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov eax, edi
pop edi
pop esi
ret
Function at 0x404f23
Capabilities:
Delete file
Terminate process

Disassembly:
cmp dword [esp + 4], 0
je 0x404f41
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x404f41
push eax
call dword [sym.imp.MSVCRT.dll_remove]
pop ecx
push 0
call dword [sym.imp.MSVCRT.dll_exit]

Function at 0x405191
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0x21010
push 0x415afc
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xb
call fcn.00406930
mov esi, dword [sym.imp.MSVCRT.dll_fprintf]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
call esi
add esp, 0xc
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 0
push edi
je 0x4051db
call dword [sym.imp.MSVCRT.dll_perror]
pop ecx
jmp 0x4051ee
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push 0x415b18
add eax, 0x40
push eax
call esi
add esp, 0xc
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push 0xc
call fcn.00406930
pop ecx
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push 0x415b20
push eax
call esi
add esp, 0x10
push 0xffffffffffffffff
call dword [sym.imp.MSVCRT.dll_exit]
pop edi
pop esi

Function at 0x405232
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
cmp dword [0x4200a4], 0
jne 0x4052ba
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 1
pop ebx
push str.ws2_32.dll
call edi
mov esi, eax
test esi, esi
jne 0x405278
push str.wsock32.dll
call edi
mov esi, eax
xor ebx, ebx
test esi, esi
jne 0x405278
push 0xd
call fcn.00406930
push eax
call fcn.00405191
pop ecx
pop ecx
lea eax, [esp + 0xc]
push eax
push 2
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x405298
push 0xe
call fcn.00406930
push eax
call fcn.00405191
pop ecx
pop ecx
test ebx, ebx
je 0x4052ad
push str.WSASendDisconnect
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4200a0], eax
pop edi
pop esi
mov dword [0x4200a4], 1
pop ebx
add esp, 0x190
ret

Function at 0x4052e6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, edi
mov eax, dword [edi]
test eax, eax
je 0x405307
push eax
call fcn.00404dc5
mov dword [esi], eax
mov eax, dword [esi + 4]
add esi, 4
pop ecx
jmp 0x4052f2
cmp dword [ebp + 8], 1
jne 0x405324
push edi
push dword [ebp + 0xc]
push 1
call dword [sym.imp.MSVCRT.dll__spawnv]
add esp, 0xc
push 0
call dword [sym.imp.MSVCRT.dll_exit]
cmp dword [ebp + 8], 0
jne 0x405341
push edi
push dword [ebp + 0xc]
push 1
call dword [sym.imp.MSVCRT.dll__spawnv]
add esp, 0xc
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebp
ret
push edi
xor esi, esi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.MSVCRT.dll__spawnv]
add esp, 0xc
test eax, eax
je 0x40533b
or eax, 0xffffffff
jmp 0x40533d
Function at 0x405c4c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412210
push 0x411c20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
push str.USER_JPI_PROFILE
call dword [sym.imp.MSVCRT.dll_getenv]
pop ecx
mov edx, eax
cmp edx, ebx
je 0x405cc8
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x405cc8
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x41ec60
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, 0x41ec60
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
mov dword [ebp - 4], ebx
push str.shfolder.dll
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call esi
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x405d00
push str.SHGetFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x405d29
push 0x41ec60
push ebx
push ebx
push 0x1a
push ebx
call eax
jmp 0x405d29
push str.shell32.dll
call esi
mov dword [ebp - 0x2c], eax
push str.SHGetSpecialFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x405d29
push 1
push 0x1a
push 0x41ec60
push ebx
call eax
or dword [ebp - 4], 0xffffffff
call fcn.00405d36
jmp 0x405cb4

Function at 0x405d8d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
push eax
push 0x20019
push 0
mov dword [ebp - 8], 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405dd2
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x4065a3
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push 0x415dcc
push dword [esp + 0x14]
xor edi, edi
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
pop ecx
cmp ebx, edi
pop ecx
je 0x406616
push 2
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push ebx
call edi
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
mov esi, dword [esp + 0x24]
add esp, 0x10
test eax, eax
mov dword [esi], eax
je 0x406612
push 0
push 0
push ebx
call edi
push dword [esi]
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 0x10
test edi, edi
je 0x406612
push ebx
push dword [esi]
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, dword [esi]
je 0x406616
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor eax, eax
jmp 0x406618
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x40661c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 9
xor esi, esi
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
mov dword [ebp - 0x54], esi
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
mov dword [0x420910], esi
mov dword [0x42090c], esi
call fcn.00404ab2
cmp eax, 0xffffffff
pop ecx
mov dword [0x4200d0], eax
jne 0x40666d
push 5
call fcn.00406930
push eax
call fcn.00405f05
pop ecx
pop ecx
cmp dword [ebp + 0xc], esi
je 0x406686
push 0x420914
push dword [ebp + 0xc]
call fcn.004065a3
pop ecx
mov dword [0x420910], eax
pop ecx
cmp dword [ebp + 0x10], esi
je 0x40669f
push 0x420908
push dword [ebp + 0x10]
call fcn.004065a3
pop ecx
mov dword [0x42090c], eax
pop ecx
cmp dword [ebp + 8], esi
jg 0x4066b3
push 0x13
call fcn.00406930
push eax
call fcn.00405f05
pop ecx
pop ecx
push dword [ebp + 8]
call fcn.00404bd8
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
jne 0x4066d2
push 0x11
call fcn.00406930
push eax
call fcn.00405f05
pop ecx
pop ecx
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push 0x415dd0
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x10]
push esi
push 6
pop edi
push edi
push eax
push ebx
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, edi
je 0x40670a
push 0x14
call fcn.00406930
push eax
call fcn.00405f05
pop ecx
pop ecx
push ebx
call fcn.004052c1
cmp dword [0x420910], esi
pop ecx
jne 0x406725
cmp dword [0x42090c], esi
je 0x4067e2
mov ebx, dword [ebp - 8]
push 0x7f00
push esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], 0x406378
mov dword [ebp - 0x44], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], 0x415dd4
call dword [sym.imp.USER32.dll_RegisterClassA]
push esi
push ebx
push esi
mov eax, 0x80000000
push esi
push eax
push eax
push eax
push eax
push eax
push esi
push str.Win32Splash
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0x40659b
mov edi, eax
push 0x4e20
push esi
push edi
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
jne 0x40679e
push 0x15
call fcn.00406930
push eax
call fcn.00405f05
pop ecx
pop ecx
push 8
push 0x401
push edi
push dword [0x4200d0]
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push esi
push esi
lea eax, [ebp - 0x2c]
push esi
push eax
call edi
test eax, eax
je 0x4067e2
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
lea eax, [ebp - 0x2c]
push esi
push eax
jmp 0x4067bf
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x406aca
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
lea eax, [ebp - 0x24]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__stat]
pop ecx
test eax, eax
pop ecx
jne 0x406b48
push 0x4164fc
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov dword [ebp + 8], eax
test eax, eax
pop ecx
je 0x406b48
mov eax, dword [ebp - 0x10]
push ebx
mov ebx, eax
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
push dword [ebp + 8]
mov esi, eax
push ebx
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
mov edi, eax
add esp, 0x14
cmp edi, ebx
jle 0x406b31
push 9
call fcn.00406930
push eax
call fcn.00406ba5
pop ecx
pop ecx
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
cmp edi, ebx
pop ebx
je 0x406b54
push esi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov eax, dword [ebp + 0xc]
and dword [eax], 0
xor eax, eax
pop edi
pop esi
leave
ret
mov eax, dword [ebp + 0xc]
and byte [edi + esi], 0
mov dword [eax], esi
mov eax, edi
jmp 0x406b50

Function at 0x406b61
Capabilities:
Write file on windows

Disassembly:
push esi
push 0x416500
push dword [esp + 0xc]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x406b7b
pop esi
ret
push edi
push esi
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
xor eax, eax
cmp edi, dword [esp + 0x14]
pop edi
pop esi
sete al
ret