joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a60a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000a6a7
push ebx
push esi
call fcn.1000a5d3
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000a567
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000a654
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000a6a6
push edi
push eax
call fcn.10008aa1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000a674
call fcn.10008372
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000a6a5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000a567
add esp, 0x20
test eax, eax
jne 0x1000a693
push edi
call fcn.10008372
jmp 0x1000a69b
push ebx
call fcn.10008372
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000a8a7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013d70
push 0x10013d68
push str.FlsAlloc
push 0x1f
call fcn.1000a7c3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000a8db
push dword [ebp + 8]
mov ecx, esi
call dword [0x10011140]
call esi
jmp 0x1000a8e1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000a925
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013d80
push 0x10013d78
push str.FlsGetValue
push 0x21
call fcn.1000a7c3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000a95c
push dword [ebp + 8]
mov ecx, esi
call dword [0x10011140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000a964
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013d88
push 0x10013d80
push str.FlsSetValue
push 0x22
call fcn.1000a7c3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000a99e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10011140]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000f9f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000fa1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000fa1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x9d1609
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x9d1a90
call fcn.009d17b4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x9d2370
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x9d13c4
cmp eax, esi
jne 0x9d13b7
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x9d13c7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x9d139e
xor esi, esi
inc esi
mov eax, dword [0x9d236c]
cmp eax, esi
jne 0x9d13da
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x9d1409
mov eax, dword [0x9d236c]
test eax, eax
jne 0x9d1403
mov dword [0x9d236c], esi
push 0x9d10b8
push 0x9d10ac
call fcn.009d1300
pop ecx
pop ecx
test eax, eax
je 0x9d1409
jmp 0x9d152d
mov dword [0x9d2034], esi
mov eax, dword [0x9d236c]
cmp eax, esi
jne 0x9d142d
push 0x9d10a8
push 0x9d10a0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x9d236c], 2
cmp dword [ebp - 0x20], ebx
jne 0x9d143a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x9d2374], ebx
je 0x9d145b
push 0x9d2374
call fcn.009d1729
pop ecx
test eax, eax
je 0x9d145b
push ebx
push 2
push ebx
call dword [0x9d2374]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x9d152d
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x9d14c5
cmp cx, bx
je 0x9d1480
cmp dword [ebp - 0x1c], ebx
jne 0x9d14c5
movzx ecx, word [eax]
cmp cx, bx
je 0x9d1495
cmp cx, 0x20
ja 0x9d1495
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x9d1480
test byte [ebp - 0x40], 1
je 0x9d14a1
movzx ecx, word [ebp - 0x3c]
jmp 0x9d14a4
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x9d0000
call main
mov dword [0x9d2030], eax
cmp dword [0x9d2024], ebx
jne 0x9d150a
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x9d14d6
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x9d146a
cmp dword [0x9d2034], ebx
jne 0x9d1518
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x9d2030]
jmp 0x9d1539
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.009d17f9
ret
call fcn.009d1901
jmp 0x9d1361
Function at 0x406900
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x81162b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x404bdc
call fcn.00407561
push 4
mov dword [esp + 0x18], 0
call fcn.00408406
mov edi, eax
add esp, 4
test edi, edi
je 0x406974
push ebx
call fcn.00407439
mov dword [edi], eax
call fcn.004071f8
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00407522
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406968
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.0040754a
pop ebx
jmp 0x406976
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408e71
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x815520]
jne 0x408e7b
repz ret
jmp fcn.0040d5cc
Function at 0x80f290
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0xc0c
cmp dword [0xb9e834], 0x37
jne 0x80f329
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push 0
lea eax, [esp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0x4042c4
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov ecx, dword [0xb9f828]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x81f884]
mov byte [ecx + esi], al
add esp, 0xc0c
ret
Function at 0x80f590
Capabilities:
Accept command line arguments
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0xb9e834]
sub esp, 0x434
push ebx
push ebp
push esi
mov esi, dword [0x81f884]
push edi
shr eax, 3
xor edi, edi
cmp eax, edi
jbe 0x80f789
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
jmp 0x80f5c6
mov esi, dword [esp + 0x20]
xor edi, edi
cmp dword [0xb9e834], 0x1c
jne 0x80f5dd
lea eax, [esp + 0x38]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [0x816700]
mov ebx, dword [0x816708]
mov ebp, dword [0x81670c]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x816704]
mov dword [esp + 0x18], eax
mov esi, 0xc6ef3720
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 0x20
jmp 0x80f626
mov eax, dword [esp + 0x18]
xor edi, edi
mov edx, eax
shr edx, 5
add edx, ebp
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x1c], edx
add ecx, ebx
lea edx, [esi + eax]
xor ecx, edx
mov dword [esp + 0x10], ecx
mov dword [0xb9e7a4], edi
mov eax, dword [esp + 0x1c]
add dword [0xb9e7a4], eax
mov eax, dword [0xb9e7a4]
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x34]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
shl edx, 4
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x30]
add dword [esp + 0x10], eax
cmp dword [0xb9e834], 0x1be
mov eax, dword [esp + 0x14]
lea edi, [esi + eax]
jne 0x80f6bd
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x2c]
cmp dword [0xb9e834], 0x979
mov dword [0xb9e7a8], 0xff6b3619
mov dword [0xb9e7ac], 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x80f701
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor dword [esp + 0x10], edi
mov eax, dword [esp + 0x1c]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x18], eax
mov eax, dword [0xb9e834]
cmp eax, 0x93
je 0x80f727
add esi, 0x61c88647
dec dword [esp + 0x28]
jne 0x80f620
cmp eax, 0x8d4
jne 0x80f73e
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], eax
cmp dword [0xb9e834], 0x17
jne 0x80f778
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea ecx, [esp + 0x40]
push ecx
push 0x404250
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x20], esi
jne 0x80f5c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x434
ret
Function at 0x1273058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.012731a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x127307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x127306a
add dl, dl
jne 0x1273089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x12730dc
xor eax, eax
add dl, dl
jne 0x1273096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x127317d
add dl, dl
jne 0x12730a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12730b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12730bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12730c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x12730d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1273075
mov eax, 1
add dl, dl
jne 0x12730ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12730f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x12730e1
sub eax, ebx
mov ebx, 1
jne 0x1273128
mov ecx, 1
add dl, dl
jne 0x127310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1273119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1273105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1273075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x127313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x127314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1273136
cmp eax, 0x7d00
jae 0x127316d
cmp eax, 0x500
jb 0x1273168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1273075
cmp eax, 0x7f
ja 0x1273170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1273075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x127319e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1273075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4512e0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00451340

Function at 0x451340
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov eax, dword [0x4af174]
test eax, eax
jle 0x451443
mov edx, dword [0x4af178]
xor ebx, ebx
mov ecx, dword [edx + 4]
cmp ecx, esi
ja 0x451371
mov edi, dword [edx + 8]
add ecx, dword [edi + 8]
cmp esi, ecx
jb 0x4513e6
add ebx, 1
add edx, 0xc
cmp ebx, eax
jne 0x451360
mov dword [esp], esi
call fcn.00451c80
test eax, eax
mov edi, eax
je 0x45146a
lea esi, [ebx + ebx*2]
mov ebx, dword [0x4af178]
shl esi, 2
add ebx, esi
mov dword [ebx + 8], eax
mov dword [ebx], 0
call fcn.00451d70
add eax, dword [edi + 0xc]
mov dword [ebx + 4], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [0x4af178]
mov dword [esp + 8], 0x1c
mov eax, dword [eax + esi + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x45144a
mov eax, dword [ebp - 0x20]
cmp eax, 0x40
jne 0x4513f0
add dword [0x4af174], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 4
je 0x4513df
cmp eax, 0x80
je 0x4513df
cmp eax, 8
je 0x4513df
mov eax, dword [ebp - 0x28]
add esi, dword [0x4af178]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4513df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004512e0
xor ebx, ebx
jmp 0x45137b
mov eax, dword [0x4af178]
mov eax, dword [eax + esi + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004512e0
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004512e0
lea esi, [esi]

Function at 0x451ba0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x451bd8
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x451bce
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x451bda
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x451bc0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x451ea0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
sub esp, 8
test eax, eax
mov dword [esp + 0x2c], eax
je 0x452010
mov eax, dword [esp + 0x3c]
add eax, 1
lea edx, [eax*4]
cmp eax, 0x1fc00000
mov eax, 0xffffffff
cmovbe eax, edx
mov dword [esp], eax
call sub.libstdc_6.dll_operator_new___unsigned_int_
mov edi, eax
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x451fab
xor ebx, ebx
mov eax, dword [esp + 0x2c]
mov ebp, dword [eax + ebx*4]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [esp], eax
mov dword [esp + 0x28], eax
call sub.libstdc_6.dll_operator_new___unsigned_int_
mov ecx, dword [esp + 0x28]
mov esi, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [edi + ebx*4], esi
add ebx, 1
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jg 0x451f00
mov dword [edi + eax*4], 0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00401610
mov esi, eax
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x451ffc
mov edx, dword [edi]
test edx, edx
je 0x451ffc
xor ebx, ebx
mov dword [esp], edx
add ebx, 1
call sub.libstdc_6.dll_operator_delete___void_
cmp dword [esp + 0x3c], ebx
jle 0x451ffc
mov edx, dword [edi + ebx*4]
test edx, edx
jne 0x451fe4
mov dword [esp], edi
call sub.libstdc_6.dll_operator_delete___void_
mov eax, esi
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, 0xffffffff
jmp 0x452006
Function at 0x401600
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, eax
jns 0x401657
push 0xcf0000
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [0x405038]
mov edx, dword [0x405030]
sub eax, edx
mov ecx, dword [0x40502c]
push 0
push eax
mov eax, dword [0x405034]
sub eax, ecx
push eax
push edx
push ecx
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret
push 0x40502c
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0x80000000
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 3
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret
Function at 0x4016c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x405004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
push 0x44
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x474]
push 0
push eax
mov dword [ebp - 0x418], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xorps xmm0, xmm0
movups xmmword [ebp - 0x430], xmm0
call sub.MSVCP140.dll__Query_perf_frequency
mov edi, eax
mov esi, edx
mov dword [ebp - 0x410], edi
mov dword [ebp - 0x414], esi
call sub.MSVCP140.dll__Query_perf_counter
mov ecx, eax
cmp edi, 0x989680
jne 0x40174b
test esi, esi
jne 0x40174b
mov eax, edx
mov edi, 0x64
mul edi
mov esi, eax
mov eax, ecx
mul edi
add esi, edx
mov edx, eax
jmp 0x4017ac
push ebx
push esi
push edi
push edx
push ecx
call fcn.00401a30
mov esi, ebx
pop ebx
nop
push 0
push 0x3b9aca00
push esi
push ecx
mov ebx, eax
mov edi, edx
call fcn.00401b10
push dword [ebp - 0x414]
push dword [ebp - 0x410]
push edx
push eax
call fcn.00401980
mov dword [ebp - 0x410], eax
mov esi, edx
mov ecx, 0x3b9aca00
mov eax, edi
mul ecx
mov edx, 0x3b9aca00
mov ecx, eax
mov eax, ebx
mov ebx, dword [ebp - 0x418]
mul edx
add ecx, edx
mov edx, dword [ebp - 0x410]
add edx, eax
adc esi, ecx
push esi
push edx
push ebx
push dword [ebp - 0x41c]
lea eax, [ebp - 0x40c]
mov dword [0x405048], edx
push dword [ebp - 0x420]
mov dword [0x40504c], esi
push str.__s___load___s___hwnd__zu__sid__lld
push 0x104
push eax
call fcn.00401680
add esp, 0x20
cmp eax, 0x104
jge 0x401846
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x474]
push eax
push 0
push 0
push 8
push 0
push 0
push 0
lea eax, [ebp - 0x40c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401859
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_open_loader_executable:__x
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.00401940
add esp, 0x10
lea eax, [ebp - 0x204]
push 0
push 0
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040196f
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x430]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [0x405040], eax
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0040196f
mov esp, ebp
pop ebp
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x5d8ac4
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x5d87dc
mov esi, 0x917b1012
mov ecx, 0x5c33ae65
call fcn.005d8b09
or esi, esi
xor dword [ebx], eax
sub esi, 0x508c9b6d
add ebx, 2
sub ecx, 1
mov esi, esi
dec esi
cmp ebx, edi
jl fcn.005d8ac4
sub ecx, 0x1c6f35d6
ret

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
nop
mov ecx, 0x37203153
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
mov ecx, 0x3e1d1239
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219