joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100022f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x108c
call fcn.1001ab20
mov eax, dword [0x10025040]
xor eax, esp
mov dword [esp + 0x1088], eax
mov eax, ecx
mov dword [esp], 0xf2c3870
push ebx
push esi
push edi
movups xmm0, xmmword [eax]
push ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], 0x171811fb
mov dword [esp + 0x18], 0x15012d12
mov dword [esp + 0x1c], 0xef8107a
movups xmmword [esp + 0x1080], xmm0
call fcn.10001160
lea esi, [esp + 0x1080]
mov dword [esp + 0x28], 3
add esp, 4
mov dword [esp + 0x20], esi
mov ecx, dword [esi + 4]
lea edi, [esp + 0x74]
mov eax, dword [esi]
mov esi, 0x10
mov dword [esp + 0x1c], ecx
xor eax, dword [edi]
lea edi, [edi - 4]
mov edx, eax
mov dword [esp + 0x28], eax
mov ebx, eax
shr edx, 8
mov ecx, edx
shr ecx, 8
mov eax, ecx
movzx ecx, cl
shr eax, 8
mov eax, dword [esp + eax*4 + 0x78]
add eax, dword [esp + ecx*4 + 0x478]
movzx ecx, dl
mov edx, ebx
xor eax, dword [esp + ecx*4 + 0x878]
movzx ecx, bl
add eax, dword [esp + ecx*4 + 0xc78]
xor eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], edx
sub esi, 1
jne 0x10002377
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
xor ecx, edx
mov dword [esi], ecx
mov ecx, dword [esp + 0x34]
xor ecx, eax
mov dword [esi + 4], ecx
add esi, 8
sub dword [esp + 0x24], 1
mov dword [esp + 0x20], esi
jne 0x10002365
mov eax, dword [esp + 0x2c]
movups xmm0, xmmword [esp + 0x107c]
mov ecx, dword [esp + 0x1094]
pop edi
pop esi
pop ebx
xor ecx, esp
movups xmmword [eax], xmm0
call fcn.100037a2
mov esp, ebp
pop ebp
ret

Function at 0x100026a0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c88
call fcn.1001ab20
mov eax, dword [0x10025040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x2c88]
mov dword [ebp - 0x2c88], 0x2880
push eax
lea eax, [ebp - 0x2c84]
mov esi, ecx
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
je 0x100026ed
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100037a2
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x2af0], 0
lea eax, [ebp - 0x2c84]
jne 0x10002738
nop dword [eax]
cmp byte [eax + 0x195], 0
jne 0x10002738
cmp byte [eax + 0x196], 0
jne 0x10002738
cmp byte [eax + 0x197], 0
jne 0x10002738
cmp byte [eax + 0x198], 0
jne 0x10002738
cmp byte [eax + 0x199], 0
jne 0x10002738
mov eax, dword [eax]
cmp byte [eax + 0x194], 0
je 0x10002700
movzx ecx, byte [eax + 0x199]
push ecx
movzx ecx, byte [eax + 0x198]
push ecx
movzx ecx, byte [eax + 0x197]
push ecx
movzx ecx, byte [eax + 0x196]
push ecx
movzx ecx, byte [eax + 0x195]
movzx eax, byte [eax + 0x194]
push ecx
push eax
push str._02X_02X_02X_02X_02X_02X
lea eax, [ebp - 0x404]
push 0x3e8
push eax
call fcn.100021f0
push 0x3e8
lea eax, [ebp - 0x404]
push eax
push 0x3e8
push esi
push 0
call fcn.1000c315
mov ecx, dword [ebp - 4]
add esp, 0x38
xor ecx, ebp
mov al, 1
pop esi
call fcn.100037a2
mov esp, ebp
pop ebp
ret
Function at 0x10002920
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d24
call fcn.1001ab20
mov eax, dword [0x10025040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x100
lea eax, [ebp - 0x204]
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x10002a33
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.10004fb0
push str.._
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.1000c018
lea eax, [ebp - 0x204]
mov byte [ebp - 0x202], 0
push eax
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.1000c352
add esp, 0x24
lea eax, [ebp - 0x104]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10002a33
push 0x2710
lea eax, [ebp - 0x2d14]
mov dword [ebp - 0x2d24], 0
push 0
push eax
mov dword [ebp - 0x2d18], 0
mov dword [ebp - 0x2d20], 0
mov dword [ebp - 0x2d1c], 0
call fcn.10004fb0
add esp, 0xc
lea eax, [ebp - 0x2d24]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2d14]
push eax
push 0xc
lea eax, [ebp - 0x2d20]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10002a45
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100037a2
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x2cfc]
lea eax, [ebp - 0x604]
push eax
push ecx
lea ecx, [ebp - 0x2d14]
call fcn.100027b0
push eax
push str._02X_02X
lea eax, [ebp - 0x604]
push 0x3e8
push eax
call fcn.100021f0
push 0x3e8
lea eax, [ebp - 0x604]
push eax
push 0x3e8
push edi
push 0
call fcn.1000c315
mov ecx, dword [ebp - 4]
add esp, 0x2c
xor ecx, ebp
mov al, 1
pop edi
pop esi
call fcn.100037a2
mov esp, ebp
pop ebp
ret
Function at 0x10003010
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
push str.engine.dll
call ebx
mov esi, eax
push str.ntdll.dll
mov dword [ebp - 4], esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push esi
call edi
mov esi, dword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
push eax
call esi
mov eax, dword [ebp - 4]
mov dword [0x100268e0], eax
lea eax, [ebp - 0x10]
push 0xc
push eax
push ebx
call edi
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.KiUserExceptionDispatcher
push str.ntdll.dll
mov dword [0x100268e8], ebx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
mov dword [0x100268f4], eax
test eax, eax
je 0x100031c8
cmp byte [eax], 0xfc
jne 0x10003099
inc eax
mov dword [0x100268f4], eax
push str.connect
push str.ws2_32.dll
call edi
push eax
call esi
test eax, eax
je 0x100031c8
mov edx, 0x10002280
mov ecx, eax
call fcn.100020a0
push str._AddNetworkQueue_UNetworkHandler__UAEHPAUNetworkPacket___Z
push dword [ebp - 4]
mov dword [0x100268f8], eax
call esi
test eax, eax
je 0x100031c8
mov edx, 0x10002410
mov ecx, eax
call fcn.100020a0
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x10001c00
push 0
push 0
mov dword [0x100268f0], eax
call esi
call fcn.10001b10
call fcn.10001b10
push 0
push 0
push 0
push 0x10001e30
push 0
push 0
call esi
call fcn.10001cd0
call fcn.10001cd0
push 0
push 0
push 0
push 0x100019c0
push 0
push 0
call esi
mov ecx, str.L2Tower.exe
call fcn.10001860
mov ecx, str.L2NET.exe
call fcn.10001860
mov ecx, str.HxD.exe
call fcn.10001860
mov ecx, str.boot.exe
call fcn.10001860
mov ecx, str.alquimista.exe
call fcn.10001860
mov ecx, str.L2Divine.exe
call fcn.10001860
mov ecx, str.SandMan.exe
call fcn.10001860
mov ecx, str.SbieSvc.exe
call fcn.10001860
mov ecx, str.SbieSvc32.exe
call fcn.10001860
mov ecx, str.SbieSvc32.exe
call fcn.10001860
mov ecx, str.SbieCtrl.exe
call fcn.10001860
mov ecx, str.Start.exe
call fcn.10001860
call fcn.100017a0
push 0
push 0
push 0
push 0x10001830
push 0
push 0
call esi
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000c7d0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000c80f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000c80f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000c80f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000c80f
cmp dword [ecx + 0x74], 0xe
jbe 0x1000c80f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1000de3b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001c7fc
push 0x1001c7f4
push str.FlsAlloc
push 0x1f
call fcn.1000dd17
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000de6f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001b1a8]
call esi
jmp 0x1000de75
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000deb9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001c80c
push 0x1001c804
push str.FlsGetValue
push 0x21
call fcn.1000dd17
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000def0
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001b1a8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000def8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001c814
push 0x1001c80c
push str.FlsSetValue
push 0x22
call fcn.1000dd17
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000df32
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001b1a8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10010290
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10026090]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100102d0
cmp byte [ebx], 0xa
jne 0x100102d0
or byte [edi + eax + 0x28], 4
jmp 0x100102d5
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x100103d4
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100103b7
inc eax
cmp dl, 0xd
je 0x10010301
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10010327
cmp eax, ecx
jae 0x10010335
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x100102e9
jmp 0x100103d4
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100103b2
cmp dword [ebp - 0x10], 0
je 0x100103b2
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10026090]
test byte [eax + edi + 0x28], 0x48
je 0x1001038c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10010377
mov byte [esi], dl
jmp 0x10010388
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10026090]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100103d4
cmp byte [ebp - 1], 0xa
jne 0x1001039b
cmp esi, ebx
jne 0x1001039b
mov byte [esi], 0xa
jmp 0x100103d3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100170df
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100103d4
mov byte [esi], 0xd
jmp 0x100103d3
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10026090]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100103d1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100103d4
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100103dd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10026090]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10010423
cmp word [ebx], dx
jne 0x10010423
or byte [eax + edi + 0x28], 4
jmp 0x10010428
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1001058b
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1001056b
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10010469
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001049f
cmp eax, edx
jae 0x100104ad
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10010444
jmp 0x1001058b
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10010566
cmp dword [ebp - 0x18], 0
je 0x10010566
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10026090]
test byte [eax + edi + 0x28], 0x48
je 0x1001053c
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10010500
mov word [esi], cx
jmp 0x10010537
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10026090]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10026090]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10026090]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1001058b
pop eax
cmp word [ebp - 4], ax
jne 0x1001054c
cmp esi, ebx
jne 0x1001054c
mov word [esi], ax
jmp 0x10010588
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100170df
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001058b
push 0xd
pop eax
jmp 0x10010547
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10026090]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10010585
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1001058b
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001265f
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 0x100126fc
push ebx
push esi
call fcn.10012628
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.100125bc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100126a9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100126fb
push edi
push eax
call fcn.1000e997
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100126c9
call fcn.1000d56f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100126fa
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100125bc
add esp, 0x20
test eax, eax
jne 0x100126e8
push edi
call fcn.1000d56f
jmp 0x100126f0
push ebx
call fcn.1000d56f
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 0x100185d1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1001854d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10018740
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10018740
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100186f5
jg 0x1001862d
test eax, eax
je 0x100186eb
push 1
push 0x1000
call fcn.1000d512
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10018650
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100186e2
push 0x8000
push ebx
call fcn.1001847e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10018679
jg 0x10018674
cmp ecx, 0x1000
jb 0x10018679
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10013e90
add esp, 0x10
cmp eax, 0xffffffff
je 0x100186be
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10018674
jl 0x100186a5
test ecx, ecx
jne 0x10018666
push dword [ebp - 0xc]
push ebx
call fcn.1001847e
push esi
call fcn.1000d56f
add esp, 0xc
xor ebx, ebx
jmp 0x1001874e
cmp byte [edi + 0x24], 0
je 0x100186d5
cmp dword [edi + 0x20], 5
jne 0x100186d5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100186e0
mov ebx, dword [edi + 0x18]
jmp 0x100186e2
xor ebx, ebx
push esi
call fcn.1000d56f
pop ecx
jmp 0x1001874e
test ecx, ecx
jg 0x100186b7
jl 0x100186f5
test eax, eax
jae 0x100186b7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100170df
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10018715
cmp byte [edi + 0x1c], 0
je 0x100186b7
jmp 0x10018746
push ebx
call fcn.1001341d
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100186b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001874e
cmp byte [edi + 0x1c], 0
je 0x1001874b
mov ebx, dword [edi + 0x18]
jmp 0x1001874e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100170df
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001a760
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001a78d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001a78d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4037f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x428
mov eax, dword [esp + 0x42c]
push ebx
mov ebx, dword [0x43176c]
push ebp
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
push edi
mov edi, dword [0x431768]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0
call fcn.004037b0
add dword [esp + 0x28], 0x23f
cmp dword [0x4417a4], 0x14
jne 0x403842
call dword [sym.imp.KERNEL32.dll_GetACP]
mov ecx, dword [0x431770]
mov edx, dword [0x431774]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
mov ebp, 0x20
jmp 0x403860
mov dword [esp + 0x18], 2
add dword [esp + 0x18], 3
mov eax, esi
shl eax, 4
add eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
mov eax, dword [0x4417a4]
cmp eax, 0xfa9
jne 0x403892
mov dword [0x4417a0], 0xedeb2e40
jmp 0x4038a3
cmp eax, 0x3eb
jne 0x4038a3
mov dword [0x441710], 0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
add dword [esp + 0x20], eax
mov ecx, dword [esp + 0x18]
mov edx, esi
shr edx, cl
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x24]
mov dword [0x44179c], 0xf4ea3dee
mov dword [esp + 0x24], edx
call fcn.004037c0
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
cmp dword [0x4417a4], 0x9e6
jne 0x4038f7
mov eax, dword [esp + 0x2c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
mov ecx, dword [esp + 0x10]
xor dword [esp + 0x24], ecx
mov eax, dword [esp + 0x24]
add dword [esp + 0x14], 0x64
sub dword [esp + 0x14], eax
sub dword [esp + 0x14], 0x64
cmp dword [0x4417a4], 0xc
jne 0x40393a
lea edx, [esp + 0x38]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
call fcn.00403730
add dword [esp + 0x10], edi
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x28]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
nop
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
shr edx, cl
mov ecx, ebx
lea eax, [esp + 0x24]
mov dword [esp + 0x24], edx
call fcn.004037d0
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00403740
mov eax, dword [esp + 0x10]
push eax
mov eax, esi
call fcn.004037e0
add dword [esp + 0x28], 0x61c88647
sub ebp, 1
mov esi, eax
mov dword [esp + 0x24], esi
jne 0x403860
mov eax, dword [esp + 0x43c]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
mov dword [eax + 4], ecx
pop ebx
add esp, 0x428
ret 4
Function at 0x4039f0
Capabilities:
Enumerate gui resources
Get hostname

Disassembly:
mov eax, 0x241c
call fcn.00411490
mov eax, dword [0x4417a4]
mov ecx, dword [0x441714]
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x403b12
mov esi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x4417a4], 0x959
jne 0x403af8
push 0
lea eax, [esp + 0x82c]
push eax
push 0
push 0
push 0
push 0
call esi
push 0
lea ecx, [esp + 0x142c]
push ecx
push 0
call edi
push 0
push 0
call ebx
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
push 0
push 0
lea edx, [esp + 0x30]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
push 0
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
lea ecx, [esp + 0xc2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea ecx, [esp + 0x20]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
mov edx, dword [esp + 0x10]
push edx
call fcn.004037f0
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x403a34
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x241c
ret
Function at 0x404410
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x42e02b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, 0x1430
call fcn.00411490
push ebx
push ebp
push esi
xor ebp, ebp
cmp dword [0x4417a4], 0xc
push edi
jne 0x404506
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetConsoleFontSize]
push ebp
push 0x402e4c
push 0x402e5c
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
push ebp
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push 0x402e7c
call dword [sym.imp.KERNEL32.dll_FindAtomW]
push ebp
lea ecx, [esp + 0x444]
push ecx
push 0x402e98
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_HeapSize]
push 0x402ec0
call dword [sym.imp.KERNEL32.dll_AddAtomA]
push ebp
push ebp
call fcn.00405ab2
mov eax, esp
mov dword [eax], ebp
mov dword [eax + 4], ebp
call fcn.00405c8a
fstp st(0)
push ebp
call fcn.00405e65
add esp, 0xc
push 4
call fcn.00406030
add esp, 4
cmp eax, ebp
je 0x4044df
lea edx, [esp + 0x28]
mov dword [eax], edx
jmp 0x4044e1
xor eax, eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x1480], 0xffffffff
call fcn.00404da0
mov edi, dword [sym.imp.USER32.dll_CharLowerBuffW]
mov ebx, dword [sym.imp.USER32.dll_GetSysColorBrush]
xor esi, esi
cmp esi, 0x9458
jge 0x40452a
push ebp
lea ecx, [esp + 0xc44]
push ecx
call edi
push ebp
call ebx
inc esi
cmp esi, 0x14ee8
jl 0x404514
mov edx, dword [0x431ae4]
mov eax, dword [0x431ab8]
mov dword [0x4417a4], edx
mov dword [0x6c8d7c], eax
call fcn.00403c20
mov ecx, dword [esp + 0x1474]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 0x10