joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57c06b
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5fa1a8
push eax
mov al, byte [0x1c64688]
mov dword fs:[0], esp
sub esp, 0x14
test al, 1
push ebp
push esi
push edi
mov esi, ecx
jne 0x57befe
mov dl, al
push 0x57c130
or dl, 1
mov byte [0x1c64688], dl
call fcn.004ae599
add esp, 4
mov al, byte [0x1c64688]
test al, 2
jne 0x57bf1f
mov dl, al
push 0x57c120
or dl, 2
mov byte [0x1c64688], dl
call fcn.004ae599
add esp, 4
mov eax, dword [0x1c08e58]
mov dword [esp + 0xc], eax
mov ecx, dword [0x1c64678]
mov eax, dword [0x1c64680]
test ecx, ecx
mov dword [esp + 0x28], 0
jne 0x57bfb9
test eax, eax
jne 0x57bfb9
mov edx, dword [0x1c6467c]
test edx, edx
jne 0x57bfb9
mov edx, dword [0x1c64684]
test edx, edx
jne 0x57bfb9
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, esi
call fcn.005c96a4
mov edx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_GetWindowRect]
push 0x1c64678
push edx
mov edi, eax
call ebp
mov ecx, dword [edi + 0x1c]
lea eax, [esp + 0x10]
push eax
push ecx
call ebp
mov edx, dword [0x1c6467c]
mov ecx, dword [0x1c64678]
mov eax, dword [0x1c64680]
mov dword [0x1c6466c], edx
mov edx, dword [0x1c64684]
mov dword [0x1c64668], ecx
mov dword [0x1c64674], edx
mov edx, dword [esp + 0x14]
mov dword [0x1c64670], eax
mov dword [0x1c64674], edx
mov edx, dword [esp + 0x34]
push 6
test edx, edx
je 0x57c04b
mov edx, dword [0x1c64684]
mov ebp, dword [0x1c6467c]
sub edx, ebp
sub eax, ecx
push edx
push eax
push 0
push 0
push 0x1c638e0
mov ecx, esi
call fcn.005c9985
push 0xa240
lea ecx, [esp + 0x10]
call fcn.005cb2e7
lea eax, [esp + 0xc]
lea ecx, [esp + 0x34]
push eax
push 0x1c0deb0
push ecx
call fcn.005c4af8
push 0x1c0deac
lea edx, [esp + 0x34]
push eax
push edx
mov byte [esp + 0x34], 1
call fcn.005c4a84
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.005c4928
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 1
call fcn.005c47ef
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x34]
jmp 0x57c0d4
mov eax, dword [0x1c64674]
mov edi, dword [0x1c6466c]
mov ecx, dword [0x1c64668]
sub eax, edi
push eax
mov eax, dword [0x1c64670]
sub eax, ecx
mov ecx, esi
push eax
push 0
push 0
push 0x1c638e0
call fcn.005c9985
push 0xa240
lea ecx, [esp + 0x10]
call fcn.005cb2e7
lea eax, [esp + 0xc]
lea ecx, [esp + 0x34]
push eax
push 0x1c0deb0
push ecx
call fcn.005c4af8
push 0x1c0dea8
lea edx, [esp + 0x34]
push eax
push edx
mov byte [esp + 0x34], 3
call fcn.005c4a84
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 4
call fcn.005c4928
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 3
call fcn.005c47ef
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x34]
call fcn.005c47ef
mov ecx, esi
call fcn.0055d4b0
mov eax, dword [esp + 0xc]
mov ecx, esi
push eax
push 3
call fcn.005c9763
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.005c47ef
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x5832e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5fa888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x2c]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
mov dword [esi], 0x1bb5ae4
mov dword [0x1c64690], ebx
call fcn.005cc864
mov eax, dword [edi + 0x1a4]
push ebx
mov dword [esi + 4], eax
mov edi, dword [edi + 0x1a0]
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov dword [esp + 0x30], 0
mov dword [esi + 8], edi
call fcn.00583420
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.005cc8d6
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8

Function at 0x583be0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x5fa948
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x14]
push edi
mov eax, dword [esi]
lea edx, [esp + 0x14]
xor ebx, ebx
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x20], ebx
call dword [eax + 0x14c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x34], ebx
call fcn.005c4564
mov eax, dword [esp + 0x10]
mov byte [esp + 0x30], 1
cmp byte [eax], 0x40
jne 0x583c6e
mov eax, dword [eax - 8]
lea ecx, [esp + 0x1c]
dec eax
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.005c0613
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call fcn.005c4928
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 1
call fcn.005c47ef
mov eax, dword [esp + 0x10]
mov al, byte [eax]
cmp al, 0x20
jle 0x583c78
mov byte [esp + 0x3c], al
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x130]
mov ebp, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x134]
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x24], eax
call dword [edx + 0x164]
test eax, eax
mov eax, dword [esi]
mov ecx, esi
setne byte [esp + 0x3c]
call dword [eax + 0x148]
mov edx, dword [esp + 0x38]
mov cl, byte [esp + 0x3c]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov byte [edx + 0x14], cl
or ecx, 0xffffffff
xor eax, eax
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ebx
mov byte [edx + 0x15], bl
mov byte [edx + 0x16], bl
mov byte [edx + 0x17], 1
mov byte [edx + 0x18], bl
mov byte [edx + 0x19], bl
mov byte [edx + 0x1a], bl
mov byte [edx + 0x1b], bl
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + 0x1c]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x3c], esi
mov esi, edi
mov edi, dword [esp + 0x3c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x24]
and ecx, 3
mov byte [esp + 0x30], bl
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
mov dword [edx], ebp
mov dword [edx + 4], ecx
lea ecx, [esp + 0x10]
mov dword [edx + 0x10], eax
call fcn.005c47ef
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.005c47ef
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x583d50
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x583db2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret

Function at 0x583dc0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x208
push esi
push edi
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x583e9d
lea ecx, [esp + 8]
push ecx
push str..htm
push closesocket
call fcn.00583d50
add esp, 0xc
test eax, eax
jne 0x583e9d
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 8]
push str._shellopencommand
push edx
call edi
lea eax, [esp + 8]
lea ecx, [esp + 8]
push eax
push ecx
push closesocket
call fcn.00583d50
add esp, 0xc
test eax, eax
jne 0x583e9d
lea edx, [esp + 8]
push 0x1c0b450
push edx
call fcn.004ae8d6
mov esi, eax
add esp, 8
test esi, esi
jne 0x583e78
lea eax, [esp + 8]
push 0x1c0b44c
push eax
call fcn.004ae850
mov esi, eax
add esp, 8
test esi, esi
jne 0x583e78
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 7]
jmp 0x583e7b
mov byte [esi], 0
push 0x1c0ad2c
push esi
call edi
mov edx, dword [esp + 0x214]
push edx
push esi
call edi
lea eax, [esp + 8]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
lea ecx, [esp + 0x214]
call fcn.005c47ef
mov eax, esi
pop edi
pop esi
add esp, 0x208
ret
Function at 0x58a3f0
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5fb07a
push eax
mov dword fs:[0], esp
mov eax, 0x1c65988
sub esp, 0x40
test eax, eax
je 0x58a41a
mov eax, dword [0x1c6598c]
test eax, eax
jne 0x58a485
lea ecx, [esp + 4]
push esi
push ecx
push 0x3c
push 0xc
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
lea edx, [esp + 8]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
mov ecx, 0x1c65988
call fcn.005ccb0c
push 8
call fcn.005c4530
mov esi, eax
add esp, 4
mov dword [esp + 4], esi
test esi, esi
mov dword [esp + 0x4c], 0
je 0x58a475
push 0x18
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov ecx, esi
call fcn.005ccbc9
jmp 0x58a477
xor eax, eax
mov dword [esp + 0x4c], 0xffffffff
mov dword [0x1c659a0], eax
pop esi
call fcn.0058a350
mov eax, dword [0x1c659a4]
test eax, eax
jne 0x58a4ae
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x58a4c0
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x1c659a4], eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
Function at 0x593670
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
lea eax, [esp]
push esi
push eax
push 1
push 0
push str.Control_PanelDesktop
push reloc.WS2_32.dll_accept
mov esi, 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5936e3
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.WheelScrollLines
push ecx
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5936d8
push 0xa
lea edx, [esp + 0x14]
push eax
push edx
call fcn.004b17c7
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x8c
ret
Function at 0x59e0c0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5fc37c
push eax
mov dword fs:[0], esp
sub esp, 0x414
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push esi
mov ebp, ecx
push edi
push 0
push 0
mov eax, dword [ebp + 0xb4]
push 0x184
push eax
call ebx
mov ecx, dword [ebp + 0x78]
push 0
push 0
push 0x188
push ecx
call ebx
test eax, eax
jl 0x59e25e
mov edx, dword [0x1c08e58]
mov dword [esp + 0x10], edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x42c], 0
push ecx
push eax
lea ecx, [ebp + 0x5c]
call fcn.005d4b13
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
je 0x59e24a
push str.MenuData.ini
lea eax, [esp + 0x18]
push 0x1c64310
push eax
call fcn.005c4a84
mov eax, dword [eax]
mov edx, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
push 0x400
push ecx
push 0x1ba0f70
push edx
push str.MenuData
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x14]
call fcn.005c47ef
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
push eax
call fcn.005c485d
mov ecx, dword [0x1c08e58]
mov dword [esp + 0x1c], ecx
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
mov byte [esp + 0x434], 2
call fcn.005c4564
call fcn.00544810
mov edi, eax
mov esi, 1
add esp, 4
cmp edi, esi
jle 0x59e228
push esi
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.005c4564
lea ecx, [esp + 0x1c]
push ecx
call fcn.00543ee0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x430], 3
call fcn.005c4928
lea ecx, [esp + 0x14]
mov byte [esp + 0x42c], 2
call fcn.005c47ef
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x59e228
mov edx, dword [ebp + 0xb4]
push eax
push 0
push 0x180
push edx
call ebx
inc esi
cmp esi, edi
jl 0x59e1c5
lea ecx, [esp + 0x1c]
mov byte [esp + 0x42c], 1
call fcn.005c47ef
lea ecx, [esp + 0x18]
mov byte [esp + 0x42c], 0
call fcn.005c47ef
lea ecx, [esp + 0x10]
mov dword [esp + 0x42c], 0xffffffff
call fcn.005c47ef
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x420
ret
Function at 0x5a5140
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x5fc898
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea edi, [esi + 0xc]
mov dword [esp + 0x24], 0
mov ecx, edi
call fcn.004e2f60
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esi + 4], eax
lea edx, [esp + 0x34]
lea eax, [esp + 0xc]
mov dword [esi + 8], ecx
push edx
push eax
mov ecx, edi
mov dword [esi], 0x1bb8730
call fcn.004e2f80
mov ecx, dword [esp + 0x40]
mov eax, esi
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0x18
Function at 0x5aaf70
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5fd070
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], ebx
call fcn.005c4f1c
mov eax, dword [esp + 0x30]
push ebx
push ebx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
call fcn.005c50ce
test eax, eax
jne 0x5aafde
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.005c5011
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.005c47ef
mov eax, 0x65
jmp 0x5ab08e
lea ecx, [esp + 0x10]
call fcn.005c53c8
mov edi, eax
cmp edi, ebx
jne 0x5ab012
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.005c5011
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.005c47ef
mov eax, 0x66
jmp 0x5ab08e
push edi
call fcn.005c4530
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x5ab046
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.005c5011
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.005c47ef
mov eax, 0x64
jmp 0x5ab08e
push edi
push esi
lea ecx, [esp + 0x18]
call fcn.005c51eb
lea ecx, [esp + 0x10]
call fcn.005c52e9
push edi
push esi
mov ecx, ebp
call fcn.005aad60
push esi
mov edi, eax
call fcn.005c4559
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.005c5011
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.005c47ef
mov eax, edi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x5c5c39
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x5c5c5b
cmp dword [edi + 0x3c], 0
jne 0x5c5c5b
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.005db0f6
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.005c5c88
pop edi
pop esi
pop ebx
ret 8

Function at 0x5c5cd6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.005db0f6
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5c5d07
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.005c5d1a
pop edi
pop esi
pop ebx
ret 8

Function at 0x5c7333
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5c736b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005c4c96
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005c4c6e
jmp 0x5c7377
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5c8ec8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5c8f0a
call fcn.005db0f6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5c8f0a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5c8f01
xor eax, eax
jmp 0x5c8f12
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005c8f18
pop edi
pop esi
pop ebx
ret 4

Function at 0x5d98ad
Capabilities:
Create http request

Disassembly:
mov eax, 0x5fe0d0
call fcn.004b0350
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x5d98e5
call fcn.005db0f6
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x5d990a
push eax
push dword [esi + 4]
call fcn.005da73c
jmp 0x5d9916
push esi
push eax
mov ecx, 0x1c65b50
call fcn.005d9927
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x5d9c23
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x5fdfe7
call fcn.004b0350
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.005cb871
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x1c08e58]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CInternetFile.0
call fcn.005c4978
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.005c4978
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x5db626
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5db654
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5db672
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005db58c
jmp 0x5db672
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5db672
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005db58c
test edi, edi
mov eax, edi
jne 0x5db65c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1016a12b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [ebp + 8]
mov dword [0x1017699c], 0x1a13
mov dword [ebp - 0x10], eax
call fcn.1016b5f0
xor ecx, ecx
mov edx, eax
mov dword [0x101769a0], 0x49f
mov esi, dword [eax + 0x3c]
mov dword [0x1017699c], 0x82d
mov dword [0x101769a0], 0x16e0
mov esi, dword [eax + esi + 0x78]
mov dword [0x101769a0], 0x111
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov ebx, dword [eax + esi + 0x24]
mov dword [0x1017699c], 0x16d4
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ecx
je 0x1016a2e1
jmp 0x1016a1e8
mov eax, dword [ebp - 0x2c]
add eax, 1
mov cl, byte [ebp - 0x2d]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x2e]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x35], ch
mov al, byte [ebp - 0x35]
test al, 1
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x3c], ecx
jne 0x1016a230
jmp 0x1016a25d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
add eax, ecx
mov dword [ebp - 0x40], eax
mov eax, 0x111
xor ecx, ecx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
xor esi, esi
mov edi, dword [ebp - 0x24]
mov ebx, dword [edi + eax*4]
mov dword [0x1017699c], 0x1a74
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x3c], esi
mov eax, dword [ebp - 0x3c]
mov ecx, eax
mov edx, dword [ebp - 0x5c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x2d], bh
mov byte [ebp - 0x2e], cl
jne 0x1016a1b3
mov al, byte [ebp - 0x2e]
test al, 1
jne 0x1016a2b2
jmp 0x1016a266
mov eax, dword [ebp - 0x58]
add eax, 0xd90
mov dword [0x101769a0], eax
mov ecx, dword [ebp - 0x54]
add ecx, 2
mov edx, dword [ebp - 0x50]
add edx, 1
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x68], edx
xor eax, eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x18]
cmp ecx, edx
mov esi, dword [ebp - 0x60]
mov edi, dword [ebp - 0x64]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x28], eax
jb 0x1016a206
jmp 0x1016a2e1
mov eax, dword [ebp - 0x54]
movzx ecx, word [eax]
mov dword [0x1017699c], 0x1417
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x101769a0], 0x8de
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1016a2ec
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [0x1017699c], 0x1db4
mov dword [ebp - 4], 0
mov dword [0x101769a0], 0x2280
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [0x1017699c], 0x11ce
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x101769a0], 0x392
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1016a383
mov dword [0x1017699c], 0xfffffe28
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x1016a423
jmp 0x1016a450
mov dword [0x101769a0], 0xfffff477
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
jge 0x1016a399
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
jne 0x1016a362
mov eax, dword [ebp - 0x1c]
mov dword [0x1017699c], 0x20f2
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
jne 0x1016a450
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2], 0x6f
jne 0x1016a450
mov dword [0x1017699c], 0xaf3
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x1016a450
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov dx, word [eax + ecx*2 - 0x14]
mov word [ebp - 0x22], dx
mov ax, word [ebp - 0x22]
cmp ax, 0x64
jne 0x1016a450
mov dword [0x1017699c], 0xd8b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x1016a340
jmp 0x1016a450
mov dword [0x1017699c], 0x3a2
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0xe], 0x6c
jne 0x1016a450
mov dword [0x101769a0], 0x231c
mov eax, 1
mov dword [ebp - 0x28], eax
jmp 0x1016a45f
xor eax, eax
mov dword [0x1017699c], 0x1507
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
add esp, 0x28
pop ebp
ret