joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4622b4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46245f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x462440
mov dl, 1
mov eax, dword [0x412744]
call fcn.0040335c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004040dc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46242f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0045025c
test al, al
je 0x462422
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x462470
lea eax, [ebp - 0x254]
call fcn.004090ec
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x462422
xor eax, eax
push ebp
push 0x46241b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4624a8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x462404
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.0040434c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x462404
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.0040434c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462422
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x462325
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004163d8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462466
lea eax, [ebp - 0x260]
call fcn.004040dc
ret

Function at 0x462ddc
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4dabe4]
cmp byte [eax + 0xa5], 0
jne 0x462e4d
cmp dword [0x4dabfc], 0
jne 0x462e0e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x462d98
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4dabfc], eax
cmp dword [0x4dabf8], 0
jne 0x462e29
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4dabf8], eax
cmp dword [0x4dac00], 0
jne 0x462e4d
push esp
push 0
push 0
push 0x462d3c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4dac00], eax
pop edx
ret
Function at 0x462f44
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x462f5b
add esp, 0xfffffff0
call fcn.004036b0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a294
mov eax, dword [0x4d8d44]
cmp word [eax + 2], 0
jne 0x462f83
mov eax, dword [0x4d8d44]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004646c4
mov eax, dword [0x4d8e38]
cmp word [eax + 2], 0
jne 0x462f9d
mov eax, dword [0x4d8e38]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004648bc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412308]
call fcn.0040335c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412308]
call fcn.0040335c
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41c820]
call fcn.00424220
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x463124
mov eax, dword [0x4d8c0c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004245f0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x464e6c
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4d8c0c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cd18
test eax, eax
je 0x463092
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408acc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cd40
test eax, eax
je 0x4630a6
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, 0x100
call fcn.0040434c
mov eax, dword [0x4d8a78]
cmp byte [eax], 0
jne 0x4630da
mov eax, ebx
call fcn.0046324c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00465048
mov eax, ebx
call fcn.00465a0c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46311a
call fcn.00403708
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4634cc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4dabe4]
cmp dword [eax + 0x30], 0
je 0x463576
cmp dword [ebx + 0x94], 0
jne 0x463570
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46345c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x463570
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x463536
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x463570
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414714
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x463545
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4640d8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x46410d
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004041cc
jmp 0x46411a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404130
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x465224
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x465265
mov eax, esi
call fcn.0044b824
test al, al
je 0x465265
mov eax, dword [ebx + 0x84]
call fcn.0044b520
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x465265
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044b520
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x466f30
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x467190
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x466f93
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004669f8
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040c88c
cmp al, 1
jne 0x466f93
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00466d10
test al, al
je 0x46711f
cmp dword [ebp - 8], 0
jge 0x466fb1
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004669f8
mov eax, dword [ebp - 0x210]
call fcn.0040439c
cmp ebx, eax
jge 0x466ffb
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004669f8
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4d8ffc]
and eax, 0xff
bt dword [edx], eax
jae 0x466ffb
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x46700f
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00466f0c
cmp ebx, dword [ebp - 8]
je 0x467111
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, 0x100
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x46703b
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403588
and eax, 0x7f
movzx eax, word [eax*2 + 0x4d4fe4]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4670fe
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403588
and eax, 0x7f
movzx eax, word [eax*2 + 0x4d4fe4]
push eax
push 0x100
mov eax, dword [ebp - 4]
call fcn.0044b520
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403588
and eax, 0x7f
movzx eax, word [eax*2 + 0x4d4fe4]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0044b520
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467105
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x467172
cmp dword [ebp - 8], 0
jge 0x46712a
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004669f8
mov eax, dword [ebp - 0x218]
call fcn.0040439c
cmp eax, dword [ebp - 8]
jg 0x467164
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004669f8
mov eax, dword [ebp - 0x21c]
call fcn.0040439c
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00466f0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467197
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404100
ret
Function at 0x49c1b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov ebx, 0x4d68d8
not eax
jmp 0x49c1d3
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
shr eax, 8
mov esi, dword [ebx + esi*4]
xor esi, eax
dec ecx
mov eax, esi
test ecx, ecx
je 0x49c1dc
test dl, 3
jne 0x49c1bc
cmp ecx, 0x20
jb 0x49c3f1
Function at 0x49da14
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
and eax, 1
test al, al
je 0x49da43
mov eax, dword [ebp - 4]
shr eax, 1
xor eax, 0xedb88320
mov dword [ebp - 4], eax
jmp 0x49da46
shr dword [ebp - 4], 1
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 8
jne 0x49da2a
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [eax*4 + 0x4dac5c], edx
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x100
jne 0x49da1f
mov byte [0x4db05c], 1
mov esp, ebp
pop ebp
ret

Function at 0x49da74
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp byte [0x4db05c], 0
jne 0x49da97
call fcn.0049da14
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x49dad6
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
movzx eax, byte [eax + edx]
xor eax, dword [ebp - 0x14]
and eax, 0xff
mov eax, dword [eax*4 + 0x4dac5c]
mov edx, dword [ebp - 0x14]
shr edx, 8
xor eax, edx
mov dword [ebp - 0x14], eax
inc dword [ebp - 0x18]
dec dword [ebp - 0x1c]
jne 0x49daaa
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x1000ccb4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1000ccf1
push 0x20fd
push 1
push 0x6f8b
push 0x6df7
push 0x1ea0
push 0x500a
push 0x7301
push 0x2220
call fcn.1000cd70
add esp, 0x20
jmp 0x1000cd6c
lea eax, [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1000cd5a
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1000cd3b
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 3
jge 0x1000cd58
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x1c]
call fcn.100203e6
mov dword [eax], 0xa832397b
jmp 0x1000cd30
jmp 0x1000cd6c
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esp, ebp
pop ebp
ret

Function at 0x1000d3a5
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x1000d3c7
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push 1
push dword [ebp - 0xc]
call fcn.1000d445
pop ecx
pop ecx
jmp 0x1000d441
lea eax, [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x1000d42d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x1000d411
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 4
jge 0x1000d42b
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x24]
call fcn.100203e6
or dword [eax], 0xffffffff
jmp 0x1000d406
jmp 0x1000d441
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1000d441
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esp, ebp
pop ebp
ret

Function at 0x1000dd45
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1000dd76
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x821
push 0x7452
push 0x3863
push 1
push dword [ebp - 4]
call fcn.1000dda1
add esp, 0x14
jmp 0x1000dd9d
lea eax, [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1000dd95
push 0
push 0x11f4
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
jmp 0x1000dd9d
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esp, ebp
pop ebp
ret
Function at 0x100112af
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x100112e3
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
push 1
push 0x418f
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.1001137c
add esp, 0x10
jmp 0x10011378
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x1001132d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x1001132b
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x10011378
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1001135b
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x10011378
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x30]
call fcn.100203e6
mov dword [eax], 0xca70051e
jmp 0x10011350
mov esp, ebp
pop ebp
ret
Function at 0x1001e5f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1001e686
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x1001e662
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
call fcn.10020460
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x1001e684
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
test eax, eax
je 0x1001e684
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x1001e6ef
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x38]
push 0x36df
push 0x6fa7
push 0xc4b
push 0x5010
push 0x4f24
push 0x5feb
push 0x334
push 0x1b5e
push 0x3ef
push 1
push 0x295d
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push dword [ebp - 0x48]
call fcn.1000ad94
add esp, 0x40
mov esp, ebp
pop ebp
ret

Function at 0x10023942
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x100239a6
lea eax, [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10023990
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x100239a4
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x100239a4
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x100239be
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
push 0x4b6b
push 1
call fcn.1002387a
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x1002754b
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
movzx eax, byte [ebp + 0x28]
test eax, eax
je 0x1002759f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x10]
push 0x11f8
push dword [ebp - 0x14]
push 1
push 0x65b2
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.1002772f
add esp, 0x20
jmp 0x1002772b
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0x1b17
cmp dword [ebp - 0x24], 0x655
jge 0x100276cc
push 0x10614fb4
push 0x10614fb0
push 0x100082a0
call fcn.10054802
add esp, 0xc
and dword [ebp - 4], 0
jmp 0x100275e3
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [0x10614fb0]
jge 0x1002762c
mov eax, dword [ebp - 4]
lea eax, [eax*4 + 0x10614fb8]
push eax
push 0x100081d8
call fcn.10054802
pop ecx
pop ecx
mov eax, dword [ebp - 4]
cmp dword [eax*4 + 0x10614fb8], 1
jne 0x1002761f
mov eax, dword [0x10614fa8]
inc eax
mov dword [0x10614fa8], eax
jmp 0x1002762a
mov eax, dword [0x106d84c0]
inc eax
mov dword [0x106d84c0], eax
jmp 0x100275dc
and dword [ebp - 8], 0
jmp 0x10027639
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [0x10614fb4]
jge 0x100276cc
push 0x106d84bc
push 0x10614fac
push 0x100082a0
call fcn.10054802
add esp, 0xc
mov eax, dword [0x106d84bc]
sub eax, dword [0x10614fac]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
and eax, 0x80000001
jns 0x1002767d
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x1002768f
push 0x100082a8
call fcn.10054d62
pop ecx
jmp 0x100276c7
mov eax, dword [ebp - 0xc]
cdq
sub eax, edx
sar eax, 1
cmp eax, dword [0x10614fa8]
jg 0x100276bc
mov eax, dword [ebp - 0xc]
cdq
sub eax, edx
sar eax, 1
cmp eax, dword [0x106d84c0]
jg 0x100276bc
push 0x100082ac
call fcn.10054d62
pop ecx
jmp 0x100276c7
push 0x100082a8
call fcn.10054d62
pop ecx
jmp 0x10027632
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x1002771f
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
shl eax, 2
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx]
sub ecx, eax
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
mov dword [eax + 0x20], ecx
jmp 0x1002772b
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
mov esp, ebp
pop ebp
ret