joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100252c0

Function at 0x10044414
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x10044423
pop dword [ebp - 0x14]
mov eax, 0xd441a618
sub eax, 0xc43d61f5
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xdb33164e
sub dword [ebp - 0x24], 0x8ce0d103
mov dword [ebp - 0x20], 0x2c23505d
sub dword [ebp - 0x20], 0xf9f00418
mov dword [ebp - 0x1c], 0x4739b00f
sub dword [ebp - 0x1c], 0xfaed6be1
mov dword [ebp - 0x18], 0xf48a46b8
add dword [ebp - 0x18], 0xb75b948
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x51edb5f7
sub dword [ebp - 0x24], 0xdd7b4ca1
mov dword [ebp - 0x20], 0x3c34ea0b
sub dword [ebp - 0x20], 0xfac88896
mov dword [ebp - 0x1c], 0x85dbb563
add dword [ebp - 0x1c], 0xdd93b709
mov dword [ebp - 0x18], 0xc974619b
sub dword [ebp - 0x18], 0xc974619b
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xa2ddcdd7
add eax, 0x6d293269
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x68c7f
push 0
call eax
mov ecx, 0x4e27
mov esi, eax
mov edi, 0xa96f99d2
sub edi, 0x99674dd2
add edi, dword [ebp - 0x14]
mov ebx, 0x470cf95d
sub ebx, 0x18111518
sub dword [ebp - 0xc], edx
mov edx, dword [edi]
xor dword [ebp - 4], 0x809473d5
sub edx, ebx
add dword [ebp - 0xc], edi
mov dword [esi], edx
add dword [ebp - 8], edi
add esi, 0x37d1a61d
add esi, 0xc82e59e7
add edi, 4
loop 0x1004453a
add eax, 0x67aef526
sub eax, 0x67adc9b7
xor ebx, ebx
add ebx, eax
add eax, 0xb5777d20
add eax, 0x4a8882e5
mov ecx, 0xaf1bca71
add ecx, 0x60e4358f
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x4019f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov dword [ebp - 0x114], str._system32777.dll
push 0x104
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [ebp - 0x114]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 3
push 0
push 3
push 1
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
je 0x401a5f
cmp dword [ebp - 0x118], 0
je 0x401a5f
jmp 0x401ac3
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0
je 0x401ac3
mov dword [ebp - 0x11c], 0x15f
mov edx, dword [ebp + 8]
add edx, 8
mov dword [0x438274], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [0x438290], ecx
mov dword [ebp - 0x11c], 0x15f
mov dword [ebp - 0x11c], 0x15f
call fcn.004011b0
mov edx, dword [ebp + 8]
mov dword [0x43828c], edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
call fcn.004013b0
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x401a5f
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00404502
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00404502
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00404502
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00404502
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00404502
mov dword [0x41203c], eax
call fcn.00404502
test eax, eax
jge 0x402550
push 8
call fcn.00404502
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00404502
pop ecx
push 1
call fcn.00404502
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00404502
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00404502
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00404502
jmp 0x402495

Function at 0x404502
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x404511
pop dword [ebp - 0xc]
mov eax, 0x493f8335
sub eax, 0x48ff3e24
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x3d34e
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x5f065409
add ecx, 0xa0fa03fd
xor edi, edi
add edi, eax
mov ebx, 0x413bc4
add ebx, dword [ebp - 0xc]
mov edx, 0xd8325f18
mov esi, dword [ebx]
add dword [ebp - 4], ebx
add esi, edx
sub dword [ebp - 8], 0x17675f3c
mov dword [edi], esi
xor dword [ebp - 4], esi
add edi, 0x15387c9e
add edi, 0xeac78366
add ebx, 0x7a93b2ed
add ebx, 0x856c4d17
loop 0x404561
add eax, 0x9c579d18
add eax, 0x63a9b5d3
mov ebx, eax
add eax, 0x40c73910
sub eax, 0x40c7390b
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x1c22fc0
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
push ebx
test eax, eax
je 0x1c234e0
test edx, edx
je 0x1c234e0
call fcn.01c22fd7
mov eax, 0xffffffff
pop ebx
pop ebp
ret

Function at 0x1c26cc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
call fcn.01c26cc9

Function at 0x1c329b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x1d18014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x1d04f44
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQuerySection
push eax
call edi
mov dword [0x1d34cec], eax
push str.NtQueryVirtualMemory
push esi
call edi
mov dword [0x1d34ce4], eax
push str.NtUnmapViewOfSection
push esi
call edi
mov dword [0x1d34ce8], eax
cmp dword [0x1d34cec], 0
mov edi, 0xd
je 0x1c32ad2
cmp dword [0x1d34ce4], 0
je 0x1c32ad2
test eax, eax
je 0x1c32ad2
push 0
call fcn.01c4b5a0
add esp, 4
test eax, eax
je 0x1c32ae6
mov esi, eax
mov eax, dword [eax]
mov edi, dword [eax + 0x18]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
call edi
lea ecx, [ebp - 0x14]
mov dword [ecx], 0
mov eax, 0x40
push ecx
push eax
push eax
push section..crthunk
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1c32aed
push 0x1d04f44
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [section..00cfg]
xor edi, edi
mov ecx, esi
push edi
push 0x40
push section..crthunk
push 0x1c32360
push edi
push str.NtMapViewOfSection
push 0x1c20000
push dword [ebp - 0x18]
call ebx
test eax, eax
js 0x1c32af4
lea eax, [ebp - 0x14]
push eax
push 0x20
push 0x40
push section..crthunk
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi]
mov ebx, dword [eax]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
push 1
call ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c9ca53
mov eax, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, 0xe
jmp 0x1c32ad2
mov edi, 0xf
jmp 0x1c32ac0
mov dword [0x1d34cf0], eax
mov edi, 0x10
jmp 0x1c32ac0
Function at 0x1c384c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ecx + 0x10]
test eax, eax
jne 0x1c38510
mov edx, dword [ecx + 0xc]
test edx, edx
jne 0x1c3851e
mov edx, dword [ecx]
xor eax, eax
test edx, edx
je 0x1c38510
mov dword [ecx + 0xc], edx
mov esi, dword [ecx + 4]
cmp esi, 0x40
jb 0x1c38515
movzx edi, word [edx]
cmp edi, 0x5a4d
jne 0x1c38515
mov edi, dword [edx + 0x3c]
lea ebx, [edi + 0x18]
xor eax, eax
cmp ebx, esi
ja 0x1c38510
add edx, edi
cmp dword [edx], 0x4550
jne 0x1c38510
add edx, 4
mov dword [ecx + 0x10], edx
mov eax, edx
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ecx + 0xc], 0
jmp 0x1c38510
mov esi, dword [ecx + 4]
jmp 0x1c384f2

Function at 0x1c38530
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x1c38548
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ecx + 0xc]
mov esi, dword [ecx + 0x10]
test esi, esi
jne 0x1c38598
test edi, edi
jne 0x1c3861b
mov edi, dword [ecx]
xor eax, eax
test edi, edi
je 0x1c38540
mov dword [ecx + 0xc], edi
mov ebx, dword [ecx + 4]
cmp ebx, 0x40
jb 0x1c385e8
movzx edx, word [edi]
cmp edx, 0x5a4d
jne 0x1c385e8
mov esi, dword [edi + 0x3c]
lea edx, [esi + 0x18]
xor eax, eax
cmp edx, ebx
ja 0x1c38540
add esi, edi
cmp dword [esi], 0x4550
jne 0x1c38540
add esi, 4
mov dword [ecx + 0x10], esi
jne 0x1c3859b
jmp 0x1c38540
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x14], esi
lea edx, [esi + 0x14]
mov esi, ebx
mov ebx, edx
sub ebx, edi
lea edi, [ebx + 2]
xor eax, eax
mov dword [ebp - 0x10], esi
cmp edi, esi
ja 0x1c38540
movzx edi, word [edx]
cmp edi, 0x10b
jne 0x1c385f4
mov dword [ecx + 8], 1
add ebx, 0xe0
mov edi, dword [ebp - 0x10]
cmp ebx, edi
mov esi, dword [ebp - 0x14]
ja 0x1c38540
cmp edi, 0xffffffff
je 0x1c38613
mov dword [ecx + 0x14], edx
mov eax, edx
jmp 0x1c38540
mov dword [ecx + 0xc], 0
jmp 0x1c38540
cmp edi, 0x20b
jne 0x1c38623
mov dword [ecx + 8], 2
lea edi, [ebx + 0xf0]
cmp edi, dword [ebp - 0x10]
jbe 0x1c385c5
jmp 0x1c38540
mov eax, dword [esi + 0x4c]
mov dword [ecx + 4], eax
jmp 0x1c385de
mov ebx, dword [ecx + 4]
jmp 0x1c38578
mov dword [ecx + 8], 0
jmp 0x1c38540
Function at 0x1c4c540
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov ebx, edx
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x1d18014]
xor eax, ebp
mov dword [esp + 0x48], eax
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x1c4c569
mov eax, dword [ecx + 4]
test eax, eax
je 0x1c4c6d6
mov eax, ebx
not eax
test eax, 0x300
je 0x1c4c6d6
cmp edi, 2
mov eax, 0x1d36d76
mov ecx, 0x1d36f76
cmove ecx, eax
cmp word [ecx], 0
jne 0x1c4c6d6
xorps xmm0, xmm0
lea esi, [esp + 0x20]
movaps xmmword [esi + 0x10], xmm0
movaps xmmword [esi], xmm0
mov dword [esi + 0x20], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [esi], 0
je 0x1c4c6d6
cmp byte [0x1d36d74], 0
setne al
bt ebx, 8
jb 0x1c4c6d6
shr ebx, 9
and ebx, 1
or bl, al
je 0x1c4c6d6
cmp edi, 2
mov eax, 0x1d08cfc
mov edx, 0x1d08d10
cmove edx, eax
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xb]
test cl, cl
jns 0x1c4c6e9
mov ecx, dword [eax]
mov dword [esp + 4], ecx
mov eax, dword [eax + 4]
xor ecx, ecx
inc ecx
mov dword [esp + 0x18], ecx
xor esi, esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
mov edi, dword [edx + 4]
mov ebx, eax
sub ebx, edi
jb 0x1c4c657
push edi
push dword [edx]
push dword [esp + 0xc]
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], eax
call fcn.01cb2715
mov edx, dword [esp + 0x28]
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x14]
je 0x1c4c663
add edx, 0x14
inc esi
cmp esi, dword [esp + 0x18]
jb 0x1c4c62b
jmp 0x1c4c6cf
mov eax, dword [esp + 4]
movzx ecx, word [eax + edi*2]
mov eax, dword [esp + 0x14]
cmp ecx, 0x5c
jne 0x1c4c719
mov eax, dword [esp + 4]
lea eax, [eax + edi*2]
mov esi, dword [edx + 8]
cmp esi, 2
jne 0x1c4c695
mov dword [esp + 0xc], str.WOW6432Node
mov dword [esp + 8], eax
jmp 0x1c4c69e
cmp esi, 1
je 0x1c4c726
cmp cx, 0x5c
mov dword [esp + 0x10], esi
jne 0x1c4c6bb
lea ecx, [eax + 2]
dec ebx
cmp word [eax + 2], 0x5c
mov dword [esp + 4], ecx
mov eax, ecx
je 0x1c4c6a8
jmp 0x1c4c6bf
mov dword [esp + 4], eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x18], eax
mov edx, dword [edx + 0xc]
xor esi, esi
mov eax, ebx
jmp 0x1c4c65b
cmp dword [esp + 0x10], 0
jne 0x1c4c6f4
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.01c9ca53
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 4], eax
mov eax, ecx
jmp 0x1c4c60a
mov eax, dword [ebp + 8]
cmp byte [eax + 0xb], 0
jns 0x1c4c702
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [esp + 8]
sub edx, eax
sar edx, 1
mov ecx, dword [ebp + 8]
push dword [esp + 0xc]
push edx
call fcn.01c4abb0
jmp 0x1c4c6d6
test ecx, ecx
jne 0x1c4c657
jmp 0x1c4c678
mov dword [esp + 0xc], str.WOW6432Node_
mov edi, dword [esp + 4]
mov dword [esp + 8], edi
jmp 0x1c4c69e
Function at 0x1c4d270
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [0x1d18014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
lea ebx, [ebp - 0x1c]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
lea esi, [ebp - 0x28]
mov ecx, esi
push str.type
call fcn.01cc8630
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edi, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.01cc8630
push esi
push edi
push ebx
call fcn.01c4d320
add esp, 0xc
cmp byte [edi + 0xb], 0
jns 0x1c4d2cd
push dword [ebp - 0x34]
call fcn.01c9ba37
add esp, 4
cmp byte [ebp - 0x1d], 0
js 0x1c4d305
lea esi, [ebp - 0x1c]
mov ecx, esi
call fcn.01c4d500
mov dword [0x1d37380], eax
cmp byte [esi + 0xb], 0
jns 0x1c4d2f3
push dword [ebp - 0x1c]
call fcn.01c9ba37
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c9ca53
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [ebp - 0x28]
call fcn.01c9ba37
add esp, 4
jmp 0x1c4d2d3

Function at 0x1c4d750
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x18
mov ebx, dword [ebp + 8]
mov eax, dword [0x1d18014]
xor eax, ebp
mov dword [esp + 0x10], eax
xor edi, edi
push edi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1c4d86c
xor ecx, ecx
dec ecx
mov dword [esp], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
cmp eax, 0x7ffffff0
jae 0x1c4d876
cmp eax, 5
jb 0x1c4d87b
mov ebx, eax
or ebx, 7
inc ebx
js 0x1c4d885
mov esi, eax
lea eax, [ebx + ebx]
push eax
call fcn.01c9ba07
add esp, 4
mov edi, eax
mov dword [esp], eax
or ebx, 0x80000000
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov eax, esi
mov ecx, eax
add ecx, eax
push ecx
push 0
push edi
mov esi, eax
call fcn.01c9f2d0
mov edx, esi
add esp, 0xc
mov word [edi + esi*2], 0
cmp byte [esp + 0xb], 0
mov ebx, dword [ebp + 8]
jns 0x1c4d7f9
mov eax, dword [esp]
jmp 0x1c4d7fb
mov eax, esp
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1c4d860
movzx ecx, byte [esp + 0xb]
test cl, cl
jns 0x1c4d81a
mov ecx, dword [esp + 4]
jmp 0x1c4d81d
and ecx, 0x7f
cmp eax, ecx
jae 0x1c4d860
xor esi, esi
mov edi, esp
mov ecx, edi
push esi
push eax
call fcn.01c7bf10
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
movsd xmm0, qword [edi]
movsd qword [ebx], xmm0
mov dword [edi + 4], esi
mov dword [edi], esi
mov dword [edi + 8], esi
cmp byte [esp + 0xb], 0
js 0x1c4d88a
mov ecx, dword [esp + 0x10]
xor ecx, ebp
call fcn.01c9ca53
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx], eax
mov dword [ebx + 8], eax
jmp 0x1c4d844
mov dword [ebx + 4], edi
mov dword [ebx], edi
mov dword [ebx + 8], edi
jmp 0x1c4d84b
call fcn.01cb0360
mov edi, esp
mov byte [edi + 0xb], al
jmp 0x1c4d7d0
call fcn.01cc8620
push dword [esp]
call fcn.01c9ba37
add esp, 4
jmp 0x1c4d84b
Function at 0x1c4dd10
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov esi, dword [ebp + 8]
mov eax, dword [0x1d18014]
xor eax, ebp
mov dword [esp + 0x20], eax
cmp byte [esi + 0xb], 0
mov edi, esi
jns 0x1c4dd34
mov edi, dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1c4dd5e
test al, 0x10
jne 0x1c4dd7b
push edi
push str.RecursiveDirectoryCreate
push str._hs___ls_directory_conflicts_with_an_existing_file.___n
call fcn.01c4dec0
add esp, 0xc
xor ebx, ebx
jmp 0x1c4de50
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x1c4dd95
mov ecx, dword [esi]
mov eax, dword [esi + 4]
jmp 0x1c4dd9a
push edi
push str.RecursiveDirectoryCreate
push str._hs___ls_directory_exists___n
call fcn.01c4dec0
add esp, 0xc
mov bl, 1
jmp 0x1c4de50
and eax, 0x7f
mov ecx, esi
add eax, eax
test eax, eax
je 0x1c4ddff
movzx edx, word [ecx + eax - 2]
add eax, 0xfffffffe
cmp edx, 0x5c
je 0x1c4ddb2
cmp edx, 0x2f
jne 0x1c4dd9c
cmp eax, 0xfffffffe
je 0x1c4ddff
sar eax, 1
lea edx, [esi + 0xc]
lea ecx, [esp + 4]
push edx
push eax
push 0
push esi
call fcn.01c4aa80
cmp byte [esp + 0x1b], 0
jns 0x1c4dddd
push dword [esp + 0x10]
call fcn.01c9ba37
add esp, 4
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [ecx + 8], eax
movsd xmm0, qword [esp + 4]
movsd qword [ecx], xmm0
push ecx
call fcn.01c4dd10
add esp, 4
test al, al
je 0x1c4de2e
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x1c4de3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0xb7
je 0x1c4de65
push esi
push edi
push str.Failed_to_create_directory__ls__last_error_is__d_n
call fcn.01c4dec0
add esp, 0xc
jmp 0x1c4de3b
push str.Failed_to_create_one_of_the_parent_directories
call fcn.01c4dec0
add esp, 4
xor ebx, ebx
cmp byte [esp + 0x1b], 0
jns 0x1c4de50
push dword [esp + 0x10]
call fcn.01c9ba37
add esp, 4
mov ecx, dword [esp + 0x20]
xor ecx, ebp
call fcn.01c9ca53
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 4]
push edi
call fcn.01cc8630
lea eax, [esp + 4]
cmp byte [eax + 0xb], 0
jns 0x1c4de7d
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne cl
and eax, 0x10
shr eax, 4
and al, cl
cmp byte [esp + 0xf], 0
jns 0x1c4dead
push dword [esp + 4]
mov dword [esp + 4], eax
call fcn.01c9ba37
mov eax, dword [esp + 4]
add esp, 4
test al, al
je 0x1c4de1d
jmp 0x1c4de3d
Function at 0x1c4dec0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [ebp + 8]
mov eax, dword [0x1d18014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp + 0xc]
mov dword [ebp - 0x14], edi
call fcn.01c771d0
mov ebx, 0x1d37384
push edi
push 0
push esi
push 0x400
push ebx
push dword [eax + 4]
push dword [eax]
call fcn.01ca037b
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c9ca53
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1c4eea0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x1d18014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x1d37b84]
test eax, eax
jne 0x1c4ef88
mov edi, 0xc
push edi
call fcn.01c9ba07
add esp, 4
mov esi, eax
xor ebx, ebx
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [0x1d37b84], eax
push edi
call fcn.01c9ba07
add esp, 4
mov edi, eax
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [0x1d37b88], eax
call fcn.01c4d110
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x28]
push str.user_data_dir
call fcn.01cc8630
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x34]
push eax
call fcn.01cc8630
lea ebx, [ebp - 0x1c]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
call fcn.01c4d320
add esp, 0xc
push edi
push esi
push dword [ebp - 0x38]
push ebx
call fcn.01c4ea70
add esp, 0x10
mov byte [ebp - 0x38], al
cmp byte [ebx + 0xb], 0
jns 0x1c4ef57
push dword [ebp - 0x1c]
call fcn.01c9ba37
add esp, 4
cmp byte [ebp - 0x29], 0
jns 0x1c4ef68
push dword [ebp - 0x34]
call fcn.01c9ba37
add esp, 4
cmp byte [ebp - 0x1d], 0
jns 0x1c4ef79
push dword [ebp - 0x28]
call fcn.01c9ba37
add esp, 4
cmp byte [ebp - 0x38], 0
je 0x1c4f037
mov eax, dword [0x1d37b84]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp eax, ecx
je 0x1c4efaa
cmp byte [ecx + 0xb], 0
movzx edx, byte [eax + 0xb]
js 0x1c4f007
test dl, dl
jns 0x1c4efe7
push dword [eax + 4]
push dword [eax]
call fcn.01c4acd0
mov bl, 1
test esi, esi
je 0x1c4efd3
mov eax, dword [0x1d37b88]
cmp eax, esi
je 0x1c4efd3
cmp byte [esi + 0xb], 0
movzx edx, byte [eax + 0xb]
js 0x1c4f012
test dl, dl
jns 0x1c4eff7
mov ecx, esi
push dword [eax + 4]
push dword [eax]
call fcn.01c4acd0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c9ca53
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
movsd xmm0, qword [eax]
movsd qword [ecx], xmm0
jmp 0x1c4efaa
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
movsd xmm0, qword [eax]
movsd qword [esi], xmm0
jmp 0x1c4efd3
test dl, dl
jns 0x1c4f01d
mov edx, dword [eax + 4]
mov eax, dword [eax]
jmp 0x1c4f020
test dl, dl
jns 0x1c4f029
mov edx, dword [eax + 4]
mov eax, dword [eax]
jmp 0x1c4f02c
and edx, 0x7f
push edx
push eax
call fcn.01c4ac00
jmp 0x1c4efaa
and edx, 0x7f
mov ecx, esi
push edx
push eax
call fcn.01c4ac00
jmp 0x1c4efd3
xor ebx, ebx
jmp 0x1c4efd3
Function at 0x1c4f3c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1d37bc0]
mov ecx, dword [0x1d340c4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c4f3f1
movzx eax, word [0x1d37b9c]
cmp eax, 9
jne 0x1c4f43c
xor eax, eax
inc eax
pop ebp
ret
push 0x1d37bc0
call fcn.01c9baa7
add esp, 4
cmp dword [0x1d37bc0], 0xffffffff
jne 0x1c4f3e0
xorps xmm0, xmm0
movups xmmword [0x1d37bac], xmm0
movups xmmword [0x1d37b9c], xmm0
mov dword [0x1d37bbc], 0
push 0x1d37b9c
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x1d37bc0
call fcn.01c9bb1d
add esp, 4
jmp 0x1c4f3e0
test eax, eax
je 0x1c4f3ef
cmp eax, 6
jne 0x1c4f44c
mov eax, 2
jmp 0x1c4f3ef
cmp eax, 0xc
jne 0x1c4f458
mov eax, 3
jmp 0x1c4f3ef
mov eax, 4
jmp 0x1c4f3ef