joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100cf520
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x100cf5f0
push 0xffffffffffffffff
push 0x100e4fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10001840]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x100026c8]
cmp eax, 0xffffffff
jne 0x100cf629
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x100cf636
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x2c], 0
test ebp, ebp
je 0x100cf69d
jmp 0x100cf66c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp + 0xc]
jne 0x100cf6da
test edi, edi
jne 0x100cf6e0
push 0x100cf1f0
push 0x100e7980
call fcn.100cee90
mov eax, dword [0x100026c8]
add esp, 8
cmp eax, 0xffffffff
je 0x100cf69d
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x2c], 0xffffffff
test ebp, ebp
je 0x100cf6c6
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100cf6c6
mov eax, dword [ebp]
mov ecx, ebp
push 0
call dword [eax]
push ebp
push 0
call esi
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
test edi, edi
je 0x100cf718
mov edi, edi
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x100cf709
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
mov ecx, esi
push 0
mov eax, dword [esi]
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebx
push edi
push 0
call esi
push eax
call ebx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x100cf6e0
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
mov dword [esp + 0x18], eax
mov esi, dword [ebx]
cmp esi, ebx
je 0x100cf660
mov ebp, eax
mov edi, edi
cmp byte [esi + 0xd], 0
mov edi, esi
jne 0x100cf777
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x100cf75c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x100cf777
jmp 0x100cf750
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x100cf750
jmp 0x100cf777
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x100cf775
cmp esi, dword [eax + 8]
jne 0x100cf775
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100cf765
mov esi, eax
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x100cf78b
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x100cf78b
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push edi
lea eax, [esp + 0x24]
mov ecx, ebp
push eax
call fcn.100cf220
cmp esi, ebx
jne 0x100cf730
mov ebp, dword [esp + 0x14]
jmp 0x100cf660
Function at 0x100cf5f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x100cf5f0
push 0xffffffffffffffff
push 0x100e4fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10001840]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x100026c8]
cmp eax, 0xffffffff
jne 0x100cf629
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x100cf636
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x2c], 0
test ebp, ebp
je 0x100cf69d
jmp 0x100cf66c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp + 0xc]
jne 0x100cf6da
test edi, edi
jne 0x100cf6e0
push 0x100cf1f0
push 0x100e7980
call fcn.100cee90
mov eax, dword [0x100026c8]
add esp, 8
cmp eax, 0xffffffff
je 0x100cf69d
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x2c], 0xffffffff
test ebp, ebp
je 0x100cf6c6
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100cf6c6
mov eax, dword [ebp]
mov ecx, ebp
push 0
call dword [eax]
push ebp
push 0
call esi
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
test edi, edi
je 0x100cf718
mov edi, edi
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x100cf709
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
mov ecx, esi
push 0
mov eax, dword [esi]
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebx
push edi
push 0
call esi
push eax
call ebx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x100cf6e0
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
mov dword [esp + 0x18], eax
mov esi, dword [ebx]
cmp esi, ebx
je 0x100cf660
mov ebp, eax
mov edi, edi
cmp byte [esi + 0xd], 0
mov edi, esi
jne 0x100cf777
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x100cf75c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x100cf777
jmp 0x100cf750
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x100cf750
jmp 0x100cf777
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x100cf775
cmp esi, dword [eax + 8]
jne 0x100cf775
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100cf765
mov esi, eax
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x100cf78b
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x100cf78b
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push edi
lea eax, [esp + 0x24]
mov ecx, ebp
push eax
call fcn.100cf220
cmp esi, ebx
jne 0x100cf730
mov ebp, dword [esp + 0x14]
jmp 0x100cf660
Function at 0x4011a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4011b9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4011cd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4011ee
cmp esi, eax
jae 0x4011c7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4011e0
cmp esi, eax
jae 0x4011c7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401f90
Capabilities:
Create thread

Disassembly:
mov eax, dword [ecx + 0x60]
add eax, 4
push eax
push 0
push 0x401de0
call dword [sym.imp.MSVCR71.dll__beginthread]
add esp, 0xc
ret

Function at 0x401fb0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401fd0
xor eax, eax
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp]
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401fca
push 0x80040002
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret
Function at 0x4020f0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48cbdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x688
mov eax, dword [0x4aff10]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x68c], eax
xor ebx, ebx
xor eax, eax
mov word [esp + 0x218], bx
mov ecx, 0x81
lea edi, [esp + 0x21a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [esp + 0x10], bx
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x42c]
stosw word es:[edi], ax
mov dword [esp + 0x18], ebx
call fcn.00438030
push 0x104
lea eax, [esp + 0x21c]
push eax
push str.NEED_REBOOT
lea ecx, [esp + 0x42c]
mov dword [esp + 0x6a8], ebx
call fcn.00438280
push 0x104
lea ecx, [esp + 0x14]
push ecx
push ebx
call dword [0x4b0020]
mov edi, dword [sym.imp.MSVCR71.dll_wcslen]
lea edx, [esp + 0x218]
push edx
call edi
add esp, 4
test eax, eax
jbe 0x40225d
lea eax, [esp + 0x10]
push eax
call edi
add esp, 4
test eax, eax
jbe 0x40225d
mov edi, dword [sym.imp.MSVCR71.dll__wcsupr]
lea ecx, [esp + 0x10]
push ecx
call edi
add esp, 4
push eax
lea edx, [esp + 0x21c]
push edx
call edi
add esp, 4
push eax
call dword [sym.imp.MSVCR71.dll_wcsstr]
add esp, 8
test eax, eax
je 0x40225d
mov eax, dword [esi + 0x60]
cmp eax, ebx
je 0x402216
mov esi, eax
mov ecx, dword [esi + 0x50]
lea edx, [esp + 0xc]
lea eax, [esi + 0x50]
push edx
push eax
call dword [ecx + 0x14]
jmp 0x402220
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [0x4b1dac]
push ebx
push 0x402030
push eax
push 0x23b
push ecx
call fcn.00433f30
add esp, 0x14
lea ecx, [esp + 0x420]
mov dword [esp + 0x69c], 0xffffffff
call fcn.00438120
mov eax, 1
jmp 0x402276
lea ecx, [esp + 0x420]
mov dword [esp + 0x69c], 0xffffffff
call fcn.00438120
xor eax, eax
mov ecx, dword [esp + 0x694]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x68c]
call fcn.004877c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402350
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x3bc]
sub esp, 0x43c
mov eax, dword [0x4aff10]
push ebx
mov dword [ebp + 0x3b8], eax
push esi
push edi
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x7c], bx
mov ecx, 0x81
lea edi, [ebp - 0x7a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov byte [ebp + 0x18c], bl
mov ecx, 0x40
lea edi, [ebp + 0x18d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x80]
push eax
push str.UI_ParentRestore
mov dword [ebp - 0x80], ebx
call fcn.00437a10
push 0x492eb4
push 0x104
lea ecx, [ebp - 0x7c]
push ecx
push str.UI_ParentProcess
call fcn.00437c20
mov eax, dword [ebp - 0x80]
add esp, 0x1c
cmp eax, ebx
jne 0x4023e1
lea edx, [ebp - 0x7c]
push edx
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x402466
lea eax, [ebp - 0x7c]
push eax
call dword [0x4b006c]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.004877e0
mov esi, esp
cmp esi, ebx
je 0x40241e
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x7c]
push ecx
push ebx
push ebx
mov byte [esi], bl
call dword [0x4b0054]
neg eax
sbb eax, eax
and eax, esi
jmp 0x402420
xor eax, eax
lea edx, [ebp + 0x18c]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp cl, bl
jne 0x402426
push ebx
push 2
mov edi, 1
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x402466
lea edx, [ebp + 0x290]
push edx
push esi
mov dword [ebp + 0x290], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x402470
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4024d1
lea eax, [ebp + 0x2b4]
push str.PowerDVD.exe
push eax
call dword [sym.imp.MSVCR71.dll__stricmp]
add esp, 8
test eax, eax
jne 0x402491
mov ebx, dword [ebp + 0x2a8]
jmp 0x4024b2
lea ecx, [ebp + 0x18c]
push ecx
lea edx, [ebp + 0x2b4]
push edx
call dword [sym.imp.MSVCR71.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4024b2
mov edi, dword [ebp + 0x298]
lea eax, [ebp + 0x290]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402470
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp ebx, edi
sete al
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x3b8]
call fcn.004877c7
pop edi
pop esi
pop ebx
add ebp, 0x3bc
mov esp, ebp
pop ebp
ret
Function at 0x407300
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
push 1
push 4
push 0x4b1e08
mov esi, ecx
call fcn.00401b90
mov edi, eax
test edi, edi
jne 0x407354
mov al, byte [esi + 0x3c]
test al, al
je 0x407358
push edi
push edi
push edi
push edi
call dword [0x4affe8]
test eax, eax
mov dword [esi + 0x30], eax
je 0x407349
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x404810
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x407358
pop edi
mov eax, 0x80004005
pop esi
pop ecx
ret 4
mov byte [esi + 0x3c], 0
mov eax, edi
pop edi
pop esi
pop ecx
ret 4

Function at 0x407ae0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ce06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x420
mov eax, dword [0x4aff10]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x418], ebx
mov eax, dword [ebp + 8]
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [0x4b0040]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x420], edi
jne 0x407b52
call fcn.00401280
mov esi, eax
jmp 0x407c38
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push edi
call dword [0x4b0004]
mov esi, eax
cmp esi, ebx
jne 0x407b71
call fcn.00401280
jmp 0x407c2f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x41c], ebx
jne 0x407b8f
call fcn.00401280
jmp 0x407c2f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + esi + 2]
cmp eax, 0x400
mov dword [ebp + 8], esi
mov byte [ebp - 4], 2
jbe 0x407bbf
push eax
lea ecx, [ebp - 0x418]
call fcn.00402f40
jmp 0x407bdc
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x407bdc
mov eax, dword [ebp - 0x418]
test eax, eax
mov dword [ebp - 4], 1
jne 0x407bf4
mov esi, 0x8007000e
jmp 0x407c31
push esi
push eax
push esi
push ebx
push 0
push 0
call dword [0x4b0048]
test eax, eax
jne 0x407c0d
call fcn.00401280
jmp 0x407c2f
mov ecx, dword [ebp - 0x418]
mov edx, dword [ebp + 0x14]
mov word [ecx + esi*2], 0
mov eax, dword [ebp - 0x418]
push edx
push eax
lea ecx, [ebp - 0x428]
call fcn.00407650
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x414]
cmp eax, ecx
je 0x407c53
lea ecx, [ebp - 0x418]
call fcn.00402f00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.004877c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x408be0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
mov al, byte [0x4b0264]
test al, al
push esi
mov esi, ecx
je 0x408bf7
mov eax, 0xffffffff
pop esi
pop ecx
ret 4
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 4]
push ecx
push eax
mov ecx, esi
call fcn.004080c0
cmp al, 1
jne 0x408c47
mov edx, dword [esp + 0xc]
push edx
mov ecx, esi
call fcn.004083a0
test eax, eax
jne 0x408c39
mov ecx, esi
call fcn.00402f80
mov ecx, esi
call fcn.004051b0
pop esi
pop ecx
ret 4
jl 0x408c4b
mov ecx, esi
call fcn.004051b0
pop esi
pop ecx
ret 4
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4

Function at 0x40a4a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48cfb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, 7
push ebx
xor ebx, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x44]
cmp eax, ebx
push edi
mov edi, ecx
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0x20000
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], 0x4000020
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], 0x8000000
mov dword [esp + 0x30], ebx
jne 0x40a5a7
xor eax, eax
mov dword [esp + 0x48], eax
push ebp
mov ebp, dword [esp + 0x50]
push ebp
push eax
mov ecx, edi
mov dword [esp + 0x4c], ebx
call fcn.0040a450
push esi
lea esp, [esp]
mov edx, dword [esp + ebx + 0x10]
mov ecx, dword [ebp]
mov esi, dword [esp + ebx + 0x14]
mov eax, edx
and eax, ecx
mov ecx, esi
and ecx, dword [ebp + 4]
cmp eax, edx
jne 0x40a5c4
cmp ecx, esi
jne 0x40a5c4
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
mov dword [edi + 0x18], ecx
mov eax, dword [edi + 0x18]
cmp eax, dword [edi + 0x10]
je 0x40a5c4
mov esi, dword [eax + 8]
test esi, esi
mov edx, eax
mov eax, dword [edx]
mov dword [edi + 0x18], eax
je 0x40a5c4
mov ecx, dword [esi]
push esi
call dword [ecx + 0x28]
cmp eax, dword [esp + ebx + 0x18]
jne 0x40a554
push 1
push str.UIFileMode
call fcn.004379e0
mov edx, dword [esp + 0x58]
add esp, 8
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 8
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [esp + 0x48], eax
jne 0x40a519
push 0x8007000e
call fcn.004010e0
add ebx, 0xc
cmp ebx, 0x30
jl 0x40a530
mov eax, dword [esp + 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esp + 0x40]
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 8
Function at 0x40a9c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
movzx eax, word [ebp + 8]
push ebx
push esi
mov esi, dword [0x4b1dac]
push edi
push 0xf0
push eax
mov edi, 1
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edi
call dword [0x4b0004]
test eax, eax
je 0x40ab24
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40ab24
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40ab24
xor eax, eax
mov ax, word [esi]
test ax, ax
mov dword [ebp + 8], eax
je 0x40ab24
mov ax, word [esi + 2]
add esi, 2
mov ecx, dword [esi + 2]
add esi, 2
add esi, 4
cmp ax, 0x403
mov dword [ebp - 0xc], ecx
jne 0x40aa94
test esi, esi
je 0x40aa7c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and eax, 0xfffffffc
call fcn.004877e0
mov ebx, esp
test ebx, ebx
je 0x40aa7c
push edi
push ebx
push 0xffffffffffffffff
push esi
push 0
push 0
mov word [ebx], 0
call dword [0x4b0048]
neg eax
sbb eax, eax
and eax, ebx
jmp 0x40aa7e
xor eax, eax
movzx edx, word [ebp + 8]
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push 0
push 0x143
push edx
push ecx
jmp 0x40ab02
cmp ax, 0x1234
jne 0x40ab14
test esi, esi
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0xffffffff
je 0x40aae6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and eax, 0xfffffffc
call fcn.004877e0
mov ebx, esp
test ebx, ebx
je 0x40aae6
push edi
push ebx
push 0xffffffffffffffff
push esi
push 0
push 0
mov word [ebx], 0
call dword [0x4b0048]
neg eax
sbb eax, eax
and eax, ebx
jmp 0x40aae8
xor eax, eax
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x30]
push edx
mov edx, dword [ecx + 4]
push 0
mov dword [ebp - 0x28], eax
movzx eax, word [ebp + 8]
push 0x40b
push eax
push edx
call dword [0x4b0120]
cmp eax, 0xffffffff
jne 0x40ab14
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
add esi, ecx
test edi, edi
jne 0x40aa14
mov eax, edi
lea esp, [ebp - 0x3c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40e660
Capabilities:
Enumerate pe sections

Disassembly:
push 0xffffffffffffffff
push 0x48d078
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x4aff10]
push ebp
mov ebp, dword [esp + 0x30]
test ebp, ebp
mov dword [esp + 0x14], eax
jne 0x40e694
mov eax, 0x80004003
jmp 0x40e82b
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x30]
test esi, esi
push edi
mov dword [ebp], 0
mov edi, 0x80004005
mov byte [ebx], 0
je 0x40e826
mov ax, word [esi]
test ax, ax
je 0x40e826
cmp ax, 0x4d
je 0x40e6ce
cmp ax, 0x6d
jne 0x40e744
mov ax, word [esi + 2]
cmp ax, 0x53
je 0x40e6de
cmp ax, 0x73
jne 0x40e744
mov ax, word [esi + 4]
cmp ax, 0x48
je 0x40e6ee
cmp ax, 0x68
jne 0x40e744
mov ax, word [esi + 6]
cmp ax, 0x54
je 0x40e6fe
cmp ax, 0x74
jne 0x40e744
mov ax, word [esi + 8]
cmp ax, 0x4d
je 0x40e70e
cmp ax, 0x6d
jne 0x40e744
mov ax, word [esi + 0xa]
cmp ax, 0x4c
je 0x40e71e
cmp ax, 0x6c
jne 0x40e744
cmp word [esi + 0xc], 0x3a
jne 0x40e744
mov eax, dword [esp + 0x38]
push ebp
push eax
push 1
push 0
push str._i3_
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov byte [ebx], 1
mov edi, eax
jmp 0x40e828
push 0x4950b0
push esi
call fcn.004014b0
add esp, 8
test eax, eax
je 0x40e775
mov ecx, dword [esp + 0x38]
push ebp
push ecx
push 1
push 0
push 0x4950a0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov byte [ebx], 1
mov edi, eax
jmp 0x40e828
push esi
call dword [0x4b006c]
cmp eax, 0xff
jge 0x40e822
cmp word [esi], 0x7b
jne 0x40e79b
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.ole32.dll_CLSIDFromString]
jmp 0x40e7a7
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jl 0x40e822
mov esi, dword [esp + 0x44]
cmp esi, ebx
je 0x40e80c
mov dword [esp + 0x3c], ebx
lea ecx, [esp + 0x3c]
push ecx
push 0x495090
push ebx
push 1
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x40], ebx
call dword [sym.imp.ole32.dll_CoGetClassObject]
mov edi, eax
cmp edi, ebx
jl 0x40e7f2
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
push ebp
push esi
push edx
push ebx
push ebx
push eax
call dword [ecx + 0x1c]
mov edi, eax
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov dword [esp + 0x2c], 0xffffffff
je 0x40e822
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x40e828
mov edx, dword [esp + 0x38]
push ebp
push edx
push 1
push ebx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
mov eax, edi
jmp 0x40e828
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x14]
pop ebp
call fcn.004877c7
add esp, 0x20
ret
Function at 0x410c00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
call fcn.00410aa0
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov ebx, dword [0x4b0004]
push 5
push edi
push esi
mov dword [esp + 0x20], 0xffffffff
call ebx
mov ebp, eax
test ebp, ebp
je 0x410ce4
push 0xf0
push edi
push esi
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
xor edi, edi
test eax, eax
je 0x410c54
push eax
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push ebp
push esi
mov dword [esp + 0x18], 0
call ebx
test eax, eax
je 0x410cbd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x410cbd
push edi
push ebx
call fcn.00409e40
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
add esp, 8
mov edi, eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
push edx
push edi
push esi
call dword [0x4b00b0]
mov esi, eax
test esi, esi
je 0x410c9f
cmp esi, 0xffffffff
jne 0x410ca9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp edi, ebx
je 0x410ccb
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x410ccb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x410cda
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret