joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013750
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [0x1007ba5c]
mov dword [ebp - 4], eax
jmp 0x10013777
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10013790
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x1001378e
mov eax, dword [ebp - 4]
jmp 0x10013814
jmp 0x1001376f
mov esi, esp
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, esp
call fcn.10016130
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10013811
mov ecx, dword [ebp - 4]
add ecx, 0x20
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 4]
cmp ecx, 0xfe0
jbe 0x100137d3
mov edx, dword [ebp - 4]
mov eax, dword [0x1007ba5c]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x1007ba5c], ecx
mov eax, dword [ebp - 4]
pop esi
add esp, 8
cmp ebp, esp
call fcn.10016130
mov esp, ebp
pop ebp
ret

Function at 0x10013d00
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x10013d49
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x90
je 0x10013d49
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + eax]
cmp edx, 0xcc
je 0x10013d49
xor eax, eax
jmp 0x10013d8a
mov dword [ebp - 4], 1
jmp 0x10013d5b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10013d85
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov ecx, 1
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
cmp eax, edx
je 0x10013d83
xor eax, eax
jmp 0x10013d8a
jmp 0x10013d52
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x1001c640
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.1001c220
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1001c66c
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
call dword [0x1005a298]
call dword [ebp - 8]
jmp 0x1001c676
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret

Function at 0x100309f0
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10030a17
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10025090
add esp, 4
or eax, 0xffffffff
jmp 0x10030a19
xor eax, eax
pop ebp
ret

Function at 0x1004a330
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
call fcn.10041900
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1004a36e
cmp dword [ebp + 8], 0
je 0x1004a35c
lea eax, [ebp + 8]
push eax
call fcn.1004a530
add esp, 4
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x1004a36e
mov eax, 4
jmp 0x1004a49e
call fcn.10041700
movzx edx, al
test edx, edx
jne 0x1004a39c
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1004a38d
mov dword [ebp - 0xc], 4
jmp 0x1004a394
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
jmp 0x1004a49e
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1004a445
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0x1004a4e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea ecx, [ebp - 8]
call fcn.1001f3a0
lea ecx, [ebp - 8]
call fcn.1004a570
movzx edx, al
test edx, edx
jne 0x1004a407
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
call fcn.1004a550
mov eax, dword [ebp - 0x10]
jmp 0x1004a49e
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.1001f660
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
je 0x1004a432
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 8]
call fcn.1004a550
mov eax, dword [ebp - 0x14]
jmp 0x1004a49e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 8]
call fcn.1004a550
mov eax, dword [ebp - 0x18]
jmp 0x1004a49e
call fcn.10041850
movzx ecx, al
test ecx, ecx
jne 0x1004a47e
mov edx, dword [ebp + 0x10]
or edx, 0x200000
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.1004a4b0
add esp, 0x10
jmp 0x1004a49e
call fcn.10041760
mov dword [ebp - 0x24], eax
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.1004a4b0
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x1004c5eb
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp 0x10057350
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x1007ab04], 1
jge 0x100573bf
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x10057395
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x10057395
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x10057372
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x100573ab
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x100573b2
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x100574af
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x10057480
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10057475
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x10057469
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x10057470
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x100574af
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x100574aa
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x10057493
mov eax, dword [ebx + 8]
jmp 0x100574af
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x100574a1
xor eax, eax
jmp 0x100574af
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x100573df
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x1004c5f6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1004c187
Function at 0x401b00
Capabilities:
Delete file

Disassembly:
call fcn.00404219
test eax, eax
jne 0x401b13
push 0x80004005
call fcn.00404100
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
push esi
call eax
mov ecx, dword [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x401b43
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop esi
test edx, edx
jg 0x401b64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
ret

Function at 0x401b70
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4323e8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x44161c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
call fcn.00404219
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401bb4
push 0x80004005
call fcn.00404100
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [esp + 0x1c]
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401bf6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401c1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x401c30
Capabilities:
Delete registry key

Disassembly:
push ecx
call fcn.00404219
test eax, eax
jne 0x401c44
push 0x80004005
call fcn.00404100
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
push esi
call eax
mov edx, dword [esp + 0xc]
lea ecx, [esp + 4]
push ecx
push edx
mov esi, eax
push reloc.OLEAUT32.dll_SysReAllocString
add esi, 0x10
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x401c84
mov eax, dword [esp + 0xc]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0xc], reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
pop esi
test ecx, ecx
jg 0x401cac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401ccc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ecx
ret
Function at 0x4028e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x432338
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x44161c]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], 1
jle 0x402924
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403fb0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [esp + 0x18]
setne cl
mov esi, ecx
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0041e9cc
add esp, 8
test eax, eax
jl 0x40299b
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx - 8]
jg 0x40299b
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x18]
xor edx, edx
mov word [ecx + eax*2], dx
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402988
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret
push 0x80070057
call fcn.00404100
int3
Function at 0x4029b0
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x432480
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x44161c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
call fcn.00404219
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4029ef
push 0x80004005
call fcn.00404100
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 0
call fcn.00404219
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402a21
push 0x80004005
call fcn.00404100
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov byte [esp + 0x20], 1
mov ecx, dword [0x44569c]
mov eax, dword [ecx - 0xc]
dec eax
push eax
lea edx, [esp + 0x18]
push edx
mov ecx, 0x44569c
call fcn.00402d80
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call fcn.00403e90
mov byte [esp + 0x20], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402a84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0xc]
push 0x5c
push esi
call fcn.0041ef57
add esp, 8
test eax, eax
jne 0x402a9c
or ecx, 0xffffffff
jmp 0x402aa2
sub eax, esi
sar eax, 1
mov ecx, eax
mov eax, dword [esi - 0xc]
sub eax, ecx
dec eax
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402d00
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 3
call fcn.00403e90
mov byte [esp + 0x20], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402aeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0xc]
push esi
lea ecx, [esp + 0x14]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
push ecx
call fcn.00403ce0
mov edi, dword [esp + 0x1c]
add esp, 0xc
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x402b1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [esp + 0x20], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402b48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x402bf0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x432379
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x44161c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], edi
call fcn.00404219
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x402c3d
push 0x80004005
call fcn.00404100
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
lea ecx, [esp + 0xc]
push ecx
push 0x10
mov dword [esp + 0x24], edi
push edi
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x402cd8
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x402c92
push 0x104
mov ecx, esi
call fcn.00404080
mov eax, dword [esi]
mov edx, dword [esp + 0xc]
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
cmp eax, edi
jne 0x402cad
xor eax, eax
jmp 0x402cbb
push ecx
push eax
call fcn.0041e9cc
add esp, 8
cmp eax, edi
jl 0x402cec
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x402cec
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
push 0x80070057
call fcn.00404100
int3

Function at 0x403880
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 0x403899
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4038d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4038d0
lea ebx, [ebx]
cmp esi, eax
jae 0x4038d4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4038c0
cmp esi, eax
jb 0x4038da
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x404e72
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x404eba
call fcn.00407bc0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x404eba
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x404efd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x404ee6
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x404ee6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x404efa
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x409757
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x431c8f
call fcn.0041f72b
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40977c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4097c2
lea ecx, [ebp - 0x10]
call fcn.00404190
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404344
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00404150
mov eax, esi
call fcn.0041f803
ret 8
Function at 0x4199b9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x419a00
call fcn.00407bc0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x419a00
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x419a1c
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00419531
mov esi, eax
test edi, edi
je 0x419a1a
test ebx, ebx
je 0x419a1a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41dcbe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x41dce2
cmp dword [edi + 0x54], 0
jne 0x41dce2
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00407bc0
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041dc7f
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41e660
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44161c]
jne 0x41e66a
repz ret
jmp fcn.004238d2
Function at 0x42a84e
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.004232e1
and dword [ebp - 4], 0
cmp dword [0x445440], 0
mov ebx, eax
jne 0x42a8ff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42a9b0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42a9b0
push eax
call fcn.0042326f
mov dword [esp], 0x436d0c
push edi
mov dword [0x445440], eax
call esi
push eax
call fcn.0042326f
mov dword [esp], 0x436cf8
push edi
mov dword [0x445444], eax
call esi
push eax
call fcn.0042326f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x445448], eax
call esi
push eax
call fcn.0042326f
pop ecx
mov dword [0x445450], eax
test eax, eax
je 0x42a8ff
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042326f
pop ecx
mov dword [0x44544c], eax
mov eax, dword [0x44544c]
cmp eax, ebx
je 0x42a957
cmp dword [0x445450], ebx
je 0x42a957
push eax
call fcn.004232ea
push dword [0x445450]
mov esi, eax
call fcn.004232ea
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42a957
test edi, edi
je 0x42a957
call esi
test eax, eax
je 0x42a94e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42a94e
test byte [ebp - 0xc], 1
jne 0x42a957
or dword [ebp + 0x10], 0x200000
jmp 0x42a990
mov eax, dword [0x445444]
cmp eax, ebx
je 0x42a990
push eax
call fcn.004232ea
pop ecx
test eax, eax
je 0x42a990
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42a990
mov eax, dword [0x445448]
cmp eax, ebx
je 0x42a990
push eax
call fcn.004232ea
pop ecx
test eax, eax
je 0x42a990
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x445440]
call fcn.004232ea
pop ecx
test eax, eax
je 0x42a9b0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42a9b2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret