joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457580
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 0x45772b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45770c
mov dl, 1
mov eax, dword [0x4133bc]
call fcn.00403588
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404324
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4576fb
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.00444cd0
test al, al
je 0x4576ee
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, 0x45773c
lea eax, [ebp - 0x254]
call fcn.004093dc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4576ee
xor eax, eax
push ebp
push 0x4576e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x457774
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4576d0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040458c
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 0x4576d0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040458c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4576ee
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4575f1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00417bbc
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 0x457732
lea eax, [ebp - 0x260]
call fcn.00404324
ret

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

Disassembly:
push ecx
mov eax, dword [0x48dc04]
cmp byte [eax + 0xa5], 0
jne 0x4580d1
cmp dword [0x48dc1c], 0
jne 0x458092
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45801c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x48dc1c], eax
cmp dword [0x48dc18], 0
jne 0x4580ad
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x48dc18], eax
cmp dword [0x48dc20], 0
jne 0x4580d1
push esp
push 0
push 0
push 0x457fc0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x48dc20], eax
pop edx
ret
Function at 0x4581c8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4581df
add esp, 0xfffffff0
call fcn.0040391c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d524
mov eax, dword [0x48beb0]
cmp word [eax + 2], 0
jne 0x458207
mov eax, dword [0x48beb0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045988c
mov eax, dword [0x48bf94]
cmp word [eax + 2], 0
jne 0x458221
mov eax, dword [0x48bf94]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00459a84
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412d58]
call fcn.00403588
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412d58]
call fcn.00403588
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], 0x80000018
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 [0x41fa0c]
call fcn.00427240
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4583a8
mov eax, dword [0x48bd80]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00427610
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x459ff4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x48bd80]
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.0040bf5c
test eax, eax
je 0x458316
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408d38
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040bf84
test eax, eax
je 0x45832a
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, pe_nt_image_headers32
call fcn.0040458c
mov eax, dword [0x48bbb4]
cmp byte [eax], 0
jne 0x45835e
mov eax, ebx
call fcn.004584d0
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.0045a1d0
mov eax, ebx
call fcn.0045ab10
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45839e
call fcn.00403974
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458744
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x48dc04]
cmp dword [eax + 0x30], 0
je 0x4587ee
cmp dword [ebx + 0x94], 0
jne 0x4587e8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4586d4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4587e8
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 0x4587ae
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4587e8
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.004155a0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4587bd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4592cc
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 0x459301
push pe_nt_image_headers32
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.00404414
jmp 0x45930e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404378
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45a3ac
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45a3ed
mov eax, esi
call fcn.004403c4
test al, al
je 0x45a3ed
mov eax, dword [ebx + 0x84]
call fcn.004400c0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45a3ed
push 0
mov eax, dword [ebx + 0x84]
call fcn.004400c0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45ecf4
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 0x45ef54
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x45ed57
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0045e80c
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040bb14
cmp al, 1
jne 0x45ed57
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0045ead4
test al, al
je 0x45eee3
cmp dword [ebp - 8], 0
jge 0x45ed75
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.0045e80c
mov eax, dword [ebp - 0x210]
call fcn.004045dc
cmp ebx, eax
jge 0x45edbf
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0045e80c
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x48c13c]
and eax, 0xff
bt dword [edx], eax
jae 0x45edbf
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x45edd3
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0045ecd0
cmp ebx, dword [ebp - 8]
je 0x45eed5
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x45edff
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004037b4
and eax, 0x7f
movzx eax, word [eax*2 + 0x48ad10]
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 0x45eec2
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004037b4
and eax, 0x7f
movzx eax, word [eax*2 + 0x48ad10]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.004400c0
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004037b4
and eax, 0x7f
movzx eax, word [eax*2 + 0x48ad10]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.004400c0
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45eec9
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 0x45ef36
cmp dword [ebp - 8], 0
jge 0x45eeee
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0045e80c
mov eax, dword [ebp - 0x218]
call fcn.004045dc
cmp eax, dword [ebp - 8]
jg 0x45ef28
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0045e80c
mov eax, dword [ebp - 0x21c]
call fcn.004045dc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045ecd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ef5b
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404348
ret
Function at 0x476ffc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x47702a
mov eax, ebx
call fcn.00477ab4
cmp dword [ebx + 0x3c], 0
je 0x477023
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x47709b
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x47708d
cmp dword [ebx + 8], 0
je 0x47704c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x47705e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47708d
cmp dword [ebx + 8], 0
je 0x47703f
cmp eax, 3
je 0x477071
dec eax
jne 0x47703f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47703f
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x47703f
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4770b9
cmp dword [ebx + 0x10], 0xcc
je 0x4770b9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004770c4
pop ebx
ret
Function at 0x63203008
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xe0]
sub esp, 0x160
mov eax, dword [0x63256ab4]
xor eax, ebp
mov dword [ebp + 0xdc], eax
cmp dword [ebp + 0xec], 0x800
mov eax, dword [ebp + 0xe8]
push esi
mov dword [ebp - 0x3c], eax
mov esi, ecx
lea eax, [ebp - 0x40]
jne 0x632030a0
push 0x63248894
push 4
push eax
call fcn.63212c97
push eax
call fcn.63201320
add esp, 0x10
push ebx
push edi
call fcn.63212d37
mov edi, dword [eax]
call fcn.63212d37
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.6320fb54
add esp, 0x18
mov dword [ebp - 0x3c], eax
call fcn.63212d37
cmp dword [eax], ebx
je 0x632030b7
call fcn.63212d37
push dword [eax]
call fcn.63202f83
pop ecx
jmp 0x632030be
push 4
push eax
push 3
push dword [ebp + 0xec]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x63203054
jmp 0x63203130
call fcn.63212d37
mov dword [eax], edi
cmp dword [ebp - 0x3c], 0xffffffff
je 0x6320312c
cmp dword [ebp - 0x3c], esi
jae 0x6320312c
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.6320feb0
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x6320311e
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x6320311e
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x6320311e
push ebx
push ebx
push esi
jmp 0x63203124
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x6320312e
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0xdc]
xor ecx, ebp
pop esi
call fcn.6320fb73
add ebp, 0xe0
leave
ret
Function at 0x632046aa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x63245e6a
call fcn.632128be
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.63206186
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x632046f5
call fcn.63206186
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x63204706
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x63204713
or eax, 0xffffffff
jmp 0x6320486f
mov ecx, esi
call fcn.632041cf
mov dword [ebp - 0x14], eax
call fcn.6320876e
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x63204791
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x63204791
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x63204791
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.63202fd3
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x63204791
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x63204791
mov ecx, ebx
call fcn.6320bc47
test eax, eax
je 0x63204791
push 0
mov ecx, ebx
call fcn.6320bc62
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.6320a0dd
push dword [ebp - 0x14]
call fcn.632086c6
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.632044b2
xor edi, edi
cmp eax, edi
je 0x632047ee
test byte [esi + 0x3c], 0x10
je 0x632047d8
push 4
pop edi
mov ecx, esi
call fcn.6320bbf2
test ax, 0x100
je 0x632047ce
push 5
pop edi
push edi
mov ecx, esi
call fcn.6320825c
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x632047ee
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.6320bca4
or dword [ebp - 4], 0xffffffff
jmp 0x63204819
cmp dword [ebp - 0x28], edi
je 0x63204827
push 1
mov ecx, ebx
call fcn.6320bc62
cmp dword [ebp - 0x2c], edi
je 0x63204837
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x63204850
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x63204850
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.63204209
cmp dword [esi + 0x58], edi
je 0x6320486c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.6321292a
ret
Function at 0x632048d9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x632048f9
cmp dword [edi + 0x54], 0
jne 0x632048f9
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.63206186
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.632048a0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x6320b1fa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x6320b23d
call fcn.63206186
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x6320b23d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x6320b258
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.6320adb1
test ebx, ebx
mov esi, eax
je 0x6320b256
test edi, edi
je 0x6320b256
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x6320bd21
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x6324679e
call fcn.6321288b
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x6320bd46
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x6320bd92
call fcn.6320c09f
push eax
lea ecx, [ebp - 0x10]
call fcn.63201e90
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.6320bb5f
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.63201b20
mov eax, esi
call fcn.6321292a
ret 8

Function at 0x6320c9a4
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x6320c9d2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x6320c9f0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.6320c90e
jmp 0x6320c9f0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x6320c9f0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.6320c90e
test edi, edi
mov eax, edi
jne 0x6320c9da
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x6325bf28]
test ecx, ecx
je 0x6320cab3
jmp 0x6320c9a3
ret 8

Function at 0x6320fb73
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x63256ab4]
jne 0x6320fb7d
repz ret
jmp fcn.63215cf2
Function at 0x6321770a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x63256e18]
je 0x63217725
inc edi
cmp edi, 0x17
jb 0x63217716
cmp edi, 0x17
jae 0x632178a5
push ebp
push 3
call fcn.63220607
cmp eax, 1
pop ecx
je 0x63217871
push 3
call fcn.63220607
test eax, eax
pop ecx
jne 0x63217759
cmp dword [0x63256ab0], 1
je 0x63217871
cmp ebx, 0xfc
je 0x632178a4
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x6325c6e8
push ebp
call fcn.63212c97
add esp, 0xc
test eax, eax
je 0x6321778f
push esi
push esi
push esi
push esi
push esi
call fcn.63215bd2
add esp, 0x14
push 0x104
mov esi, 0x6325c701
push esi
push 0
mov byte [0x6325c805], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x632177d3
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.63212c97
add esp, 0xc
test eax, eax
je 0x632177d3
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.63215bd2
add esp, 0x14
push esi
call fcn.632104e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x63217818
push esi
call fcn.632104e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x6325c9fc
push 0x6324a57c
sub ecx, eax
push ecx
push eax
call fcn.63214816
add esp, 0x14
test eax, eax
je 0x63217818
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.63215bd2
add esp, 0x14
jmp 0x6321781a
xor esi, esi
push 0x6324a578
push ebx
push ebp
call fcn.63212e02
add esp, 0xc
test eax, eax
je 0x6321783a
push esi
push esi
push esi
push esi
push esi
call fcn.63215bd2
add esp, 0x14
push dword [edi*8 + 0x63256e1c]
push ebx
push ebp
call fcn.63212e02
add esp, 0xc
test eax, eax
je 0x6321785c
push esi
push esi
push esi
push esi
push esi
call fcn.63215bd2
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.6322044a
add esp, 0xc
jmp 0x632178a4
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x632178a4
cmp ebp, 0xffffffff
je 0x632178a4
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x63256e1c]
push dword [esi]
call fcn.632104e0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret