joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a01
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0x50200104
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
jne 0x403a1e
mov dword [ebp - 8], 0x50300104
xor edi, edi
mov ebx, 0xc8
push edi
mov eax, dword [0x405004]
push edi
push ebx
push eax
call dword [sym.imp.user32.dll_SendMessageA]
push edi
mov eax, dword [0x405004]
push edi
push 0xe
push eax
call dword [sym.imp.user32.dll_SendMessageA]
mov dword [ebp - 4], eax
inc eax
push eax
mov dword [ebp - 0xc], eax
push 0x42
call dword [sym.imp.kernel32.dll_LocalAlloc]
cmp eax, edi
mov esi, eax
jne 0x403a76
cmp dword [ebp + 8], edi
jne 0x403a6f
push edi
mov eax, dword [0x405004]
push 1
push ebx
push eax
call dword [sym.imp.user32.dll_SendMessageA]
xor eax, eax
jmp 0x403b9d
lea eax, [ebp - 0x1c]
push eax
push dword [section..data]
call dword [sym.imp.user32.dll_GetClientRect]
push esi
call dword [sym.imp.kernel32.dll_LocalLock]
push eax
mov ebx, eax
push dword [ebp - 0xc]
push 0xd
push dword [0x405004]
call dword [sym.imp.user32.dll_SendMessageA]
push 0
push dword [0x405540]
push 0xf
push dword [section..data]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
push 0
push dword [ebp - 8]
push section..text
push 0x401054
push 0x200
call dword [sym.imp.user32.dll_CreateWindowExA]
mov edi, eax
test edi, edi
jne 0x403aee
push esi
call dword [sym.imp.kernel32.dll_LocalUnlock]
push esi
call dword [sym.imp.kernel32.dll_LocalFree]
xor eax, eax
jmp 0x403b9d
push ebx
push 0
push 0xc
push edi
call dword [sym.imp.user32.dll_SendMessageA]
test eax, eax
jne 0x403b1a
push edi
call dword [sym.imp.user32.dll_DestroyWindow]
push esi
call dword [sym.imp.kernel32.dll_LocalUnlock]
push esi
call dword [sym.imp.kernel32.dll_LocalFree]
xor eax, eax
jmp 0x403b9d
push esi
call dword [sym.imp.kernel32.dll_LocalUnlock]
push 0
mov eax, dword [0x405804]
push eax
push 0x30
push edi
call dword [sym.imp.user32.dll_SendMessageA]
push dword [0x405004]
call dword [sym.imp.user32.dll_DestroyWindow]
push 5
mov eax, dword [section..data]
push eax
mov dword [0x405004], edi
mov dword [0x405644], esi
call dword [sym.imp.user32.dll_ShowWindow]
cmp dword [0x405010], 0
mov eax, dword [0x405050]
jne 0x403b6b
mov eax, 0x4056a0
push eax
call fcn.00402170
cmp dword [ebp - 4], 0
je 0x403b8c
push 0
mov eax, dword [0x405004]
push 1
push 0xb9
push eax
call dword [sym.imp.user32.dll_SendMessageA]
mov eax, dword [0x405004]
push eax
call dword [sym.imp.user32.dll_SetFocus]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402680
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424dff
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x430510]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x84], eax
mov byte [ebp - 0x75], bl
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x3c], 0x9c1214f0
mov dword [ebp - 0x38], 0x1f1e03be
mov dword [ebp - 0x34], 0x39d51f1f
mov dword [ebp - 0x30], 0xdffb9c9d
mov dword [ebp - 0x2c], 0x1bd9174
mov dword [ebp - 0x28], 0xfd73d1c9
mov dword [ebp - 0x24], 0x8895ac2f
mov dword [ebp - 0x20], 0x78bc52b1
mov dword [ebp - 0x1c], 0x1ab4294e
mov dword [ebp - 0x18], 0x4bece7bf
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x84]
push ecx
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x3c]
xor eax, eax
push ecx
push eax
lea esi, [ebp - 0x94]
call fcn.0040ad40
lea edx, [ebp - 0xa4]
push edx
mov ecx, esi
call fcn.00402480
mov edi, dword [ebp - 0xa4]
add esp, 4
test al, al
je 0x40285a
push ebx
mov ecx, edi
lea edx, [ebp - 0x74]
call fcn.00402510
add esp, 4
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x7c], 1
jb 0x402790
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
lea ecx, [ebp - 0x80]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push connect
call esi
test eax, eax
je 0x4027ea
push ebx
mov ecx, edi
lea edx, [ebp - 0x58]
call fcn.00402510
add esp, 4
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x7c], 3
jb 0x4027cd
mov eax, dword [eax]
push ebx
lea edx, [ebp - 0x80]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push connect
call esi
mov byte [ebp - 0x76], bl
test eax, eax
jne 0x4027ee
mov byte [ebp - 0x76], 1
test byte [ebp - 0x7c], 2
mov esi, 8
je 0x40281e
and dword [ebp - 0x7c], 0xfffffffd
cmp dword [ebp - 0x44], esi
jb 0x40280e
mov eax, dword [ebp - 0x58]
push eax
call fcn.004140b8
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], cx
test byte [ebp - 0x7c], 1
je 0x402835
cmp dword [ebp - 0x60], esi
jb 0x402835
mov edx, dword [ebp - 0x74]
push edx
call fcn.004140b8
add esp, 4
cmp byte [ebp - 0x76], bl
je 0x40285a
mov eax, dword [ebp - 0x84]
cmp dword [eax + 0x14], esi
jb 0x402847
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x40285a
mov byte [ebp - 0x75], 1
cmp edi, ebx
je 0x402867
push edi
call fcn.004140b8
add esp, 4
mov eax, dword [ebp - 0x94]
cmp eax, ebx
je 0x40287a
push eax
call fcn.004140b8
add esp, 4
mov al, byte [ebp - 0x75]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004140c3
mov esp, ebp
pop ebp
ret
Function at 0x404e30
Capabilities:
Get file size
Query environment variable
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x42ce50
push 0x419bb0
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x430510]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov dword [ebp - 0x23c], 1
xor eax, eax
mov word [ebp - 0x238], ax
push 0x208
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x236]
push ecx
call fcn.0041a000
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x240], esi
mov byte [ebp - 0x2c], bl
xor eax, eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov word [ebp - 0x1f], ax
mov byte [ebp - 0x1d], al
mov dword [ebp - 4], ebx
cmp dword [edi + 0x14], 8
jb 0x404ebd
mov edi, dword [edi]
push 0x105
lea edx, [ebp - 0x238]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x404f4d
push str.plugin.txt
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp eax, 1
jne 0x404f4d
push ebx
push 0x80
push 3
push ebx
push ebx
push connect
lea ecx, [ebp - 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x240], esi
cmp esi, 0xffffffff
je 0x404f4d
mov dword [ebp - 0x244], ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
lea edx, [ebp - 0x244]
push edx
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x404f4d
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00414c59
add esp, 4
mov dword [ebp - 0x23c], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x404f78
cmp esi, ebx
je 0x404f88
cmp esi, 0xffffffff
je 0x404f88
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004140c3
mov esp, ebp
pop ebp
ret
Function at 0x405080
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x42ce30
push 0x419bb0
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x430510]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
xor ebx, ebx
mov byte [ebp - 0x239], bl
xor esi, esi
mov dword [ebp - 0x240], esi
xor eax, eax
mov word [ebp - 0x238], ax
push 0x208
push ebx
lea ecx, [ebp - 0x236]
push ecx
call fcn.0041a000
add esp, 0xc
mov byte [ebp - 0x2c], bl
xor eax, eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov word [ebp - 0x1f], ax
mov byte [ebp - 0x1d], al
mov dword [ebp - 4], ebx
push 0x105
lea edx, [ebp - 0x238]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4051a8
push str.plugin.txt
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp eax, 1
jne 0x4051a8
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea ecx, [ebp - 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x240], esi
cmp esi, 0xffffffff
je 0x4051a8
push 0xa
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00423b97
add esp, 0xc
mov dword [ebp - 0x244], ebx
lea eax, [ebp - 0x2c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405180
sub eax, edx
push ebx
lea ecx, [ebp - 0x244]
push ecx
push eax
lea edx, [ebp - 0x2c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x4051a8
mov byte [ebp - 0x239], al
mov dword [ebp - 4], 0xfffffffe
jmp 0x4051cf
cmp esi, ebx
je 0x4051df
cmp esi, 0xffffffff
je 0x4051df
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x239]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004140c3
mov esp, ebp
pop ebp
ret
Function at 0x405210
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424a6b
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x430510]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor eax, eax
push 0x208
mov edi, ecx
push eax
lea ecx, [ebp - 0x226]
push ecx
xor bl, bl
mov word [ebp - 0x228], ax
call fcn.0041a000
add esp, 0xc
lea edx, [ebp - 0x2e8]
push edx
call fcn.00407960
push 0x105
lea eax, [ebp - 0x228]
push eax
mov dword [ebp - 4], 0
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x405335
push str.plugin.txt
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp eax, 1
jne 0x405335
lea ecx, [ebp - 0x228]
lea esi, [ebp - 0x2e8]
call fcn.00407a50
cmp dword [ebp - 0x27c], 0
je 0x4052ce
mov bl, 1
jmp 0x4052dc
push 1
mov ecx, edi
call fcn.00405080
add esp, 4
mov bl, al
lea eax, [ebp - 0x2d0]
call fcn.00409390
test eax, eax
jne 0x405335
mov edx, dword [ebp - 0x2e8]
mov ecx, dword [edx + 4]
mov eax, dword [ebp + ecx - 0x2dc]
lea ecx, [ebp + ecx - 0x2e8]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x40530e
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x405335
push 0
call fcn.004014e0
jmp 0x405335
lea ecx, [ebp - 0x278]
mov dword [ebp - 4], 0xffffffff
call fcn.00407ab0
lea eax, [ebp - 0x278]
push eax
mov dword [ebp - 0x278], 0x4292a4
call fcn.00413c00
add esp, 4
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 - 0x14]
xor ecx, ebp
call fcn.004140c3
mov esp, ebp
pop ebp
ret

Function at 0x405420
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423f60
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x430510]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor eax, eax
push 0x208
mov edi, ecx
push eax
lea ecx, [ebp - 0x21e]
push ecx
mov esi, edx
xor bl, bl
mov word [ebp - 0x220], ax
call fcn.0041a000
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], 8
jb 0x405484
mov edi, dword [edi]
push 0x105
lea edx, [ebp - 0x220]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4054d6
lea eax, [ebp - 0x220]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4054a4
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x220]
call fcn.00409a60
mov bl, 1
jmp 0x4054d6
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 - 0x14]
xor ecx, ebp
call fcn.004140c3
mov esp, ebp
pop ebp
ret
Function at 0x4066b0
Capabilities:
Create directory
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x430510]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x20e]
push ecx
xor bl, bl
mov word [ebp - 0x210], ax
call fcn.0041a000
add esp, 0xc
push 0x105
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x406732
push str.TemplateScrp_Nv4BA5NSEZs59YK17pZ5
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x406732
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov al, 1
jne 0x406734
mov al, bl
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004140c3
mov esp, ebp
pop ebp
ret

Function at 0x406860
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, 1
mov dword [0x432430], eax
mov dword [0x432444], esi
mov dword [0x432450], esi
mov dword [0x43244c], esi
mov dword [0x432440], ebx
cmp eax, esi
jne 0x4068b5
mov eax, dword [0x432434]
push 0x432438
push eax
mov dword [0x43243c], ebx
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x432434]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push 0x432438
push ecx
mov dword [0x43243c], 4
call edi
push esi
push esi
push esi
push 0x406850
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [0x432430]
push 0xffffffffffffffff
push edx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x432434]
push 0x432438
push eax
mov dword [0x43243c], ebx
mov dword [0x432444], esi
mov dword [0x432450], esi
mov dword [0x432440], ebx
mov dword [0x43244c], esi
call edi
mov eax, dword [0x432430]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, esi
je 0x406939
push eax
call edi
mov dword [0x432430], esi
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x406943
push eax
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407960
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424a37
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x430510]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [edi], 0x429334
mov dword [edi + 0x10], 0x42933c
mov dword [edi + 0x70], 0x4292a4
lea esi, [edi + 0x18]
push esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x10], 1
call fcn.00409240
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], 0x429330
call fcn.00409930
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], 0x4292f0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x4324ac]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4094c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x430510]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x4095c7
cmp byte [edi + 0x49], 0
je 0x4095c7
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x4095bb
lea esi, [ebp - 0x2c]
call fcn.00406cd0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x409533
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40955c
dec eax
je 0x409560
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x4095b6
jmp 0x4095c2
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x409570
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x409599
cmp ebx, 0x10
jae 0x40957f
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00414fe9
add esp, 0x10
cmp esi, eax
jne 0x4095b3
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x4095bf
test esi, esi
jne 0x409527
push esi
push 8
lea esi, [ebp - 0x2c]
call fcn.00408c50
jmp 0x409521
lea ecx, [ebp - 0x2c]
call fcn.00406d30
xor al, al
jmp 0x4095c9
lea ecx, [ebp - 0x2c]
call fcn.00406d30
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004140c3
mov esp, ebp
pop ebp
ret
Function at 0x409930
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423dab
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x430510]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], 0x4292a8
call fcn.00413d20
push 4
mov dword [ebp - 4], 0
call fcn.004146c1
mov edi, eax
add esp, 4
test edi, edi
je 0x4099ac
call fcn.00413784
mov dword [edi], eax
call fcn.00413543
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00413478
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4099a2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004134a0
jmp 0x4099ae
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b6c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x42d8f8
push 0x419bb0
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x430510]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov esi, edx
mov byte [ebp - 0x439], 0
mov dword [ebp - 4], 0
mov byte [ebp - 0x428], 0
push 0x3ff
push 0
lea eax, [ebp - 0x427]
push eax
call fcn.0041a000
add esp, 0xc
mov dword [ebp - 0x44c], 0x400
cmp dword [esi + 0x14], 0x10
jb 0x40b73c
mov eax, dword [esi]
jmp 0x40b73e
mov eax, esi
push 0
push 2
lea ecx, [ebp - 0x44c]
push ecx
lea edx, [ebp - 0x428]
push edx
push eax
mov ebx, dword [sym.imp.SHLWAPI.dll_UrlGetPartA]
call ebx
lea eax, [ebp - 0x428]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b762
sub eax, edx
jne 0x40b77b
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x40b8be
mov byte [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x23], eax
mov byte [ebp - 0x1f], al
mov dword [ebp - 0x444], 6
cmp dword [esi + 0x14], 0x10
jb 0x40b799
mov esi, dword [esi]
push 0
push 5
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x24]
push ecx
push esi
call ebx
lea eax, [ebp - 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b7b1
sub eax, edx
jne 0x40b7cf
mov dx, word [0x42957c]
mov word [ebp - 0x24], dx
mov al, byte [0x42957e]
mov byte [ebp - 0x22], al
xor ebx, ebx
mov dword [ebp - 0x440], ebx
lea ecx, [ebp - 0x440]
lea edx, [ebp - 0x428]
call fcn.0040b5d0
test al, al
je 0x40b8b1
mov eax, dword [ebp - 0x440]
mov esi, eax
cmp eax, ebx
je 0x40b8b1
cmp dword [eax + 4], 2
jne 0x40b865
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
mov ecx, dword [ebp - 0x440]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx]
mov dword [ebp - 0x438], edx
mov edx, dword [ecx + 4]
mov dword [ebp - 0x434], edx
mov edx, dword [ecx + 8]
mov dword [ebp - 0x430], edx
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0x42c], ecx
push 0x10
lea edx, [ebp - 0x438]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x40b892
mov eax, dword [edi]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], ebx
mov eax, dword [ebp - 0x440]
mov esi, dword [esi + 0x1c]
cmp esi, ebx
jne 0x40b800
cmp eax, ebx
je 0x40b8b1
mov esi, eax
mov eax, dword [0x4324a8]
cmp eax, ebx
jne 0x40b887
push 2
call fcn.0040dee0
mov dword [0x4324a8], eax
push esi
call eax
mov dword [ebp - 0x440], ebx
jmp 0x40b8b1
mov byte [ebp - 0x439], 1
mov eax, dword [ebp - 0x440]
jmp 0x40b86c
mov dword [ebp - 4], 0xfffffffe
mov al, byte [ebp - 0x439]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004140c3
mov esp, ebp
pop ebp
ret
Function at 0x40d570
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 0x14]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x40d5fc
cmp word [ebx + 8], 2
push edi
jne 0x40d5ce
cmp word [ebx + 0xa], 4
jne 0x40d5ce
mov edi, dword [ebx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x40d5ce
mov edx, dword [eax]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.0040d840
mov dword [esi], eax
test eax, eax
je 0x40d5f0
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x40d5a8
mov eax, dword [ebx]
mov ecx, dword [ebp + 0x14]
push 0x400
push eax
push 0x401
push ecx
call fcn.004157fe
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x10
pop edi
pop esi
mov eax, 8
pop ebx
pop ebp
ret 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x40d60c.11001
jmp dword [eax*4 + 0x40d634]
pop esi
mov eax, 0x2af9
pop ebx
pop ebp
ret 0x10
pop esi
mov eax, 0x2afa
pop ebx
pop ebp
ret 0x10
pop esi
mov eax, 0x2afb
pop ebx
pop ebp
ret 0x10