joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41749c
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x595814
call fcn.00423b2c
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x1c]
call fcn.00573965
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 4], ebx
jne 0x4174b8
xor eax, eax
jmp 0x4174bb
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00573a1c
lea eax, [esi + 0x44]
cmp eax, ebx
jne 0x4174d6
xor eax, eax
jmp 0x4174d9
mov eax, dword [eax + 4]
push eax
push dword [ebp - 0x18]
call fcn.00573b5d
mov dword [ebp + 8], eax
mov ecx, dword [esi + 0x80]
lea eax, [ebp - 0x1c]
mov edx, dword [esi + 0x7c]
neg eax
sbb eax, eax
push 0xcc0020
and eax, dword [ebp - 0x18]
push ebx
push ebx
push eax
push ecx
push edx
push ebx
push ebx
push dword [edi + 4]
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x417517
mov ebx, dword [eax + 4]
push ebx
push dword [ebp - 0x18]
call fcn.00573b5d
mov eax, dword [edi]
lea ecx, [esi + 0x4c]
push ecx
mov ecx, edi
call dword [eax + 0x28]
push 1
mov ecx, edi
mov ebx, eax
call fcn.00573c25
mov eax, dword [edi]
push dword [esi + 0x78]
mov ecx, edi
call dword [eax + 0x30]
mov eax, dword [esi + 0x60]
push dword [esi + 0x74]
mov edx, dword [edi]
add esi, 0x64
push esi
push 0xffffffffffffffff
push eax
mov ecx, edi
call dword [edx + 0x68]
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x28]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00573a9a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x417663
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
cmp dword [0x602944], 0
je 0x4176e6
and byte [ebp - 0x400], 0
mov edx, 0xff
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x3ff]
rep stosd dword es:[edi], eax
and byte [ebp - 0x800], 0
mov ecx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x7ff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x400]
push dword [ebp + 8]
push eax
call fcn.004247a8
add esp, 0xc
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x800]
push 0x5f1fa0
push eax
call fcn.0042460f
add esp, 0xc
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
leave
ret
Function at 0x417d80
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x5959b7
call fcn.00423b2c
mov eax, 0x1010
call fcn.004245e0
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
mov eax, dword [0x5f2228]
push 1
pop ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
push 0x5f1fd4
push 0x5f1fcc
push dword [0x60293c]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push 0x5f15bc
push eax
call fcn.00568f1c
mov eax, dword [0x5f2228]
add esp, 0x14
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], eax
and byte [ebp - 0x101c], 0
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x101b]
rep stosd dword es:[edi], eax
push dword [ebp + 0xc]
cmp word [ebp + 0x10], 0x804
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
push 0x5f0f24
mov byte [ebp - 4], 4
push eax
jne 0x417e59
call fcn.00568f1c
add esp, 0xc
lea eax, [ebp - 0x101c]
mov esi, 0x6021f0
push dword [ebp - 0x14]
push 0xfff
push eax
push esi
push dword [ebp - 0x10]
push 0x5f1fc8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x101c]
push esi
push eax
call fcn.00424fe0
pop ecx
test eax, eax
pop ecx
jne 0x417ea5
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
call fcn.0056bc92
mov dword [ebp - 0x18], ebx
jmp 0x417eb7
call fcn.00568f1c
add esp, 0xc
lea eax, [ebp - 0x101c]
mov esi, 0x6021f0
push dword [ebp - 0x14]
push 0xfff
push eax
push esi
push dword [ebp - 0x10]
push 0x5f1fc4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x101c]
push esi
push eax
call fcn.00424fe0
pop ecx
test eax, eax
pop ecx
jne 0x417ea5
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
call fcn.0056bc92
jmp 0x417eb4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x101c]
push eax
call fcn.0056bf8b
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0056bf1d
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0056bf1d
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0056bf1d
and byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.0056bf1d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x417f96
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x418005
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push 0x5f1fe4
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp + 8]
push esi
neg eax
sbb eax, eax
push esi
and eax, 2
push 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret
Function at 0x41803e
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x5959f7
call fcn.00423b2c
mov eax, 0x110c
call fcn.004245e0
and byte [ebp - 0x118], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x117]
and dword [ebp - 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x6021f0
lea ecx, [ebp - 0x10]
stosb byte es:[edi], al
call fcn.0056bf8b
push 1
pop esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4180e1
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x1118]
push 0x1000
push eax
push edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4180e1
lea eax, [ebp - 0x118]
push 0x104
push eax
push dword [ebp - 0x1118]
push edi
call sub.PSAPI.DLL_GetModuleFileNameExA
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x10]
push eax
call fcn.0056c0a6
lea ecx, [ebp - 0x10]
call fcn.0056c451
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0056bc92
mov dword [ebp - 0x14], esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0056bf1d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x418114
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x595a1c
call fcn.00423b2c
mov eax, 0x1010
call fcn.004245e0
push ebx
push esi
push edi
and dword [ebp - 4], 0
mov edi, 0x6021f0
push edi
lea ecx, [ebp - 0x10]
call fcn.0056bf8b
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x101c]
push 0x1000
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4181c7
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
shr esi, 2
je 0x4181c7
lea ebx, [ebp - 0x101c]
push dword [ebx]
lea eax, [ebp - 0x1c]
push eax
call fcn.0041803e
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0056c056
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0056bf1d
push edi
push dword [ebp - 0x10]
call fcn.00425064
pop ecx
test eax, eax
pop ecx
je 0x4181bc
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push dword [ebp + 8]
push eax
call fcn.00424fe0
pop ecx
test eax, eax
pop ecx
je 0x4181f2
inc dword [ebp - 0x14]
add ebx, 4
cmp dword [ebp - 0x14], esi
jb 0x41816f
xor esi, esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0056bf1d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0056bf1d
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push 1
pop esi
jmp 0x4181c9
Function at 0x418310
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x595a84
call fcn.00423b2c
sub esp, 0x428
push ebx
push esi
push edi
and byte [ebp - 0x234], 0
push 1
xor eax, eax
pop esi
lea edi, [ebp - 0x233]
push 0x7f
and byte [ebp - 0x434], 0
pop ecx
mov dword [ebp - 0x18], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x433]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x5f2228]
mov dword [ebp - 0x14], 0x200
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0056af58
mov ebx, 0x1ff
lea eax, [ebp - 0x434]
push ebx
push eax
lea eax, [ebp - 0x14]
push esi
push eax
mov esi, dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueA]
lea eax, [ebp - 0x234]
mov edi, 0x5f2010
push eax
lea eax, [ebp - 0x18]
push eax
push 0x5f2004
push edi
mov byte [ebp - 4], 1
call esi
test eax, eax
jne 0x418451
lea eax, [ebp - 0x234]
push eax
call fcn.00423340
test eax, eax
pop ecx
jbe 0x418451
lea eax, [ebp - 0x234]
lea ecx, [ebp - 0x10]
push eax
call fcn.0056c0a6
lea eax, [ebp - 0x2c]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0x5f2000
call fcn.0056bf8b
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
mov byte [ebp - 4], 2
call fcn.0056bc92
mov byte [ebp - 4], 1
call fcn.004181f7
add esp, 0xc
cmp dword [ebp - 0x24], 4
jl 0x418451
mov esi, dword [ebp + 8]
test esi, esi
je 0x41841f
mov eax, dword [ebp - 0x28]
push dword [eax]
call fcn.0042475c
pop ecx
mov dword [esi], eax
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x418434
mov eax, dword [ebp - 0x28]
push dword [eax + 8]
call fcn.0042475c
pop ecx
mov dword [esi], eax
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x418449
mov eax, dword [ebp - 0x28]
push dword [eax + 0xc]
call fcn.0042475c
pop ecx
mov dword [esi], eax
push 1
pop esi
jmp 0x4184dc
lea eax, [ebp - 0x434]
push ebx
push eax
lea eax, [ebp - 0x14]
push 1
push eax
lea eax, [ebp - 0x234]
mov dword [ebp - 0x14], 0x200
push eax
lea eax, [ebp - 0x18]
push eax
push 0x5f1ff8
push edi
call esi
test eax, eax
jne 0x4184da
lea eax, [ebp - 0x234]
push eax
call fcn.00423340
test eax, eax
pop ecx
jbe 0x4184da
lea eax, [ebp - 0x234]
lea ecx, [ebp - 0x10]
push eax
call fcn.0056c0a6
lea eax, [ebp - 0x2c]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x5f2000
call fcn.0056bf8b
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
mov byte [ebp - 4], 3
call fcn.0056bc92
mov byte [ebp - 4], 1
call fcn.004181f7
add esp, 0xc
cmp dword [ebp - 0x24], 4
jge 0x41840b
xor esi, esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0056af8b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0056bf1d
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x418cc5
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
xor eax, eax
lea edi, [esi + 4]
mov dword [ebp - 4], eax
mov ecx, edi
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x44], eax
mov dword [ebp - 4], 0x10
call fcn.0056bea8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x418d0e
inc dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x3c], eax
jmp 0x418d20
lea eax, [ebp - 0x14]
push eax
push 0x5f12d0
push edi
call fcn.00568f1c
add esp, 0xc
mov ecx, dword [ebp + 8]
push edi
call fcn.0056bc92
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret 4

Function at 0x418d41
Capabilities:
Query service status

Disassembly:
mov eax, 0x595bb8
call fcn.00423b2c
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x44], ebx
cmp dword [eax - 8], ebx
mov dword [ebp - 4], ebx
jne 0x418d72
lea eax, [esi + 0xc]
lea ecx, [ebp + 8]
push eax
call fcn.0056c056
lea edi, [esi + 0xc]
lea eax, [ebp + 8]
push eax
mov ecx, edi
call fcn.0056c056
mov edi, dword [edi]
push 0xf01ff
push edi
push dword [esi + 0x48]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
lea eax, [esi + 0x50]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
push edi
jne 0x418dad
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
jmp 0x418dbb
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esi + 0x54]
mov dword [esi + 0x30], eax
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0056bf1d
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x418f58
Capabilities:
Reference http user-agent string

Disassembly:
mov eax, 0x595c10
call fcn.00423b2c
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push ebx
push ebx
push ebx
push 1
push 0x5f20c0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00586d86
push ebx
push ebx
push dword [ebp + 0x10]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
push dword [ebp + 0xc]
call fcn.00586e81
mov edi, eax
cmp edi, ebx
je 0x418fbe
push 0x4000000
push ebx
push ebx
push ebx
push ebx
mov ecx, edi
push dword [ebp + 0x14]
push ebx
call fcn.00587834
mov esi, eax
cmp esi, ebx
jne 0x418fd3
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00586d41
mov byte [ebp - 4], 1
jmp 0x419068
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp + 0x10], esp
push eax
call fcn.0056bc92
mov ecx, dword [ebp - 0x14]
push esi
call fcn.00418de2
cmp eax, ebx
mov eax, dword [esi]
mov ecx, esi
je 0x419039
call dword [eax + 0x4c]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
lea ecx, [ebp - 0x28]
call fcn.00586e2b
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00586d41
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0056bf1d
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.0056bf1d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.0056bf1d
push 1
pop eax
jmp 0x419089
call dword [eax + 0x4c]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
lea ecx, [ebp - 0x28]
call fcn.00586e2b
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00586d41
jmp 0x419061
mov dword [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.0056bf1d
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.0056bf1d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.0056bf1d
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
Function at 0x439c60
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x38
mov eax, dword [esp + 0x3c]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x439cea
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x44]
push 0
push ecx
lea edx, [esp + 0x10]
push 0xe
push edx
push esi
call edi
test eax, eax
je 0x439ce3
cmp dword [esp + 0x44], 0xe
jne 0x439ce3
lea eax, [esp + 0x44]
push 0
push eax
lea ecx, [esp + 0x20]
push 0x28
push ecx
push esi
call edi
test eax, eax
je 0x439ce3
cmp dword [esp + 0x44], 0x28
jne 0x439ce3
xor edx, edx
cmp word [esp + 0x26], 0x20
push esi
sete dl
mov edi, edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x38
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x38
ret

Function at 0x439d00
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebp
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x439d94
lea ecx, [esp + 4]
push 0
push ecx
lea edx, [esp + 0x10]
push 4
push edx
push ebp
mov byte [esp + 0x24], 0x89
mov byte [esp + 0x25], 0x50
mov byte [esp + 0x26], 0x4e
mov byte [esp + 0x27], 0x47
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x439d8d
cmp dword [esp + 4], 4
jne 0x439d8d
push ebx
push esi
push edi
mov ecx, 4
lea edi, [esp + 0x1c]
lea esi, [esp + 0x14]
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x439d77
sbb ebx, ebx
sbb ebx, 0xffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
test ebx, ebx
pop esi
pop ebx
sete al
pop ebp
add esp, 8
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebp
add esp, 8
ret

Function at 0x439ef0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push 0x5f6a54
push eax
push esi
mov byte [esp + 0x10], 0x89
mov byte [esp + 0x11], 0x50
mov byte [esp + 0x12], 0x4e
mov byte [esp + 0x13], 0x47
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x439f22
pop esi
pop ecx
ret
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x439f31
pop esi
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [eax]
lea ecx, [esp + 4]
xor eax, eax
mov esi, dword [ecx]
cmp edx, esi
pop esi
sete al
pop ecx
ret

Function at 0x439f50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x439f69
pop esi
ret
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x439f77
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x439f84
pop esi
ret
xor ecx, ecx
cmp word [eax + 0xe], 0x20
pop esi
sete cl
mov eax, ecx
ret
Function at 0x43a270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x598628
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x43a2b7
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x43a2d6
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
jne 0x43a2f6
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov ebx, dword [ebp + 8]
mov dword [esp + 0x34], 0
imul ebx, dword [ebp + 4]
shl ebx, 2
cmp word [ebp + 0xe], 0x20
jne 0x43a3fb
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [ebx + 0x28]
cmp eax, ecx
jb 0x43a3fb
lea ecx, [esp + 0x14]
call fcn.00573965
push 0
mov dword [esp + 0x30], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x18]
call fcn.00573a1c
push 0x34
call fcn.00425491
mov edx, eax
add esp, 4
test edx, edx
mov dword [esp + 0x10], edx
jne 0x43a383
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00573a9a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov ecx, 0xa
mov esi, ebp
mov edi, edx
lea eax, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
neg eax
mov dword [edx + 0x14], ebx
mov esi, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x3c]
sbb eax, eax
push 0
push ecx
and eax, esi
push 0
push edx
push eax
mov dword [esp + 0x50], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
test eax, eax
je 0x43a3dd
mov edi, dword [esp + 0x38]
test edi, edi
je 0x43a3dd
mov ecx, ebx
lea esi, [ebp + 0x28]
mov edx, ecx
mov dword [esp + 0x34], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
push eax
call fcn.00424b28
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00573a9a
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x43c910
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x598828
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
lea ecx, [esp + 0x14]
call fcn.00573965
xor ebx, ebx
push ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x18]
call fcn.00573a1c
lea eax, [esp + 0x10]
lea ecx, [esp + 4]
push eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.0043c7c0
add esp, 0x14
test eax, eax
jne 0x43c999
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00573a9a
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
mov ecx, dword [esp + 8]
push ebp
neg eax
sbb eax, eax
push edi
and eax, edx
push ebx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push ecx
push eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov edi, dword [esp + 0x14]
mov ebp, eax
cmp edi, ebx
je 0x43c9e7
cmp ebp, ebx
je 0x43c9e7
mov ecx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x10]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x43c9fc
push eax
call fcn.00424b28
add esp, 4
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x43ca11
push eax
call fcn.00424b28
add esp, 4
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x43ca1f
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xffffffff
call fcn.00573a9a
mov ecx, dword [esp + 0x2c]
mov eax, ebp
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x43f150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
and edi, 0xffff
jne 0x43f165
pop edi
xor eax, eax
pop esi
ret 0x10
call fcn.005885ac
mov esi, dword [eax + 0xc]
push 0xf1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x43f183
pop edi
pop esi
ret 0x10
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x43f194
pop edi
pop esi
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x43f1a6
pop edi
pop esi
ret 0x10
xor eax, eax
push ebx
mov ax, word [esi + 6]
push ebp
shl eax, 2
push eax
call fcn.0056bc5e
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
xor edi, edi
add esp, 4
mov dword [ebp], eax
mov dword [ebx], 0
cmp word [esi + 6], di
jbe 0x43f206
mov ecx, esi
call fcn.004bfca0
cmp word [eax + edi*2], 0
je 0x43f1fb
mov ecx, esi
call fcn.004bfca0
mov edx, dword [ebx]
xor ecx, ecx
mov cx, word [eax + edi*2]
mov eax, dword [ebp]
mov dword [eax + edx*4], ecx
mov eax, dword [ebx]
inc eax
mov dword [ebx], eax
xor ecx, ecx
inc edi
mov cx, word [esi + 6]
cmp edi, ecx
jl 0x43f1d3
mov edx, dword [esp + 0x20]
xor eax, eax
mov ax, word [esi + 2]
xor ecx, ecx
mov cx, word [esi + 4]
pop ebp
pop ebx
mov dword [edx], eax
pop edi
mov dword [edx + 4], ecx
mov eax, 1
pop esi
ret 0x10