joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476ac0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x476b0c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x476b0c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x476af6
push eax
call ebp
test ax, ax
jl 0x476b04
inc esi
add edi, 4
cmp esi, 6
jb 0x476ae8
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.004767c0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x47a710
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x47a770
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x47a770
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x47a770
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x47a770
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x47a780
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x47ccc0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x47cd63
test eax, eax
jbe 0x47cd63
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x47cd63
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x47cd0e
xor esi, esi
jmp 0x47cd14
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x47cd3f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004805d0
add esi, eax
push esi
mov ebx, esi
call fcn.004805d0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x47cd20
pop ebp
test edi, edi
pop edi
jne 0x47cd63
test ebx, ebx
je 0x47cd63
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00487200
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x47cea5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x47cfbd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47cfbd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0049809a
mov esi, eax
test esi, esi
je 0x47cfbd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x47cfbd
mov ecx, esi
call fcn.0047ce10
cmp edi, eax
jge 0x47cfbd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x47cf43
mov dword [esp + 0x34], 1
jmp 0x47cf9e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x47cfbd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0047c3b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x481f30
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x481f7a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x481fa9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x481feb
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x498a3e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x498a76
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00496af5
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00496acd
jmp 0x498a82
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49a133
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49a175
call fcn.0049febb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49a175
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49a16c
xor eax, eax
jmp 0x49a17d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049a183
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a03eb
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a0419
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a0437
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a0351
jmp 0x4a0437
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a0437
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a0351
test edi, edi
mov eax, edi
jne 0x4a0421
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402648
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40500c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4026e0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4026c0
xor eax, eax
push ebp
push 0x4026b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4026fc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4026c0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40500c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40500c], ax
mov esp, ebp
pop ebp
ret

Function at 0x402d28
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x406034], 0
je 0x402d89
cmp word [0x406208], 0xd7b2
jne 0x402d51
cmp dword [0x406210], 0
jbe 0x402d51
mov eax, 0x406204
call dword [0x406220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40504c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x402db0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x405018], 0
jne 0x402da5
push 0
push 0x40506c
push 0x40504c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404654
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x37], 0xef
test dl, dl
je 0x404660
or byte [eax + 0x37], 0x10
mov byte [eax + 0x52], dl
mov ecx, dword [eax + 0x28]
jecxz 0x40467c
push eax
je 0x40467d
call dword [0x4050a4]
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 [0x4050a4]
ret

Function at 0x404d0c
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x404dd7
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x18]
call fcn.004039fc
lea eax, [ebp - 4]
mov edx, 0x404dec
call fcn.00402fd0
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x18]
call fcn.00403a80
push 0
lea edx, [ebp - 8]
mov eax, dword [ebx + 0x18]
call fcn.004048ac
mov eax, dword [ebp - 8]
call fcn.00403088
push eax
call sub.user32.dll_FindWindowA
test eax, eax
je 0x404d6d
xor eax, eax
call fcn.00402e8c
mov eax, dword [ebx + 0x18]
xor edx, edx
call fcn.00403a44
mov eax, dword [ebx + 0x18]
mov ecx, 8
mov edx, 8
call fcn.00403b1c
mov eax, dword [ebx + 0x18]
mov dword [eax + 0x156], ebx
mov dword [eax + 0x152], 0x404e14
push ebx
push fcn.00404dfc
call fcn.004039d8
push 0
push 0
push 0x404c84
push 0xd
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4050bc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404dde
lea eax, [ebp - 8]
mov edx, 2
call fcn.00402ec8
ret
Function at 0x403230
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41593b
push eax
mov al, byte [0x41da28]
mov dword fs:[0], esp
sub esp, 0x108
test al, al
jne 0x403309
push esi
push edi
push 1
lea eax, [esp + 0x10]
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call fcn.0041129a
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push 0x104
push edx
push eax
mov dword [esp + 0x124], 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call fcn.00411369
push str.Naiky_
lea ecx, [esp + 0xc]
call fcn.00411507
mov edi, dword [esp + 8]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x118], 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x41da28
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
call fcn.0041122c
pop edi
mov eax, 0x41da28
pop esi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
mov ecx, dword [esp + 0x108]
mov eax, 0x41da28
mov dword fs:[0], ecx
add esp, 0x114
ret

Function at 0x403330
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41595b
push eax
mov al, byte [0x41d924]
mov dword fs:[0], esp
sub esp, 0x108
test al, al
jne 0x403409
push esi
push edi
push 1
lea eax, [esp + 0x10]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call fcn.0041129a
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push 0x104
push edx
push eax
mov dword [esp + 0x124], 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call fcn.00411369
push 0x41c488
lea ecx, [esp + 0xc]
call fcn.00411507
mov edi, dword [esp + 8]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x118], 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x41d924
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
call fcn.0041122c
pop edi
mov eax, 0x41d924
pop esi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
mov ecx, dword [esp + 0x108]
mov eax, 0x41d924
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x403430
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41597b
push eax
mov al, byte [0x41d820]
mov dword fs:[0], esp
sub esp, 0x108
test al, al
jne 0x403509
push esi
push edi
push 1
lea eax, [esp + 0x10]
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call fcn.0041129a
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push 0x104
push edx
push eax
mov dword [esp + 0x124], 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call fcn.00411369
push 0x41c488
lea ecx, [esp + 0xc]
call fcn.00411507
mov edi, dword [esp + 8]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x118], 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x41d820
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
call fcn.0041122c
pop edi
mov eax, 0x41d820
pop esi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
mov ecx, dword [esp + 0x108]
mov eax, 0x41d820
mov dword fs:[0], ecx
add esp, 0x114
ret

Function at 0x4035a0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
call fcn.00403530
test al, al
je 0x403600
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret
Function at 0x403d10
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x415a38
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push esi
call edi
test eax, eax
jne 0x403df2
push esi
lea ecx, [esp + 0x28]
call fcn.0041129a
mov eax, dword [0x41c938]
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0xc], eax
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esp + 0x1c], 1
push esi
push 0x41c488
lea ecx, [esp + 0x2c]
call fcn.0040c592
mov esi, eax
cmp esi, 0xffffffff
je 0x403dc0
lea ecx, [esp + 0x10]
push esi
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040c50c
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 2
call fcn.00411319
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 1
call fcn.0041122c
mov edx, dword [esp + 0xc]
push edx
call edi
test eax, eax
jne 0x403dbd
push eax
mov eax, dword [esp + 0x10]
push eax
call ebp
test eax, eax
je 0x403dd3
inc esi
jmp 0x403d64
mov ecx, dword [esp + 0x24]
push ecx
call edi
test eax, eax
jne 0x403dd3
mov edx, dword [esp + 0x24]
push eax
push edx
call ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call fcn.0041122c
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0041122c
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x403e70
Capabilities:
Check if file exists

Disassembly:
mov al, byte [0x41db2c]
sub esp, 0x104
test al, al
jne 0x403ee1
mov eax, dword [str.a:cfinfo.sys]
mov ecx, dword [0x41c514]
mov edx, dword [0x41c518]
mov dword [esp], eax
mov ax, word [0x41c51c]
push ebx
push esi
push edi
mov dword [esp + 0x10], ecx
mov word [esp + 0x18], ax
mov ecx, 0x3d
xor eax, eax
lea edi, [esp + 0x1a]
mov dword [esp + 0x14], edx
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov bl, 0x64
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
mov byte [esp + 0xc], bl
push ecx
call esi
test eax, eax
jne 0x403ed7
inc bl
cmp bl, 0x7a
jle 0x403ec1
mov al, bl
pop edi
pop esi
mov byte [0x41db2c], al
pop ebx
add esp, 0x104
ret

Function at 0x404c01
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404c2c
test byte [esp + 8], 0x80
je 0x404c1b
and al, 0xfe
jmp 0x404c1d
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x404c3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00406ed9
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x408ef1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41d218
cmp edx, dword [eax]
je 0x408f13
add eax, 8
inc ecx
cmp eax, 0x41d2a8
jl 0x408f04
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41d218]
jne 0x409041
mov eax, dword [0x41fb10]
cmp eax, 1
je 0x40901b
test eax, eax
jne 0x408f44
cmp dword [0x41cad4], 1
je 0x40901b
cmp edx, 0xfc
je 0x409041
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408f7b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409c80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409d70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408fbe
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409d70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x417f48
push edi
call fcn.0040b230
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409c80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409c90
lea eax, [ebp - 0xa0]
push 0x417f28
push eax
call fcn.00409c90
push dword [esi + 0x41d21c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409c90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040b1a7
add esp, 0x2c
pop edi
jmp 0x409041
lea eax, [ebp + 8]
lea esi, [esi + 0x41d21c]
push 0
push eax
push dword [esi]
call fcn.00409d70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x40f9fb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x40fa3d
call fcn.004143db
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x40fa3d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x40fa34
xor eax, eax
jmp 0x40fa45
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0040fa4b
pop edi
pop esi
pop ebx
ret 4

Function at 0x414e11
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x414e3f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x414e5d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00414d77
jmp 0x414e5d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x414e5d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00414d77
test edi, edi
mov eax, edi
jne 0x414e47
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x409d16
Capabilities:
Encode data using xor

Disassembly:
push ds
popfd
test byte [edx], al
out dx, eax
and eax, 0x1af40df
mov dword [edi + esi], ebx
invalid
sub byte [ebx + 0x56], bl
mov ch, 4
pop dword [ecx]
mov edi, 0x2bc9c344
add al, 0x8f
add dword [edi + 0x2bc9c344], edi
sub esi, dword [edi]
aaa
dec ecx
push ebx
lea edx, [edx]
jg 0x409c63
aas
loope 0x409c44
ror dword [0xe58de0c1], 1
mov ss, word [ebx + 0x73]
mov edi, 0x40e4d344
jo 0x409cfc
popfd
insd dword es:[edi], dx
jle 0x409cfa
jl 0x409cd8
or ecx, dword [esi + 0x5f01bf47]
jecxz 0x409cc8
cmpsb byte [esi], byte es:[edi]
pop ss
add al, 0x30
mov eax, dword [0xc060e430]
push es
stc
xchg ebx, eax
sbb byte [edi], bh
dec esp
pop edi
je 0x409c5f
sar dword [edi - 0x609875be], 0x21
stosd dword es:[edi], eax
loope 0x409c8b
lahf
and dword [ebx - 0x45fe231f], ebp
in eax, 0xff
int1
xor eax, 0x6350c2b8
mov dl, 0xdf
sub al, 0x5e
add dword [edx + 0x35f1ffe5], edi
mov eax, 0xb26350c2
fild qword [esi + ebx*2]
jg 0x409d1c
jne 0x409c6a
rcl eax, 1
test eax, 0x68bd7173
jno 0x409d2e
jb 0x409c6c
lahf
adc dword [ebx], ebx
and eax, 0xea2ea122
pop eax
outsb dx, byte [esi]
dec ecx
loope 0x409d28
dec edi
fst qword [esi + 0x13]
leave
cwde
sub eax, 0xa8038191
jge 0x409c83
inc ebp
enter 0xffffffffffff9251, 0x2d
lock xor byte [ebx - 0x30], al
fsub dword cs:[eax + edx*4]
cli
mov cs, word [eax]
push esp
outsd dx, dword [esi]
xlatb
mov esi, 0xbfb73dd2
jle 0x409caa
cmp eax, 0xab7ebfb7
mov edi, 0x53ebab7e
push ebx
push esi
jae 0x409d55
jmp 0x409d54
inc ecx
mov byte [0xcd32eea0], al
imul byte [ecx + 0x5a02fb22]
mov cl, 0
loope 0x409cf5
add cl, byte [edx + ecx*8]
or al, 0xca
pushal
mov ch, 0xa
lodsb al, byte [esi]
push edi
jb 0x409d7e
push esp
test eax, 0xc373e921
movsb byte es:[edi], byte [esi]
outsd dx, dword [esi]
jbe 0x409ccc
mov dword [0xcf447270], eax
insd dword es:[edi], dx
jo 0x409d9d
inc esp
iretd
jmp 0x5eef7865
ret
add eax, 0x3457dd6e
jle 0x409da8
xor ecx, 0x6ebd5d8c
inc eax
aas
fmul st(4), st(0)
and eax, 0x2cc0ca2d
in eax, 0xe9
adc dword [edx - 0xf], ecx
sub eax, 0xf7dec406
xor eax, 0x676ea213
scasd eax, dword es:[edi]
add al, 0x43
xchg ebx, eax
inc eax
xchg ebp, eax
invalid
mov ch, 0
test al, 0xe7
outsd dx, dword [esi]
aam 0x24
out 0x19, eax
sub byte [edi - 0x52af891a], 0xfb
add eax, 0x2f6d1bf1
das
jo 0x409d94
and byte [ebp - 0x519e36cd], cl
das
inc edi
clc
bound edx, qword [eax - 0x6a762f88]
xor ecx, ebx
mov ebp, 0xd9d50c61
or al, 0xd5
fnstenv [ebx - 0x11]