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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.300163e5
xor ebx, ebx
cmp dword [0x30022154], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x30019c11
push 0x30002dd0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x30019b7c
xor eax, eax
jmp 0x30019cd5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x30002dc4
push edi
call esi
cmp eax, ebx
je 0x30019b75
push eax
call fcn.30016382
mov dword [esp], 0x30002db4
push edi
mov dword [0x30022154], eax
call esi
push eax
call fcn.30016382
mov dword [esp], 0x30002da0
push edi
mov dword [0x30022158], eax
call esi
push eax
call fcn.30016382
mov dword [0x3002215c], eax
lea eax, [ebp - 8]
push eax
call fcn.30015694
test eax, eax
pop ecx
pop ecx
je 0x30019bdf
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.30018a15
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x30019c11
push 0x30002d84
push edi
call esi
push eax
call fcn.30016382
cmp eax, ebx
pop ecx
mov dword [0x30022164], eax
je 0x30019c11
push 0x30002d6c
push edi
call esi
push eax
call fcn.30016382
pop ecx
mov dword [0x30022160], eax
mov eax, dword [0x30022160]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x30019c8a
cmp dword [0x30022164], esi
je 0x30019c8a
push eax
call fcn.300163ee
pop ecx
call eax
cmp eax, ebx
je 0x30019c57
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x30022164]
call fcn.300163ee
pop ecx
call eax
test eax, eax
je 0x30019c57
test byte [ebp - 0x18], 1
jne 0x30019c8a
lea eax, [ebp - 0xc]
push eax
call fcn.300156cb
test eax, eax
pop ecx
je 0x30019c72
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.30018a15
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x30019c81
or dword [ebp + 0x10], 0x200000
jmp 0x30019cbb
or dword [ebp + 0x10], 0x40000
jmp 0x30019cbb
mov eax, dword [0x30022158]
cmp eax, esi
je 0x30019cbb
push eax
call fcn.300163ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x30019cbb
mov eax, dword [0x3002215c]
cmp eax, esi
je 0x30019cbb
push dword [ebp - 4]
push eax
call fcn.300163ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x30022154]
call fcn.300163ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x75304a93
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
mov ebx, 0x42f314
mov ecx, 0x32a814ae
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x403060
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40306d
mov eax, 0x432008
mov ecx, dword [esp + 4]
push eax
mov eax, dword [esp + 0x14]
push 0x400
push eax
push eax
mov eax, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
ret
Function at 0x404530
Capabilities:
Check os version

Disassembly:
sub esp, 0x130
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x94
push eax
call esi
mov eax, dword [esp + 0xc]
cmp eax, 5
jb 0x4045a0
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x9c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x9c]
mov dword [esp + 0x9c], 0x9c
push ecx
call esi
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
jmp 0x4045a7
mov ecx, dword [esp + 0xa4]
pop edi
cmp eax, 6
pop esi
jne 0x4045b3
cmp ecx, 1
je 0x4045b7
test ecx, ecx
jne 0x4045df
call fcn.004044e0
test eax, eax
je 0x4045df
mov edx, dword [0x4161e8]
push 0
push edx
push 0x96
call fcn.00402ef0
add esp, 4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 0x130
ret

Function at 0x4045f0
Capabilities:
Check mutex on windows
Enumerate gui resources
Hide graphical window

Disassembly:
mov eax, dword [0x4161e8]
push esi
mov esi, dword [esp + 8]
push edi
push eax
push 0
push 0
mov dword [0x42f738], esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], 0
call edi
cmp eax, 0xb7
je 0x40462a
call edi
cmp eax, 5
jne 0x404645
lea ecx, [esp + 0xc]
push ecx
push 0x402e70
call dword [sym.imp.USER32.dll_EnumWindows]
push 0xaffe
call dword [sym.imp.USER32.dll_PostQuitMessage]
call fcn.00404530
push 0
push esi
push 0
push 0
push 0x190
push 0x258
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x42f638
push 0x42f538
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x404685
pop edi
pop esi
ret
call fcn.00405200
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
mov eax, 1
pop esi
ret

Function at 0x404dd0
Capabilities:
Log keystrokes

Disassembly:
mov eax, dword [esp + 8]
push esi
test eax, eax
push 0x1bc
jne 0x404dfe
mov esi, dword [esp + 0xc]
push 0
mov eax, esi
push 0
and eax, 0xff
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push esi
call dword [sym.imp.USER32.dll_keybd_event]
pop esi
ret
mov esi, dword [esp + 0xc]
push 2
mov ecx, esi
push 0
and ecx, 0xff
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push esi
call dword [sym.imp.USER32.dll_keybd_event]
pop esi
ret
Function at 0x405200
Capabilities:
Log keystrokes via application hook

Disassembly:
push ecx
mov eax, dword [0x43242c]
test eax, eax
je 0x40521b
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [0x43242c], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
push eax
push 0x404e20
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
test eax, eax
mov dword [0x43242c], eax
jne 0x40527e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
lea ecx, [esp + 4]
push 0
push ecx
push 0
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x40527e
mov edx, dword [esp]
push 0x10
push str.Error_hooking_keyboard
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ecx
ret

Function at 0x4063c5
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x406400
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4063e7
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x4063f8
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x406402
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4063dd
xor eax, eax
pop edi
pop esi
ret

Function at 0x406c60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
ror byte [ebp - 0x33243], 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.00406395
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040634a
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
invalid
call dword [eax - 0x18]
mov ebp, 0x59fffff5
Function at 0x406f10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x67c], eax
and byte [ebp - 0x524], 0
and byte [ebp - 0x523], 0
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
mov byte [ebp - 0x51f], 0x8f
mov byte [ebp - 0x51e], 0x8b
mov byte [ebp - 0x51d], 0x9a
mov byte [ebp - 0x51c], 0xac
mov byte [ebp - 0x51b], 0x98
mov byte [ebp - 0x51a], 0x8f
mov byte [ebp - 0x519], 0x8f
mov byte [ebp - 0x518], 0xea
lea eax, [ebp - 0x524]
push eax
call fcn.00406395
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040634a
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.00406385
pushal
invalid
Function at 0x409c30
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x409cb7
mov eax, dword [esi + 0xa0]
mov ecx, dword [esi + 0x74]
push edi
push eax
push ecx
mov dword [esi + 0xa4], 0
call dword [sym.imp.GDI32.dll_RestoreDC]
mov edx, dword [esi + 0x74]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esi + 0x78]
mov dword [esi + 0x74], 0
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esi + 0x6c]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ecx
mov dword [esi + 0x78], 0
call edi
mov eax, dword [0x4325e4]
test eax, eax
je 0x409c97
push 0
push eax
call edi
mov edx, dword [esi + 0x6c]
push 0x3e8
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esi + 0x5c]
pop edi
test eax, eax
je 0x409cb7
push 1
mov ecx, esi
call fcn.0040ae30
pop esi
ret
Function at 0x409cd0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x74]
mov dword [esi + 0x24], 1
cmp eax, edi
je 0x409d11
mov ecx, dword [esi + 0xa0]
push ecx
push eax
call dword [sym.imp.GDI32.dll_RestoreDC]
mov edx, dword [esi + 0x74]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esi + 0x78]
mov dword [esi + 0x74], edi
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0x78], edi
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 8
push edi
call ebx
push 0xa
push edi
mov dword [esi + 0x7c], eax
call ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4f
mov dword [esi + 0x80], eax
call ebx
push eax
push 0x4e
call ebx
push eax
push 0x4d
call ebx
push eax
push 0x4c
call ebx
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, eax
sub ecx, edx
mov dword [esi + 0x84], edx
mov dword [esi + 0x7c], ecx
mov ecx, dword [esp + 0x1c]
mov ebp, ecx
mov dword [esi + 0x88], ebx
sub ebp, ebx
mov dword [esi + 0x80], ebp
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x409db2
mov dword [esi + 0x28], 1
mov edx, dword [ebp]
mov ebx, dword [ebp + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jmp 0x409db9
mov dword [esi + 0x28], 0
sub eax, edx
sub ecx, ebx
add eax, 8
add ecx, 8
push edi
mov ebp, eax
mov ebx, ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov dword [esi + 0x74], eax
call dword [sym.imp.GDI32.dll_SaveDC]
push ebx
push ebp
push edi
mov dword [esi + 0xa0], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edx, dword [esi + 0x74]
push eax
push edx
mov dword [esi + 0x78], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x74]
push 0xcc0020
push eax
push ecx
push edi
push ebx
push ebp
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov dword [esi + 0x24], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 4
Function at 0x409e40
Capabilities:
Hide graphical window

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x6c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x409e59
pop esi
add esp, 8
ret
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0x4c]
mov dword [esi + 0xa4], 1
test eax, eax
jne 0x409e8c
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x409e85
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.00409cc0
mov edx, dword [esi + 0x98]
mov eax, dword [esi + 0x94]
push edi
push 0
push 0
push edx
push eax
mov ecx, esi
call fcn.00408b00
mov ecx, dword [esi + 0x6c]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0xa
push 0x3e8
push ecx
call edi
push 1
mov ecx, esi
call fcn.0040a3c0
mov edx, dword [esi + 0x6c]
push 0x63
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 0x6c]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x409ef4
push 1
mov ecx, esi
call fcn.0040ae30
fld dword [esi + 0x9c]
sub esp, 8
fstp qword [esp]
push str._.1f_X
push 0x4326e4
call fcn.0040bfc5
mov ecx, dword [esi + 0x6c]
add esp, 0x10
push 0x2be2
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov edx, dword [esi + 0x6c]
push 0
push 0x1770
push 0x2be2
push edx
call edi
pop edi
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x40aba0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
sub esp, 0x14
push ebp
mov ebp, ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40ac51
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edx, dword [ebp + 0x6c]
mov esi, eax
xor eax, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
push ecx
mov dword [esp + 0x20], eax
push edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
push esi
sub edi, ecx
sub ebx, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x74]
push eax
call dword [sym.imp.GDI32.dll_SaveDC]
push ebx
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, dword [esp + 0x10]
mov edi, eax
push edi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
mov ecx, ebp
call fcn.00409f40
push edi
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x14
ret 4

Function at 0x40ac60
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x40accd
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call esi
test eax, eax
je 0x40accd
push edi
call esi
test eax, eax
je 0x40accd
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40accd
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
call esi
add eax, 2
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40acc7
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
ret 4

Function at 0x40af40
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov edx, dword [esp + 0xc]
xor eax, eax
test edx, edx
setne al
lea ecx, [esp + 0xc]
push esi
add eax, 0x80000001
push ecx
push 0x414410
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x40af9e
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 0x14]
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
ret
Function at 0x401f68
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00401b47
push eax
push esi
push dword [ebp + 8]
call fcn.00401afc
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00401b37
test dword [edi], edx
pop edi
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.00401b37
sub dl, ch
add dh, al
lea eax, [ebp - 0x84]
push eax
call fcn.00401b47
push eax
push esi
push dword [ebp + 8]
call fcn.00401afc
add esp, 0x10
mov dword [ebp - 0xc0], eax
push 0x40
push 0x1000
push dword [ebp + 0xc]
push ebx
call dword [ebp - 0x88]
mov esi, eax
cmp esi, ebx
je 0x402330
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
call fcn.00401aa8
add esp, 0xc
cmp word [edi + 6], bx
mov dword [ebp + 0xc], ebx
jbe 0x4020a7
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.00401aa8
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x402074
call fcn.00401b37
hlt
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4045ff
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x42a000], 0
push ebx
push ebp
push esi
push edi
mov edi, pe_overlay
mov ebx, 0x42a000
je 0x40461e
push ebx
call fcn.00406915
jmp 0x404624
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
xor ecx, ecx
mov esi, dword [0x423f64]
test esi, esi
je 0x404677
mov ecx, dword [0x423f28]
mov ecx, dword [ecx + 0x5c]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x423f60]
add ecx, edx
dec esi
mov bp, word [ecx]
xor bp, ax
and ebp, edi
test bp, bp
je 0x40465c
test esi, esi
jne 0x404646
jmp 0x404677
mov edx, dword [ecx + 2]
mov dword [0x423700], edx
mov edx, dword [ecx + 6]
mov dword [0x423fa4], edx
lea edx, [ecx + 0xa]
mov dword [0x4236fc], edx
cmp dword [0x4236fc], 0
jne 0x404692
cmp di, 0xffff
jne 0x40468e
mov edi, 0x3ff
jmp 0x404626
xor edi, edi
jmp 0x404626
movzx eax, word [ecx]
push eax
push ebx
call fcn.004068fc
push 0xfffffffffffffffe
push 0x423720
call fcn.004069aa
push eax
push dword [0x420910]
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40637c
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x422138], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x4063a0
test al, 0x10
jne 0x4063a3
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x422138
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4063ce
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8

Function at 0x406445
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040657e
test eax, eax
je 0x4064a9
test byte [ebp + 0xc], 1
push esi
je 0x406492
mov eax, dword [0x423f24]
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x20], eax
call sub.KERNEL32.dll_lstrlenA
and byte [eax + esi + 1], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], esi
push eax
mov word [ebp - 0x10], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
jmp 0x4064a9
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4064a9
test byte [ebp + 0xc], 2
je 0x4064a9
push eax
push esi
call fcn.004066db
pop esi
leave
ret 8

Function at 0x40657e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421d38
push esi
call sub.KERNEL32.dll_lstrcpyA
push esi
call fcn.0040652c
test eax, eax
jne 0x40659d
xor eax, eax
jmp 0x4065e6
test byte [0x423f30], 0x80
je 0x4065b1
mov cl, byte [eax]
test cl, cl
je 0x406599
cmp cl, 0x5c
je 0x406599
mov edi, eax
sub edi, esi
jmp 0x4065cb
call fcn.00406c7e
test eax, eax
je 0x4065c5
test byte [eax], 0x10
je 0x406599
push esi
call fcn.004064da
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4065b7
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x406663
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x406692
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40930c]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4066d7
test edi, edi
jne 0x40669d
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4066d1