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

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push 0
push ecx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esi]
push edx
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40e6eb
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
pop esi
mov al, 1
mov dword [ecx], edx
pop ebx
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
mov al, bl
pop esi
pop ebx
ret 0x10

Function at 0x40e730
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push 0
push ecx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esi]
push edx
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e76b
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
pop esi
mov al, 1
mov dword [ecx], edx
pop ebx
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
mov al, bl
pop esi
pop ebx
ret 0x10

Function at 0x40e900
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push edi
push eax
mov ecx, dword [esi]
xor bl, bl
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40e943
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x40e93f
call edi
mov dword [esi + 4], eax
pop edi
mov al, bl
pop esi
pop ebx
add esp, 8
ret 8
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
pop edi
pop esi
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
pop ebx
add esp, 8
ret 8

Function at 0x40eba0
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
xor edx, edx
mov dword [esp + 8], eax
mov dword [ecx + 4], edx
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [esp + 4], ecx
jmp fcn.0040e900
Function at 0x411b70
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
push 0x14
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov esi, eax
test esi, esi
je 0x411c32
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
mov dword [esi], 1
mov dword [esi + 4], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
mov eax, dword [edi]
push edi
call dword [eax + 4]
lea ecx, [esp + 0xc]
mov dword [esi + 8], edi
push ecx
push 4
push esi
push 0x411c40
push 0
push 0
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x411bfc
cmp dword [esi], 0
jne 0x411bde
int3
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
test eax, eax
jne 0x411bea
int3
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x411c1e
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x411c0e
call edi
mov edi, eax
jmp 0x411c1e
call edi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
cmp dword [esi], 0
jne 0x411c24
int3
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, edi
pop edi
pop esi
ret 0x10
mov eax, 0x8007000e
pop esi
ret 0x10

Function at 0x413cb0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x24
call fcn.0041db00
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x413d6e
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x413d68
push ebx
push ebx
push 1
push ebx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x413d5f
mov edi, dword [esp + 0x14]
lea eax, [esi + 0x18]
push eax
push 4
mov ecx, dword [edi + 0x48]
push esi
push 0x413d80
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x413d56
push esi
call fcn.0040ec40
mov dword [esi + 0x20], ebx
lea ebx, [edi + 0x30]
push ebx
mov dword [esi + 8], edi
mov dword [esi + 0x1c], 2
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add edi, 0xc
push esi
push edi
call fcn.0040ec60
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 4
mov eax, dword [esi + 0x10]
mov dword [esi + 0x10], ebx
push eax
call ebp
mov eax, dword [esi + 0xc]
mov dword [esi + 0xc], ebx
push eax
call ebp
push esi
call fcn.0041dfb0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 4
Function at 0x4147b0
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4147d8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
mov edi, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
je 0x41488c
call esi
cmp eax, 3
jne 0x41488c
push 0x5c
push edi
call fcn.00426c96
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x41488c
mov esi, ebp
sub esi, edi
lea ecx, [esi + 1]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x41488c
mov ecx, esi
mov esi, edi
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
sub eax, edi
mov byte [eax + ebp], 0
call fcn.004147b0
test eax, eax
jne 0x41485f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41485f
mov esi, 1
jmp 0x414861
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
jne 0x41488c
mov ecx, dword [esp + 0x18]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4147d4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8

Function at 0x414900
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 5
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], 7
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41493f
or eax, ebx
mov ebx, eax
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor edi, edi
mov ecx, dword [esp + edi*4 + 0x10]
mov edx, dword [esp + 0x24]
push 0
push ebx
push 2
push 0
push ecx
push 0xc0000000
push edx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x414975
test esi, esi
jne 0x41497e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41497e
or esi, 0xffffffff
inc edi
cmp edi, 4
jb 0x414947
mov eax, dword [esp + 0x2c]
pop edi
mov dword [eax], esi
xor eax, eax
cmp esi, 0xffffffff
pop esi
pop ebp
pop ebx
setne al
add esp, 0x10
ret 0xc
Function at 0x414a10
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x214
push ebx
push ebp
push esi
mov esi, dword [esp + 0x224]
push edi
push 0x5c
push esi
call fcn.004262e0
add esp, 8
test eax, eax
je 0x414a31
int3
lea eax, [esp + 0x1c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x414bd3
cmp eax, 0x104
jae 0x414bd3
test esi, esi
mov dword [esp + 0x18], 0xffffffff
je 0x414bc9
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
je 0x414a83
mov al, byte [esp + edx + 0x1b]
mov byte [esp + 0x10], 1
cmp al, 0x5c
jne 0x414a88
mov byte [esp + 0x10], 0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
jb 0x414a9e
mov ecx, 4
mov eax, dword [esp + 0x10]
and eax, 0xff
add eax, ecx
lea ecx, [eax + edx + 8]
cmp ecx, 0x104
jae 0x414bbf
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, dword [esp + 0x22c]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov edx, dword [esp + 0x14]
mov al, byte [esp + 0x10]
inc edx
inc edi
test al, al
mov eax, dword [0x431b40]
mov dword [esp + 0x14], edx
jne 0x414af2
mov eax, dword [0x431b50]
mov edx, edi
mov ecx, dword [str._s_s_.4s_04X.tmp]
and edx, 0xffff
push edx
push esi
push eax
lea eax, [esp + 0x28]
push eax
push ecx
lea edx, [esp + 0x134]
push 0x104
push edx
call fcn.00409970
add esp, 0x1c
lea eax, [esp + 0x120]
push 0
push 0x4000102
push 1
push 0
push ebp
push 0xc0000000
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x414b4f
test esi, esi
jne 0x414b8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x414b8c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x50
je 0x414b78
cmp eax, 5
jne 0x414b9a
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x414b78
call esi
cmp eax, 5
jne 0x414bb5
cmp word [esp + 0x14], 0
je 0x414b9a
mov esi, dword [esp + 0x228]
jmp 0x414ad6
and edi, 0xffff
mov dword [esp + 0x18], esi
test edi, edi
jne 0x414ba4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x414bd3
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 8
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x414b9a
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x414b9a
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x414b9a
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x214
ret 8

Function at 0x414d80
Capabilities:
Read .ini file

Disassembly:
mov ecx, dword [esp + 0x10]
mov eax, dword [0x431b50]
sub esp, 0x10
lea edx, [esp]
push esi
push ecx
mov ecx, dword [esp + 0x1c]
push 0x10
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
mov esi, dword [esp + 0x20]
je 0x414dcd
lea edx, [esp + 0x24]
lea eax, [esp + 4]
push edx
push 0xa
push 0
push eax
mov dword [esp + 0x34], esi
call fcn.0040cd50
test al, al
mov eax, dword [esp + 0x24]
jne 0x414dcf
mov eax, esi
pop esi
add esp, 0x10
ret 0x10
Function at 0x414de0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
test ebx, ebx
push edi
je 0x414f8c
mov edx, dword [esp + 0x18]
test edx, edx
je 0x414f8c
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x414f8c
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
je 0x414e25
mov al, byte [esi + ebx - 1]
mov byte [esp + 0x14], 1
cmp al, 0x5c
jne 0x414e2a
mov byte [esp + 0x14], 0
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
jb 0x414e40
mov ecx, 4
mov eax, dword [esp + 0x14]
and eax, 0xff
add eax, ecx
mov ecx, dword [esp + 0x24]
lea eax, [eax + esi + 8]
cmp eax, ecx
jae 0x414f7b
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x414e9b
mov al, byte [esp + 0x14]
test al, al
mov eax, dword [0x431b40]
jne 0x414e75
mov eax, dword [0x431b50]
mov edi, esi
and edi, 0xffff
push edi
push edx
mov edx, dword [str._s_s_.4s_04X.tmp]
push eax
push ebx
push edx
push ecx
push ebp
call fcn.00409970
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov edx, dword [esp + 0x20]
mov al, byte [esp + 0x14]
inc edx
inc edi
test al, al
mov eax, dword [0x431b40]
mov dword [esp + 0x20], edx
jne 0x414ec7
mov eax, dword [0x431b50]
mov edx, dword [esp + 0x18]
mov ecx, edi
and ecx, 0xffff
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
mov eax, dword [str._s_s_.4s_04X.tmp]
push ebx
push eax
push ecx
push ebp
call fcn.00409970
add esp, 0x1c
push 0
push 0x102
push 1
push 0
push 0
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x414f1a
test esi, esi
jne 0x414f54
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x414f54
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x50
je 0x414f3f
cmp eax, 5
jne 0x414f94
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x414f3f
call esi
cmp eax, 5
jne 0x414f6a
cmp word [esp + 0x20], 0
jne 0x414eab
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and edi, 0xffff
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x14
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x14
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x14

Function at 0x414fa0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x414fc2
cmp eax, esi
jae 0x414fc2
mov eax, 1
pop esi
ret 8
xor eax, eax
pop esi
ret 8
Function at 0x414fd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
lea eax, [esp + 4]
push ebx
push ebp
push esi
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, eax
test esi, esi
jbe 0x41506e
mov al, byte [esp + esi + 0xf]
mov ebp, dword [esp + 0x11c]
cmp al, 0x5c
push edi
setne bl
mov byte [esp + 0x10], bl
mov edi, ebp
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
and edx, 0xff
repne scasb al, byte es:[edi]
mov eax, 0x105
pop edi
not ecx
sub eax, edx
dec ecx
sub eax, esi
cmp ecx, eax
jae 0x41506e
test bl, bl
je 0x415031
mov byte [esp + esi + 0x10], 0x5c
sub edx, ebp
mov eax, ebp
add edx, esi
lea edx, [esp + edx + 0x10]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41503b
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ecx, ecx
pop esi
mov edx, dword [esp + 0x11c]
pop ebp
test eax, eax
setne cl
mov dword [edx], eax
mov eax, ecx
pop ebx
add esp, 0x10c
ret 8
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret 8

Function at 0x415100
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
sub esp, 0x158
push esi
push edi
mov esi, dword [esp + 0x164]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], 0x44
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x60]
xor edi, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x415146
pop edi
pop esi
add esp, 0x158
ret 4
cmp esi, edi
jne 0x41514e
lea esi, [esp + 8]
lea ecx, [esp + 0x18]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea edx, [esp + 0x1c]
push esi
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea ecx, [esp + 0xc]
mov ebx, eax
cmp esi, ecx
jne 0x4151a1
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov dword [esp + 0x14], edi
call esi
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], edi
push eax
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
add esp, 0x158
ret 4

Function at 0x4151b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push eax
push ecx
push ebx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x41520a
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41520a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x415203
mov edx, dword [esp + 0x24]
push esi
push ebx
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, 1
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret 0x14
Function at 0x415220
Capabilities:
Clear file content

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
push edi
lea edx, [esp + 8]
xor ecx, ecx
push 1
xor eax, eax
push edx
push ecx
push eax
push esi
xor edi, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call fcn.004152d0
test eax, eax
je 0x4152b7
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
push edi
push ecx
push edx
push esi
call fcn.004152d0
test eax, eax
je 0x4152b7
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x415292
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push edi
push edi
push eax
push ecx
push esi
call fcn.004152d0
test eax, eax
je 0x4152b7
pop edi
mov eax, 1
pop esi
add esp, 8
ret 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x10]
mov ebx, eax
mov eax, dword [esp + 0xc]
push 0
push 0
push edx
push eax
push esi
call fcn.004152d0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
mov eax, edi
pop edi
pop esi
add esp, 8
ret 0x10

Function at 0x415490
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call edi
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x415554
cmp dword [esi], 0x40
jne 0x415554
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], 0x20
rep stosd dword es:[edi], eax
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.GlobalMemoryStatusEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4154f2
push esi
call eax
pop edi
pop esi
pop ebx
add esp, 0x20
ret 4
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x20]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret 4
push 0x57
call edi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret 4
Function at 0x415c50
Capabilities:
Check http status code

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x1c]
xor ebx, ebx
push esi
mov dword [esp + 0xc], ebx
call fcn.004158e0
cmp eax, 7
je 0x415d10
cmp eax, 0xd
jne 0x415d7d
lea eax, [esp + 0x1c]
push edi
push eax
push 0x13
push esi
mov dword [esp + 0x2c], ebx
call fcn.00415930
test eax, eax
mov edi, dword [esp + 0x1c]
je 0x415ced
cmp dword [esp + 0x20], 0x190
jae 0x415ced
lea ecx, [esp + 0xc]
push ecx
push 5
push esi
call fcn.00415930
test eax, eax
je 0x415cca
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
mov bl, 1
mov dword [edi + 0x20], edx
pop edi
mov dword [eax], ecx
mov al, bl
pop esi
pop ebx
add esp, 0xc
ret 0xc
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x1c], 0xa0000004
mov dword [edi + 0x20], edx
pop edi
mov dword [eax], ecx
mov al, bl
pop esi
pop ebx
add esp, 0xc
ret 0xc
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x1c], 0xa0000003
mov dword [edi + 0x20], edx
pop edi
mov dword [eax], ecx
mov al, bl
pop esi
pop ebx
add esp, 0xc
ret 0xc
lea eax, [esp + 0x10]
push eax
push esi
call dword [0x43a080]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x415d52
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x415d4e
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
pop esi
mov dword [ecx + 0x1c], 0xa0000004
mov ecx, dword [esp + 4]
mov dword [eax], ecx
mov al, bl
pop ebx
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x10], ebx
jne 0x415d72
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 8]
mov bl, 1
mov dword [eax], ecx
mov al, bl
pop esi
pop ebx
add esp, 0xc
ret 0xc
mov edx, dword [esp + 0x18]
mov dword [edx + 0x1c], 0xa0000005
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 8]
pop esi
mov dword [eax], ecx
mov al, bl
pop ebx
add esp, 0xc
ret 0xc
Function at 0x415da0
Capabilities:
Download and write a file
Query remote server for available data
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x10]
push ebx
push eax
push edi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
mov esi, dword [esp + 0x14]
je 0x415eb5
mov eax, dword [esp + 0xc]
test eax, eax
je 0x415ebc
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x18], eax
cmp eax, ecx
jbe 0x415de5
mov eax, ecx
mov dword [esp + 0x18], eax
mov edx, dword [esi + 0x10]
lea ecx, [esp + 0x18]
push ecx
push eax
push edx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x415e86
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x10]
mov edx, dword [esp + 0x20]
push eax
push ecx
add eax, ebx
push edx
push eax
push 5
push edi
push esi
call fcn.00415c10
test al, al
je 0x415e7d
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x415e66
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
cmp eax, 0xffffffff
je 0x415e58
lea edx, [esp + 0x14]
push 0
push edx
push ecx
mov ecx, dword [esi + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415e74
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
cmp ecx, eax
jne 0x415e74
mov eax, dword [esp + 0xc]
add ebx, ecx
sub eax, ecx
mov dword [esp + 0xc], eax
jmp 0x415e6a
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x415dd4
jmp 0x415e95
mov dword [esi + 0x1c], 0xa0000008
jmp 0x415e8d
mov dword [esi + 0x1c], 0xa0000001
jmp 0x415e8d
mov dword [esi + 0x1c], 0xa0000007
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x415ebc
push 0
lea edx, [esp + 0x10]
push 0
push edx
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x415dc8
mov dword [esi + 0x1c], 0xa0000007
mov eax, dword [esp + 0x20]
cmp ebx, eax
jne 0x415efa
push 0
push 0
push eax
push ebx
push 6
push edi
push esi
call fcn.00415c10
test al, al
je 0x415eea
mov dword [esi + 0x1c], 0x20000000
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0x10
mov dword [esi + 0x1c], 0xa0000001
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0x10
cmp dword [esi + 0x1c], 0xa0ffffff
jne 0x415f0a
mov dword [esi + 0x1c], 0xa0000009
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0x10

Function at 0x416790
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push edi
mov edx, dword [esp + 0x4c]
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 8]
mov dword [esp + 4], 0x3c
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x58]
lea eax, [esp + 4]
push eax
mov dword [esp + 0xc], 0x100
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
add esp, 0x3c
ret 0x18