joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457ff0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x458007
add esp, 0xfffffff0
call fcn.00403d64
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041c41c
mov eax, dword [0x47fa2c]
cmp word [eax + 2], 0
jne 0x45802f
mov eax, dword [0x47fa2c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004596b4
mov eax, dword [0x47facc]
cmp word [eax + 2], 0
jne 0x458049
mov eax, dword [0x47facc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004598ac
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412464]
call fcn.004039d0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412464]
call fcn.004039d0
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41e98c]
call fcn.00426808
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4581d0
mov eax, dword [0x47f950]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00426bd8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x459e2c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x47f950]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040b390
test eax, eax
je 0x45813e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409014
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040b3b8
test eax, eax
je 0x458152
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004049d4
mov eax, dword [0x47f814]
cmp byte [eax], 0
jne 0x458186
mov eax, ebx
call fcn.004582f8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045a008
mov eax, ebx
call fcn.0045a948
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4581c6
call fcn.00403dbc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45856c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x480c2c]
cmp dword [eax + 0x30], 0
je 0x458616
cmp dword [ebx + 0x94], 0
jne 0x458610
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4584fc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x458610
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4585d6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x458610
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414b04
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4585e5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4590f4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x459129
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040485c
jmp 0x459136
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004047c0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45a1e4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45a225
mov eax, esi
call fcn.00440188
test al, al
je 0x45a225
mov eax, dword [ebx + 0x84]
call fcn.0043fe84
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45a225
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043fe84
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45aebc
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x411ae0]
call fcn.004051ac
xor eax, eax
push ebp
push 0x45b000
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x47ed08], 0
jne 0x45af0f
mov ecx, dword [0x47f828]
mov dl, 1
mov eax, dword [0x407bc8]
call fcn.0040a950
call fcn.004041cc
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403108
mov eax, ebx
call fcn.0040501c
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x45b010
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.0040651c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.0040502c
test eax, eax
jle 0x45afa7
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x45afa0
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004049ec
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004049d4
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408a74
test eax, eax
jne 0x45afa0
mov ebx, 0x15
jmp 0x45afac
mov ebx, 0x10
jmp 0x45afac
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x47ed08]
call fcn.0045adb8
mov eax, dword [ebp - 8]
call fcn.0045adb8
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406534
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b007
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404790
lea eax, [ebp - 0x10]
mov edx, dword [0x411ae0]
call fcn.0040527c
ret

Function at 0x46534c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x46537a
mov eax, ebx
call fcn.00465e04
cmp dword [ebx + 0x3c], 0
je 0x465373
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4653eb
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x4653dd
cmp dword [ebx + 8], 0
je 0x46539c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x4653ae
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4653dd
cmp dword [ebx + 8], 0
je 0x46538f
cmp eax, 3
je 0x4653c1
dec eax
jne 0x46538f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x46538f
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x46538f
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x465409
cmp dword [ebx + 0x10], 0xcc
je 0x465409
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00465414
pop ebx
ret
Function at 0x479480
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4796e0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4794e3
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00478f98
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040b160
cmp al, 1
jne 0x4794e3
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00479260
test al, al
je 0x47966f
cmp dword [ebp - 8], 0
jge 0x479501
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00478f98
mov eax, dword [ebp - 0x210]
call fcn.00404a24
cmp ebx, eax
jge 0x47954b
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00478f98
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x47fc1c]
and eax, 0xff
bt dword [edx], eax
jae 0x47954b
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x47955f
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0047945c
cmp ebx, dword [ebp - 8]
je 0x479661
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x47958b
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403bfc
and eax, 0x7f
movzx eax, word [eax*2 + 0x47f768]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x47964e
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403bfc
and eax, 0x7f
movzx eax, word [eax*2 + 0x47f768]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0043fe84
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403bfc
and eax, 0x7f
movzx eax, word [eax*2 + 0x47f768]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0043fe84
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479655
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4796c2
cmp dword [ebp - 8], 0
jge 0x47967a
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00478f98
mov eax, dword [ebp - 0x218]
call fcn.00404a24
cmp eax, dword [ebp - 8]
jg 0x4796b4
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00478f98
mov eax, dword [ebp - 0x21c]
call fcn.00404a24
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0047945c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4796e7
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404790
ret
Function at 0x47ba20
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov byte [ebp - 1], cl
mov edi, edx
mov esi, 3
mov ebx, 0x47f7ec
mov al, byte [ebx]
cmp al, 7
ja 0x47ba43
and eax, 0x7f
bt dword [ebp - 1], eax
jae 0x47ba60
push 0
push 0
push 0
xor eax, eax
mov al, byte [ebx + 1]
push eax
call sub.user32.dll_MapVirtualKeyA
push eax
mov al, byte [ebx + 1]
push eax
call sub.user32.dll_keybd_event
add ebx, 2
dec esi
jne 0x47ba36
cmp byte [ebp + 8], 0
je 0x47ba73
mov esi, 1
jmp 0x47ba75
xor esi, esi
push 0
push esi
push 0
movzx eax, di
push eax
call sub.user32.dll_MapVirtualKeyA
push eax
mov ebx, edi
push ebx
call sub.user32.dll_keybd_event
or esi, 2
push 0
push esi
push 0
movzx eax, di
push eax
call sub.user32.dll_MapVirtualKeyA
push eax
push ebx
call sub.user32.dll_keybd_event
mov esi, 0xfffffffd
mov edi, 0x47f7f0
mov al, byte [edi]
cmp al, 7
ja 0x47babb
and eax, 0x7f
bt dword [ebp - 1], eax
jae 0x47bad7
push 0
push 2
push 0
mov bl, byte [edi + 1]
xor eax, eax
mov al, bl
push eax
call sub.user32.dll_MapVirtualKeyA
push eax
push ebx
call sub.user32.dll_keybd_event
sub edi, 2
inc esi
jne 0x47baae
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x403526
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
sub eax, dword [esp + 8]
sar eax, 2
push esi
test eax, eax
je 0x4035ac
xor esi, esi
mov al, byte [esi + 0x4e2dc0]
mov edx, str.Own_head
xor al, 0x73
sub al, 0x6c
xor al, 0x74
mov byte [esi + 0x4e2dc0], al
call fcn.00405120
push eax
call fcn.004052e0
mov al, byte [esi + 0x4e2dc0]
mov edx, str.Earth
add al, 0x4e
xor al, 0xdc
pop ecx
mov byte [esi + 0x4e2dc0], al
call fcn.00405120
push eax
call fcn.004052e0
mov al, byte [esi + 0x4e2dc0]
xor al, 0xac
mov dword [esp], 0x491e2c
sub al, 0x65
xor al, 0x22
sub al, 0x73
mov byte [esi + 0x4e2dc0], al
call fcn.00457b1b
xor byte [esi + 0x4e2dc0], al
inc esi
pop ecx
cmp esi, 0x4ac
jb 0x403539
lea ecx, [esp + 0xc]
call fcn.004047ee
pop esi
pop ecx
ret 0x14

Function at 0x403bfe
Capabilities:
Set console window title

Disassembly:
push 0x14
mov eax, 0x48417c
call fcn.0042db87
and dword [ebp - 4], 0
push str.FreeConsole
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call eax
push 1
call fcn.0042d44f
pop ecx
mov ecx, eax
call fcn.00403b8c
mov dword [ebp - 0x14], eax
imul bx
shr eax, 0xb4
shl ax, 0xe4
rol esi, 0xf1
sub eax, edi
mov edx, 0xfd
dec esi
inc cx
mov cx, si
mul ecx
dec edi
mul bx
rcr ax, 0xa0
ror edi, 0x38
imul di
or ebx, 0x2e0
inc si
or ecx, 0x3dd
shl esi, 0x1b
shr eax, 0x4b
rcr eax, 0x25
mul edi
xor eax, 0x378
dec ax
add edi, 0xc7
jb 0x403ca1
test eax, 0x49
jne 0x403cdd
rcl ecx, 0x56
mul eax
dec cx
jmp 0x403cb9
sub bx, 0x264
shl ebx, 0xe7
movzx edx, di
or esi, 0x2e2
rcl edx, 0xc0
shr dx, 0x32
shr edi, 0xbd
imul di
ja 0x403cdd
and eax, 0xc8
rol si, 0x9e
mov di, 0x142
inc ebx
rol bx, 0xd6
rcr di, 0xe9
shr ax, 4
jmp 0x403cf5
dec ebx
sub eax, esi
rcl esi, 0xda
sub ax, 0x18
imul edx
dec ax
inc esi
and esi, 0x2fa
ror eax, 0x31
mov eax, 0x301
mul esi
push str.Mouse_Adapter
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x403d24
push ecx
mov ecx, eax
call fcn.00403d4a
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.0042daec
ret 0x10
push 0
call dword [sym.imp.KERNEL32.dll_SwitchToFiber]
jmp 0x403d16
Function at 0x40ac88
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40aca9
jl 0x40aca0
test edi, edi
jne 0x40aca9
xor eax, eax
xor edx, edx
jmp 0x40ad6a
cmp dword [ebx + 0x38], 0
je 0x40acbe
push eax
push edi
push dword [ebp + 8]
call fcn.0040ad70
jmp 0x40ad6a
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40ad05
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40ad05
cmp eax, edi
jb 0x40acdf
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0042f100
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40ad0b
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40ad5f
mov ecx, ebx
call fcn.0040a345
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40ad4a
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00458e49
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40ad5f
jmp 0x40ad1d
test edx, edx
je 0x40ad5f
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00458e49
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x41c9df
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x41ca02
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x41c9f0
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x42caa1
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0045b6d3
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x42cae0
sub eax, 1
je 0x42cadb
sub eax, 1
je 0x42cad7
xor eax, eax
leave
ret
push 3
jmp 0x42cae2
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x42e603
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046ec0c

Function at 0x46f553
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042e8b0
mov eax, dword [0x49b100]
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.0046d3c1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x46f595
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x46f6f1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004838b0
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 + 0x4e6148]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00470ae7
mov ecx, dword [esi*4 + 0x4e6148]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x46f6ea
cmp eax, dword [edi + ecx + 0x24]
jne 0x46f6ea
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46f6ea
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00470ae7
add esp, 0x14
test edx, edx
jl 0x46f6ea
jg 0x46f660
test eax, eax
jb 0x46f6ea
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x46f6ea
jl 0x46f67a
cmp dword [ebp - 0x1008], eax
ja 0x46f6ea
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x46f698
test ebx, ebx
je 0x46f6d1
cmp ecx, edi
jae 0x46f6d1
mov al, byte [ecx]
cmp al, 0xd
jne 0x46f6b2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x46f6be
cmp byte [ecx + 1], 0xa
jne 0x46f6be
inc ecx
jmp 0x46f6be
movzx eax, al
movsx eax, byte [eax + 0x49b3c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x46f698
cmp edx, ebx
jne 0x46f698
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x46f6ef
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042d338
leave
ret
Function at 0x46fc6f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x4e6148]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46fcaf
cmp byte [ebx], 0xa
jne 0x46fcaf
or byte [eax + edi + 0x28], 4
jmp 0x46fcb4
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x46fdb2
mov al, byte [edx]
cmp al, 0x1a
je 0x46fd94
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x46fce3
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x46fd08
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x46fd12
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x46fcc5
jmp 0x46fdb2
push 0
lea eax, [ebp - 0xc]
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 0x46fd8f
cmp dword [ebp - 0xc], 0
je 0x46fd8f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4e6148]
test byte [eax + edi + 0x28], 0x48
je 0x46fd69
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46fd54
mov byte [esi], dl
jmp 0x46fd65
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4e6148]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46fdb2
cmp byte [ebp - 1], 0xa
jne 0x46fd78
cmp esi, ebx
jne 0x46fd78
mov byte [esi], 0xa
jmp 0x46fdb1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00470b05
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46fdb2
mov byte [esi], 0xd
jmp 0x46fdb1
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4e6148]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46fdae
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46fdb2
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46fdbb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4e6148]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46fdfe
cmp word [esi], dx
jne 0x46fdfe
or byte [edi + eax + 0x28], 4
jmp 0x46fe03
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x46ff56
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x46ff36
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x46fe45
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46fe7b
cmp eax, edx
jae 0x46fe87
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x46fe1d
jmp 0x46ff56
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46ff32
cmp dword [ebp - 0x14], 0
je 0x46ff32
mov eax, dword [ebx*4 + 0x4e6148]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x46ff0a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x46fed3
mov word [esi], cx
jmp 0x46ff06
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4e6148]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4e6148]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4e6148]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x46ff56
pop ebx
cmp word [ebp - 4], bx
jne 0x46ff1b
cmp esi, dword [ebp + 0xc]
jne 0x46ff1b
mov word [esi], bx
jmp 0x46ff53
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00470b05
add esp, 0x10
cmp word [ebp - 4], bx
je 0x46ff56
push 0xd
jmp 0x46ff4f
mov ecx, dword [ebx*4 + 0x4e6148]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46ff4d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46ff56
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret