joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44536c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x472c18]
cmp byte [eax + 0xc], 0
je 0x4454d9
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4454d2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x473b90], 0
jne 0x4453c0
push 0x4454e0
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4454e8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x473b90], eax
cmp dword [0x471ca0], 0
jne 0x4454bb
push 0x4454f8
call sub.kernel32.dll_LoadLibraryA
mov dword [0x471ca0], eax
cmp dword [0x471ca0], 0
je 0x4454bb
push 0x445504
mov eax, dword [0x471ca0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x473b94], eax
push 0x445514
mov eax, dword [0x471ca0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x473b98], eax
push 0x445528
mov eax, dword [0x471ca0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x473b9c], eax
push 0x445540
mov eax, dword [0x471ca0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x473ba0], eax
push 0x445558
mov eax, dword [0x471ca0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x473ba4], eax
push 0x44556c
mov eax, dword [0x471ca0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x473ba8], eax
push 0x445584
mov eax, dword [0x471ca0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x473bac], eax
push 0x44559c
mov eax, dword [0x471ca0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x473bb0], eax
push 0x4455b8
mov eax, dword [0x471ca0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x473bb4], eax
push 0x4455c4
mov eax, dword [0x471ca0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x473bb8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4454d9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44981c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403e4c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44986b
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x450fe8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x451038]
test si, 4
je 0x450ffc
or bl, 1
test si, 8
je 0x451006
or bl, 4
test si, 1
je 0x451010
or bl, 8
test si, 2
je 0x45101a
or bl, 0x10
test si, 0x10
je 0x451024
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x451033
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45103c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x451074]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x451055
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x451064
or bl, 4
test esi, 0x20000000
je 0x45106f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45771c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45772e
add esp, 0xfffffff0
call fcn.00403420
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419618
mov eax, dword [0x4728b8]
mov dword [eax + 4], ebx
mov dword [eax], 0x457ac0
mov eax, dword [0x4728c4]
mov dword [eax + 4], ebx
mov dword [eax], 0x457acc
mov eax, ebx
call fcn.00457ad8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4118f0]
call fcn.004030cc
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4118f0]
call fcn.004030cc
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4118f0]
call fcn.004030cc
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4118f0]
call fcn.004030cc
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4118f0]
call fcn.004030cc
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, 0x453ef4
push eax
push 0
push 0
mov eax, dword [0x472a1c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b094]
call fcn.0041c808
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b094]
call fcn.0041c808
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b094]
call fcn.0041c808
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00457ef8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457dd4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457dd4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457dd4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45786b
call fcn.00403478
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x457bb8
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 0x457d63
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x457d44
mov dl, 1
mov eax, dword [0x411d0c]
call fcn.004030cc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e4c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x457d33
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.004456cc
test al, al
je 0x457d26
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, 0x457d74
lea eax, [ebp - 0x254]
call fcn.00408c18
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x457d26
xor eax, eax
push ebp
push 0x457d1f
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 0x457dac
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x457d08
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
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 0x457d08
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457d26
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x457c29
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415808
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 0x457d6a
lea eax, [ebp - 0x260]
call fcn.00403e4c
ret

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

Disassembly:
push ecx
mov eax, dword [0x473bdc]
cmp byte [eax + 0xa5], 0
jne 0x458709
cmp dword [0x473bf4], 0
jne 0x4586ca
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x458654
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x473bf4], eax
cmp dword [0x473bf0], 0
jne 0x4586e5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x473bf0], eax
cmp dword [0x473bf8], 0
jne 0x458709
push esp
push 0
push 0
push 0x4585f8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x473bf8], eax
pop edx
ret
Function at 0x458800
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x458817
add esp, 0xfffffff0
call fcn.00403420
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419618
mov eax, dword [0x472a08]
cmp word [eax + 2], 0
jne 0x45883f
mov eax, dword [0x472a08]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00459f68
mov eax, dword [0x472ab8]
cmp word [eax + 2], 0
jne 0x458859
mov eax, dword [0x472ab8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045a160
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4118f0]
call fcn.004030cc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4118f0]
call fcn.004030cc
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 [0x41bb74]
call fcn.0042334c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4589e0
mov eax, dword [0x472920]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042371c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45a700
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x472920]
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.0040c360
test eax, eax
je 0x45894e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004085f8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c388
test eax, eax
je 0x458962
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.004040bc
mov eax, dword [0x472800]
cmp byte [eax], 0
jne 0x458996
mov eax, ebx
call fcn.00458b08
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.0045a8dc
mov eax, ebx
call fcn.0045b2a0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4589d6
call fcn.00403478
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458d88
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x473bdc]
cmp dword [eax + 0x30], 0
je 0x458e32
cmp dword [ebx + 0x94], 0
jne 0x458e2c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x458d18
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x458e2c
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 0x458df2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x458e2c
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.00413c58
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x458e01
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x459994
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 0x4599c9
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.00403f3c
jmp 0x4599d6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ea0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45aab8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45aaf9
mov eax, esi
call fcn.00440c70
test al, al
je 0x45aaf9
mov eax, dword [ebx + 0x84]
call fcn.0044096c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45aaf9
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044096c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45e2a0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45e2ce
mov eax, ebx
call fcn.0045ed54
cmp dword [ebx + 0x40], 0
je 0x45e2c7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45e33f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45e331
cmp dword [ebx + 8], 0
je 0x45e2f0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45e302
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45e331
cmp dword [ebx + 8], 0
je 0x45e2e3
cmp eax, 3
je 0x45e315
dec eax
jne 0x45e2e3
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 0x45e2e3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45e2e3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45e35d
cmp dword [ebx + 0x14], 0xcc
je 0x45e35d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045e368
pop ebx
ret
Function at 0x4010b2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x410284]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x4010ff
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x804]
push 0x3ff
push 0x400
push eax
call fcn.0040170c
lea eax, [ebp - 0x804]
push eax
call fcn.0040170c
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
leave
ret

Function at 0x40110b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x410284]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x401158
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x3ff
push 0x400
push eax
call fcn.0040170c
lea eax, [ebp - 0x404]
push eax
call fcn.0040170c
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
leave
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x1002aaee
pop dword [ebp - 0x34]
mov eax, 0x1002aaee
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x2415ee0e
add dword [ebp - 0x44], 0x2a3c573d
mov dword [ebp - 0x40], 0x935f2aef
add dword [ebp - 0x40], 0x9ed42156
mov dword [ebp - 0x3c], 0xb5bf550b
add dword [ebp - 0x3c], 0x968cef23
mov dword [ebp - 0x38], 0x39946611
add dword [ebp - 0x38], 0xc66b99ef
lea eax, [ebp - 0x44]
push eax
mov eax, 0xe73861c2
add eax, 0x28ca5e76
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x6ccebd6f
sub dword [ebp - 0x44], 0xf85c5419
mov dword [ebp - 0x40], 0xd4b503e
add dword [ebp - 0x40], 0x34211137
mov dword [ebp - 0x3c], 0x7dd1ee43
add dword [ebp - 0x3c], 0xe59d7e29
mov dword [ebp - 0x38], 0x158f4b72
add dword [ebp - 0x38], 0xea70b48e
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0x28dcdf05
add eax, 0xe725e123
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x38d24
push 0
call eax
mov ecx, 0xa4b7dcf9
sub ecx, 0xa4b78b8f
xor ebx, ebx
add ebx, eax
mov edi, 0x62813016
sub edi, 0x527d9a16
add edi, dword [ebp - 0x34]
mov edx, 0xf61b670a
add edx, 0x98da590d
sub dword [ebp - 0x18], 0x3578edc0
mov esi, dword [edi]
add dword [ebp - 0x14], 0x2bbdba56
xor esi, edx
sub dword [ebp - 0x18], 0x1e8cb2ad
mov dword [ebx], esi
sub dword [ebp - 8], 0xd7e214cf
add ebx, 0xefe7dfee
add ebx, 0x10182016
add edi, 4
loop 0x1002ac0d
add eax, 0x2913a5b2
add eax, 0xd6ed92c9
mov ebx, eax
add eax, 0x9ee3b69f
sub eax, 0x9ee3b69a
mov ecx, 0x10000000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x415a92
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
pushal
call fcn.00415aa1

Function at 0x416262
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
pushal
call fcn.0041626e

Function at 0x4168e7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov dword [ebp - 4], 0
call fcn.004168fa

Function at 0x416961
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
pushal
mov dword [ebp - 4], 0
call fcn.00416974
Function at 0x404005
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x418968], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x404049
call ebx
test eax, eax
jns 0x40403f
push 0x401688
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x40167c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x418964], eax
mov dword [0x418968], 1
mov eax, dword [0x418964]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x404065
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x404095
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x40408b
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x40407f
push dword [eax + 8]
call dword [eax]
jmp 0x404085
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x404094
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x404108
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
test byte [0x418974], 1
push ebx
push esi
push edi
jne 0x40412b
or dword [0x418974], 1
call fcn.004040b4
mov dword [0x418970], eax
push 4
pop eax
call fcn.00414410
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4041c0
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
lea edi, [eax - 1]
not edi
and edi, esi
sub edi, eax
mov dword [ebp - 8], eax
mov eax, dword [0x4188cc]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffff1000
add esi, 0x11000
add esi, ebx
cmp edi, esi
jb 0x4041c0
cmp eax, 1
je 0x4041e1
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4041c0
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40418d
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4041bc
xor eax, eax
inc eax
jmp 0x404200
cmp edi, eax
jae 0x4041c4
xor eax, eax
jmp 0x404200
cmp eax, esi
jae 0x4041cb
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4188cc]
jmp 0x4041e4
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4043b5
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
ret 8