joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18026ea0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1804e020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [sym.imp.MSVCR90.dll___argc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, dword [eax]
jge 0x1802702f
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp esi, ebx
je 0x18026ef5
mov ecx, dword [sym.imp.MSVCR90.dll___argv]
mov edx, dword [ecx]
mov eax, dword [edx + edi*4]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x18026ee0
sub eax, edx
inc eax
mov dword [esi], eax
cmp dword [ebp + 0x10], eax
jb 0x1802702f
call sym.HncBL90.dll__HncGetWinVersion_0
test eax, eax
jbe 0x18026ff4
call sym.HncBL90.dll__HncGetWinVersion_0
cmp eax, 4
jae 0x18026ff4
mov ecx, dword [sym.imp.MSVCR90.dll___argv]
mov edx, dword [ecx]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ebx
mov ecx, dword [edx + edi*4]
cmp byte [ecx], bl
jne 0x18026f32
mov ebx, 0x18040a84
jmp 0x18026fd1
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x18026f37
sub eax, esi
mov edi, eax
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x18026f47
sub eax, esi
lea eax, [eax + eax*2 + 0xc]
cmp eax, 0x400
mov eax, ecx
lea edx, [eax + 1]
jg 0x18026f80
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x18026f60
sub eax, edx
lea eax, [eax + eax*2 + 0xc]
call fcn.18029d50
mov eax, esp
cmp eax, ebx
je 0x18026fa4
mov dword [eax], 0xcccc
jmp 0x18026fa1
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x18026f80
sub eax, edx
lea ecx, [eax + eax*2 + 0xc]
push ecx
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
cmp eax, ebx
je 0x18026fa4
mov dword [eax], 0xdddd
add eax, 8
mov ebx, eax
lea esi, [ebp - 0x18]
call fcn.180022d0
mov eax, dword [sym.imp.MSVCR90.dll___argv]
mov ecx, dword [eax]
push 0
lea edx, [edi + edi*2 + 4]
shr edx, 1
push edx
mov edx, dword [ebp + 8]
mov eax, dword [ecx + edx*4]
push ebx
push 0xffffffffffffffff
push eax
push 0
push 0
call sym.HncBL90.dll_HncAnsiToUnicode
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
push ecx
push edx
call dword [sym.imp.MSVCR90.dll_wcsncpy_s]
add esp, 0x10
lea edi, [ebp - 0x18]
call fcn.18002330
mov eax, 1
jmp 0x18027031
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov edx, dword [esi + edi*4]
mov eax, dword [ebp + 0x10]
push 0xffffffffffffffff
push edx
push eax
push ecx
call dword [sym.imp.MSVCR90.dll_wcsncpy_s]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 1
jmp 0x18027031
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1802929c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x18027120
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x1804e020]
xor eax, esp
mov dword [esp + 0x208], eax
mov ecx, dword [esp + 0x220]
mov edx, dword [esp + 0x21c]
mov eax, dword [esp + 0x210]
push esi
mov esi, dword [esp + 0x218]
push edi
mov edi, dword [esp + 0x220]
push ecx
push edx
cmp edi, 0x104
jb 0x1802716d
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x18027197
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, 1
jne 0x18027195
lea edx, [esp + 8]
push edx
push edi
push esi
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
add esp, 0xc
mov eax, 1
jmp 0x18027197
xor eax, eax
mov ecx, dword [esp + 0x210]
pop edi
pop esi
xor ecx, esp
call fcn.1802929c
add esp, 0x20c
ret 0x14

Function at 0x18027290
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x1804e020]
xor eax, esp
mov dword [esp + 0x114], eax
cmp dword [0x18053ba4], 0
jne 0x180273dd
push 0x114
lea eax, [esp + 4]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180273dd
mov eax, dword [esp + 0x10]
sub eax, 0
mov edx, 1
je 0x180273cd
sub eax, edx
je 0x180273aa
sub eax, edx
jne 0x180273d7
mov eax, dword [esp + 4]
cmp eax, 4
ja 0x18027319
mov dword [0x18053bb0], 4
jmp 0x180273d7
cmp eax, 5
jne 0x1802735d
mov eax, dword [esp + 8]
test eax, eax
jne 0x18027335
mov dword [0x18053bb0], 5
jmp 0x180273d7
cmp eax, edx
jne 0x18027348
mov dword [0x18053bb0], 6
jmp 0x180273d7
cmp eax, 2
jne 0x180273d7
mov dword [0x18053bb0], 7
jmp 0x180273d7
mov ecx, dword [esp + 8]
cmp eax, 6
jne 0x18027397
test ecx, ecx
jne 0x18027376
mov dword [0x18053bb0], 8
jmp 0x180273d7
cmp ecx, edx
jne 0x18027386
mov dword [0x18053bb0], 9
jmp 0x180273d7
cmp ecx, 2
jne 0x1802739c
mov dword [0x18053bb0], 0xa
jmp 0x180273d7
jb 0x180273d7
cmp ecx, 2
jb 0x180273d7
mov dword [0x18053bb0], 0xa
jmp 0x180273d7
mov eax, dword [esp + 8]
test eax, eax
jne 0x180273ba
mov dword [0x18053bb0], edx
jmp 0x180273d7
xor ecx, ecx
cmp eax, 0xa
setne cl
add ecx, 2
mov dword [0x18053bb0], ecx
jmp 0x180273d7
mov dword [0x18053bb0], 0
mov dword [0x18053ba4], edx
mov ecx, dword [esp + 0x114]
mov eax, dword [0x18053bb0]
xor ecx, esp
call fcn.1802929c
add esp, 0x118
ret
Function at 0x180276a0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x214
mov eax, dword [0x1804e020]
xor eax, esp
mov dword [esp + 0x210], eax
mov edx, dword [esp + 0x218]
test edx, edx
je 0x18027733
mov eax, edx
push esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x180276c5
sub eax, esi
sar eax, 1
pop esi
je 0x18027733
push 0
push 0
push 0
push 0
push 0
push 0
push 3
lea eax, [esp + 0x1c]
push eax
push edx
call dword [sym.imp.MSVCR90.dll__wsplitpath_s]
lea ecx, [esp + 0x24]
push ecx
push 0x18043610
lea edx, [esp + 0x34]
call fcn.180054a0
add esp, 0x2c
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 2
sete cl
mov eax, ecx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.1802929c
add esp, 0x214
ret 4
mov ecx, dword [esp + 0x210]
xor ecx, esp
xor eax, eax
call fcn.1802929c
add esp, 0x214
ret 4

Function at 0x18027750
Capabilities:
Get disk information

Disassembly:
sub esp, 0x228
mov eax, dword [0x1804e020]
xor eax, esp
mov dword [esp + 0x224], eax
mov edx, dword [esp + 0x22c]
push esi
push edi
xor edi, edi
lea eax, [esp + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], edi
cmp edx, edi
je 0x180277f2
mov eax, edx
lea esi, [eax + 2]
jmp 0x18027790
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x18027790
sub eax, esi
sar eax, 1
je 0x180277f2
push edi
push edi
push edi
push edi
push edi
push edi
push 3
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.MSVCR90.dll__wsplitpath_s]
lea edx, [esp + 0x40]
push edx
push 0x18043610
lea edx, [esp + 0x50]
call fcn.180054a0
add esp, 0x2c
push edi
push edi
push edi
push edi
lea eax, [esp + 0x18]
push eax
push edi
push edi
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov esi, dword [esp + 8]
lea edi, [esp + 0xc]
call fcn.18002330
mov eax, esi
jmp 0x180277fd
lea edi, [esp + 0xc]
call fcn.18002330
xor eax, eax
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
xor ecx, esp
call fcn.1802929c
add esp, 0x228
ret 4
Function at 0x18027ba0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x834
mov eax, dword [0x1804e020]
xor eax, esp
mov dword [esp + 0x830], eax
mov ax, word [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ecx, 0xffff
push edi
mov dword [esp + 0x14], esi
cmp ax, cx
jne 0x18027d20
mov eax, dword [0x18050454]
push 0x104
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 0x100
lea ecx, [esp + 0x644]
push ecx
push 0x100
lea edx, [esp + 0x44c]
push edx
push 3
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.MSVCR90.dll__wsplitpath_s]
add esp, 0x24
push 0
lea edx, [esp + 0x63c]
push edx
lea eax, [esp + 0x440]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x38]
push 0x104
push edx
call dword [sym.imp.MSVCR90.dll__wmakepath_s]
add esp, 0x18
call sym.HncBL90.dll_HncGetUserLCID
movzx edi, ax
lea eax, [esp + 0x230]
push 0x104
push eax
lea esi, [esp + 0x30]
mov ecx, edi
call fcn.18002f60
add esp, 8
test eax, eax
jne 0x18027d17
mov ecx, edi
and ecx, 0xfc00
cmp ecx, 0x400
je 0x18027cab
mov ecx, edi
lea edx, [esp + 0x230]
and ecx, 0x3ff
push 0x104
push edx
or ecx, 0x400
call fcn.18002f60
add esp, 8
test eax, eax
jne 0x18027d17
lea eax, [esp + 0x230]
push eax
mov ebx, 0x104
lea eax, [esp + 0x2c]
mov edi, 0x400
mov dword [esp + 0x14], 0x400
call fcn.18003060
add esp, 4
test eax, eax
jne 0x18027d13
lea ecx, [esp + 0x230]
mov edi, 0x409
push ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], edi
call fcn.18003060
add esp, 4
test eax, eax
jne 0x18027d13
lea edx, [esp + 0x230]
mov edi, 0x412
push edx
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], edi
call fcn.18003060
add esp, 4
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
movzx eax, di
jmp 0x18027d23
movzx eax, ax
push 4
lea ecx, [esp + 0x1c]
push ecx
push 3
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jg 0x18027d61
mov edx, dword [ebp + 0x10]
push 0x18043618
push edx
push esi
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x830]
xor ecx, esp
call fcn.1802929c
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x18]
push 4
push eax
call dword [sym.imp.MSVCR90.dll__wcsupr_s]
mov edx, dword [ebp + 0x10]
lea ecx, [esp + 0x20]
push ecx
push edx
push esi
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
mov ecx, dword [esp + 0x850]
add esp, 0x14
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1802929c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x18028010
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x42c
mov eax, dword [0x1804e020]
xor eax, esp
mov dword [esp + 0x428], eax
mov eax, dword [0x18053bac]
push ebx
xor ebx, ebx
push esi
push edi
cmp eax, ebx
jne 0x180281ce
push 0x104
lea eax, [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
push ebx
push 0x100
lea ecx, [esp + 0x23c]
push ecx
push ebx
push ebx
push ebx
lea edx, [esp + 0x44]
push ebx
push edx
call dword [sym.imp.MSVCR90.dll__wsplitpath_s]
push str.SoftwareHNCGlobal_SettingsUser_Locales_
lea eax, [esp + 0x50]
push 0x104
push eax
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
lea ecx, [esp + 0x260]
push ecx
lea edx, [esp + 0x5c]
push 0x104
push edx
call dword [sym.imp.MSVCR90.dll_wcscat_s]
add esp, 0x3c
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push ebx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x2c]
push 0x80000001
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edi, [esp + 0x14]
mov esi, eax
call fcn.18002330
cmp esi, ebx
jne 0x1802812c
lea ecx, [esp + 0x24]
push ecx
push 0x18053bac
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
push str.CODE
push eax
mov dword [esp + 0x3c], 4
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edi, [esp + 0x14]
mov esi, eax
call fcn.18002330
cmp esi, ebx
jne 0x1802811b
cmp dword [esp + 0x10], 4
je 0x18028121
mov dword [0x18053bac], ebx
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x18053bac], ebx
jne 0x180281c9
lea eax, [esp + 0xc]
push eax
push 0x20019
push ebx
push str.SoftwareHNCGlobal_SettingsUser_Locales_
lea edx, [esp + 0x2c]
push 0x80000001
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edi, [esp + 0x14]
mov esi, eax
call fcn.18002330
cmp esi, ebx
jne 0x180281c9
lea edx, [esp + 0x24]
push edx
push 0x18053bac
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ebx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x1c]
push str.CODE
push ecx
mov dword [esp + 0x3c], 4
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edi, [esp + 0x14]
mov esi, eax
call fcn.18002330
cmp esi, ebx
jne 0x180281b8
cmp dword [esp + 0x10], 4
je 0x180281be
mov dword [0x18053bac], ebx
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x18053bac]
mov ecx, dword [esp + 0x434]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1802929c
mov esp, ebp
pop ebp
ret

Function at 0x180281f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x18028205
xor eax, eax
ret 4
and eax, 0x10
ret 4
Function at 0x18028890
Capabilities:
Extract resource via kernel32 functions

Disassembly:
cmp ebx, 2
push ebp
mov ebp, dword [esp + 8]
jge 0x180288a8
test ebx, ebx
je 0x180288a4
xor eax, eax
mov word [ebp], ax
xor eax, eax
pop ebp
ret
push esi
mov esi, eax
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push edi
and esi, 0xf
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x180288e4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x180288e4
xor ecx, ecx
movzx edx, word [eax]
add eax, 2
cmp ecx, esi
je 0x180288ed
inc ecx
cmp ecx, 0x10
lea eax, [eax + edx*2]
jl 0x180288d1
xor eax, eax
pop esi
mov word [ebp], ax
pop ebp
ret
lea esi, [ebx - 1]
cmp edx, esi
jge 0x180288f6
mov esi, edx
test esi, esi
jle 0x180288e4
push esi
push eax
push ebx
push ebp
call dword [sym.imp.MSVCR90.dll_wcsncpy_s]
xor edx, edx
push ebx
mov eax, ebp
mov ecx, ebp
mov word [ebp + esi*2], dx
call fcn.18028b40
add esp, 0x14
pop esi
pop ebp
ret

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

Disassembly:
cmp dword [0x18052e70], 0
push esi
jne 0x18028ff9
call fcn.18028f1f
test eax, eax
je 0x1802903c
mov eax, dword [0x18052e70]
cmp eax, 1
jne 0x1802901a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1802903c
pop esi
ret
push eax
call dword [0x18052e78]
test eax, eax
jne 0x18029084
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x18029040
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x18052e70]
call dword [0x18052e78]
mov edi, eax
test edi, edi
je 0x18029065
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x18029081
mov edi, esi
add esi, 0xff0
push edi
push dword [0x18052e70]
call dword [0x18052e74]
add edi, 0x10
cmp edi, esi
jb 0x1802906d
mov eax, edi
pop edi
pop esi
ret
jmp 0x18028fe6

Function at 0x1802929c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1804e020]
jne 0x180292a6
repz ret
jmp fcn.180298ce
Function at 0x10001050
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret

Function at 0x100010c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push esi
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov esi, dword [ebp - 0x140]
mov eax, 0x88888889
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dx, word [ebp - 8]
movzx ecx, ax
mov eax, ecx
sub dx, cx
shl eax, 4
sub eax, ecx
mov word [ebp - 8], dx
mov cx, word [ebp - 6]
shl eax, 2
sub esi, eax
movzx eax, word [ebp - 4]
push eax
add cx, si
movzx eax, cx
push eax
movzx eax, dx
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
lea eax, [ebp - 0x90]
mov word [ebp - 6], cx
push str.Confused_Time:__d__d__d__d:_d:_d_n
push eax
call fcn.10001080
add esp, 0x20
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10002570
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf0
sub dword [ebp + 0xc], 1
push esi
push edi
jne 0x1000269c
xorps xmm0, xmm0
mov esi, 1
movsd qword [esp + 0x10], xmm0
nop word [eax + eax]
movd xmm0, esi
cvtdq2pd xmm0, xmm0
call fcn.10022510
movsd qword [esp + 8], xmm0
movd xmm0, esi
cvtdq2pd xmm0, xmm0
call fcn.100226e0
movsd xmm1, qword [esp + 8]
inc esi
mulsd xmm1, xmm0
movsd xmm0, qword [esp + 0x10]
addsd xmm0, xmm1
movsd qword [esp + 0x10], xmm0
cmp esi, 0x64
jl 0x100025a0
andps xmm0, xmmword [0x1002bd00]
mov ecx, 0x1f4
cvttsd2si eax, xmm0
cdq
idiv ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
lea ecx, [esp + 0x10]
mov dword [esp + 8], eax
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
sub ecx, esi
mov eax, dword [esp + 0x18]
add ecx, edi
push 1
push ecx
mov ecx, dword [esp + 0x18]
sub eax, ecx
add eax, edi
push eax
push esi
push ecx
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_MoveWindow]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov dword [esp + 0x14], eax
call esi
push 5
mov dword [esp + 0xc], eax
call esi
push 1
mov edi, eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov esi, eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx ecx, word [esp + 0x2a]
lea eax, [esp + 0x30]
push ecx
movzx ecx, word [esp + 0x2c]
push ecx
push esi
push edi
push dword [esp + 0x18]
push dword [esp + 0x24]
push str.Confused_System_Info:_Screen__dx_d__Borders__d__Color__x__Time__d:_d_n
push eax
call fcn.10001080
add esp, 0x20
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.10001eb0
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000efa9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000efe8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000efe8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000efe8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000efe8
cmp dword [ecx + 0x74], 0xe
jbe 0x1000efe8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001493a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100064a0
mov eax, dword [0x10034064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1001115c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001497c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10014ad8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10021550
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100357a8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100144c3
mov ecx, dword [esi*4 + 0x100357a8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10014ad1
cmp eax, dword [ecx + edi + 0x24]
jne 0x10014ad1
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10014ad1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100144c3
add esp, 0x14
test edx, edx
jl 0x10014ad1
jg 0x10014a47
test eax, eax
jb 0x10014ad1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10014ad1
jl 0x10014a61
cmp dword [ebp - 0x1008], eax
ja 0x10014ad1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10014a7f
test ebx, ebx
je 0x10014ab8
cmp ecx, edi
jae 0x10014ab8
mov al, byte [ecx]
cmp al, 0xd
jne 0x10014a99
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10014aa5
cmp byte [ecx + 1], 0xa
jne 0x10014aa5
inc ecx
jmp 0x10014aa5
movzx eax, al
movsx eax, byte [eax + 0x100342c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10014a7f
cmp edx, ebx
jne 0x10014a7f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10014ad6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10005c93
leave
ret
Function at 0x10014b77
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 + 0x100357a8]
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 0x10014bb7
cmp byte [ebx], 0xa
jne 0x10014bb7
or byte [edi + eax + 0x28], 4
jmp 0x10014bbc
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 0x10014cbb
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10014c9e
inc eax
cmp dl, 0xd
je 0x10014be8
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10014c0e
cmp eax, ecx
jae 0x10014c1c
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 0x10014bd0
jmp 0x10014cbb
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 0x10014c99
cmp dword [ebp - 0x10], 0
je 0x10014c99
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100357a8]
test byte [eax + edi + 0x28], 0x48
je 0x10014c73
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10014c5e
mov byte [esi], dl
jmp 0x10014c6f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100357a8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10014cbb
cmp byte [ebp - 1], 0xa
jne 0x10014c82
cmp esi, ebx
jne 0x10014c82
mov byte [esi], 0xa
jmp 0x10014cba
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100144e1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10014cbb
mov byte [esi], 0xd
jmp 0x10014cba
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100357a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10014cb8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10014cbb
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret