joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10064e70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x11], 0
lea ecx, [ebp - 0x10]
call fcn.1004e120
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0
push 0
push 0x2001f
push 0
push 0
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.10003e70
push eax
push SysReAllocStringLen
lea ecx, [ebp - 0x10]
call fcn.10011de0
test eax, eax
jne 0x10064f08
lea eax, [ebp - 8]
push eax
push 0
lea ecx, [ebp - 4]
push ecx
push 0
lea ecx, [ebp + 8]
call fcn.10003e70
push eax
lea ecx, [ebp - 0x10]
call fcn.10017d30
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10064f08
cmp dword [ebp - 4], 4
jne 0x10064f08
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp + 8]
call fcn.10003e70
push eax
lea ecx, [ebp - 0x10]
call fcn.10066200
test eax, eax
jne 0x10064f08
mov byte [ebp - 0x11], 1
mov al, byte [ebp - 0x11]
mov byte [ebp - 0x12], al
lea ecx, [ebp - 0x10]
call fcn.100125c0
lea ecx, [ebp + 8]
call fcn.1001b440
mov al, byte [ebp - 0x12]
mov esp, ebp
pop ebp
ret 8

Function at 0x10066520
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10090d7f
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100c6580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], 0x80004005
push 1
mov eax, dword [ebp - 0x28]
add eax, 0x30
push eax
lea ecx, [ebp - 0x18]
call fcn.1006ba60
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x28], 0
jne 0x10066615
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x20], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp - 0x28]
cmp dword [edx + 0x20], 0
je 0x10066615
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x24], 0
je 0x10066615
push 0
push 0
mov ecx, dword [ebp - 0x28]
push ecx
push 0x100666a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x28], 0
je 0x100665fe
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1006baa0
mov eax, dword [ebp - 0x20]
jmp 0x1006662e
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x20], 0
mov dword [ebp - 0x24], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1006baa0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10069890
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10091283
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x100c6580]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x260], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.10004000
mov byte [ebp - 4], 1
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.10072920
add esp, 0xc
mov dword [ebp - 0x258], 0
push 0x38
push 0
lea edx, [ebp - 0x254]
push edx
call fcn.10072920
add esp, 0xc
mov dword [ebp - 0x258], 0x3c
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], 0x104
lea ecx, [ebp - 0x258]
push ecx
push 0x10000000
lea ecx, [ebp + 0xc]
call fcn.10001310
push eax
lea ecx, [ebp + 0xc]
call fcn.10003e70
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
lea edx, [ebp - 0x21c]
push edx
mov ecx, dword [ebp + 8]
call fcn.1000ad20
mov eax, dword [ebp - 0x260]
or eax, 1
mov dword [ebp - 0x260], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.1001b440
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.1001b440
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007219d
mov esp, ebp
pop ebp
ret
Function at 0x1006c330
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 2
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x1006c3f0
push 5
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
mov ecx, 0x100c8788
call fcn.1006c510
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
lea ecx, [ebp - 4]
push ecx
mov ecx, 0x100c8788
call fcn.1006c5d0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x1006f670
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], 0x10325476
pop ebp
ret

Function at 0x100709e5
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x100c87a8], 0
push esi
jne 0x10070958
call fcn.1007087e
test eax, eax
je 0x1007099b
mov eax, dword [0x100c87a8]
cmp eax, 1
jne 0x10070979
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1007099b
pop esi
ret
push eax
call dword [0x100c87b0]
test eax, eax
jne 0x100709e3
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1007099f
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x100c87a8]
call dword [0x100c87b0]
mov edi, eax
test edi, edi
je 0x100709c4
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x100709e0
mov edi, esi
add esi, 0xff0
push edi
push dword [0x100c87a8]
call dword [0x100c87ac]
add edi, 0x10
cmp edi, esi
jb 0x100709cc
mov eax, edi
pop edi
pop esi
ret
jmp 0x10070945

Function at 0x1007219d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100c6580]
jne 0x100721a7
repz ret
jmp fcn.10079d2c
Function at 0x10084215
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10079674
and dword [ebp - 4], 0
cmp dword [0x100c9438], 0
mov ebx, eax
jne 0x100842c6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10084377
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10084377
push eax
call fcn.10079602
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100c9438], eax
call esi
push eax
call fcn.10079602
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100c943c], eax
call esi
push eax
call fcn.10079602
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100c9440], eax
call esi
push eax
call fcn.10079602
pop ecx
mov dword [0x100c9448], eax
test eax, eax
je 0x100842c6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10079602
pop ecx
mov dword [0x100c9444], eax
mov eax, dword [0x100c9444]
cmp eax, ebx
je 0x1008431e
cmp dword [0x100c9448], ebx
je 0x1008431e
push eax
call fcn.1007967d
push dword [0x100c9448]
mov esi, eax
call fcn.1007967d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1008431e
test edi, edi
je 0x1008431e
call esi
test eax, eax
je 0x10084315
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10084315
test byte [ebp - 0xc], 1
jne 0x1008431e
or dword [ebp + 0x10], 0x200000
jmp 0x10084357
mov eax, dword [0x100c943c]
cmp eax, ebx
je 0x10084357
push eax
call fcn.1007967d
pop ecx
test eax, eax
je 0x10084357
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10084357
mov eax, dword [0x100c9440]
cmp eax, ebx
je 0x10084357
push eax
call fcn.1007967d
pop ecx
test eax, eax
je 0x10084357
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100c9438]
call fcn.1007967d
pop ecx
test eax, eax
je 0x10084377
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10084379
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4010d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446d5e
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x45b4b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 2
cmp byte [esi + 0x20], 0
je 0x401139
push 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x10], 7
push eax
push 1
lea eax, [ebp - 0x10]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401139
push 0x459034
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x451480
push eax
call fcn.0042f51b
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40115e
push eax
call fcn.0042d3ab
add esp, 4
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x401191
push dword [ebp - 0x1c]
mov edx, dword [esi + 8]
push ecx
call fcn.00402240
push dword [esi + 4]
call fcn.0042d3ab
add esp, 0xc
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi]
test eax, eax
je 0x40119e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4011b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446d88
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x45b4b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
push dword [ebp - 0x24]
mov edx, dword [esi + 8]
lea edi, [esi + 4]
push ecx
mov ecx, dword [edi]
call fcn.00402240
mov eax, dword [edi]
add esp, 8
mov dword [edi + 4], eax
lea eax, [ebp - 0x20]
mov byte [ebp - 0x10], 0
push 0
push eax
push 1
lea eax, [ebp - 0x10]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401227
push 0x459034
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x451480
push eax
call fcn.0042f51b
push 0
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401254
push 0x459034
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x451474
push eax
call fcn.0042f51b
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40126f
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x18], 0
test eax, eax
je 0x40138e
mov edi, edi
push 0x10
call fcn.0042d5c9
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4012a7
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
jmp 0x4012a9
xor ebx, ebx
push 0
lea eax, [ebp - 0x28]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4013a2
mov eax, dword [ebp - 0x20]
mov esi, ebx
mov dword [ebx], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
mov eax, dword [edi + 4]
cmp ecx, eax
jae 0x401318
mov ecx, dword [edi]
lea edx, [ebp - 0x14]
cmp ecx, edx
ja 0x401318
mov ebx, edx
sub ebx, ecx
sar ebx, 2
cmp eax, dword [edi + 8]
jne 0x4012fd
push ecx
mov ecx, edi
call fcn.00401f50
mov eax, dword [edi]
mov edx, dword [edi + 4]
lea ecx, [eax + ebx*4]
test edx, edx
je 0x401330
mov eax, dword [ecx]
mov dword [ecx], 0
mov esi, dword [ebp - 0x14]
mov dword [edx], eax
jmp 0x401330
cmp eax, dword [edi + 8]
jne 0x401325
push ecx
mov ecx, edi
call fcn.00401f50
mov eax, dword [edi + 4]
test eax, eax
je 0x401330
xor esi, esi
mov dword [eax], ebx
add dword [edi + 4], 4
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x40137b
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x401372
push dword [ebp - 0x28]
mov edx, dword [esi + 8]
push ecx
call fcn.004022a0
push dword [esi + 4]
call fcn.0042d3ab
add esp, 0xc
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
push esi
call fcn.0042d3ab
add esp, 4
mov esi, dword [ebp - 0x18]
inc esi
cmp esi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x24]
jb 0x401280
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x459034
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x451474
push eax
call fcn.0042f51b
int3
Function at 0x402eb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
test eax, eax
je 0x402ed0
cmp eax, 0xffffffff
je 0x402ed0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x3e8
jmp 0x402ee0
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x402f24
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x402f1b
push 0xc8
sub esi, 0xc8
call ebx
test esi, esi
jg 0x402ee0
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 4

Function at 0x403050
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446eb8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x45b4b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0xc], edx
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [ebp - 4], 0
sub esp, 8
mov dword [esi], vtable.TrButton.0
mov dword [esi + 0x38], edx
mov dword [esi + 0x50], 0
push edx
push 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x28], 1
mov dword [esi + 0x20], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x60], edx
call fcn.00403150
mov eax, dword [esi + 0x40]
mov dword [esi + 0x3c], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4039e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446f9d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x45b4b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 0x58], 0xf
mov dword [edi + 0x54], 0
mov byte [edi + 0x44], 0
lea ebx, [edi + 0x5c]
mov dword [ebp - 4], 0
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
mov dword [edi + 0x88], 0xf
mov dword [edi + 0x84], 0
mov byte [edi + 0x74], 0
mov dword [edi + 0xa0], 0xf
mov dword [edi + 0x9c], 0
mov byte [edi + 0x8c], 0
mov byte [ebp - 4], 3
mov dword [edi + 0xa4], 0
mov dword [edi + 0xa8], 0
call fcn.004045e0
mov dword [edi + 0xa4], eax
mov byte [ebp - 4], 4
lea ecx, [edi + 0x8c]
push 0
push 0x4516a2
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x3c], 1
mov dword [edi + 0x38], 1
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.004028c0
lea esi, [edi + 0x74]
cmp esi, eax
je 0x403b26
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00402540
cmp ebx, esi
je 0x403b36
push 0xffffffffffffffff
push 0
push esi
mov ecx, ebx
call fcn.00402540
lea ecx, [edi + 0x44]
cmp ecx, ebx
je 0x403b47
push 0xffffffffffffffff
push 0
push ebx
call fcn.00402540
mov eax, edi
mov dword [edi + 0x40], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x409b20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409b39
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409b74
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x409b70
lea ebx, [ebx]
cmp esi, edx
jae 0x409b74
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x409b60
cmp esi, edx
jb 0x409b7b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40ac90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
push ebx
push esi
push edi
push 0
mov esi, edx
mov dword [eax], 0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
movzx ecx, di
mov ebx, eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40accb
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40acc2
mov esi, dword [ebp - 4]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push edi
push eax
call fcn.0042ee40
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp - 8]
push 0x10
mov dword [ebp - 0xc], eax
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x40ad4a
lea eax, [ebp - 4]
mov dword [esi], vtable.Gdiplus::Bitmap.0
push eax
push dword [ebp - 0xc]
mov dword [ebp - 4], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
jmp 0x40ad4c
xor esi, esi
mov eax, dword [ebp + 8]
push ebx
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ad80
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4475d8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x45b4b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
movzx esi, si
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40aebf
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
sub esp, 0xc
call fcn.00404660
add esp, 0xc
push eax
mov edx, 0x452f00
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x18]
call fcn.00403de0
add esp, 4
push 0x452ef0
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401c00
add esp, 4
push ebx
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.00401c00
add esp, 4
push esi
push 0x452ee8
push dword [eax]
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp - 0x10]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40ae4a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ae6a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ae8a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40aeab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push ebx
push 0
push 4
push 0
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
push 0
push 0
mov edi, eax
push 2
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
push dword [ebp - 0x1c]
mov esi, eax
push esi
call fcn.0042ee40
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push dword [ebp - 0x18]
call esi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b9b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447733
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x45b4b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov dword [esi + 0x34], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.TrImage.0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
call fcn.0040c0e0
mov dword [esi + 0x40], eax
mov dword [esi + 0x28], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x20