joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d248
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x240], 0
je 0x43d264
cmp dword [esi + 4], 0
je 0x43d291
test byte [ebx + 0x55], 1
jne 0x43d283
mov eax, ebx
call fcn.0043b69c
test eax, eax
jne 0x43d283
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43d3a1
mov edx, esi
mov eax, ebx
call fcn.0043cc50
jmp 0x43d3a1
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43d39a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043f2a0
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00438b44
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043d248
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043f2a0
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43d3a1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x444384
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x52eed4]
cmp byte [eax + 0xc], 0
je 0x4444f1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4444ea
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x532548], 0
jne 0x4443d8
push 0x4444f8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x444500
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x532548], eax
cmp dword [0x45f580], 0
jne 0x4444d3
push 0x444510
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45f580], eax
cmp dword [0x45f580], 0
je 0x4444d3
push 0x44451c
mov eax, dword [0x45f580]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x53254c], eax
push 0x44452c
mov eax, dword [0x45f580]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x532550], eax
push 0x444540
mov eax, dword [0x45f580]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x532554], eax
push 0x444558
mov eax, dword [0x45f580]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x532558], eax
push 0x444570
mov eax, dword [0x45f580]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x53255c], eax
push 0x444584
mov eax, dword [0x45f580]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x532560], eax
push 0x44459c
mov eax, dword [0x45f580]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x532564], eax
push 0x4445b4
mov eax, dword [0x45f580]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x532568], eax
push 0x4445d0
mov eax, dword [0x45f580]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x53256c], eax
push 0x4445dc
mov eax, dword [0x45f580]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x532570], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4444f1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x449b38
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x449b8c]
test si, 4
je 0x449b4d
or bl, 1
test si, 8
je 0x449b57
or bl, 4
test si, 1
je 0x449b61
or bl, 8
test si, 2
je 0x449b6b
or bl, 0x10
test si, 0x10
je 0x449b75
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449b84
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x449b90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x449bcc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449baa
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449bb9
or bl, 4
test esi, 0x20000000
je 0x449bc4
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x451280
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x451292
add esp, 0xfffffff0
call fcn.00403cc0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d50c
mov eax, dword [0x52eb50]
mov dword [eax + 4], ebx
mov dword [eax], 0x451624
mov eax, dword [0x52eb5c]
mov dword [eax + 4], ebx
mov dword [eax], 0x451630
mov eax, ebx
call fcn.0045163c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415308]
call fcn.00403984
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415308]
call fcn.00403984
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415308]
call fcn.00403984
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415308]
call fcn.00403984
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415308]
call fcn.00403984
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44d0d4
push eax
push 0
push 0
mov eax, dword [0x52ecc8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x421080]
call fcn.004225a0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x421080]
call fcn.004225a0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x421080]
call fcn.004225a0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00451a6c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45193c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45193c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45193c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4513cf
call fcn.00403d18
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x451720
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 0x4518cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4518ac
mov dl, 1
mov eax, dword [0x41572c]
call fcn.00403984
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004047c8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45189b
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.004446e0
test al, al
je 0x45188e
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, 0x4518dc
lea eax, [ebp - 0x254]
call fcn.00409658
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45188e
xor eax, eax
push ebp
push 0x451887
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 0x451914
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x451870
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a38
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 0x451870
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45188e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x451791
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041940c
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 0x4518d2
lea eax, [ebp - 0x260]
call fcn.004047c8
ret

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

Disassembly:
push ecx
mov eax, dword [0x532580]
cmp byte [eax + 0xad], 0
jne 0x4522b5
cmp dword [0x532598], 0
jne 0x452276
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x452200
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x532598], eax
cmp dword [0x532594], 0
jne 0x452291
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x532594], eax
cmp dword [0x53259c], 0
jne 0x4522b5
push esp
push 0
push 0
push 0x4521a4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x53259c], eax
pop edx
ret
Function at 0x452488
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45249f
add esp, 0xfffffff0
call fcn.00403cc0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d50c
mov eax, dword [0x52ecac]
cmp word [eax + 2], 0
jne 0x4524c7
mov eax, dword [0x52ecac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453f38
mov eax, dword [0x52ed60]
cmp word [eax + 2], 0
jne 0x4524e1
mov eax, dword [0x52ed60]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00454144
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415308]
call fcn.00403984
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415308]
call fcn.00403984
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x415308]
call fcn.00403984
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x42185c]
call fcn.004276a4
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x452698
mov eax, dword [0x52ebbc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00427a78
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x454804
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x52ebbc]
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.0040cde8
test eax, eax
je 0x4525e8
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409010
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040ce1c
test eax, eax
je 0x4525fc
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404a38
mov byte [ebx + 0xd4], 0
push ebx
push 0x453a98
call fcn.0041e688
mov dword [ebx + 0xc8], eax
mov eax, dword [0x52eaa4]
cmp byte [eax], 0
jne 0x45264d
mov eax, ebx
call fcn.004527dc
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004549e0
mov eax, ebx
call fcn.00455540
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45268d
call fcn.00403d18
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452a5c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x532580]
cmp dword [eax + 0x30], 0
je 0x452b06
cmp dword [ebx + 0x94], 0
jne 0x452b00
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4529ec
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x452b00
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 0x452ac6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x452b00
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.004176b4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x452ad5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x453820
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x453855
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.004048b8
jmp 0x453862
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040481c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x454bc4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x454c32
mov eax, esi
call fcn.0043f59c
test al, al
je 0x454c32
mov eax, dword [ebx + 0x84]
call fcn.0043f2a0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x454c32
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x454c26
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043f2a0
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004377e4
jmp 0x454c32
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00454a00
pop esi
pop ebx
ret
Function at 0x9ee740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9ee78c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9ee752
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9ee7f0
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9ee842
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9ee848
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0xa06d37
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a069f7

Function at 0xa0bb31
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a0b9b0

Function at 0xa110e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xa1110d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xa1110d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
mov ecx, 0x7fb1320e
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x5d775d86
nop
nop
nop
nop
test eax, eax
nop
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4049f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov eax, ebx
call fcn.00401a48
cmp dword [ebp - 0xc], 0
je 0x404a96
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x14], eax
push ebp
call fcn.004049b4
pop ecx
test al, al
je 0x404a96
cmp dword [ebp - 4], 1
je 0x404a33
cmp dword [ebp - 4], 2
jne 0x404a96
mov eax, dword [ebp - 8]
call fcn.0040114c
mov dword [ebp - 0x14], eax
push ebp
call fcn.004049b4
pop ecx
test al, al
je 0x404a8e
cmp dword [ebp - 4], 2
jne 0x404a84
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov edi, eax
mov eax, edi
call fcn.0040114c
mov esi, eax
push edi
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov eax, ebx
mov edx, esi
call fcn.00401c1c
mov eax, esi
call fcn.00401164
jmp 0x404a8e
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.00401c1c
mov eax, dword [ebp - 0x14]
call fcn.00401164
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404b24
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
test ebx, ebx
je 0x404b51
lea eax, [esp + 4]
push eax
push 0
lea eax, [esp + 8]
push eax
push 0
mov eax, esi
call fcn.00401e98
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404b55
xor eax, eax
jmp 0x404b57
mov al, 1
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x404b94
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x404c54
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0040b478
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push edi
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
jne 0x404c3e
cmp dword [ebp - 8], 0
jbe 0x404c3c
mov eax, dword [ebp - 8]
inc eax
call fcn.0040114c
mov ebx, eax
xor esi, esi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
jmp 0x404c1a
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00401c1c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0040b468
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
inc esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push edi
call sub.advapi32.dll_RegEnumKeyExA
cmp eax, 0x103
jne 0x404bfd
mov eax, ebx
call fcn.00401164
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404c5b
lea eax, [ebp - 0x10]
call fcn.00401a48
ret
Function at 0x405490
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffffc
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
cmp byte [ebx + 0x18], 0
jne 0x40550c
mov byte [ebp - 0x1004], 0
mov eax, dword [ebx + 0x19]
call fcn.00401e98
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
mov eax, esi
call fcn.00401e98
push eax
mov eax, dword [ebp - 4]
call fcn.00401e98
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00401e98
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
test eax, eax
je 0x405503
mov eax, edi
lea edx, [ebp - 0x1004]
mov ecx, 0x1000
call fcn.00401c88
jmp 0x40553d
mov eax, edi
call fcn.00401a48
jmp 0x40553d
mov eax, edi
mov edx, esi
call fcn.00401a9c
mov eax, dword [ebx + 0x19]
call fcn.00401e98
push eax
mov eax, esi
call fcn.00401e98
push eax
mov eax, dword [ebp - 4]
call fcn.00401e98
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00401e98
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409254
Capabilities:
Get file attributes

Disassembly:
call fcn.004031c8
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x409268
dec eax
and al, 0x10
sete al
ret

Function at 0x4092d8
Capabilities:
Get file attributes

Disassembly:
push ebx
push eax
push 0x8001
call sub.kernel32.dll_SetErrorMode
xchg ebx, eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x4092f3
dec eax
and al, 0x10
setne al
xchg ebx, eax
push eax
call sub.kernel32.dll_SetErrorMode
xchg ebx, eax
pop ebx
ret

Function at 0x40a83c
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x37], 0xef
test dl, dl
je 0x40a848
or byte [eax + 0x37], 0x10
mov byte [eax + 0x52], dl
mov ecx, dword [eax + 0x28]
jecxz 0x40a864
push eax
je 0x40a865
call dword [0x418110]
pop eax
push 5
push dword [eax + 0x28]
call sub.user32.dll_ShowWindow
ret
mov byte [eax + 0x174], dl
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x418110]
ret

Function at 0x40bd2c
Capabilities:
Capture screenshot

Disassembly:
push ebx
mov ebx, eax
call fcn.0040bc28
je 0x40bd5e
mov eax, ebx
push edx
call fcn.00407904
pop edx
cmp eax, edx
je 0x40bd5e
test edx, edx
mov eax, ebx
jne 0x40bd50
pop ebx
inc edx
jmp fcn.004078f4
mov byte [ebx + 0x49], dl
xor edx, edx
call fcn.004078f4
xchg ebx, eax
cmp eax, 0
pop ebx
jne fcn.0040bd7c
ret