joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408ee0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 0xc]
cmp byte [ebp + 0x10], 0
je 0x408f20
mov dword [esp], esi
mov eax, 0x505f30
mov dword [esp + 4], eax
call sub.msvcrt.dll_fopen
test eax, eax
je 0x408f20
mov dword [esp], eax
call sub.msvcrt.dll_fclose
add esp, 0x1c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [ebp - 0xe], 0
mov ecx, 0x505f32
mov dword [esp + 4], ecx
mov edx, dword [ebp + 8]
mov dword [esp], edx
call sub.msvcrt.dll_fopen
test eax, eax
mov ebx, eax
je 0x408fcc
mov dword [esp], esi
mov edi, 0x505f35
mov dword [esp + 4], edi
call sub.msvcrt.dll_fopen
test eax, eax
mov edi, eax
je 0x408fc4
test byte [ebx + 0xc], 0x10
jne 0x408fb8
lea esi, [ebp - 0xd]
mov dword [ebp - 0x14], esi
lea esi, [esi]
lea edi, [edi]
mov dword [esp + 0xc], ebx
mov edx, 1
mov eax, 1
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x14]
mov dword [esp], ecx
call sub.msvcrt.dll_fread
mov dword [esp + 0xc], edi
mov edx, 1
mov eax, 1
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [ebp - 0x14], esi
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
test byte [ebx + 0xc], 0x10
je 0x408f70
mov byte [ebp - 0xe], 1
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
movzx eax, byte [ebp - 0xe]
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x408fe0
Capabilities:
Query environment variable
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xbc
mov dword [ebp - 0xb4], esp
mov dword [esp], str.SYSTEMROOT
call sub.msvcrt.dll_getenv
mov dword [esp], eax
call sub.msvcrt.dll_strlen
add eax, 0x3e
and eax, 0xfffffff0
call fcn.004f2010
mov dword [esp], str.SYSTEMROOT
lea ebx, [esp + 0x1f]
and ebx, 0xfffffff0
call sub.msvcrt.dll_getenv
mov dword [esp + 8], eax
mov edx, str._s_notepad.exe
lea esi, [ebp - 0xa8]
mov dword [esp], ebx
mov dword [esp + 4], edx
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], esi
call sub.KERNEL32.dll_OpenFile
sub esp, 0xc
cmp eax, 0xffffffff
mov ebx, eax
je 0x4090cf
mov dword [esp], ebx
xor edi, edi
xor eax, eax
mov dword [esp + 8], edi
lea edi, [ebp - 0xb0]
mov dword [esp + 0xc], eax
mov dword [esp + 4], edi
call sub.KERNEL32.dll_GetFileTime
sub esp, 0x10
mov dword [esp], ebx
mov ebx, 2
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call sub.KERNEL32.dll_OpenFile
sub esp, 0xc
cmp eax, 0xffffffff
mov ebx, eax
je 0x4090cf
mov dword [esp + 4], edi
xor edx, edx
xor esi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp], eax
call sub.KERNEL32.dll_SetFileTime
sub esp, 0x10
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov esp, dword [ebp - 0xb4]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4093c0
Capabilities:
Check os version

Disassembly:
push ebp
mov edx, 0x94
mov ebp, esp
push ebx
lea eax, [ebp - 0xa8]
sub esp, 0xc4
mov dword [ebp - 0xa8], edx
mov ebx, dword [ebp + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_GetVersionExA
mov ecx, dword [ebp - 0xa4]
sub esp, 4
cmp ecx, 6
je 0x409427
cmp ecx, 5
mov edx, dword [ebp - 0xa0]
je 0x409460
mov eax, dword [ebp - 0x9c]
mov dword [esp + 0xc], edx
mov edx, str.Windows__i._i_build__i
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call sub.msvcrt.dll_sprintf
mov ebx, dword [ebp - 4]
leave
ret
mov edx, dword [ebp - 0xa0]
cmp edx, 2
je 0x409494
cmp edx, 1
je 0x409483
test edx, edx
jne 0x4093ff
mov edx, dword [ebp - 0x9c]
mov eax, str.Windows_Vista_build__i
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov ebx, dword [ebp - 4]
leave
ret
cmp edx, 2
je 0x4094a5
cmp edx, 1
je 0x4094b6
test edx, edx
jne 0x4093ff
mov eax, dword [ebp - 0x9c]
mov ecx, str.Windows_2000_build__i
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
jmp 0x40944e
mov eax, dword [ebp - 0x9c]
mov dword [esp + 8], eax
mov eax, str.Windows_7_build__i
jmp 0x40944a
mov ecx, dword [ebp - 0x9c]
mov eax, str.Windows_8_build__i
mov dword [esp + 8], ecx
jmp 0x40944a
mov ecx, dword [ebp - 0x9c]
mov eax, str.Windows_Server_2003_build__i
mov dword [esp + 8], ecx
jmp 0x40944a
mov edx, dword [ebp - 0x9c]
mov eax, str.Windows_XP_build__i
mov dword [esp + 4], eax
mov dword [esp + 8], edx
jmp 0x40944e
Function at 0x4094d0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
xor esi, esi
push ebx
sub esp, 0x15c
mov dword [esp + 4], esi
mov dword [esp], 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
test eax, eax
mov edi, eax
je 0x4095d4
lea eax, [ebp - 0x148]
mov ebx, 0x128
mov dword [ebp - 0x148], ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.KERNEL32.dll_Process32First
sub esp, 8
test eax, eax
je 0x4095c9
lea esi, [ebp - 0x124]
lea esi, [esi]
mov dword [ebp - 0x14c], esp
mov ecx, esi
nop
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
mov eax, edx
and eax, 0x80808080
je 0x409540
and edx, 0x8080
jne 0x409566
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, esi
lea eax, [ecx + 0x1e]
and eax, 0xfffffff0
call fcn.004f2010
mov dword [esp + 4], esi
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov dword [esp], ebx
call sub.msvcrt.dll_strcpy
mov dword [esp], ebx
call fcn.00409380
mov edx, dword [ebp + 8]
mov dword [esp], ebx
mov dword [esp + 4], edx
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x4095dc
mov dword [esp], edi
lea eax, [ebp - 0x148]
mov dword [esp + 4], eax
call sub.KERNEL32.dll_Process32Next
sub esp, 8
test eax, eax
mov esp, dword [ebp - 0x14c]
jne 0x409530
mov dword [esp], edi
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [ebp - 0x140]
xor ecx, ecx
mov dword [esp + 4], ecx
mov dword [esp], 1
mov dword [esp + 8], ebx
call sub.KERNEL32.dll_OpenProcess
sub esp, 0xc
test eax, eax
je 0x4095a6
mov dword [esp], eax
xor edx, edx
mov dword [esp + 4], edx
call sub.KERNEL32.dll_TerminateProcess
sub esp, 8
jmp 0x4095a6

Function at 0x4096d0
Capabilities:
Set registry value

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
push ebx
xor eax, eax
sub esp, 0x34
mov dword [esp + 0x20], ecx
lea edx, [ebp - 8]
mov ecx, 0x2001f
mov dword [esp + 0x1c], edx
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCreateKeyExA
mov edx, dword [ebp - 8]
sub esp, 0x24
test edx, edx
jne 0x409730
movzx eax, bl
mov ebx, dword [ebp - 4]
leave
ret
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x10], ecx
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
test eax, eax
jne 0x409763
mov bl, 1
mov edx, dword [ebp - 8]
mov dword [esp], edx
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
movzx eax, bl
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x40a710
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov edx, 0x506130
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40a832
mov dword [esp], ebx
xor esi, esi
mov edi, 2
mov dword [esp + 8], edi
mov dword [esp + 4], esi
call sub.msvcrt.dll_fseek
mov dword [esp], ebx
call sub.msvcrt.dll_ftell
mov dword [esp], eax
mov edi, eax
call fcn.004efee0
mov dword [esp], ebx
xor ecx, ecx
mov esi, eax
mov dword [esp + 4], ecx
xor eax, eax
mov dword [esp + 8], eax
call sub.msvcrt.dll_fseek
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], edi
jge 0x40a7c0
test byte [ebx + 0xc], 0x10
jne 0x40a7c0
mov dword [esp + 0xc], ebx
mov edx, dword [ebp - 0x10]
mov ecx, 1
mov dword [esp + 8], ecx
mov eax, 1
mov dword [esp + 4], eax
lea ecx, [esi + edx]
mov dword [esp], ecx
call sub.msvcrt.dll_fread
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edi
jl 0x40a784
lea esi, [esi]
lea edi, [edi]
mov dword [esp], ebx
xor ebx, ebx
call sub.msvcrt.dll_fclose
xor ecx, ecx
jmp 0x40a7ec
xor edx, edx
cmp ebx, dword [ebp + 0x14]
setl dl
neg edx
and edx, ebx
mov ebx, dword [ebp + 0x10]
movzx eax, byte [edx + ebx]
lea ebx, [edx + 1]
neg al
xor byte [ecx + esi], al
inc ecx
cmp ecx, edi
jl 0x40a7d0
mov ecx, dword [ebp + 0xc]
mov edx, 0x506133
mov dword [esp + 4], edx
mov dword [esp], ecx
call sub.msvcrt.dll_fopen
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40a832
mov dword [esp + 8], edi
mov edi, 1
mov dword [esp + 0xc], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov eax, 1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40aac0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], esi
xor esi, esi
mov dword [ebp - 8], ebx
mov dword [esp], 0
call sub.USER32.dll_OpenClipboard
sub esp, 4
test eax, eax
jne 0x40aaf0
mov eax, esi
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], 1
call sub.USER32.dll_GetClipboardData
sub esp, 4
mov ebx, eax
mov dword [esp], eax
call sub.KERNEL32.dll_GlobalLock
sub esp, 4
mov esi, eax
mov dword [esp], ebx
call sub.KERNEL32.dll_GlobalUnlock
sub esp, 4
call sub.USER32.dll_CloseClipboard
mov eax, esi
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40d424
Capabilities:
Query environment variable

Disassembly:
push esi
push ebx
sub esp, 0x24
mov esi, dword [esp + 0x30]
mov dword [esi + 4], 0
mov dword [esp], esi
call fcn.0040e1a8
mov dword [esp + 0x18], eax
mov dword [esp + 4], 0x54
mov dword [esp], esi
call fcn.0040e14c
mov ebx, eax
test eax, eax
je 0x40d55c
mov dword [ebx], fcn.0040c868
mov dword [ebx + 4], fcn.0040cf94
mov dword [ebx + 8], fcn.0040d138
mov dword [ebx + 0xc], fcn.0040d058
mov dword [ebx + 0x10], 0x40ca58
mov dword [ebx + 0x14], 0x40c9dc
mov dword [ebx + 0x18], 0x40d214
mov dword [ebx + 0x1c], 0x40cdf4
mov dword [ebx + 0x20], 0x40cc54
mov dword [ebx + 0x24], fcn.0040cad4
mov dword [ebx + 0x28], 0x40cc00
mov dword [ebx + 0x30], 0x3b9aca00
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0x54
mov dword [esi + 4], ebx
mov dword [esp], 0x508000
call sub.msvcrt.dll_getenv
test eax, eax
je 0x40d540
mov byte [esp + 0x1f], 0x78
lea edx, [esp + 0x1f]
mov dword [esp + 0xc], edx
lea edx, [esp + 0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], str._ld_c
mov dword [esp], eax
call sub.msvcrt.dll_sscanf
test eax, eax
jle 0x40d540
mov al, byte [esp + 0x1f]
cmp al, 0x6d
je 0x40d548
cmp al, 0x4d
je 0x40d548
mov eax, dword [esp + 0x18]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [ebx + 0x2c], eax
add esp, 0x24
pop ebx
pop esi
ret
mov eax, dword [esp + 0x18]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
jmp 0x40d531
mov dword [esp], esi
call fcn.0040e1ac
mov eax, dword [esi]
mov dword [eax + 0x14], 0x38
mov dword [eax + 0x18], 0
mov eax, dword [esi]
mov dword [esp], esi
call dword [eax]
jmp 0x40d45a
Function at 0x41efc0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push ebx
sub esp, 0x1a4
mov eax, dword [0x536190]
mov ebx, dword [ebp + 8]
test eax, eax
jne 0x41f028
mov eax, sub.msvcrt.dll_malloc
mov ecx, 0x4f32f0
mov edx, 0x4f3b40
mov dword [sub.msvcrt.dll_malloc], eax
mov eax, sub.msvcrt.dll_free
test bl, 1
mov dword [sub.msvcrt.dll_free], eax
mov eax, 0x4f3b50
mov dword [0x4f50a8], eax
mov dword [0x4f50a4], ecx
mov dword [0x4f50a0], edx
jne 0x41f030
test bl, 2
jne 0x41f050
mov dword [0x5361a0], ebx
mov eax, 1
xor edx, edx
mov dword [0x536190], eax
mov ebx, dword [ebp - 4]
mov eax, edx
leave
ret
call fcn.00429cc0
test eax, eax
mov edx, 2
je 0x41f028
test bl, 2
je 0x41f016
lea esi, [esi]
lea edi, [edi]
mov dword [esp], 0x101
lea eax, [ebp - 0x198]
mov dword [esp + 4], eax
call sub.WSOCK32.DLL_WSAStartup
sub esp, 8
test eax, eax
jne 0x41f080
mov eax, dword [ebp - 0x198]
cmp al, 1
je 0x41f08c
call sub.WSOCK32.DLL_WSACleanup
lea esi, [esi]
mov ebx, dword [ebp - 4]
mov edx, 2
mov eax, edx
leave
ret
shr eax, 8
dec al
je 0x41f016
call sub.WSOCK32.DLL_WSACleanup
jmp 0x41f080
Function at 0x421c10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov ebx, dword [ebp + 8]
mov byte [ebp - 9], 0
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x421c2d
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x421c36
xor eax, eax
add esp, 0x30
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 4], esi
mov dword [esp], 0x5086a4
call sym.fortis.exe_curl_strequal
test eax, eax
je 0x421d39
mov byte [ebp - 9], 1
mov esi, dword [sym.imp.msvcrt.dll__iob]
add esi, 0x20
test ebx, ebx
je 0x421d60
mov dword [esp + 0xc], esi
mov eax, 0x91
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
mov dword [esp], str._Netscape_HTTP_Cookie_File_n_http:__www.netscape.com_newsref_std_cookie_spec.html_n_This_file_was_generated_by_libcurl__Edit_at_your_own_risk._n_n
call sub.msvcrt.dll_fwrite
jmp 0x421cb5
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x421d2f
cmp byte [eax], 0x2e
mov edx, 0x50874e
je 0x421d2f
mov dword [esp + 8], edx
mov eax, str._s_s_t_s_t_s_t_s_t_u_t_s_t_s_n
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_fprintf
mov ebx, dword [ebx]
test ebx, ebx
je 0x421d60
mov eax, dword [ebx + 8]
test eax, eax
jne 0x421ccb
mov eax, 0x508619
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x1c], eax
mov eax, 0x5085fc
cmp byte [ebx + 0x28], 0
jne 0x421ced
mov eax, 0x508601
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x421cfd
mov eax, 0x508607
mov dword [esp + 0x14], eax
mov eax, 0x5085fc
cmp byte [ebx + 0x1c], 0
jne 0x421d11
mov eax, 0x508601
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x421d21
mov eax, 0x508768
mov dword [esp + 0xc], eax
cmp byte [ebx + 0x1c], 0
jne 0x421c87
mov edx, 0x508619
jmp 0x421ca0
mov dword [esp], esi
mov eax, 0x508770
mov dword [esp + 4], eax
call sub.msvcrt.dll_fopen
mov esi, eax
test esi, esi
mov eax, 1
jne 0x421c5b
jmp 0x421c2f
cmp byte [ebp - 9], 0
jne 0x421c2d
mov dword [esp], esi
call sub.msvcrt.dll_fclose
jmp 0x421c2d
Function at 0x4221d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov eax, 0x83a8
mov ebp, esp
sub esp, 0x18
mov dword [esp + 4], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], edi
mov dword [esp], 1
call dword [0x4f50a0]
mov ebx, eax
test ebx, ebx
mov eax, 0x1b
je 0x422239
mov dword [esp], 0x100
call dword [0x4f50b0]
mov dword [ebx + 0x2dc], eax
test eax, eax
jne 0x422246
mov eax, dword [ebx + 0x2dc]
test eax, eax
jne 0x422390
mov dword [esp], ebx
xor ebx, ebx
call dword [0x4f50ac]
mov eax, dword [ebp + 8]
mov dword [eax], ebx
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edi, 0x100
mov ecx, sub.msvcrt.dll_fread
mov edx, 0xffffffff
mov dword [ebx + 0x2e0], edi
mov eax, dword [sym.imp.msvcrt.dll__iob]
xor edi, edi
add eax, 0x20
mov dword [ebx + 0x24], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebx + 0x28], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
or dword [ebx + 0x208], 0x10
mov dword [ebx + 0x80], ecx
add eax, 0x40
mov ecx, 5
mov dword [ebx + 0x10], eax
mov eax, 0xffffffff
mov dword [ebx + 0xac], eax
mov eax, 0xffffffff
mov dword [ebx + 0x82e8], eax
mov eax, 0xffffffff
mov dword [ebx + 0x82ec], eax
mov eax, 1
mov dword [ebx + 0x114], eax
mov eax, 0x3c
mov dword [ebx + 0x15c], eax
mov eax, 5
mov dword [ebx + 0xa8], edx
mov dword [ebx + 0x78], sub.msvcrt.dll_fwrite
mov dword [ebx + 0x68], 0xffffffff
mov dword [ebx + 0x6c], 0xffffffff
mov byte [ebx + 0x1a1], 1
mov byte [ebx + 0x1a2], 1
mov byte [ebx + 0x1a3], 1
mov byte [ebx + 0x188], 1
mov dword [ebx + 0x14c], eax
mov dword [ebx + 0x20], 0x438
mov dword [ebx + 0x158], edi
mov dword [ebx + 0x40], 1
mov dword [ebx + 0x44], 1
mov dword [ebx + 0x2d8], ecx
mov dword [esp], 0x14
call dword [0x4f50b0]
mov dword [ebx + 0x2d4], eax
test eax, eax
mov edx, eax
jne 0x4223a0
mov esi, 0x1b
mov edx, 1
mov eax, 2
mov dword [ebx + 0x130], edx
mov dword [ebx + 0x134], eax
mov dword [esp], str.CURL_CA_BUNDLE
call sub.msvcrt.dll_getenv
mov dword [ebx + 0x13c], eax
test esi, esi
je 0x422232
mov eax, dword [ebx + 0x2dc]
test eax, eax
je 0x422227
lea esi, [esi]
lea edi, [edi]
mov dword [esp], eax
call dword [0x4f50ac]
jmp 0x422227
mov eax, dword [ebx + 0x2d8]
mov edi, edx
shl eax, 2
cmp eax, 7
jbe 0x4223d0
test dl, 4
je 0x4223d0
mov dword [edx], 0
add edi, 4
sub eax, 4
jmp 0x4223d0
cld
mov ecx, eax
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
jmp 0x422345
Function at 0x429600
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ecx, eax
mov ebp, esp
push ebx
lea ebx, [eax + edx]
mov edx, 0x1505
jmp 0x42961d
mov eax, edx
shl eax, 5
add edx, eax
movsx eax, byte [ecx]
inc ecx
xor edx, eax
cmp ecx, ebx
jb 0x429610
pop ebx
mov eax, edx
pop ebp
ret

Function at 0x42c270
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
sub esp, 0x28
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 4], edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
cmp dword [ecx + 0x9c], edi
mov dword [esi], 0
sete dl
mov eax, edx
shl eax, 4
cmp byte [ecx + eax + 0xa8], 0
jne 0x42c310
mov dword [esi], 0
mov ebx, 0xffffffff
mov edx, dword [ecx + 0x178]
test edx, edx
je 0x42c2e1
call fcn.00438f60
cmp eax, 0x2733
mov edx, 0xffffffff
je 0x42c2d2
mov dword [esi], ebx
xor edx, edx
mov ebx, dword [ebp - 0xc]
mov eax, edx
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], edi
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
call sub.WSOCK32.DLL_recv
sub esp, 0x10
cmp eax, 0xffffffff
mov ebx, eax
jne 0x42c2ce
jmp 0x42c2bd
mov dword [esp + 4], edx
mov eax, dword [ebp + 0x14]
mov dword [esp], ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
call fcn.0042a050
mov ebx, eax
mov edx, 0xffffffff
cmp eax, 0xffffffff
jmp 0x42c2cc

Function at 0x42c340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
mov ecx, dword [eax + 0x88]
mov edi, dword [ebp + 8]
test ecx, ecx
jne 0x42c3c0
cmp edx, 2
jbe 0x42c375
mov ebx, dword [ebp - 0xc]
xor eax, eax
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0x10]
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 8], eax
mov eax, 2
mov dword [esp + 4], eax
mov eax, dword [edx*4 + 0x509eb0]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx + 0x10]
mov ecx, 1
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov dword [esp], edi
call sub.msvcrt.dll_fwrite
jmp 0x42c366
mov eax, dword [eax + 0x14]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 4], edx
call ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x42c6f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
sub esp, 0x28
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xc], ebx
cmp dword [esi + 0x9c], ecx
sete dl
mov eax, edx
shl eax, 4
cmp byte [esi + eax + 0xa8], 0
jne 0x42c7a6
mov eax, dword [esi + 0x178]
mov ebx, 0xffffffff
test eax, eax
je 0x42c765
call fcn.00438f60
cmp eax, 0x2733
jne 0x42c7e0
mov eax, dword [ebp + 0x18]
xor ebx, ebx
mov dword [eax], ebx
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
dec eax
pop ebp
and eax, 0x37
ret
mov dword [esp + 8], edi
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sub.WSOCK32.DLL_send
sub esp, 0x10
cmp eax, 0xffffffff
mov ebx, eax
je 0x42c735
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
dec eax
pop ebp
and eax, 0x37
ret
mov dword [esp + 0xc], edi
mov eax, dword [ebp + 0x10]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.0042a040
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
dec eax
pop ebp
and eax, 0x37
ret
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0043fea0
mov dword [esp + 8], eax
mov eax, str.Send_failure:__s
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call fcn.0042c530
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
dec eax
pop ebp
and eax, 0x37
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], edi
mov edi, eax
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, 3
mov dword [esp + 8], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x98]
mov dword [ebp - 8], esi
mov esi, edx
mov byte [ebp - 0x27], dl
mov byte [ebp - 0x26], bl
mov byte [ebp - 0x28], 0xff
mov dword [esp], eax
call sub.WSOCK32.DLL_send
mov eax, dword [edi]
sub esp, 0x10
mov edx, str.SENT
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.0042f710
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret