joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4530dc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4530f3
add esp, 0xfffffff0
call fcn.00403ca0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b258
mov eax, dword [0x46d9a8]
cmp word [eax + 2], 0
jne 0x45311b
mov eax, dword [0x46d9a8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004547cc
mov eax, dword [0x46dabc]
cmp word [eax + 2], 0
jne 0x453135
mov eax, dword [0x46dabc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004549c4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4124bc]
call fcn.0040394c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4124bc]
call fcn.0040394c
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41d6c4]
call fcn.00424c18
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4532bc
mov eax, dword [0x46d85c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424fe8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x454f74
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46d85c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cfec
test eax, eax
je 0x45322a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004091d0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d014
test eax, eax
je 0x45323e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004049e0
mov eax, dword [0x46d680]
cmp byte [eax], 0
jne 0x453272
mov eax, ebx
call fcn.004533e4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00455150
mov eax, ebx
call fcn.00455b14
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4532b2
call fcn.00403cf8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453664
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46ebb4]
cmp dword [eax + 0x30], 0
je 0x45370e
cmp dword [ebx + 0x94], 0
jne 0x453708
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4535f4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x453708
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4536ce
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x453708
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414b10
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4536dd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x454270
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4542a5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404860
jmp 0x4542b2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004047c4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45532c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45536d
mov eax, esi
call fcn.0043b68c
test al, al
je 0x45536d
mov eax, dword [ebx + 0x84]
call fcn.0043b3b4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45536d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043b3b4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x46b870
Capabilities:
Read file via mapping

Disassembly:
push 0x46b910
push 0
push 0xf001f
call sub.kernel32.dll_OpenFileMappingA
mov dword [0x4baeb0], eax
cmp dword [0x4baeb0], 0
jne 0x46b8e0
push 0x46b910
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [0x4baeb0], eax
push 0
push 0
push 0
push 6
mov eax, dword [0x4baeb0]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x4baeb4], eax
cmp dword [0x4baeb4], 0
jne 0x46b8d5
mov eax, dword [0x4baeb0]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov eax, dword [0x4baeb4]
xor edx, edx
mov dword [eax], edx
jmp 0x46b90c
push 0
push 0
push 0
push 6
mov eax, dword [0x4baeb0]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x4baeb4], eax
cmp dword [0x4baeb4], 0
jne 0x46b90c
mov eax, dword [0x4baeb0]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x4029e0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404314
test esi, esi
jne 0x402a16
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404404
jmp 0x402a34
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004028f4
mov edi, eax
test esi, esi
je 0x402a34
cmp dword [ebx], 0
je 0x402a34
dec esi
jmp 0x402a1d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4033c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x42700c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403460
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403440
xor eax, eax
push ebp
push 0x403439
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40347c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403440
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x42700c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x42700c], ax
mov esp, ebp
pop ebp
ret

Function at 0x404114
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x428044], 0
je 0x404175
cmp word [0x428218], 0xd7b2
jne 0x40413d
cmp dword [0x428220], 0
jbe 0x40413d
mov eax, 0x428214
call dword [0x428230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x427054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40419c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x42701c], 0
jne 0x404191
push 0
push 0x427074
push 0x427054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4042c8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026d8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x428045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404290
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405c08
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d2c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b7f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d2c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b7f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d48
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405c08
xor eax, eax
push ebp
push 0x405c01
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405944
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405be6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405d68
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405be6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405c08
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405d22
cmp byte [ebp - 0xd], 0
jne 0x405c4f
cmp byte [ebp - 0x12], 0
je 0x405d22
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405c68
dec ebx
cmp byte [ebx], 0x2e
je 0x405c77
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405c67
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405d22
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405cb4
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405d22
cmp byte [ebp - 0xd], 0
je 0x405d22
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405d22
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406ca8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004047c4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x406cc1
test al, 0x10
jne 0x406cc5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x406cfc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x428738
cmp dword [edi], 0
jne 0x406d78
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x428734]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4270a4
mov ecx, 2
call fcn.004028b4
mov edx, 0x406cdc
lea eax, [esi + 5]
call fcn.00406cd4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00406cd4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x406d4d
mov dword [0x428734], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4077fc
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00407680
dec esi
jne 0x40781e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x409d7c
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004047b4
lea esi, [ebp - 0x40]
xor eax, eax
push ebp
push 0x409f14
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebx + 0x18]
call fcn.00404314
lea eax, [ebx + 0x14]
call fcn.00404314
mov eax, esi
xor ecx, ecx
mov edx, 0x3c
call fcn.00402e94
mov dword [esi], 0x3c
mov dword [esi + 8], 1
mov dword [esi + 0x14], 1
mov dword [esi + 0x20], 1
mov dword [esi + 0x28], 1
mov dword [esi + 0x30], 1
mov dword [esi + 0x38], 1
push esi
push 0
mov eax, dword [ebp - 4]
call fcn.004045cc
push eax
mov eax, dword [ebp - 4]
call fcn.004047c4
push eax
call sub.wininet.dll_InternetCrackUrlA
test eax, eax
jne 0x409e47
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 4]
mov edx, 0x409f2c
call fcn.00404618
mov ecx, dword [ebp - 0x44]
mov dl, 1
mov eax, dword [0x4069e0]
call fcn.00406f20
call fcn.00403cf0
cmp dword [esi + 0x10], 0
je 0x409e53
cmp dword [esi + 4], 0
jne 0x409e77
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 4]
mov edx, 0x409f2c
call fcn.00404618
mov ecx, dword [ebp - 0x48]
mov dl, 1
mov eax, dword [0x4069e0]
call fcn.00406f20
call fcn.00403cf0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x54]
mov edx, dword [esi + 4]
call fcn.00404504
mov eax, dword [ebp - 0x54]
mov ecx, dword [esi + 8]
mov edx, 1
call fcn.00404824
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.00406c6c
mov eax, dword [ebp - 0x4c]
mov edx, 0x409f44
call fcn.00404710
jne 0x409eb6
mov byte [ebx + 0x55], 1
jmp 0x409eba
mov byte [ebx + 0x55], 0
lea eax, [ebx + 0x18]
push eax
lea eax, [ebp - 0x58]
mov edx, dword [esi + 0x10]
call fcn.00404504
mov eax, dword [ebp - 0x58]
mov ecx, dword [esi + 0x14]
mov edx, 1
call fcn.00404824
movzx eax, word [esi + 0x18]
mov dword [ebx + 0x10], eax
mov edi, dword [esi + 0x2c]
test edi, edi
je 0x409ef1
lea eax, [ebx + 0x14]
mov edx, edi
call fcn.00404504
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409f1b
lea eax, [ebp - 0x58]
mov edx, 6
call fcn.00404338
lea eax, [ebp - 4]
call fcn.00404314
ret
Function at 0x40a4d4
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00404314
mov eax, dword [ebx + 4]
call fcn.00406ed0
test al, al
je 0x40a57e
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebx + 4]
call fcn.004047c4
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40a57e
xor eax, eax
push ebp
push 0x40a577
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
test ebx, ebx
jbe 0x40a560
mov eax, esi
mov edx, ebx
call fcn.004048f4
push 0
lea eax, [ebp - 4]
push eax
push ebx
mov eax, esi
call fcn.0040481c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReadFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a57e
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x40a584
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, eax
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebx + 4]
call fcn.004047c4
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40a621
xor eax, eax
push ebp
push 0x40a61a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 8]
call fcn.004045cc
mov esi, eax
push 0
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebx + 8]
call fcn.0040481c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
cmp esi, dword [ebp - 4]
je 0x40a603
mov ecx, 0x40a630
mov dl, 1
mov eax, dword [0x4069e0]
call fcn.00406f20
call fcn.00403cf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a621
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x40a650
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffe4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x101c], edx
mov dword [ebp - 4], eax
lea ebx, [ebp - 0x10]
xor eax, eax
push ebp
push 0x40a873
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x40a888
mov eax, dword [ebp - 4]
call fcn.0040a968
mov byte [ebp - 5], 0
xor eax, eax
push ebp
push 0x40a853
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004047c4
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40a6f3
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 0x101c]
mov edx, 0x40a8b4
call fcn.00404618
mov ecx, dword [ebp - 0x101c]
mov dl, 1
mov eax, dword [0x4069e0]
call fcn.00406f20
call fcn.00403cf0
xor eax, eax
push ebp
push 0x40a7d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1c], edx
push ebx
push 0x1000
lea eax, [ebp - 0x1016]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.wininet.dll_InternetReadFile
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
cmp dword [ebx], 0
je 0x40a7bb
mov eax, dword [ebp - 4]
cmp byte [eax + 0x54], 0
jne 0x40a7bb
mov eax, dword [ebp - 4]
mov edx, dword [ebx]
add dword [eax + 0x1c], edx
mov eax, dword [ebp - 4]
cmp word [eax + 0x42], 0
je 0x40a76e
lea ecx, [ebp - 0x15]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1c]
test edx, edx
jns 0x40a762
add edx, 0xfff
sar edx, 0xc
mov esi, dword [ebp - 4]
mov eax, dword [esi + 0x44]
call dword [esi + 0x40]
cmp byte [ebp - 0x15], 0
jne 0x40a7bb
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx]
push eax
lea eax, [ebp - 0x1016]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [ebx]
cmp eax, dword [ebp - 0x14]
je 0x40a7b1
mov eax, dword [ebp - 4]
mov byte [eax + 0x54], 1
mov ecx, 0x40a8d4
mov dl, 1
mov eax, dword [0x4069e0]
call fcn.00406f20
call fcn.00403cf0
cmp byte [ebp - 5], 0
jne 0x40a709
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a7d9
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x40a9d4
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffe0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x101c], edx
mov dword [ebp - 0x1020], edx
mov dword [ebp - 0x1018], edx
mov dword [ebp - 0xc], edx
mov edi, eax
xor eax, eax
push ebp
push 0x40ab6a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call fcn.00404314
mov edx, 0x40ab80
mov eax, edi
call fcn.0040a968
xor eax, eax
mov dword [edi + 0x1c], eax
lea eax, [ebp - 8]
push eax
push 0x1000
lea eax, [ebp - 0x1011]
push eax
mov eax, dword [edi + 0x30]
push eax
call sub.wininet.dll_InternetReadFile
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
cmp dword [ebp - 8], 0
je 0x40aa8c
mov eax, dword [ebp - 8]
add dword [edi + 0x1c], eax
cmp dword [ebp - 8], 0
jbe 0x40aa86
mov esi, dword [ebp - 8]
dec esi
test esi, esi
jl 0x40aa86
inc esi
lea ebx, [ebp - 0x1011]
lea eax, [ebp - 0x1018]
mov dl, byte [ebx]
call fcn.004044f4
mov edx, dword [ebp - 0x1018]
lea eax, [ebp - 0xc]
call fcn.004045d4
inc ebx
dec esi
jne 0x40aa67
cmp byte [ebp - 1], 0
jne 0x40aa24
cmp byte [ebp - 1], 0
jne 0x40aa99
mov eax, edi
call fcn.00409c10
lea edx, [ebp - 0x1020]
mov eax, dword [ebp - 0xc]
call fcn.00406c6c
mov eax, dword [ebp - 0x1020]
lea edx, [ebp - 0x101c]
call fcn.00407f64
mov edx, dword [ebp - 0x101c]
lea eax, [ebp - 0xc]
call fcn.004043ac
mov edx, dword [ebp - 0xc]
mov eax, 0x40aba8
call fcn.004048ac
mov esi, eax
test esi, esi
jg 0x40aae8
mov edx, dword [ebp - 0xc]
mov eax, 0x40abb8
call fcn.004048ac
mov esi, eax
mov edx, dword [ebp - 0xc]
mov eax, 0x40abcc
call fcn.004048ac
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
call fcn.004045cc
test eax, eax
jle 0x40ab0d
test esi, esi
jle 0x40ab0d
cmp esi, dword [ebp - 0x10]
jl 0x40ab11
xor ebx, ebx
jmp 0x40ab13
mov bl, 1
test bl, bl
je 0x40ab2a
lea eax, [edi + 0x50]
push eax
mov ecx, dword [ebp - 0x10]
sub ecx, esi
mov edx, esi
mov eax, dword [ebp - 0xc]
call fcn.00404824
test bl, bl
jne 0x40ab44
mov ecx, 0x40abe0
mov dl, 1
mov eax, dword [0x4069e0]
call fcn.00406f20
call fcn.00403cf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ab71
lea eax, [ebp - 0x1020]
mov edx, 3
call fcn.00404338
lea eax, [ebp - 0xc]
call fcn.00404314
ret

Function at 0x40b118
Capabilities:
Read file on windows

Disassembly:
push ebx
push ecx
mov ebx, eax
push 2
push 0
push 0xffffffffffffffe0
mov eax, dword [ebx + 0x28]
push eax
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [esp + 4]
push eax
push 0x20
lea eax, [ebx + 8]
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.kernel32.dll_ReadFile_1
cmp dword [esp], 0x20
je 0x40b14c
xor eax, eax
pop edx
pop ebx
ret
mov al, 1
pop edx
pop ebx
ret
Function at 0x40b154
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push ecx
mov esi, ecx
mov ebx, eax
push 0
push 0
imul eax, edx, 0x32
add eax, dword [ebx + 0x18]
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [esp + 4]
push eax
push 0x32
push esi
mov eax, dword [ebx + 0x28]
push eax
call sub.kernel32.dll_ReadFile_1
cmp dword [esp], 0x32
je 0x40b18c
xor eax, eax
jmp 0x40b18e
mov al, 1
pop edx
pop esi
pop ebx
ret