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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x40c4e4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040623c
jmp 0x40c5b3
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x40c506
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x40c508
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x40c5a7
jg 0x40c525
test esi, esi
je 0x40c5a7
test ecx, ecx
jl 0x40c572
jg 0x40c52f
test eax, eax
je 0x40c572
cmp ebx, ecx
jg 0x40c543
jl 0x40c539
cmp esi, eax
jae 0x40c543
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.0046ad00
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x40c579
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x40c5a7
jg 0x40c583
test esi, esi
je 0x40c5a7
cmp dword [edi + 0x4c], 0
je 0x40c5a7
mov ecx, edi
call fcn.0040cb21
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.00477722
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40c7ec
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x4bb0c4]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x40c811
xor eax, eax
jmp 0x40c8df
mov eax, dword [esi + 0x20]
push ebp
mov ecx, dword [eax]
test ecx, ecx
je 0x40c83f
mov edx, dword [esi + 0x30]
mov ebp, dword [edx]
lea eax, [ecx + ebp]
cmp ecx, eax
jae 0x40c83f
lea ecx, [ebp - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x40c8de
cmp dword [esi + 0x4c], 0
je 0x40c8dc
mov ecx, esi
call fcn.0040cb21
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x40c86b
push dword [esi + 0x4c]
push eax
call fcn.0040b47e
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x40c8dc
mov byte [esp + 0x10], al
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x21]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x40c8dc
cmp eax, 1
jle 0x40c8ad
cmp eax, 3
jne 0x40c8dc
push dword [esi + 0x4c]
push dword [esp + 0x14]
jmp 0x40c85d
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x1c]
sub ebp, eax
je 0x40c8cc
push dword [esi + 0x4c]
push ebp
push 1
push eax
call fcn.0046ee85
add esp, 0x10
cmp ebp, eax
jne 0x40c8dc
lea eax, [esp + 0x10]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x18], eax
mov eax, ebx
jne 0x40c8de
mov eax, edi
pop ebp
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00453227
add esp, 0x30
ret 4

Function at 0x40cb6c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4bb0c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x40cbee
cmp byte [esi + 0x3d], 0
je 0x40cbee
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40cbc0
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40cbc4
sub eax, 1
je 0x40cbc8
dec eax
sub eax, 1
je 0x40cbee
xor al, al
jmp 0x40cbf0
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40cbe5
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0046ee85
add esp, 0x10
cmp edi, eax
jne 0x40cbc0
cmp byte [esi + 0x3d], 0
sete al
jmp 0x40cbf0
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00453227
leave
ret
Function at 0x40cf67
Capabilities:
Create directory

Disassembly:
push 0x50
mov eax, 0x490e1e
call fcn.004543f8
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0xf
pop eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x58], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x28], bl
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
push esi
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00402efd
call fcn.004040fd
add esp, 0x18
sub esp, 0x18
mov ecx, esp
test al, al
je 0x40cfc9
mov dword [ebp - 0x5c], esp
push str.Cannot_create_a_directory_because_the_value_provided_was_empty_
call fcn.00402d51
mov byte [ebp - 4], 2
jmp 0x40d027
push esi
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00402efd
lea ecx, [ebp - 0x40]
call fcn.004049c3
add esp, 0x18
lea ecx, [ebp - 0x28]
push eax
call fcn.00402d04
lea ecx, [ebp - 0x40]
call fcn.00402dd0
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00402efd
call fcn.004040fd
add esp, 0x18
test al, al
je 0x40d03c
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5c], esp
push str.Fixing_the_path_to_use_the_correct_slashes_on_this_OS_resulted_in_an_empty_string___
call fcn.00402d51
mov byte [ebp - 4], 3
call fcn.0040d33a
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040d682
jmp 0x40d11d
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
cmovae edx, dword [ebp - 0x28]
call fcn.00404d1d
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00477aef
pop ecx
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.00402da2
lea eax, [ebp - 0x28]
test esi, esi
je 0x40d0d8
sub esp, 0x18
mov edx, str.Got_an_error_while_trying_to_create_the_directory_:
mov ecx, esp
mov dword [ebp - 0x5c], esp
push eax
call fcn.00402f8e
pop ecx
mov byte [ebp - 4], 4
call fcn.0040d33a
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040d682
lea ecx, [ebp - 0x40]
call fcn.0040f2cf
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x5c], esp
mov edx, str._____Error_:
push eax
call fcn.00402ff3
pop ecx
mov byte [ebp - 4], 6
call fcn.0040d33a
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0040d682
lea ecx, [ebp - 0x40]
call fcn.00402dd0
jmp 0x40d11d
push eax
mov edx, str.Created_directory_
lea ecx, [ebp - 0x40]
call fcn.00402f8e
sub esp, 0x14
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x5c], esp
mov edx, eax
push 0x4ade64
call fcn.00403020
pop ecx
mov byte [ebp - 4], 8
call fcn.0040d33a
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0040d4dc
lea ecx, [ebp - 0x40]
call fcn.00402dd0
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.00402dd0
lea ecx, [ebp - 0x58]
call fcn.00402dd0
mov al, bl
call fcn.004543a2
ret 4
Function at 0x40fb68
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x48f7a2
call fcn.004543c4
mov edi, ecx
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
jg 0x40fba5
lea eax, [edi + 0x34]
xor ebx, ebx
cmp dword [eax + 0x14], 8
mov ecx, eax
mov dword [eax + 0x10], ebx
jb 0x40fb9a
mov ecx, dword [eax]
xor edx, edx
mov word [ecx], dx
push eax
jmp 0x40fc56
inc esi
push 2
push esi
call fcn.0047148f
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x40fbf2
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.Failed_to_allocate_memory_to_read_the_text_from_a_line_edit_
call fcn.00402d51
mov dword [ebp - 4], ebx
call fcn.0040d33a
or dword [ebp - 4], 0xffffffff
mov ecx, eax
call fcn.0040d682
add edi, 0x34
mov dword [edi + 0x10], ebx
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x40fbeb
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
jmp 0x40fc55
push esi
push ebx
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, dword [ebp - 0x10]
je 0x40fc39
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.Failed_to_read_the_text_from_a_line_edit_
call fcn.00402d51
mov dword [ebp - 4], 1
call fcn.0040d33a
or dword [ebp - 4], 0xffffffff
mov ecx, eax
call fcn.0040d682
push ebx
call fcn.004711a1
add edi, 0x34
xor ebx, ebx
pop ecx
jmp 0x40fbde
push ebx
call fcn.00475667
pop ecx
push eax
add edi, 0x34
push ebx
mov ecx, edi
call fcn.00406d73
push ebx
call fcn.004711a1
pop ecx
xor ebx, ebx
push edi
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.0040fc96
mov eax, esi
call fcn.0045438d
ret 4
Function at 0x411264
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x50]
sub esp, 0x50
push 0xffffffffffffffff
push 0x491a30
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4bb0c4]
xor eax, ebp
mov dword [ebp + 0x4c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x3c
pop esi
xor ebx, ebx
lea eax, [ebp - 0x48]
push esi
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0046b280
xor eax, eax
mov dword [ebp + 0x44], ebx
add esp, 0xc
mov dword [ebp + 0x48], 7
mov word [ebp + 0x34], ax
push 3
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00410994
test al, al
jne 0x4112f3
sub esp, 0x18
mov ecx, esp
mov dword [ebp], esp
push str.Failed_to_update_the_status_text_to_indicate_we_are_starting_the_configuration_
call fcn.00402d51
mov byte [ebp - 4], 2
call fcn.0040d33a
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040d61c
push esi
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.0046b280
add esp, 0xc
lea edx, [ebp + 0x58]
cmp dword [ebp + 0x6c], 0x10
lea ecx, [ebp + 0x1c]
cmovae edx, dword [ebp + 0x58]
call fcn.00404d1d
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp + 0x34]
call fcn.0041151a
lea ecx, [ebp + 0x1c]
call fcn.00402da2
cmp dword [ebp + 0x48], 8
lea eax, [ebp + 0x34]
mov dword [ebp - 0x48], esi
cmovae eax, dword [ebp + 0x34]
push eax
mov dword [ebp - 0x44], 0x400
call fcn.00477ffe
mov dword [ebp], eax
lea eax, [ebp + 4]
pop ecx
push eax
call fcn.00412d5b
mov ecx, eax
call fcn.004130aa
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
jb 0x411363
mov eax, dword [eax]
mov edx, eax
lea ecx, [ebp + 0x1c]
call fcn.00404d1d
cmp dword [ebp + 0x30], 8
lea eax, [ebp + 0x1c]
cmovae eax, dword [ebp + 0x1c]
push eax
call fcn.00477ffe
pop ecx
lea ecx, [ebp + 0x1c]
mov esi, eax
call fcn.00402da2
lea ecx, [ebp + 4]
mov byte [ebp - 4], 1
call fcn.00402dd0
mov eax, dword [ebp]
push 6
push ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], 5
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
je 0x4113df
cmp eax, 1
je 0x4113df
sub esp, 0x18
mov ecx, esp
mov dword [ebp], esp
push str.Unable_to_initialize_COM_while_attempting_to_launch_a_web_browser.
call fcn.00402d51
mov byte [ebp - 4], 4
call fcn.0040d33a
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040d682
jmp 0x411431
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
cmp esi, 1
sete bl
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp esi, 1
jne 0x411431
push 0x64
mov ecx, edi
call fcn.00410978
test al, al
jne 0x41142f
sub esp, 0x18
mov ecx, esp
mov dword [ebp], esp
push str.Failed_to_update_the_progress_bar_to_100__
call fcn.00402d51
mov byte [ebp - 4], 5
call fcn.0040d33a
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040d61c
mov bl, 1
lea ecx, [ebp + 0x34]
call fcn.00402da2
lea ecx, [ebp + 0x58]
call fcn.00402dd0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4c]
xor ecx, ebp
call fcn.00453227
add ebp, 0x50
leave
ret 0x18
Function at 0x414860
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x198
mov eax, dword [0x4bb0c4]
xor eax, esp
mov dword [esp + 0x194], eax
cmp dword [0x4bd710], 0
jne 0x41490f
mov dword [0x4bd710], 1
mov dword [fcn.00478405], 0x478405
mov dword [fcn.004711a1], 0x4711a1
mov dword [fcn.0046ec10], 0x46ec10
mov dword [0x4bb044], 0x475bc9
mov dword [fcn.0047148f], 0x47148f
call fcn.00417b10
test eax, eax
je 0x414943
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x414943
mov eax, dword [esp + 4]
cmp al, 2
jne 0x41493d
shr eax, 8
cmp al, 2
jne 0x41493d
call fcn.0041c780
test eax, eax
jne 0x414943
call fcn.00406120
test eax, eax
jne 0x414943
call fcn.0041d9b0
mov dword [0x4bd714], 3
call fcn.00414710
lea eax, [esp]
push eax
call fcn.0041eca0
mov ecx, dword [esp + 4]
xor edx, edx
add esp, 4
test eax, eax
cmovne ecx, edx
mov eax, ecx
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00453227
add esp, 0x198
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
xor eax, eax
xor ecx, esp
call fcn.00453227
add esp, 0x198
ret
Function at 0x41d9b0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [0x4bb04c]
cmp eax, 0xffffffff
jne 0x41d9f2
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x41d9d8
xor eax, eax
test eax, eax
mov dword [0x4bb04c], eax
setg al
ret
push eax
push 0
mov dword [0x4bb04c], 1
call fcn.004271c0
mov eax, dword [0x4bb04c]
add esp, 8
test eax, eax
setg al
ret

Function at 0x41da00
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x3a8], 2
jne 0x41da55
mov eax, dword [0x4bb04c]
cmp eax, 0xffffffff
jne 0x41da4f
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x41da35
xor eax, eax
test eax, eax
mov dword [0x4bb04c], eax
setg al
ret
push eax
push 0
mov dword [0x4bb04c], 1
call fcn.004271c0
mov eax, dword [0x4bb04c]
add esp, 8
test eax, eax
setg al
ret
mov al, 1
ret
Function at 0x426770
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
push 0x4000
push dword [edi + 0x63c]
call fcn.00415d10
mov eax, dword [edi + 0x120]
add esp, 0x10
test eax, eax
je 0x4267c4
cmp byte [edi + 0x4690], 0
jne 0x4267c4
push dword [edi + 0x63c]
push 0x497130
push 0x100
push eax
call fcn.00415c20
add esp, 0x10
mov byte [edi + 0x4690], 1
cmp byte [edi + 0x350], 0
je 0x42684c
push ebx
mov ebx, dword [edi + 0x63c]
push esi
mov esi, ebx
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4267e0
sub esi, ecx
cmp esi, 0x3fff
jae 0x426806
mov byte [ebx + esi], 0xa
inc esi
mov eax, dword [edi + 0x63c]
mov byte [esi + eax], 0
mov ebx, dword [edi + 0x63c]
mov eax, dword [edi + 0x190]
test eax, eax
je 0x426824
push dword [edi + 0x11c]
push esi
push ebx
push 0
push edi
call eax
add esp, 0x14
pop esi
pop ebx
pop edi
ret
push dword [edi + 0x118]
push 1
push 2
push 0x497118
call fcn.0046ee85
push dword [edi + 0x118]
push 1
push esi
push ebx
call fcn.0046ee85
add esp, 0x20
pop esi
pop ebx
pop edi
ret

Function at 0x426850
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x4bb0c4]
xor eax, esp
mov dword [esp + 0x804], eax
push edi
mov edi, dword [esp + 0x810]
test edi, edi
je 0x426919
cmp byte [edi + 0x350], 0
je 0x426919
push esi
lea eax, [esp + 0x81c]
push eax
push dword [esp + 0x81c]
lea eax, [esp + 0x10]
push 0x801
push eax
call fcn.00415d10
lea esi, [esp + 0x18]
add esp, 0x10
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4268b0
mov eax, dword [edi + 0x190]
sub esi, ecx
test eax, eax
je 0x4268ee
push dword [edi + 0x11c]
lea ecx, [esp + 0xc]
push esi
push ecx
push 0
push edi
call eax
add esp, 0x14
pop esi
pop edi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00453227
add esp, 0x808
ret
push dword [edi + 0x118]
push 1
push 2
push 0x497118
call fcn.0046ee85
push dword [edi + 0x118]
lea eax, [esp + 0x1c]
push 1
push esi
push eax
call fcn.0046ee85
add esp, 0x20
pop esi
mov ecx, dword [esp + 0x808]
pop edi
xor ecx, esp
call fcn.00453227
add esp, 0x808
ret
Function at 0x426f20
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, 0x1b4
mov ecx, dword [edi + 0x194]
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x190]
mov ebp, dword [eax + edi]
mov eax, 0x1c4
cmove esi, eax
mov eax, dword [edi + 0x3a0]
add esi, edi
mov ebx, dword [esi + 4]
sub ebx, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x426ff6
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x1a4]
cmp dword [eax + edi], 0x426ae0
jne 0x426ff6
cmp dword [esi], 0
je 0x426f88
test ebx, ebx
je 0x426ff6
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.004260f0
add esp, 0x14
cmp eax, 0xffffffff
je 0x426ff6
test al, 1
je 0x426ff6
mov ecx, dword [esi]
test ecx, ecx
jne 0x426fd6
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x4bb038]
mov ebx, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x426fef
mov eax, dword [esi + 8]
push 0
push ebx
add eax, ecx
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x426ff6
add dword [esi + 8], eax
jmp 0x426ff6
mov dword [esi + 4], 0
push 0
push dword [esp + 0x24]
push dword [esp + 0x24]
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42705f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x427030
mov ecx, dword [esp + 0x24]
lea eax, [ebx + 0x52]
pop edi
pop esi
pop ebp
mov dword [ecx], 0
pop ebx
ret
push esi
push edi
call fcn.00415220
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.00426770
mov eax, dword [edi]
add esp, 0x14
mov ecx, dword [esp + 0x24]
pop edi
mov dword [eax + 0x4694], esi
mov eax, 0x37
pop esi
pop ebp
mov dword [ecx], ebx
pop ebx
ret
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
pop ebp
mov dword [ecx], ebx
pop ebx
ret

Function at 0x427150
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x190]
test eax, eax
je 0x427179
push dword [esi + 0x11c]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push esi
call eax
add esp, 0x14
pop esi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x4271b2
push dword [esi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x497118
push 2
push eax
call fcn.0046ee85
push dword [esi + 0x118]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.0046ee85
add esp, 0x20
xor eax, eax
pop esi
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x1d4], 0
je 0x42728d
push eax
call fcn.00406350
add esp, 4
test eax, eax
jne 0x4272af
xor al, al
ret
mov eax, dword [eax + 0x190]
cmp eax, 0xffffffff
je 0x42728a
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x4272af
xor al, al
ret
mov al, 1
ret
Function at 0x428cb0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x428cf5
push dword [esp + 8]
push dword [esp + 0x10]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 4]
test eax, eax
jne 0x428cfc
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
pop ecx
ret
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop ecx
ret
Function at 0x4346c0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x499e68
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x4346da
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x499e84
push esi
call fcn.0047adf0
add esp, 8
test eax, eax
je 0x434722
test ebp, ebp
je 0x434713
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x434748
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x434748
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x4347ff
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x434765
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x4bb038]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4347f5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4347f5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x434797
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4347b0
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4347c0
test ebp, ebp
je 0x4347ec
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x4bb03c]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x4bb03c]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x4349b0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [eax], ebx
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x434b42
push ebp
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x434b2c
push esi
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x4349ff
lea ebp, [eax + 0xe]
jmp 0x434a0b
cmp eax, 0x17
jne 0x434ab9
lea ebp, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x434ab9
mov eax, dword [edi + 0x10]
test eax, eax
je 0x434ab9
cmp eax, ebp
jb 0x434ab9
push 0x20
call dword [0x4bb038]
mov esi, eax
add esp, 4
test esi, esi
je 0x434b21
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push ebp
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebp
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x4bb038]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x434b10
push ebp
push dword [edi + 0x18]
push eax
call fcn.0046ad00
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x434aa5
push eax
call dword [0x4bb044]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x434af6
mov eax, dword [esp + 0x10]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x434ab5
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4349f2
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
je 0x434ad8
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x434b28
push ebx
call fcn.00434970
mov eax, dword [esp + 0x2c]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
push dword [esi + 0x18]
mov ebp, 8
call dword [0x4bb03c]
push esi
call dword [0x4bb03c]
add esp, 8
jmp 0x434ac8
push esi
mov ebp, 8
call dword [0x4bb03c]
add esp, 4
jmp 0x434ac8
mov ebp, 8
jmp 0x434ac8
test ebx, ebx
jne 0x434b38
mov ebp, 0x2af9
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret