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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6082f8
push eax
mov al, byte [0x1b9d240]
mov dword fs:[0], esp
sub esp, 0x14
test al, 1
push ebp
push esi
push edi
mov esi, ecx
jne 0x5866fe
mov dl, al
push 0x586930
or dl, 1
mov byte [0x1b9d240], dl
call fcn.004b05f9
add esp, 4
mov al, byte [0x1b9d240]
test al, 2
jne 0x58671f
mov dl, al
push 0x586920
or dl, 2
mov byte [0x1b9d240], dl
call fcn.004b05f9
add esp, 4
mov eax, dword [0x1b40b40]
mov dword [esp + 0xc], eax
mov ecx, dword [0x1b9d230]
mov eax, dword [0x1b9d238]
test ecx, ecx
mov dword [esp + 0x28], 0
jne 0x5867b9
test eax, eax
jne 0x5867b9
mov edx, dword [0x1b9d234]
test edx, edx
jne 0x5867b9
mov edx, dword [0x1b9d23c]
test edx, edx
jne 0x5867b9
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, esi
call fcn.005d8309
mov edx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_GetWindowRect]
push 0x1b9d230
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 [0x1b9d234]
mov ecx, dword [0x1b9d230]
mov eax, dword [0x1b9d238]
mov dword [0x1b9d224], edx
mov edx, dword [0x1b9d23c]
mov dword [0x1b9d220], ecx
mov dword [0x1b9d22c], edx
mov edx, dword [esp + 0x14]
mov dword [0x1b9d228], eax
mov dword [0x1b9d22c], edx
mov edx, dword [esp + 0x34]
push 6
test edx, edx
je 0x58684b
mov edx, dword [0x1b9d23c]
mov ebp, dword [0x1b9d234]
sub edx, ebp
sub eax, ecx
push edx
push eax
push 0
push 0
push 0x1b9bbf8
mov ecx, esi
call fcn.005d85ea
push 0xa240
lea ecx, [esp + 0x10]
call fcn.005d9f49
lea eax, [esp + 0xc]
lea ecx, [esp + 0x34]
push eax
push 0x1b45e38
push ecx
call fcn.005d375a
push 0x1b45e34
lea edx, [esp + 0x34]
push eax
push edx
mov byte [esp + 0x34], 1
call fcn.005d36e6
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.005d358a
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 1
call fcn.005d3451
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x34]
jmp 0x5868d4
mov eax, dword [0x1b9d22c]
mov edi, dword [0x1b9d224]
mov ecx, dword [0x1b9d220]
sub eax, edi
push eax
mov eax, dword [0x1b9d228]
sub eax, ecx
mov ecx, esi
push eax
push 0
push 0
push 0x1b9bbf8
call fcn.005d85ea
push 0xa240
lea ecx, [esp + 0x10]
call fcn.005d9f49
lea eax, [esp + 0xc]
lea ecx, [esp + 0x34]
push eax
push 0x1b45e38
push ecx
call fcn.005d375a
push 0x1b45e30
lea edx, [esp + 0x34]
push eax
push edx
mov byte [esp + 0x34], 3
call fcn.005d36e6
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 4
call fcn.005d358a
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 3
call fcn.005d3451
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x34]
call fcn.005d3451
mov ecx, esi
call fcn.00586940
mov eax, dword [esp + 0xc]
mov ecx, esi
push eax
push 3
call fcn.005d83c8
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.005d3451
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x58db50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5fdf18
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], 0x1adadc0
mov dword [0x1b9d248], ebx
call fcn.005db4c6
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.0058dc80
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.005db538
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 0x58e440
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x606858
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.005d31c6
mov eax, dword [esp + 0x10]
mov byte [esp + 0x30], 1
cmp byte [eax], 0x40
jne 0x58e4ce
mov eax, dword [eax - 8]
lea ecx, [esp + 0x1c]
dec eax
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.005cf275
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call fcn.005d358a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 1
call fcn.005d3451
mov eax, dword [esp + 0x10]
mov al, byte [eax]
cmp al, 0x20
jle 0x58e4d8
mov byte [esp + 0x3c], al
mov edx, dword [esi]
mov ecx, esi
call dword [edx + pe_nt_image_headers32]
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.005d3451
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.005d3451
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 0x58e5b0
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 0x58e612
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 0x58e620
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 0x58e6fd
lea ecx, [esp + 8]
push ecx
push str..htm
push closesocket
call fcn.0058e5b0
add esp, 0xc
test eax, eax
jne 0x58e6fd
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.0058e5b0
add esp, 0xc
test eax, eax
jne 0x58e6fd
lea edx, [esp + 8]
push str.__1_
push edx
call fcn.004b0a00
mov esi, eax
add esp, 8
test esi, esi
jne 0x58e6d8
lea eax, [esp + 8]
push 0x1b433d4
push eax
call fcn.004b0850
mov esi, eax
add esp, 8
test esi, esi
jne 0x58e6d8
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 7]
jmp 0x58e6db
mov byte [esi], 0
push 0x1b42cb4
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.005d3451
mov eax, esi
pop edi
pop esi
add esp, 0x208
ret
Function at 0x594ce0
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x606d1a
push eax
mov dword fs:[0], esp
mov eax, 0x1b9e540
sub esp, 0x40
test eax, eax
je 0x594d0a
mov eax, dword [0x1b9e544]
test eax, eax
jne 0x594d75
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, 0x1b9e540
call fcn.005db76e
push 8
call fcn.005d3192
mov esi, eax
add esp, 4
mov dword [esp + 4], esi
test esi, esi
mov dword [esp + 0x4c], 0
je 0x594d65
push 0x18
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov ecx, esi
call fcn.005db82b
jmp 0x594d67
xor eax, eax
mov dword [esp + 0x4c], 0xffffffff
mov dword [0x1b9e558], eax
pop esi
call fcn.00594c40
mov eax, dword [0x1b9e55c]
test eax, eax
jne 0x594d9e
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x594db0
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x1b9e55c], eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
Function at 0x59df00
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 0x59df73
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 0x59df68
push 0xa
lea edx, [esp + 0x14]
push eax
push edx
call fcn.004b5708
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 0x5a88f0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x607cbc
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 0x5a8a8e
mov edx, dword [0x1b40b40]
mov dword [esp + 0x10], edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x42c], 0
push ecx
push eax
lea ecx, [ebp + 0x5c]
call fcn.005e3775
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
je 0x5a8a7a
push str.MenuData.ini
lea eax, [esp + 0x18]
push 0x1b9cec4
push eax
call fcn.005d36e6
mov eax, dword [eax]
mov edx, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
push 0x400
push ecx
push 0x1adc840
push edx
push str.MenuData
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x14]
call fcn.005d3451
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
push eax
call fcn.005d34bf
mov ecx, dword [0x1b40b40]
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.005d31c6
call fcn.0054f3b0
mov edi, eax
mov esi, 1
add esp, 4
cmp edi, esi
jle 0x5a8a58
push esi
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.005d31c6
lea ecx, [esp + 0x1c]
push ecx
call fcn.0054ea80
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x430], 3
call fcn.005d358a
lea ecx, [esp + 0x14]
mov byte [esp + 0x42c], 2
call fcn.005d3451
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x5a8a58
mov edx, dword [ebp + 0xb4]
push eax
push 0
push 0x180
push edx
call ebx
inc esi
cmp esi, edi
jl 0x5a89f5
lea ecx, [esp + 0x1c]
mov byte [esp + 0x42c], 1
call fcn.005d3451
lea ecx, [esp + 0x18]
mov byte [esp + 0x42c], 0
call fcn.005d3451
lea ecx, [esp + 0x10]
mov dword [esp + 0x42c], 0xffffffff
call fcn.005d3451
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x420
ret
Function at 0x5af930
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x6080f8
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.004edf20
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], 0x1af5588
call fcn.004edf40
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 0x5b5720
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x608650
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.005d3b7e
mov eax, dword [esp + 0x30]
push ebx
push ebx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
call fcn.005d3d30
test eax, eax
jne 0x5b578e
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.005d3c73
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.005d3451
mov eax, 0x65
jmp 0x5b583e
lea ecx, [esp + 0x10]
call fcn.005d402a
mov edi, eax
cmp edi, ebx
jne 0x5b57c2
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.005d3c73
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.005d3451
mov eax, 0x66
jmp 0x5b583e
push edi
call fcn.005d3192
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x5b57f6
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.005d3c73
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.005d3451
mov eax, 0x64
jmp 0x5b583e
push edi
push esi
lea ecx, [esp + 0x18]
call fcn.005d3e4d
lea ecx, [esp + 0x10]
call fcn.005d3f4b
push edi
push esi
mov ecx, ebp
call fcn.005b5510
push esi
mov edi, eax
call fcn.005d31bb
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.005d3c73
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.005d3451
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 0x5c33a3
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x609410
call fcn.004c3fcc
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x5c349a
cmp byte [esi + 0x4a], bl
je 0x5c349a
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x5c33df
xor al, al
jmp 0x5c349c
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.005c3169
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x5c343d
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x5c3442
dec eax
je 0x5c3446
dec eax
dec eax
je 0x5c3496
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.005c26d9
mov al, bl
jmp 0x5c349c
mov edx, dword [ebp - 0x2c]
jmp 0x5c3408
mov byte [esi + 0x4a], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x5c3452
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x5c3478
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x5c3465
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.004b19aa
add esp, 0x10
cmp edi, eax
jne 0x5c342b
cmp byte [esi + 0x4a], 0
je 0x5c3496
test edi, edi
jne 0x5c33fa
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.005c30bb
jmp 0x5c33fa
mov bl, 1
jmp 0x5c342d
mov al, 1
call fcn.004c4016
ret

Function at 0x5d489b
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 0x5d48bd
cmp dword [edi + 0x3c], 0
jne 0x5d48bd
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.005e9d58
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.005d48ea
pop edi
pop esi
pop ebx
ret 8

Function at 0x5d4938
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.005e9d58
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 0x5d4969
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.005d497c
pop edi
pop esi
pop ebx
ret 8
Function at 0x5d5f92
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5d5fca
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.005d38f8
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005d38d0
jmp 0x5d5fd6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5d7b2a
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 0x5d7b6c
call fcn.005e9d58
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5d7b6c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5d7b63
xor eax, eax
jmp 0x5d7b74
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005d7b7a
pop edi
pop esi
pop ebx
ret 4

Function at 0x5da6ba
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x5da6c3
xor eax, eax
jmp 0x5da71d
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.004b1766
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x5da6f9
mov eax, dword [esi + 0x10]
test byte [eax + 0xc], 0x10
jne 0x5da6f9
push dword [esi + 0xc]
call fcn.004b11d9
push dword [eax]
push 1
call fcn.005d9917
mov eax, dword [esi + 0x10]
test byte [eax + 0xc], 0x20
je 0x5da71a
push eax
call fcn.005cdb48
pop ecx
push dword [esi + 0xc]
call fcn.004b11d9
push dword [eax]
push 1
call fcn.005d9917
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x5e850f
Capabilities:
Create http request

Disassembly:
mov eax, 0x609d48
call fcn.004b2994
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 0x5e8547
call fcn.005e9d58
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 0x5e856c
push eax
push dword [esi + 4]
call fcn.005e939e
jmp 0x5e8578
push esi
push eax
mov ecx, 0x1b9e8b0
call fcn.005e8589
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x5e8885
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x60951b
call fcn.004b2994
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.005da4d3
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x1b40b40]
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.005d35da
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.005d35da
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 0x5ea287
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 0x5ea2b5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5ea2d3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005ea1ed
jmp 0x5ea2d3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5ea2d3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005ea1ed
test edi, edi
mov eax, edi
jne 0x5ea2bd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x406dcc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004097b8
test esi, esi
jne 0x406e02
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00409940
jmp 0x406e20
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406d10
mov edi, eax
test esi, esi
je 0x406e20
cmp dword [ebx], 0
je 0x406e20
dec esi
jmp 0x406e09
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4083fc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.0040885c
mov byte [esp], al
cmp byte [esp], 0
jne 0x408586
test edi, edi
je 0x408586
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4084c6
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4084a1
cmp edi, 0xffffffff
je 0x408461
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408461
mov byte [esp], 0
jmp 0x408586
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4084a1
test ebx, ebx
jne 0x408493
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408493
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408586
lea eax, [esp + 0xc]
call fcn.004080dc
dec ebp
test ebp, ebp
jg 0x408446
cmp edi, 0xffffffff
je 0x4084c6
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4084c4
mov byte [esp], 0
jmp 0x408586
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40840a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4084c6
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004085f4
mov edx, eax
mov ebx, dword [0x5de8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40852a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408528
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40852a
xor edi, edi
cmp byte [esp], 0
je 0x408550
mov ebx, dword [esi]
test bl, 1
jne 0x408566
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408530
mov byte [esp + 1], 1
jmp 0x408566
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408550
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4084dd
cmp byte [esp], 0
je 0x408586
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret