joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4096f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409703
test al, 0x10
jne 0x409703
mov al, 1
ret
xor al, al
ret
Function at 0x402110
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x439288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x64]
test eax, eax
jne 0x4021ba
mov eax, dword [0x447b38]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.00431b44
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.00431b93
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.00431b1d
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4021a1
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x4021a1
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x64], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004317f9
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4021d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x402232
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc

Function at 0x402440
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x402532
lea ecx, [esp + 0x10]
push ecx
push str..htm
push SysReAllocString
mov ecx, edi
call fcn.004021d0
test eax, eax
jne 0x402532
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push SysReAllocString
mov ecx, edi
call fcn.004021d0
test eax, eax
jne 0x402532
lea edx, [esp + 0x10]
push 0x446468
push edx
call fcn.0041e450
mov esi, eax
add esp, 8
test esi, esi
jne 0x402503
lea eax, [esp + 0x10]
push 0x446464
push eax
call fcn.0041e3d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x402503
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x402506
mov byte [esi], 0
push 0x446460
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x409010
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x409043
push esi
call fcn.0040c700
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x40903c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4090c9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4090b2
mov eax, dword [esi + 8]
test eax, eax
je 0x409067
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4090ae
cmp eax, 2
je 0x4090b2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40905a
cmp eax, 3
je 0x40908d
cmp eax, 1
jne 0x40905a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x40905a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x40905a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00409100
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4090e9
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x12
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00409100
add esp, 4
pop esi
ret
Function at 0x415265
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0xc], ebp
jne 0x415405
call fcn.00415130
mov eax, dword [esi + 0x84]
cmp eax, ebp
je 0x41528c
push eax
call fcn.00431c54
add esp, 4
mov eax, dword [esi + 0x8c]
cmp eax, ebp
je 0x41529f
push eax
call fcn.00431c54
add esp, 4
mov eax, dword [esi + 0x9c]
cmp eax, ebp
je 0x4152b6
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0x9c], ebp
mov eax, dword [esp + 0x2c]
push ebp
push 0x8000080
push 3
push ebp
push 1
push SysReAllocString
push eax
mov dword [esi + 0x8c], ebp
mov dword [esi + 0x84], ebp
mov dword [esi + 0x70], ebp
mov dword [esi + 0x5c], ebp
mov dword [esi + 0x50], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x415405
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x4153fe
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x10]
push ebp
push edx
lea eax, [esp + 0x20]
push 0xd
push eax
push edi
call ebx
cmp dword [esp + 0x10], 0xd
jne 0x4153fe
cmp byte [esp + 0x18], 0x47
jne 0x4153fe
cmp byte [esp + 0x19], 0x49
jne 0x4153fe
cmp byte [esp + 0x1a], 0x46
jne 0x4153fe
cmp byte [esp + 0x1b], 0x38
jne 0x4153fe
mov al, byte [esp + 0x1c]
cmp al, 0x37
je 0x415367
cmp al, 0x39
jne 0x4153fe
cmp byte [esp + 0x1d], 0x61
jne 0x4153fe
mov ecx, dword [esp + 0x1e]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x23]
and ecx, 0xffff
mov dword [esi + 0xa0], ecx
mov cl, byte [esp + 0x22]
and edx, 0xffff
and eax, 0xff
test cl, 0x80
mov dword [esi + 0xa4], edx
mov dword [esi + 0x4c], eax
je 0x415411
and ecx, 7
mov eax, 1
inc ecx
shl eax, cl
mov dword [esi + 0x5c], eax
lea ecx, [eax + eax*2]
push ecx
call fcn.00431c2b
mov ecx, dword [esi + 0x5c]
add esp, 4
lea edx, [esp + 0x10]
mov dword [esi + 0x84], eax
push ebp
lea ecx, [ecx + ecx*2]
push edx
push ecx
push eax
push edi
call ebx
mov eax, dword [esi + 0x5c]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x10]
cmp eax, edx
je 0x415411
mov eax, dword [esi + 0x84]
push eax
call fcn.00431c54
add esp, 4
mov dword [esi + 0x84], ebp
mov dword [esi + 0x5c], ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 4
mov eax, dword [esi + 0x5c]
add eax, 4
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x2c]
sub eax, ecx
push eax
mov dword [esi + 0x50], eax
call fcn.00431c2b
mov ecx, dword [esi + 0x50]
add esp, 4
lea edx, [esp + 0x10]
mov dword [esi + 0x8c], eax
push ebp
push edx
push ecx
push eax
push edi
mov dword [esi + 0x90], eax
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret 4
Function at 0x423d5d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4490e0
cmp edx, dword [eax]
je 0x423d7f
add eax, 8
inc ecx
cmp eax, 0x449170
jl 0x423d70
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4490e0]
jne 0x423ead
mov eax, dword [0x44bb60]
cmp eax, 1
je 0x423e87
test eax, eax
jne 0x423db0
cmp dword [0x4487f8], 1
je 0x423e87
cmp edx, 0xfc
je 0x423ead
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x423de7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00425dd0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004219e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x423e2a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004219e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43f50c
push edi
call fcn.00427780
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00425dd0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00425de0
lea eax, [ebp - 0xa0]
push 0x43f4ec
push eax
call fcn.00425de0
push dword [esi + 0x4490e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00425de0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004276f7
add esp, 0x2c
pop edi
jmp 0x423ead
lea eax, [ebp + 8]
lea esi, [esi + 0x4490e4]
push 0
push eax
push dword [esi]
call fcn.004219e0
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 0x42c040
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00420590
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42c10b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42c10b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42c0be
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x42c0c9
or bh, 8
and edi, 0x8000000
je 0x42c0e4
mov eax, dword [0x44d2fc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42c10b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42c4e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x42c50b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x42c52f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42c54a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x42f120
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x42f158
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.00431bbb
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00431b93
jmp 0x42f164
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4306a3
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 0x4306e5
call fcn.00436363
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4306e5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4306dc
xor eax, eax
jmp 0x4306ed
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004306f3
pop edi
pop esi
pop ebx
ret 4

Function at 0x436a3c
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 0x436a6a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x436a88
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004369a2
jmp 0x436a88
mov eax, dword [esi + 0x14]
test eax, eax
je 0x436a88
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004369a2
test edi, edi
mov eax, edi
jne 0x436a72
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403043
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x417044]
sub esi, dword [0x40afb0]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x423eac], eax
jle 0x4031ad
push dword [0x41f054]
call fcn.004031f1
push ebx
push ebx
push dword [0x40afb0]
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41f050], esi
mov dword [0x417040], ebx
mov ebp, 0x40b040
mov eax, dword [0x417048]
mov edi, 0x4000
sub eax, dword [0x41f054]
cmp eax, edi
jg 0x4030b8
mov edi, eax
mov esi, 0x413040
push edi
push esi
call fcn.004031bf
test eax, eax
je 0x40319f
add dword [0x41f054], edi
mov dword [0x40afd0], esi
mov dword [0x40afd4], edi
cmp dword [0x423eb0], ebx
je 0x40310f
cmp dword [0x423f40], ebx
jne 0x40310f
mov eax, dword [0x41f050]
push ebx
sub eax, dword [0x417044]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40afb0]
mov dword [0x417040], eax
call fcn.00402bd3
pop ecx
mov ecx, 0x40afb8
mov dword [0x40afd8], ebp
mov dword [0x40afdc], 0x8000
call fcn.00405f82
test eax, eax
jl 0x4031a8
mov esi, dword [0x40afd8]
sub esi, ebp
je 0x403169
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4031a4
cmp esi, dword [esp + 0x10]
jne 0x4031a4
add dword [0x40afb0], esi
cmp dword [0x40afd4], ebx
jne 0x4030de
jmp 0x403175
cmp dword [0x40afd4], ebx
jne 0x4031a8
cmp edi, ebx
je 0x4031a8
mov eax, dword [0x417044]
mov ecx, eax
sub ecx, dword [0x40afb0]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x4030a2
push ebx
push ebx
push eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4031ad
or eax, 0xffffffff
jmp 0x4031b7
push 0xfffffffffffffffe
jmp 0x4031aa
push 0xfffffffffffffffd
pop eax
jmp 0x4031b7
push 1
call fcn.00402bd3
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x4058b4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.0040384c
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.00403801
add esp, 0xc
mov dword [ebp - 0x37c], eax

Function at 0x405a4d
Capabilities:
Query or enumerate registry value

Disassembly:
and al, 3
fbld tbyte [esi - 0x75]
or al, 0x4b
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.0040383c
popal
sar dword [ebx], cl
mov bh, bh
jne 0x405a73
push dword [ebp + 4]
push dword [ebp]
call fcn.0040403c
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405abe
in eax, 0xff
invalid
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405aad
cmp dword [ebp + 0x14], 1
je 0x405aaf
cmp dword [ebp + 0x14], 2
je 0x405aaf
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x40c120
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4267e4]
jne 0x40c12a
repz ret
jmp fcn.00411760
Function at 0x41b960
Capabilities:
Create directory
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4c
cmp dword [0x239becc], 0x37
jne 0x41ba27
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0xa48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push str.lunepolalohobanofe
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.xusicukapexi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
push 0
push 0
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push str.widap_girecimohab
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push str.xukukacabowotelopuvofobiyabefu
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.yicasoxab
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
push str.sogejuxeyepiwidesawuwixac
push 0
push str.suripelefahaniyidasopel
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
mov dword [ebp - 4], 0
mov eax, dword [0x239c5c8]
add dword [ebp - 4], eax
mov eax, 0x12336
add dword [ebp - 4], eax
mov ecx, dword [0x2394010]
add ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
add edx, dword [ebp + 8]
mov al, byte [edx]
mov byte [ecx], al
mov esp, ebp
pop ebp
ret 4
Function at 0x41bf00
Capabilities:
Copy file
Delete file
Manipulate console buffer
Read .ini file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [0x239becc], 0x516
jne 0x41bf43
xor ecx, ecx
mov word [ebp - 0x14], cx
xor edx, edx
mov word [ebp - 0x12], dx
lea eax, [ebp - 0x41c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
lea edx, [ebp - 0x418]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
shr ecx, 3
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
jmp 0x41bf64
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jae 0x41c038
cmp dword [0x239becc], 0x29
jne 0x41bf96
push 0
push str.mesoyigezusivi
push str.sokozomujaz
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push str.wivomomenutoruyeselexe
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
cmp dword [0x239becc], 0xe1b
jne 0x41bfb8
push 0
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [ebp - 0x10]
shl edx, 1
mov dword [ebp - 0x10], edx
cmp dword [0x239becc], 0x1c
jne 0x41c020
push str.liyubomamenideru
push 0
lea eax, [ebp - 0x830]
push eax
push str.xavexefimaroyizociwofipevuxok
push str.wobujetivorinubihugoyabu
push str.jixolosokunexedonupigey
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x430], 0
xor ecx, ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x420], ecx
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*4]
push edx
call fcn.0041bd00
jmp 0x41bf5b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41c040
Capabilities:
Accept command line arguments
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1190
call fcn.0040e300
mov dword [ebp - 4], 0
jmp 0x41c05f
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x32d05d76
jge 0x41c0f3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x239becc], 0xfc
jne 0x41c098
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
push str.niwutejebixocavaci
push str.nejuvujoweyisesevalolagagu
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
cmp dword [0x239becc], 0x5e4
jne 0x41c0e3
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x800
lea ecx, [ebp - 0x858]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
lea edx, [ebp - 0x978]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
cmp dword [ebp - 4], 0x9be51dc
jle 0x41c0ee
jmp 0x41c0f3
jmp 0x41c056
push 0x426fd0
mov eax, dword [0x239becc]
push eax
mov ecx, dword [0x2394010]
push ecx
call fcn.0041bf00
mov dword [ebp - 0x97c], 0
jmp 0x41c125
mov edx, dword [ebp - 0x97c]
add edx, 1
mov dword [ebp - 0x97c], edx
cmp dword [ebp - 0x97c], 0x3e79e
jge 0x41c16f
cmp dword [0x239becc], 0x10
jne 0x41c15c
lea eax, [ebp - 0x980]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
push str.tavebohuru
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
push 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [ebp - 0x97c], 0x1e673
jne 0x41c16d
call fcn.0041b940
jmp 0x41c116
mov dword [ebp - 0x984], 0
jmp 0x41c18a
mov ecx, dword [ebp - 0x984]
add ecx, 1
mov dword [ebp - 0x984], ecx
cmp dword [ebp - 0x984], 0xdd9a7
jge 0x41c1ae
cmp dword [0x239becc], 0xc01
jne 0x41c1ac
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapWalk]
jmp 0x41c17b
jmp dword [0x2394010]