joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411635
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x423004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x411680
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004117d0
test al, al
jne 0x41167a
sub edx, 2
cmp edx, edi
jne 0x411660
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4116a2
lea eax, [edi + 2]
cmp edx, eax
je 0x4116a2
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00411581
add esp, 0x10
jmp 0x41179c
push esi
lea ecx, [ebp - 0x255]
call fcn.004117d0
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4116e5
push dword [ebp - 0x25c]
jmp 0x411692
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x411722
cmp word [ebp - 0x226], 0
je 0x411743
cmp word [ebp - 0x226], ax
jne 0x411722
cmp word [ebp - 0x224], 0
je 0x411743
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00411581
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41178f
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4116fc
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x411777
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41179c
push 0x4113b1
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040b010
add esp, 0x10
jmp 0x41176c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401a65
leave
ret

Function at 0x4122d8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4122e9
pop esi
ret
push ebx
push edi
push esi
call fcn.004122a1
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040d1d7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x412311
push ebx
push esi
push edi
call fcn.00403910
add esp, 0xc
push 0
call fcn.0040d19d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4126e1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00412326
Function at 0x417fd5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00417f51
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x418144
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x418144
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4180f9
jg 0x418031
test eax, eax
je 0x4180ef
push 1
push 0x1000
call fcn.0040ed9e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x418054
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4180e6
push 0x8000
push ebx
call fcn.0040c4ba
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41807d
jg 0x418078
cmp ecx, 0x1000
jb 0x41807d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0040fe20
add esp, 0x10
cmp eax, 0xffffffff
je 0x4180c2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x418078
jl 0x4180a9
test ecx, ecx
jne 0x41806a
push dword [ebp - 0xc]
push ebx
call fcn.0040c4ba
push esi
call fcn.0040d19d
add esp, 0xc
xor ebx, ebx
jmp 0x418152
cmp byte [edi + 0x24], 0
je 0x4180d9
cmp dword [edi + 0x20], 5
jne 0x4180d9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4180e4
mov ebx, dword [edi + 0x18]
jmp 0x4180e6
xor ebx, ebx
push esi
call fcn.0040d19d
pop ecx
jmp 0x418152
test ecx, ecx
jg 0x4180bb
jl 0x4180f9
test eax, eax
jae 0x4180bb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004162e1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x418119
cmp byte [edi + 0x1c], 0
je 0x4180bb
jmp 0x41814a
push ebx
call fcn.00412ab6
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4180bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x418152
cmp byte [edi + 0x1c], 0
je 0x41814f
mov ebx, dword [edi + 0x18]
jmp 0x418152
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004162e1
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000b780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1000b795
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000b7d4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1000b7d0
lea ebx, [ebx]
cmp esi, edx
jae 0x1000b7d4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x1000b7c0
cmp esi, edx
jb 0x1000b7d9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x1000c5e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x84], 0
jne 0x1000c630
call fcn.10042f91
mov eax, dword [eax + 0xc]
mov dword [esi + 0x84], eax
test eax, eax
je 0x1000c614
push 5
push 0x7594
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x1000c630
push 2
push 0
push str.DTCommonRes.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [esi + 0x84], eax
mov byte [esi + 0x8c], 1
push esi
push 0
push 0x1000c840
call fcn.1018139e
add esp, 0xc
mov dword [esi + 0x88], eax
cmp byte [ebp + 8], 0
mov ecx, 0x1f4
mov edi, 1
cmovne ecx, edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1000c68c
cmp byte [esi + 0x72], 0
jne 0x1000c68c
push esi
push 0x1000c430
push dword [esi + 0x7c]
push 0x7594
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
pop edi
pop esi
pop ebp
ret 4
mov eax, edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x1000c6a0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x84], 0
jne 0x1000c6ec
call fcn.10042f91
mov eax, dword [eax + 0xc]
mov dword [esi + 0x84], eax
test eax, eax
je 0x1000c6d0
push 5
push 0x7594
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x1000c6ec
push 2
push 0
push str.DTCommonRes.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [esi + 0x84], eax
mov byte [esi + 0x8c], 1
push esi
push 0
push 0x1000c840
call fcn.1018139e
add esp, 0xc
mov dword [esi + 0x88], eax
mov byte [esi + 0x8d], 1
push esi
push 0x1000c430
push dword [esi + 0x7c]
push 0x7594
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
pop esi
ret
Function at 0x1000f720
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
je 0x1000f76c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.10179250
lea eax, [esi + 4]
mov dword [ebp - 0x3c], 0x3c
add esp, 0xc
mov dword [ebp - 0x30], 0x1021ddc4
cmp dword [eax + 0x14], 8
jb 0x1000f758
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0
push 0
push 0x40f
push dword [ebp + 8]
mov byte [esi + 0x33], 1
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x100122a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 5
push 0
push 0
push dword [ebp + 8]
push 0x1021ddc4
push dword [ecx + 0x94]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret 4

Function at 0x10012fa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [ebp + 8], eax
pop ebp
jmp fcn.10053b29
Function at 0x1001c490
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101bd9d8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1024bd20]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x1024bd20]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.1000fb50
push dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push dword [ebp + 8]
push eax
call fcn.1001c380
add esp, 0x24
mov dword [esp + 0x38], 0
cmp dword [eax + 0x14], 0x10
jb 0x1001c50d
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov ecx, esi
lea eax, [esp + 0xc]
push eax
call fcn.101784b4
cmp dword [esp + 0x24], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x1001c536
push dword [esp + 0x10]
call fcn.10042178
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, esi
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi], vtable.std::_System_error.0
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1017868e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001dba5
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x20
mov eax, dword [0x1024bd20]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
inc ebx
cmp byte [esi + 0x3c], 0
mov dword [esi], ebx
je 0x1001dbcc
and dword [esi], 0
mov al, bl
jmp 0x1001dd37
cmp dword [esi + 8], 0xffffffff
je 0x1001dbe9
push ebx
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi + 8], 0xffffffff
push ebp
push 6
push ebx
push 2
pop ebp
push ebp
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x1001dc33
cmp dword [section..data], 0x10247000
je 0x1001dc2c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [section..data]
push 0x101d1f88
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1002116b
add esp, 0x14
xor al, al
jmp 0x1001dd36
push edi
lea edi, [esi + 0x1c]
mov word [esp + 0x1c], bp
cmp dword [edi + 0x14], 0x10
jb 0x1001dc46
mov eax, dword [edi]
jmp 0x1001dc48
mov eax, edi
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x20], eax
movzx eax, word [esi + 0x3e]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1e], ax
lea eax, [esp + 0x1c]
push 0x10
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1001dcb9
cmp dword [section..data], 0x10247000
je 0x1001dd2c
cmp dword [edi + 0x14], 0x10
jb 0x1001dc90
mov edi, dword [edi]
movzx eax, word [esi + 0x3e]
push eax
push edi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [section..data]
push 0x101d1f88
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1002118e
add esp, 0x1c
jmp 0x1001dd2c
push 0
push 0x10
lea eax, [esi + 0x44]
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_send]
movzx eax, byte [esi + 0xc]
mov ecx, esi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebp
call fcn.1001e4fa
test al, al
je 0x1001dd2c
push 0xbb8
lea eax, [esi + 0x34]
mov byte [esi + 0x3c], bl
push eax
mov ecx, esi
call fcn.1001e454
test al, al
je 0x1001dd2c
cmp dword [esi + 0x38], ebp
je 0x1001dd30
mov eax, dword [section..data]
cmp eax, section..data
je 0x1001dd2a
push dword [esi + 0x38]
push 0x101d1f88
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1002116b
add esp, 0x14
mov dword [esi], ebp
xor al, al
jmp 0x1001dd35
and dword [esi], 0
mov al, bl
pop edi
pop ebp
mov ecx, dword [esp + 0x24]
pop esi
pop ebx
xor ecx, esp
call fcn.1017868e
add esp, 0x20
ret
Function at 0x1001dbb4
Capabilities:
Connect socket
Send data
Send data on socket

Disassembly:
sub esp, 0x20
mov eax, dword [0x1024bd20]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
inc ebx
cmp byte [esi + 0x3c], 0
mov dword [esi], ebx
je 0x1001dbcc
and dword [esi], 0
mov al, bl
jmp 0x1001dd37
cmp dword [esi + 8], 0xffffffff
je 0x1001dbe9
push ebx
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi + 8], 0xffffffff
push ebp
push 6
push ebx
push 2
pop ebp
push ebp
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x1001dc33
cmp dword [section..data], 0x10247000
je 0x1001dc2c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [section..data]
push 0x101d1f88
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1002116b
add esp, 0x14
xor al, al
jmp 0x1001dd36
push edi
lea edi, [esi + 0x1c]
mov word [esp + 0x1c], bp
cmp dword [edi + 0x14], 0x10
jb 0x1001dc46
mov eax, dword [edi]
jmp 0x1001dc48
mov eax, edi
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x20], eax
movzx eax, word [esi + 0x3e]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1e], ax
lea eax, [esp + 0x1c]
push 0x10
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1001dcb9
cmp dword [section..data], 0x10247000
je 0x1001dd2c
cmp dword [edi + 0x14], 0x10
jb 0x1001dc90
mov edi, dword [edi]
movzx eax, word [esi + 0x3e]
push eax
push edi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [section..data]
push 0x101d1f88
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1002118e
add esp, 0x1c
jmp 0x1001dd2c
push 0
push 0x10
lea eax, [esi + 0x44]
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_send]
movzx eax, byte [esi + 0xc]
mov ecx, esi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebp
call fcn.1001e4fa
test al, al
je 0x1001dd2c
push 0xbb8
lea eax, [esi + 0x34]
mov byte [esi + 0x3c], bl
push eax
mov ecx, esi
call fcn.1001e454
test al, al
je 0x1001dd2c
cmp dword [esi + 0x38], ebp
je 0x1001dd30
mov eax, dword [section..data]
cmp eax, section..data
je 0x1001dd2a
push dword [esi + 0x38]
push 0x101d1f88
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1002116b
add esp, 0x14
mov dword [esi], ebp
xor al, al
jmp 0x1001dd35
and dword [esi], 0
mov al, bl
pop edi
pop ebp
mov ecx, dword [esp + 0x24]
pop esi
pop ebx
xor ecx, esp
call fcn.1017868e
add esp, 0x20
ret
Function at 0x1001ddd8
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x48
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ebx, [ebp + 0x10]
mov eax, dword [ebx]
cmp eax, dword [ebx + 4]
jne 0x1001ddf7
push 0xfd0
mov ecx, ebx
call fcn.100206de
xor ecx, ecx
and dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
push ecx
mov ecx, ebx
call fcn.1001fdba
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [esp + 0x50]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0x1c
mov eax, dword [ebp + 4]
xor ecx, ecx
push ecx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ecx
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x34], ecx
push eax
push 1
lea eax, [esp + 0x34]
mov dword [esp + 0x40], ecx
push eax
push dword [ebp + 8]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x1001deae
call esi
cmp eax, 0x3e5
jne 0x1001df45
call esi
cmp eax, 0x3e5
jne 0x1001deae
push dword [esp + 0x5c]
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1001df22
and dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
mov edx, dword [esp + 0x10]
test edx, edx
je 0x1001df6c
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x1001ded7
mov esi, dword [ebx]
lea edi, [esp + 0x3c]
push 7
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x50]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, edx
cmp eax, edi
je 0x1001df68
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
cmp eax, edi
jae 0x1001defe
push edi
mov ecx, ebp
call fcn.1001dfac
test al, al
je 0x1001dfa0
mov edx, dword [esp + 0x10]
add dword [esp + 0x14], edx
mov ecx, ebx
push 0
call fcn.1001fdba
add eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, edi
sub eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x1001de1f
mov eax, dword [section..data]
cmp eax, section..data
je 0x1001dfa0
push 0x101d1f88
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1002114e
add esp, 0x10
jmp 0x1001dfa0
cmp dword [section..data], 0x10247000
je 0x1001dfa0
call esi
push eax
mov eax, dword [section..data]
push 0x101d1f88
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
jmp 0x1001df98
mov al, 1
jmp 0x1001dfa2
call esi
cmp eax, 0x2746
je 0x1001dfa0
cmp eax, 0x2745
je 0x1001dfa0
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1001dfa0
push eax
push 0x101d1f88
push 0xf
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.1002116b
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 4
Function at 0x1001e4fa
Capabilities:
Send data
Send data on socket

Disassembly:
push 0x18
mov eax, 0x101bdc29
call fcn.10178732
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
call fcn.10178414
push ebx
push eax
mov dword [esi + 0x40], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call fcn.1001eab0
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x18]
inc ebx
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], bl
push eax
call fcn.1003804e
add esp, 0x18
test al, al
je 0x1001e56f
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
push 0
push eax
push dword [ebp - 0x18]
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1001e56b
test eax, eax
jne 0x1001e571
mov byte [esi + 0x3c], 0
xor bl, bl
lea ecx, [ebp - 0x18]
call fcn.10027f65
lea ecx, [ebp - 0x24]
call fcn.10027f65
mov al, bl
call fcn.10178700
ret 4

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

Disassembly:
push 0x18
mov eax, 0x101bdc29
call fcn.10178732
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
call fcn.10178414
push ebx
push eax
mov dword [esi + 0x40], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call fcn.1001eb13
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x18]
inc ebx
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], bl
push eax
call fcn.1003804e
add esp, 0x18
test al, al
je 0x1001e600
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
push 0
push eax
push dword [ebp - 0x18]
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1001e5fc
test eax, eax
jne 0x1001e602
mov byte [esi + 0x3c], 0
xor bl, bl
lea ecx, [ebp - 0x18]
call fcn.10027f65
lea ecx, [ebp - 0x24]
call fcn.10027f65
mov al, bl
call fcn.10178700
ret 4
Function at 0x1002207d
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x101be274
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x1024bd20]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1024bd20]
xor eax, esp
push eax
lea eax, [esp + 0x42c]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov esi, 0x206
push esi
mov word [esp + 0x224], ax
xor ebx, ebx
lea eax, [esp + 0x226]
push ebx
push eax
call fcn.10179250
add esp, 0xc
lea eax, [esp + 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
push esi
mov word [esp + 0x1c], ax
lea eax, [esp + 0x1e]
push ebx
push eax
call fcn.10179250
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push ebx
push 0x101d24ec
lea eax, [esp + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], ebx
push 0x10022027
lea eax, [esp + 0x1c]
mov dword [esp + 0x438], ebx
push eax
push dword [edi + 0x90]
lea ecx, [edi + 0xb0]
call fcn.10041ec3
push dword [edi + 0x118]
lea ecx, [esp + 0x18]
mov bl, al
call fcn.10012f50
test bl, bl
jne 0x1002216d
xor ebx, ebx
push ebx
push 0x3e8
jmp 0x10022211
lea eax, [esp + 0x18]
push eax
lea esi, [edi + 0x8c]
call fcn.1000bcd0
pop ecx
push eax
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.1000bc10
mov ebx, str..exe
push ebx
call fcn.1000bcd0
pop ecx
push eax
push ebx
mov ecx, esi
call fcn.1000d4a0
push 1
push dword [esi]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
mov byte [edi + 0xa1], bl
cmp byte [edi + 0xa2], bl
je 0x100221d7
push ebx
push ebx
push 0x467
push dword [edi + 0x64]
call esi
mov byte [edi + 0xa2], bl
xor eax, eax
mov ebp, 0x3e9
cmp byte [edi + 0xa3], al
sete al
push eax
push ebp
push 0x46f
push dword [edi + 0x64]
call esi
push dword [edi + 0x78]
push ebp
push dword [edi + 0x64]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp byte [edi + 0xa3], bl
je 0x1002221f
push ebx
push ebp
push 0x466
push dword [edi + 0x64]
call dword [sym.imp.USER32.dll_PostMessageW]
push dword [esp + 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esp + 0x42c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.1017868e
add esp, 0x424
ret