joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401050
Capabilities:
Delete file
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov ecx, dword [0x4a3058]
push ebx
mov ebx, dword [0x4a305c]
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
xor esi, esi
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0x34], 0x9e3779b9
mov dword [ebp - 0x30], ecx
call fcn.00401040
mov edx, dword [0x4a3060]
mov eax, dword [0x4a3064]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0x20
jmp 0x4010b2
xor esi, esi
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov ecx, dword [0x8c2834]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x40110c
push esi
lea ecx, [ebp - 0x38]
push ecx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
xor edx, edx
xor eax, eax
lea ecx, [ebp - 0x3c]
push ecx
mov word [ebp - 0x1c], dx
mov word [ebp - 0x1a], ax
mov edx, dword [ebp - 0x1c]
push edx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
mov eax, dword [ebp - 4]
mov ecx, dword [0x8c2834]
add eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x401126
mov dword [0x8c2830], 0xedeb2e40
jmp 0x401142
cmp ecx, 0x3eb
jne 0x401142
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [0x8c21e4], esi
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov edx, edi
shr edx, cl
add eax, edi
mov dword [ebp - 0x14], eax
mov dword [0x8c282c], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
mov ecx, dword [ebp - 0xc]
shl ecx, 4
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 8]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
nop
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
shr esi, cl
push edx
push eax
add esi, ebx
call fcn.00401020
cmp dword [0x8c2834], 0xb03
mov dword [ebp - 4], eax
jne 0x4011cb
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 4]
xor eax, esi
mov dword [ebp - 4], eax
sub edi, eax
mov eax, dword [ebp - 0x34]
sub dword [ebp - 8], eax
sub dword [ebp - 0x20], 1
jne 0x4010b0
cmp dword [0x8c2834], 0xa6d
mov esi, dword [ebp + 8]
mov dword [esi], edi
jne 0x401213
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0xc]
pop edi
mov dword [esi + 4], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4015b0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x8c2834], 0x400
push esi
push edi
jne 0x4015d4
lea eax, [ebp - 0x24]
call fcn.00401690
lea esi, [ebp - 0x24]
call fcn.004016b0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov ebx, dword [ebp - 4]
xor esi, esi
call edi
cmp esi, 0x2af054
jle 0x4015f2
cmp ebx, 0x787e04e5
jne 0x4015fb
inc esi
cmp esi, 0x1d8d
jl 0x4015e0
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
lea esp, [esp]
push 0
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, 0x206d47
jg 0x40162d
inc esi
cmp esi, 0x4f6a4
jl 0x401610
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
pop ebx
push 0
call edi
cmp esi, 0x2b2589
jg 0x40164b
inc esi
cmp esi, 0x11915
jl 0x401636
mov eax, dword [0x4a329c]
mov dword [0x8c2834], eax
call fcn.00401370
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, 0x3078f
jmp 0x401670
cmp dword [0x8c2834], 0x51f
jne 0x401680
push 0
call esi
sub edi, 1
jne 0x401670
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x406aa0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a22d8]
jne 0x406aaa
repz ret
jmp fcn.0040a3ec
Function at 0x409cb2
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.00404f67
and dword [ebp - 4], 0
cmp dword [0x4a4c18], 0
mov ebx, eax
jne 0x409d63
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409e14
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409e14
push eax
call fcn.00404ef5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4a4c18], eax
call esi
push eax
call fcn.00404ef5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4a4c1c], eax
call esi
push eax
call fcn.00404ef5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4a4c20], eax
call esi
push eax
call fcn.00404ef5
pop ecx
mov dword [0x4a4c28], eax
test eax, eax
je 0x409d63
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404ef5
pop ecx
mov dword [0x4a4c24], eax
mov eax, dword [0x4a4c24]
cmp eax, ebx
je 0x409dbb
cmp dword [0x4a4c28], ebx
je 0x409dbb
push eax
call fcn.00404f70
push dword [0x4a4c28]
mov esi, eax
call fcn.00404f70
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409dbb
test edi, edi
je 0x409dbb
call esi
test eax, eax
je 0x409db2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409db2
test byte [ebp - 0xc], 1
jne 0x409dbb
or dword [ebp + 0x10], 0x200000
jmp 0x409df4
mov eax, dword [0x4a4c1c]
cmp eax, ebx
je 0x409df4
push eax
call fcn.00404f70
pop ecx
test eax, eax
je 0x409df4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409df4
mov eax, dword [0x4a4c20]
cmp eax, ebx
je 0x409df4
push eax
call fcn.00404f70
pop ecx
test eax, eax
je 0x409df4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a4c18]
call fcn.00404f70
pop ecx
test eax, eax
je 0x409e14
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409e16
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402090
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov esi, esp
mov dword [esi + 8], ebp
lea eax, [ebp + 8]
mov edx, esp
mov dword [esi + 0x64], edx
mov dword [esi + 0x70], 0xffffffff
lea edx, [esi + 0x68]
mov dword [esi + 0x6c], 0x405cb0
mov edi, dword fs:[0]
mov dword [esi + 0x68], edi
mov dword fs:[0], edx
mov edx, eax
add edx, 8
mov dword [esi + 0xc], edx
add eax, 0x20
mov dword [esi + 0x10], eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x5c], 0x40e8bea0
mov dword [esi + 0x58], 0
mov byte [esi + 0x57], 0
mov dword [esi + 0x4c], 0x40e00160
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0x107c
mov dword [esi + 0x3c], 0x40f47240
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0x40d37500
mov dword [esi + 0x30], 0
mov dword [esi + 0x70], 1
mov eax, esp
mov dword [eax], str.kiskcurkkgxmfmanlrkqfqqrnesraogndtxowjqopaearbvffpmybtvxqkofvkyaxpxenwwppnruidbpmtpeqszfsnygfd
lea ecx, [esi + 0x18]
call fcn.00405d10
sub esp, 4
jmp 0x40213e
mov dword [esi + 0x14], 0x60
cmp dword [esi + 0x14], 0
jle 0x40215d
mov eax, dword [esi + 0x14]
add eax, 0xffffffff
mov dword [esi + 0x14], eax
jmp 0x402145
lea ecx, [esi + 0x18]
call fcn.00405dd0
mov ecx, dword [esi + 0xc]
call fcn.00405dd0
mov ecx, dword [esi + 0x10]
call fcn.00405dd0
mov eax, dword [esi + 0x68]
mov dword fs:[0], eax
fld dword [0x423218]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x50
Function at 0x402ce0
Capabilities:
Authenticate hmac
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
rcl edx, 0xfb
rol esi, 0x50
dec edx
and edi, 0x45
rcl edi, 0x88
bswap edx
neg edx
sub ebx, 0x92
not edx
not eax
neg edi
mov ebx, 0x4a
bswap edi
or edx, 0xec
dec edx
imul ebx
imul esi
rcl edi, 0xb1
neg edx
not ebx
and eax, 0x37
not ebx
not edx
imul esi
dec edi
bswap ebx
or esi, 0x68
add edx, 0xec
and ebx, 0xd3
bswap esi
or edi, 0x1b
rcl ebx, 0xea
add edi, 0xa2
and edi, 0x2d
or eax, 0x47
rcr eax, 0x5c
neg edi
dec edx
dec edi
sub esi, 0x95
inc ebx
imul ebx
imul eax
or edx, 0xd8
rcr edi, 0xa5
or edi, 0x87
dec edi
sbb eax, 2
dec esi
bswap eax
xor ecx, ecx
xor edi, edi
sub edi, 0x71
not edx
mov esi, 0x16
ror esi, 0xd1
bswap eax
or ebx, 0x96
or edx, 0x38
dec esi
add edx, 0xa1
not ebx
and edx, 0x99
inc esi
bswap edi
not edi
ror edx, 0x64
neg eax
rcr ebx, 0xb9
bswap esi
rcl ebx, 0x28
bswap esi
add edx, 0x9e
imul ebx
imul edx
rcr edi, 0x77
dec esi
inc edx
rcr eax, 0x21
ror edx, 0xb2
mov esi, 0xb4
bswap esi
sub edx, 0xcc
add esi, 0x3c
inc edi
or edx, 0x90
dec edx
bswap edi
not edi
rcr esi, 0x73
not eax
not esi
sbb edx, 0x6d
add edx, 0xc0
imul edx
inc esi
imul edi
dec esi
ror edx, 0x13
sub esi, 0x36
rol esi, 0x62
inc ebx
mov ecx, dword [ebp + 0xc]
bswap eax
rcr ebx, 0x9f
sub eax, 0x79
not edi
ror edx, 0x10
add edx, 0x4a
neg eax
and edi, 0x75
rcl eax, 0x40
and ebx, 0x87
imul ebx
bswap esi
imul ebx
inc eax
rcl esi, 0x51
rcl edx, 0x72
dec eax
inc esi
sub edx, 0xa1
inc edx
add edx, 0xd1
not eax
rcr edi, 0x6e
neg esi
neg eax
and eax, 0x4b
bswap esi
sub eax, 0x23
imul esi
dec edi
not edx
inc eax
rol ebx, 0xc0
neg eax
rcr ebx, 0x66
sbb ebx, 0xb
imul esi
sub edi, 0x2a
dec ebx
rcr edi, 0x66
rcr eax, 0x21
or ebx, 0xa0
inc ebx
rol esi, 5
sub edi, 0xfb
sub esi, 4
imul ebx
rol ebx, 0xa9
rcl eax, 0xaf
dec edi
mov edi, dword [ebp + 8]
xor ebx, esi
xor eax, eax
xor esi, esi
mov eax, ebx
mov ebx, eax
xor eax, eax
xor esi, ebx
mov esi, esi
mov ebx, esi
xor ebx, ebx
mov esi, esi
mov eax, esi
not byte [edi]
mov eax, ebx
xor ebx, ebx
mov esi, eax
mov ebx, eax
mov ebx, esi
mov ebx, ebx
mov esi, eax
xor ebx, ebx
xor eax, esi
add byte [edi], 0x26
xor ebx, ebx
xor eax, ebx
mov ebx, esi
xor ebx, esi
xor eax, eax
mov esi, esi
mov eax, ebx
xor esi, esi
mov ebx, esi
sub byte [edi], 0x87
mov ebx, eax
xor ebx, esi
mov esi, eax
mov esi, esi
xor eax, eax
mov esi, eax
xor eax, esi
mov esi, esi
mov esi, eax
imul byte [edi]
inc edi
loop 0x402e99
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40986b
Capabilities:
Parse pe header

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

Function at 0x40b324
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 0x40b345
jl 0x40b33c
test edi, edi
jne 0x40b345
xor eax, eax
xor edx, edx
jmp 0x40b406
cmp dword [ebx + 0x38], 0
je 0x40b35a
push eax
push edi
push dword [ebp + 8]
call fcn.0040b40c
jmp 0x40b406
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40b3a1
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40b3a1
cmp eax, edi
jb 0x40b37b
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040c270
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 0x40b3a7
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40b3fb
mov ecx, ebx
call fcn.0040aa10
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40b3e6
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00413462
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 0x40b3fb
jmp 0x40b3b9
test edx, edx
je 0x40b3fb
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00413462
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 0x41708d
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 0x41712a
push ebx
push esi
call fcn.00417056
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.00416fea
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4170d7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x417129
push edi
push eax
call fcn.00415d5b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4170f7
call fcn.00415da9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x417128
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00416fea
add esp, 0x20
test eax, eax
jne 0x417116
push edi
call fcn.00415da9
jmp 0x41711e
push ebx
call fcn.00415da9
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 0x41795e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4722e0
push 0x4722d8
push str.FlsAlloc
push 0x1f
call fcn.004177c9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417992
push dword [ebp + 8]
mov ecx, esi
call dword [0x423160]
call esi
jmp 0x417998
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4179dc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4722f0
push 0x4722e8
push str.FlsGetValue
push 0x21
call fcn.004177c9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417a13
push dword [ebp + 8]
mov ecx, esi
call dword [0x423160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x417a1b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4722f8
push 0x4722f0
push str.FlsSetValue
push 0x22
call fcn.004177c9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417a55
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x423160]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x41a82b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00415a70
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41a89a
cmp esi, dword [ebp - 4]
je 0x41a895
cmp dword [ebp + 0xc], 0
je 0x41a895
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41a872
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041a37d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41a89c
xor eax, eax
inc eax
jmp 0x41a89c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41a901
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4791c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00415a70
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00415a70
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x41a978
cmp word [ecx], dx
je 0x41a978
mov eax, dword [0x47271c]
push edi
dec eax
push eax
push 0x472608
call fcn.0041a8a0
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41a9eb
cmp word [eax], dx
je 0x41a9eb
mov eax, dword [edi]
test eax, eax
je 0x41a99c
cmp word [eax], dx
je 0x41a99c
lea eax, [ebp - 0x10]
push eax
call fcn.0041a283
jmp 0x41a9a5
lea eax, [ebp - 0x10]
push eax
call fcn.0041a31e
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41aa15
mov eax, dword [0x472604]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4722f8
call fcn.0041a8a0
add esp, 0xc
test al, al
je 0x41aa15
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41a9e0
cmp word [eax], di
je 0x41a9e0
lea eax, [ebp - 0x10]
push eax
call fcn.0041a283
pop ecx
jmp 0x41aa17
lea eax, [ebp - 0x10]
push eax
call fcn.0041a31e
jmp 0x41a9dd
mov eax, dword [edi]
test eax, eax
je 0x41aa02
cmp word [eax], dx
je 0x41aa02
lea eax, [ebp - 0x10]
push eax
call fcn.0041a238
pop ecx
jmp 0x41aa15
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x41aae0
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041a725
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41aae0
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41aae0
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41aae0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41aa6d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00417b5b
test ebx, ebx
je 0x41aadb
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00417b5b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41aae0
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41aae0
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041fa4f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41aae2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409acf
leave
ret
Function at 0x41c3db
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408f30
mov eax, dword [0x4791c0]
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.0041b022
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41c41d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41c579
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421df0
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 + 0x47a9e0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041d3d8
mov ecx, dword [esi*4 + 0x47a9e0]
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 0x41c572
cmp eax, dword [ecx + edi + 0x24]
jne 0x41c572
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 0x41c572
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041d3d8
add esp, 0x14
test edx, edx
jl 0x41c572
jg 0x41c4e8
test eax, eax
jb 0x41c572
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41c572
jl 0x41c502
cmp dword [ebp - 0x1008], eax
ja 0x41c572
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41c520
test ebx, ebx
je 0x41c559
cmp ecx, edi
jae 0x41c559
mov al, byte [ecx]
cmp al, 0xd
jne 0x41c53a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41c546
cmp byte [ecx + 1], 0xa
jne 0x41c546
inc ecx
jmp 0x41c546
movzx eax, al
movsx eax, byte [eax + 0x479990]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41c520
cmp edx, ebx
jne 0x41c520
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41c577
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409acf
leave
ret
Function at 0x41c870
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 + 0x47a9e0]
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 0x41c8b0
cmp byte [ebx], 0xa
jne 0x41c8b0
or byte [edi + eax + 0x28], 4
jmp 0x41c8b5
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 0x41c9b4
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41c997
inc eax
cmp dl, 0xd
je 0x41c8e1
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41c907
cmp eax, ecx
jae 0x41c915
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 0x41c8c9
jmp 0x41c9b4
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 0x41c992
cmp dword [ebp - 0x10], 0
je 0x41c992
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x47a9e0]
test byte [eax + edi + 0x28], 0x48
je 0x41c96c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41c957
mov byte [esi], dl
jmp 0x41c968
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47a9e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41c9b4
cmp byte [ebp - 1], 0xa
jne 0x41c97b
cmp esi, ebx
jne 0x41c97b
mov byte [esi], 0xa
jmp 0x41c9b3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d3f6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c9b4
mov byte [esi], 0xd
jmp 0x41c9b3
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x47a9e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c9b1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c9b4
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret