joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ba12
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0xc], 0
jne 0x40ba2d
call fcn.0040ba9d
mov dword [ebp + 8], eax
mov dword [ebp - 4], esp
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x40ba59
push 6
call fcn.004481de
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40ba83
push 6
call fcn.004481de
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
mov eax, 0
sete al
jmp 0x40ba97
mov esp, ebp
pop ebp
ret 8
Function at 0x40e0ca
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40e10d
push 6
call fcn.004481de
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40e137
push 6
call fcn.004481de
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
mov eax, 0
sete al
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40e16b
push 6
call fcn.004481de
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x40e173
mov esp, ebp
pop ebp
ret 4

Function at 0x40e5c3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push 1
push 0x4564d1
push 0x4564d1
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x40e609
push 6
call fcn.004481de
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x414de8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x14], 1
jne 0x414e07
mov dword [ebp + 0x14], 0
jmp 0x414e24
cmp dword [ebp + 0x14], 2
jne 0x414e1d
mov dword [ebp + 0x14], 7
jmp 0x414e24
mov dword [ebp + 0x14], 1
mov dword [ebp - 4], esp
push dword [ebp + 0x14]
push 0x4564d1
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x414e5f
push 6
call fcn.004481de
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jne 0x414e7b
mov eax, 0
jmp 0x414e85
mov eax, 1
jmp 0x414e85
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4150d1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.0044a220
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x415116
push ebx
call fcn.004481d8
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x100
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x415141
push 6
call fcn.004481de
add esp, 4
push 0x45650c
push dword [ebp - 4]
mov ecx, 2
call fcn.004010ac
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x415161
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x415172
push ebx
call fcn.004481d8
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x41628e
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 2
jne 0x4163d6
mov dword [ebp - 8], esp
push str.Comet_Thread
push dword [ebp + 8]
call dword [0x45b1ba]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4162cf
push 6
call fcn.004481de
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x416325
mov dword [ebp - 8], esp
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x416303
push 6
call fcn.004481de
add esp, 4
mov dword [ebp - 8], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x416325
push 6
call fcn.004481de
add esp, 4
mov dword [ebp - 8], esp
push str.Comet_Image
push dword [ebp + 8]
call dword [0x45b1ba]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x41634c
push 6
call fcn.004481de
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41637b
mov dword [ebp - 8], esp
push dword [ebp - 4]
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x41637b
push 6
call fcn.004481de
add esp, 4
mov dword [ebp - 8], esp
push str.Comet_Stream
push dword [ebp + 8]
call dword [0x45b1ba]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4163a2
push 6
call fcn.004481de
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4163d1
mov dword [ebp - 8], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4163d1
push 6
call fcn.004481de
add esp, 4
jmp 0x41649d
cmp dword [ebp + 0xc], 0x201
jne 0x41649d
mov dword [ebp - 8], esp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x45b1be]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x41640e
push 6
call fcn.004481de
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push str.CometHitMove
push dword [ebp + 8]
call dword [0x45b1ba]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x416438
push 6
call fcn.004481de
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jne 0x416495
mov dword [ebp - 8], esp
call dword [0x45b1c2]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x416464
push 6
call fcn.004481de
add esp, 4
mov dword [ebp - 8], esp
push 0
push 2
push 0xa1
push dword [ebp + 8]
call dword [0x45b1c6]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x416495
push 6
call fcn.004481de
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x4164cd
mov dword [ebp - 8], esp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x45b1be]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4164c8
push 6
call fcn.004481de
add esp, 4
jmp 0x4164cd
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42aaa0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x42aadb
push 6
call fcn.004481de
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.0044daa0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42ab3e
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.0044c730
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x42ab62
push 6
call fcn.004481de
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.0044daa0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42abc5
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.0044c730
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x42abe9
push 6
call fcn.004481de
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.0044daa0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42ac4c
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.0044c730
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x42ac54
mov esp, ebp
pop ebp
ret
Function at 0x42ef41
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x42ef87
push 6
call fcn.004481de
add esp, 4
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x4569f9]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.00401b4e
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.0044a220
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x42efda
push ebx
call fcn.004481d8
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x42f013
push 6
call fcn.004481de
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x42f02f
push eax
mov ebx, eax
call fcn.00401041
inc eax
push eax
call fcn.004481d2
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x42f034
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x42f045
push ebx
call fcn.004481d8
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x44a260
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x44a2c9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00449ce0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x44c2c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.0044e970
mov esi, dword [esp + 0x38]
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ebp
test ebx, ebx
je 0x44c410
test ecx, ecx
je 0x44c410
inc ecx
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebp
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MSVCRT.dll_strrchr
mov edi, eax
add esp, 0xc
test edi, edi
je 0x44c339
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x44c3fd
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x44c3c1
cmp eax, 0xea
jne 0x44c3e9
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x18]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x44c38c
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x44c3cf
cmp eax, 2
jne 0x44c3e9
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
call fcn.0044e2c0
add esp, 8
mov dword [esp + 0x10], eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x44c43e
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x44c44a
mov edx, dword [esp + 0x40]
test edx, edx
je 0x44c44a
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.0044e2c0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x44d390
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x44d3ae
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x44d3a3
pop esi
ret

Function at 0x44d3b0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x44d41a
push esi
lea edi, [eax + 0x400]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x44d3ea
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x44d436
push ecx
push esi
call fcn.0044e2c0
add esp, 8
mov ebx, eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x44d4a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x44d532
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x44d524
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x44d51c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x44d4e5
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x90d41a4
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x6f692607
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x1b006000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x1b006175
cmp dword [esp + 0x54], 0x40
jne 0x1b006175
cmp word [esp + 0x10], 0x5a4d
jne 0x1b006175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x1b006175
lea eax, [esp + 0x54]
push 0
push eax
push 0xf8
push 0x1b00c960
push esi
call ebx
test eax, eax
je 0x1b006175
cmp dword [esp + 0x54], 0xf8
jne 0x1b006175
cmp dword [0x1b00c960], 0x4550
jne 0x1b006175
mov eax, dword [0x1b00c976]
test ah, 0x20
jne 0x1b006175
mov edx, dword [0x1b00ca80]
xor eax, eax
mov ax, word [0x1b00c966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x1b00ca58], eax
je 0x1b006175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x1b00ca6c], eax
xor eax, eax
mov ax, word [0x1b00c966]
mov edx, dword [0x1b00ca58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x1b006175
cmp dword [esp + 0x54], edi
jne 0x1b006175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x1b00ca80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x1b00c9b4]
cmp edx, eax
ja 0x1b006175
mov edi, dword [0x1b00ca58]
mov ecx, dword [0x1b00c988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x1b006175
xor eax, eax
push 2
mov ax, word [0x1b00c966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x1b006175
cmp dword [edi - 0x20], ebx
ja 0x1b006175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x1b008769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1b00c190
cmp edx, dword [eax]
je 0x1b00878b
add eax, 8
inc ecx
cmp eax, 0x1b00c220
jl 0x1b00877c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1b00c190]
jne 0x1b0088b9
mov eax, dword [0x1b00cbb0]
cmp eax, 1
je 0x1b008893
test eax, eax
jne 0x1b0087bc
cmp dword [0x1b00c0e4], 1
je 0x1b008893
cmp edx, 0xfc
je 0x1b0088b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1b0087f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.1b009670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.1b009490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1b008836
lea eax, [ebp - 0x1a4]
push eax
call fcn.1b009490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1b00b45c
push edi
call fcn.1b009f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.1b009670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.1b009680
lea eax, [ebp - 0xa0]
push 0x1b00b43c
push eax
call fcn.1b009680
push dword [esi + 0x1b00c194]
lea eax, [ebp - 0xa0]
push eax
call fcn.1b009680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1b009e75
add esp, 0x2c
pop edi
jmp 0x1b0088b9
lea eax, [ebp + 8]
lea esi, [esi + 0x1b00c194]
push 0
push eax
push dword [esi]
call fcn.1b009490
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 0x40ce90
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov eax, ecx
push ecx
mov dword [ebp - 4], eax
call fcn.0040cc40
mov esi, eax
add esp, 4
xor ebx, ebx
mov dword [ebp - 8], esi
lea edi, [esi*4]
test edi, edi
jle 0x40cf08
mov eax, dword [ebp - 4]
lea esi, [eax + 8]
lea esi, [esi + edi*4]
lea ecx, [eax + 8]
mov edx, dword [ecx - 8]
lea ecx, [ecx + 0x10]
mov eax, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [ecx - 0x18], eax
add ebx, 4
mov eax, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [ecx - 0x14]
mov dword [ecx - 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [ecx - 0x10]
mov dword [ecx - 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [ecx - 0xc]
mov dword [ecx - 0xc], eax
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x40cec5
mov esi, dword [ebp - 8]
cmp esi, 1
jle 0x40d08a
mov edi, dword [ebp - 4]
lea ebx, [esi - 1]
add edi, 4
nop word [eax + eax]
mov edx, dword [edi + 0xc]
lea edi, [edi + 0x10]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [edi - 3]
mov ecx, dword [ecx*4 + 0x46ae50]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x46a250]
movzx eax, dl
mov edx, dword [edi]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x46bec0]
movzx eax, byte [edi - 2]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x46a650]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi - 4], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x46a650]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x46a250]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x46ae50]
movzx eax, dl
mov edx, dword [edi + 4]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x46bec0]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x46a650]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x46a250]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x46ae50]
movzx eax, dl
mov edx, dword [edi + 8]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x46bec0]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi + 4], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x46a650]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x46a250]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x46ae50]
movzx eax, dl
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x46bec0]
mov dword [edi + 8], ecx
sub ebx, 1
jne 0x40cf20
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret