joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e7146
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4e715e
mov edi, dword [esi + 0xc]
jmp 0x4e719e
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4e7177
call fcn.00413ad3
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4e718c
call fcn.00413ad3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4e719e
call fcn.00413ad3
call fcn.004155c9
cmp dword [eax + 0x3c], 0
je 0x4e71b3
push edi
mov ecx, ebx
call fcn.004e5f82
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e7060
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4e71d1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e71dd
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x5000ee
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x71d5e0]
jne 0x5000f8
repz ret
jmp fcn.00509084
Function at 0x51a16a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x71d5e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00509dd6
and dword [ebp - 0x14], 0
cmp dword [0x72b744], 0
mov dword [ebp - 0x18], eax
jne 0x51a21d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x51a2c5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x51a2c5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x6aefec
push ebx
mov dword [0x72b744], eax
call edi
push eax
call esi
push 0x6aefd8
push ebx
mov dword [0x72b748], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x72b74c], eax
call edi
push eax
call esi
mov dword [0x72b754], eax
test eax, eax
je 0x51a21d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x72b750], eax
mov eax, dword [0x72b750]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x51a276
cmp dword [0x72b754], ecx
je 0x51a276
push eax
call esi
push dword [0x72b754]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x51a276
test ebx, ebx
je 0x51a276
call edi
test eax, eax
je 0x51a26d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x51a26d
test byte [ebp - 8], 1
jne 0x51a276
or dword [ebp + 0x10], 0x200000
jmp 0x51a2a9
mov eax, dword [0x72b748]
cmp eax, dword [ebp - 0x18]
je 0x51a2a9
push eax
call esi
test eax, eax
je 0x51a2a9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x51a2a9
mov eax, dword [0x72b74c]
cmp eax, dword [ebp - 0x18]
je 0x51a2a9
push eax
call esi
test eax, eax
je 0x51a2a9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x72b744]
call esi
test eax, eax
je 0x51a2c5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x51a2c7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005000ee
leave
ret
Function at 0x521250
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x74]
cmp dword [eax + 0x60], 2
jne 0x521269
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
lea edx, [ecx - 0x60]
cmp edx, 9
ja 0x52127d
cmp dword [eax + 0x80], 0
je 0x521260
push 2
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
test eax, eax
je 0x521260
mov eax, dword [edi]
mov edx, dword [eax + 0x50]
push ebx
push esi
mov ecx, edi
call edx
mov ebx, eax
push ebx
call fcn.0051ed40
mov esi, eax
add esp, 4
neg esi
sbb esi, esi
xor eax, eax
and esi, ebx
mov dword [ebp - 4], eax
cmp dword [edi + 0x84], eax
jle 0x5212f7
push eax
mov ecx, edi
call fcn.0051f4b0
mov ebx, eax
cmp dword [ebx + 0xbc], 0
jne 0x5212f5
mov eax, dword [edi + 0x74]
test byte [eax + 0x60], 1
je 0x5212e4
test esi, esi
jne 0x5212e4
push ebx
call fcn.0051ed40
add esp, 4
test eax, eax
je 0x5212e4
mov esi, ebx
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [edi + 0x84]
jl 0x5212b5
jmp 0x5212f7
mov esi, ebx
test esi, esi
je 0x5213a7
push esi
call fcn.0051ed40
add esp, 4
test eax, eax
je 0x5213a7
mov edx, dword [esi]
mov ebx, dword [ebp + 8]
mov eax, dword [edx + 0x21c]
push ebx
mov ecx, esi
call eax
test eax, eax
jne 0x521399
lea ecx, [ebp - 4]
push ecx
push ebx
push esi
mov ecx, edi
call fcn.00520f50
mov ebx, eax
test ebx, ebx
je 0x5213a7
mov esi, dword [ebx + 0xc0]
cmp dword [esi + 0xbc], 0
mov edx, dword [ebx + 0x40]
mov dword [ebp + 8], edx
jne 0x521353
mov ecx, edi
call fcn.0051f990
push 1
mov ecx, edi
call fcn.0051f7d0
push 1
mov dword [edi + 0x44], 1
mov eax, dword [esi]
mov edx, dword [eax + 0x164]
push 0
push 1
mov ecx, esi
call edx
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
mov edx, dword [eax + 0x16c]
push 1
push ecx
mov ecx, esi
call edx
cmp dword [ebp - 4], 0
jne 0x521399
mov eax, dword [ebx]
mov edx, dword [eax + 0xb0]
mov ecx, ebx
call edx
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret 4
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x5214a0
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67543b
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x71d5e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
lea eax, [ebx - 0x60]
cmp eax, 9
ja 0x5214ec
movsx ecx, byte [ebp + 8]
add ebx, 0xffffffd0
xor eax, eax
cmp ecx, ebx
sete al
jmp 0x52166f
push 2
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
test al, al
je 0x521586
mov edx, dword [ebp + 8]
push edx
call fcn.00521410
add esp, 4
mov byte [ebp - 0x111], al
cmp byte [ebp + 8], bl
je 0x52166a
cmp al, bl
je 0x52166a
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push 0
push 0
call esi
mov ebx, eax
mov dword [ebp - 0x11c], ebx
cmp ebx, 1
jl 0x521586
lea ecx, [ebp - 0x130]
call fcn.00521430
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], 0
call fcn.0058f160
mov edi, dword [ebp - 0x12c]
push edi
push ebx
call esi
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
jne 0x52158d
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], 0xffffffff
call fcn.00521450
xor eax, eax
jmp 0x52166f
xor esi, esi
test ebx, ebx
jle 0x521574
mov dword [ebp - 0x118], 0
test esi, esi
js 0x52168b
cmp esi, dword [ebp - 0x128]
jge 0x52168b
mov ecx, dword [edi + esi*4]
push ecx
mov ecx, dword [ebp + 0xc]
push 0
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x110]
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_ToAsciiEx]
cmp eax, 1
jne 0x5215f2
mov eax, dword [ebp - 0x118]
cmp byte [ebp + 8], al
je 0x521658
push eax
call fcn.00521410
add esp, 4
cmp byte [ebp - 0x111], al
je 0x521658
mov bl, byte [ebp - 0x100]
mov byte [ebp - 0x100], 0x81
mov edx, dword [edi + esi*4]
push edx
mov edx, dword [ebp + 0xc]
push 0
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x110]
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_ToAsciiEx]
cmp eax, 1
jne 0x521640
mov eax, dword [ebp - 0x118]
cmp byte [ebp + 8], al
je 0x521658
push eax
call fcn.00521410
add esp, 4
cmp byte [ebp - 0x111], al
je 0x521658
inc esi
mov byte [ebp - 0x100], bl
cmp esi, dword [ebp - 0x11c]
jl 0x521593
jmp 0x521574
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], 0xffffffff
call fcn.00521450
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005000ee
mov esp, ebp
pop ebp
ret
call fcn.00409f06
int3
Function at 0x522ed0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp esi, 8
je 0x522f17
cmp esi, 0x21
jb 0x522eec
cmp esi, 0x2e
jbe 0x522f17
cmp esi, 0x43
je 0x522f00
cmp esi, 0x56
je 0x522f00
cmp esi, 0x58
je 0x522f00
cmp esi, 0x5a
jne 0x522f0d
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x522f17
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi + 0x20]
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
push edx
mov ecx, edi
mov dword [ebp - 0x18], pe_nt_image_headers32
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], esi
call fcn.0041275e
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x5254e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x74]
call edx
test eax, eax
je 0x525682
mov eax, dword [esi + 0x134]
test eax, eax
je 0x525682
cmp dword [eax + 0x20], 0
je 0x525682
test eax, eax
je 0x525521
cmp dword [eax + 0x74], 0
je 0x525521
mov eax, 2
pop esi
pop ebp
ret 8
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, 0xd
je 0x52567a
cmp ebx, 9
je 0x52567a
cmp ebx, 0x1b
jne 0x52556d
lea eax, [esi + 0x154]
push eax
mov ecx, esi
call fcn.005253f0
mov edx, dword [esi]
mov eax, dword [edx + 0x70]
push 0
mov ecx, esi
call eax
mov ecx, dword [esi + 0xc0]
xor eax, eax
cmp dword [ecx + 0xd4], 2
pop ebx
sete al
pop esi
pop ebp
ret 8
push edi
test eax, eax
je 0x5255b2
cmp dword [eax + 0x20], 0
je 0x5255b2
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call edi
test ax, ax
jns 0x5255b2
push 0x11
call edi
test ax, ax
js 0x5255b2
mov ecx, dword [esi + 0xc0]
call fcn.0057bf60
test eax, eax
je 0x5255b2
movsx edx, bl
push edx
mov ecx, eax
call fcn.00521250
test eax, eax
jne 0x52563b
mov ecx, esi
call fcn.0055a660
test eax, eax
je 0x525647
cmp dword [esi + 0x16c], 0
je 0x525647
cmp ebx, 0x26
je 0x5255d4
cmp ebx, 0x28
jne 0x525647
mov ecx, esi
call fcn.005230d0
test eax, eax
jne 0x525647
mov eax, dword [esi]
mov edx, dword [eax + 0x16c]
xor ecx, ecx
cmp ebx, 0x26
sete cl
lea ecx, [ecx + ecx - 1]
push ecx
push 1
mov ecx, esi
call edx
mov eax, dword [esi + 0x134]
test eax, eax
je 0x52563b
mov edi, dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, edi
jne 0x52563b
mov esi, dword [esi + 0x134]
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
push 0
push 0xb1
push eax
call edi
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0xb7
push ecx
call edi
pop edi
pop ebx
mov eax, 1
pop esi
pop ebp
ret 8
mov ecx, dword [esi + 0x160]
mov edi, dword [ebp + 0xc]
test ecx, ecx
je 0x52565f
push edi
push ebx
call fcn.005928d0
test eax, eax
jne 0x52563b
mov ecx, dword [esi + 0x134]
push edi
push ebx
call fcn.00522ed0
neg eax
pop edi
sbb eax, eax
pop ebx
add eax, 2
pop esi
pop ebp
ret 8
pop ebx
xor eax, eax
pop esi
pop ebp
ret 8
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x52ab60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x675cb0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x71d5e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor eax, eax
mov ebx, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], vtable.CFont.0
mov dword [ebp - 4], eax
mov eax, dword [esi + 8]
push 0x58
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0
push str.Marlett
push eax
push 0x60
push 0x50
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00421ba7
mov edx, dword [esi]
mov edx, dword [edx + 0x28]
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call edx
mov dword [ebp - 0x30], eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x70]
push edi
push esi
mov ecx, ebx
call edx
mov eax, dword [esi]
mov edx, dword [ebx]
mov dword [ebp - 0x24], eax
mov eax, dword [edx + 0x74]
push edi
mov ecx, ebx
call eax
mov edx, dword [ebp - 0x24]
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
lea ecx, [ebp - 0x24]
push ecx
mov ecx, edi
call fcn.00529c80
mov edx, dword [edi + 0x80]
mov ecx, dword [edi + 0x84]
mov dword [ebp - 0x20], edx
mov edx, dword [edi + 0x88]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edi + 0x8c]
mov dword [ebp - 0x18], edx
mov edx, dword [esi]
mov dword [ebp - 0x14], ecx
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push 0x25
lea edi, [ebp - 0x20]
push edi
push ecx
push eax
mov eax, dword [edx + 0x68]
mov ecx, esi
mov byte [ebp - 4], 1
call eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52ac6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [ebp - 0x30]
mov edx, dword [edx + 0x28]
push eax
mov ecx, esi
call edx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], vtable.CFont.0
call fcn.004071f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005000ee
mov esp, ebp
pop ebp
ret 8
Function at 0x52e430
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x71d5e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x88], 3
call fcn.005717a0
mov ecx, eax
call fcn.005717d0
test al, al
je 0x52e4f4
lea eax, [ebp - 0x8c]
push eax
push 1
push 0
push str.Control_PanelDesktop
push reloc.oledlg.dll_OleUIAddVerbMenuA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x52e507
lea ecx, [ebp - 0x90]
push ecx
mov ecx, dword [ebp - 0x8c]
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0x94]
push eax
push 0
push str.WheelScrollLines
push ecx
mov dword [ebp - 0x90], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x52e4d3
push 0xa
push eax
lea edx, [ebp - 0x84]
push edx
call fcn.0050ee1d
add esp, 0xc
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005000ee
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x88]
push ecx
push 0
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x88]
xor ecx, ebp
call fcn.005000ee
mov esp, ebp
pop ebp
ret
Function at 0x53a680
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x676997
mov eax, dword fs:[0]
push eax
sub esp, 0x4ec
mov eax, dword [0x71d5e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x41c], esi
call fcn.004155c9
mov ecx, dword [eax + 4]
call fcn.0041235d
mov ecx, dword [esi + 0x160]
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [edi + 1]
cmp ecx, edi
je 0x53a6dd
call fcn.005b9b70
imul eax, eax, 0x5dc
shr eax, 0xc
inc eax
shl eax, 0xc
push eax
push 0x2042
lea ecx, [ebp - 0x468]
call fcn.004de735
push edi
push 0x1000
push edi
lea eax, [ebp - 0x468]
push eax
lea ecx, [ebp - 0x4b0]
mov dword [ebp - 0x424], edi
mov byte [ebp - 4], 2
call fcn.0041f4e3
lea ecx, [ebp - 0x4b0]
push ecx
mov bl, 3
lea ecx, [ebp - 0x4f8]
mov byte [ebp - 4], bl
call fcn.00584b50
mov edx, dword [esi]
mov edx, dword [edx + 0x26c]
lea eax, [ebp - 0x4f8]
push eax
mov ecx, esi
mov byte [ebp - 4], 4
call edx
lea ecx, [ebp - 0x4b0]
mov dword [ebp - 0x424], eax
call fcn.0041f32b
lea ecx, [ebp - 0x4f8]
mov byte [ebp - 4], bl
call fcn.00584250
lea ecx, [ebp - 0x4b0]
mov byte [ebp - 4], 2
call fcn.0041f4a1
mov dword [ebp - 4], 1
jmp 0x53a7ba
mov eax, dword [esi]
mov edx, dword [eax + 0x260]
lea ecx, [ebp - 0x428]
push ecx
mov ecx, esi
call edx
push str.XTPReport_CF_Records
mov byte [ebp - 4], 6
call dword [sym.imp.USER32.dll_RegisterClipboardFormatA]
movzx edi, ax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x53a83a
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x428]
push ecx
call fcn.005326f0
add esp, 4
test eax, eax
je 0x53a80f
push eax
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
cmp dword [ebp - 0x424], 0
je 0x53a834
lea ecx, [ebp - 0x468]
call fcn.004de854
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push edi
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x53a860
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 0
call fcn.004de763
lea ecx, [ebp - 0x41d]
mov dword [ebp - 4], 0xffffffff
call fcn.0040fdc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005000ee
mov esp, ebp
pop ebp
ret
Function at 0x53d4d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x71d5e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ecx]
push 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [edx + 0x5c]
push 0xd
call eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea ecx, [ebp - 0xc]
push ecx
call fcn.00502888
mov ecx, dword [ebp - 4]
add esp, 4
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.005000ee
mov esp, ebp
pop ebp
ret

Function at 0x53f230
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, eax
test esi, esi
jns 0x53f250
push 0x80070057
call fcn.00401b10
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, esi
or ecx, edx
jge 0x53f26e
push esi
mov ecx, edi
call fcn.00401920
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x53f246
mov dword [eax - 0xc], esi
mov ecx, dword [edi]
mov byte [esi + ecx], 0
inc esi
push esi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x53f29f
push ecx
push eax
call fcn.0050325c
add esp, 8
test eax, eax
js 0x53f246
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x53f246
mov dword [ecx - 0xc], eax
mov edx, dword [edi]
pop edi
pop esi
mov byte [eax + edx], 0
pop ebx
pop ebp
ret
Function at 0x555fb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0xd8]
push edi
movzx edi, word [ebp + 8]
call fcn.00556600
test edi, edi
jne 0x555fd7
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
call fcn.004155c9
mov esi, dword [eax + 0xc]
test esi, esi
je 0x556011
push 0xf1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x556011
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x556011
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x55601c
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx eax, word [esi + 6]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00407e0c
mov edi, eax
xor eax, eax
add esp, 4
xor ecx, ecx
cmp ax, word [esi + 6]
jae 0x556060
mov eax, esi
call fcn.00553f30
lea esp, [esp]
movzx edx, word [eax + ecx*2]
mov dword [edi + ecx*4], edx
movzx edx, word [esi + 6]
inc ecx
cmp ecx, edx
jl 0x556050
movzx eax, word [esi + 6]
push eax
push edi
mov ecx, ebx
call fcn.00555d80
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], eax
je 0x5560ba
mov ecx, ebx
call fcn.0057bff0
movzx edx, word [esi + 4]
movzx ecx, word [esi + 2]
push 0
push edx
mov edx, dword [ebp + 8]
push ecx
movzx ecx, word [esi + 6]
push ecx
push edi
push edx
mov ecx, eax
call fcn.005639e0
test eax, eax
jne 0x5560a1
mov dword [ebp - 4], eax
movzx eax, word [esi + 2]
cmp eax, 0x10
je 0x5560ba
movzx ecx, word [esi + 4]
mov dword [ebx + 0xe8], eax
mov dword [ebx + 0xec], ecx
push edi
call fcn.00407e01
mov eax, dword [ebp - 8]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 4]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x55d5d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x71d5e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x55d615
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005000ee
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 0x40]
push eax
push 0xe
lea ecx, [ebp - 0x14]
push ecx
push esi
call edi
test eax, eax
je 0x55d673
cmp dword [ebp - 0x40], 0xe
jne 0x55d673
push 0
lea edx, [ebp - 0x40]
push edx
push 0x28
lea eax, [ebp - 0x3c]
push eax
push esi
call edi
test eax, eax
je 0x55d673
cmp dword [ebp - 0x40], 0x28
jne 0x55d673
xor ecx, ecx
cmp word [ebp - 0x2e], 0x20
push esi
sete cl
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005000ee
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.005000ee
mov esp, ebp
pop ebp
ret
Function at 0x55d690
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x55d747
push 0
lea ecx, [ebp - 0xc]
push ecx
push 4
lea edx, [ebp - 8]
push edx
push edi
mov dword [ebp - 4], 0x474e5089
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x55d740
cmp dword [ebp - 0xc], 4
jne 0x55d740
mov eax, dword [ebp - 8]
push esi
cmp eax, dword [ebp - 4]
je 0x55d710
movzx esi, al
sub esi, 0x89
jne 0x55d726
movzx esi, ah
sub esi, 0x50
jne 0x55d726
movzx esi, byte [ebp - 6]
sub esi, 0x4e
jne 0x55d726
movzx esi, byte [ebp - 5]
sub esi, 0x47
jne 0x55d726
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test esi, esi
pop esi
sete al
pop edi
mov esp, ebp
pop ebp
ret
sar esi, 0x1f
push edi
or esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test esi, esi
pop esi
sete al
pop edi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x55d800
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x55d81d
xor eax, eax
pop esi
pop ebp
ret
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x55d818
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x55d818
xor ecx, ecx
cmp word [eax + 0xe], 0x20
push edi
sete cl
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebp
ret