joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000f822
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
mov eax, dword [0x10065040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
mov ecx, dword [eax + 4]
add ecx, esi
lea edi, [ebp - 0x24]
push edi
call fcn.1001133a
mov ecx, edi
push 0x100680d4
call fcn.1002387c
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 0x2c]
mov ecx, ebx
call dword [0x10060ec8]
mov ecx, edi
push 0xa
call ebx
mov edi, eax
lea ebx, [ebp - 0x24]
mov ecx, ebx
call fcn.1001321c
movzx eax, di
mov ecx, esi
push eax
call fcn.10002250
mov ecx, esi
call fcn.100016e0
xor eax, eax
dec eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebp - 0x28], ebx
mov dword [ebx + 8], eax
lea ecx, [esi + 4]
lea edi, [ebp - 0x18]
mov dword [ebp - 0x30], ecx
push edi
call fcn.1001079c
mov ebx, dword [edi + 4]
cmp ebx, 0x7ffffff8
jae 0x1000fa26
mov edx, dword [ebp - 0x18]
cmp ebx, 4
mov dword [ebp - 0x2c], edx
jbe 0x1000f8e9
mov edi, ebx
or edi, 3
inc edi
js 0x1000fa2e
lea eax, [edi + edi]
push eax
call fcn.1002a04f
add esp, 4
mov dword [ebp - 0x24], eax
or edi, 0x80000000
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov edx, dword [ebp - 0x2c]
jmp 0x1000f8ef
lea eax, [ebp - 0x24]
mov byte [eax + 0xb], bl
lea edi, [eax + ebx*2]
cmp eax, edx
seta cl
cmp edi, edx
setbe dl
or dl, cl
je 0x1000fa24
test ebx, ebx
je 0x1000f917
add ebx, ebx
push ebx
push dword [ebp - 0x2c]
push eax
call fcn.1002d6c0
add esp, 0xc
mov word [edi], 0
mov eax, dword [0x10067b4c]
test al, 0x10
je 0x1000f94c
movsx eax, byte [ebp - 0x19]
test eax, eax
cmovs eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x24]
cmovns ecx, edx
push eax
push ecx
push 0x10067d0c
call fcn.100063da
add esp, 0xc
mov eax, dword [0x10067b4c]
test al, 0x20
je 0x1000f98b
cmp dword [0x10067ad8], 0
je 0x1000f98b
lea eax, [ebp - 0x24]
movsx ecx, byte [eax + 0xb]
test ecx, ecx
cmovs ecx, dword [eax + 4]
cmovs eax, dword [eax]
push ecx
push eax
push 0x10067a94
call fcn.100063da
add esp, 0xc
cmp dword [esi + 0x88], 2
jl 0x1000f98b
mov ecx, 0x10067a94
call fcn.100016e0
test byte [0x10067b4c], 0x40
je 0x1000f9b3
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1000f9b3
cmp byte [ebp - 0x19], 0
jns 0x1000f9aa
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esi + 0x88], 3
jne 0x1000f9c2
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp byte [ebp - 0x19], 0
jns 0x1000f9d3
push dword [ebp - 0x24]
call fcn.1002a0d4
add esp, 4
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], 0x1005a964
mov dword [esi + 4], 0x1005a970
cmp byte [esi + 0x2f], 0
jns 0x1000f9f7
push dword [esi + 0x24]
call fcn.1002a0d4
add esp, 4
add esi, 0x38
mov edi, dword [ebp - 0x30]
mov ecx, edi
call fcn.100014b2
mov ecx, edi
call fcn.100012b0
mov ecx, esi
call fcn.10001000
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002aa2a
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
lea ecx, [ebp - 0x24]
call fcn.10006364
call fcn.1005282d
int3
Function at 0x10028570
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [esp + edi*8 - 0x39bb0001], edi
test dword [ebp + 0x55fffffc], edi
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.10027cfc
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10027cb1
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.10027cfc
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10027cb1
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
invalid
invalid
invalid

Function at 0x10028bf8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.10027cca
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
invalid
movsd dword es:[edi], dword [esi]
xchg esp, eax
cld
invalid
Function at 0x10037d49
Capabilities:
Parse pe header

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

Function at 0x1003ee9a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1002b1b0
mov eax, dword [0x10065040]
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.10045193
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1003eedc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1003f038
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1004c3b0
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 + 0x10067580]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1004b770
mov ecx, dword [esi*4 + 0x10067580]
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 0x1003f031
cmp eax, dword [ecx + edi + 0x24]
jne 0x1003f031
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 0x1003f031
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1004b770
add esp, 0x14
test edx, edx
jl 0x1003f031
jg 0x1003efa7
test eax, eax
jb 0x1003f031
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1003f031
jl 0x1003efc1
cmp dword [ebp - 0x1008], eax
ja 0x1003f031
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1003efdf
test ebx, ebx
je 0x1003f018
cmp ecx, edi
jae 0x1003f018
mov al, byte [ecx]
cmp al, 0xd
jne 0x1003eff9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1003f005
cmp byte [ecx + 1], 0xa
jne 0x1003f005
inc ecx
jmp 0x1003f005
movzx eax, al
movsx eax, byte [eax + 0x10065800]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1003efdf
cmp edx, ebx
jne 0x1003efdf
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1003f036
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1002aa2a
leave
ret

Function at 0x10041ab0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10041add
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10041add
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10042c36
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x100565cc
push str.FlsAlloc
push 0x1f
call fcn.100430e9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10042c6a
push dword [ebp + 8]
mov ecx, esi
call dword [0x10060ec8]
call esi
jmp 0x10042c70
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10042cb4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x100565f0
push str.FlsGetValue
push 0x21
call fcn.100430e9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10042ceb
push dword [ebp + 8]
mov ecx, esi
call dword [0x10060ec8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10042cf3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x10056604
push str.FlsSetValue
push 0x22
call fcn.100430e9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10042d2d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10060ec8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10047027
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10065040]
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.1004243a
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.1004243a
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 0x1004709e
cmp word [ecx], dx
je 0x1004709e
mov eax, dword [0x10056fc4]
push edi
dec eax
push eax
push 0x10056eb0
call fcn.10047217
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10047111
cmp word [eax], dx
je 0x10047111
mov eax, dword [edi]
test eax, eax
je 0x100470c2
cmp word [eax], dx
je 0x100470c2
lea eax, [ebp - 0x10]
push eax
call fcn.10047278
jmp 0x100470cb
lea eax, [ebp - 0x10]
push eax
call fcn.10047573
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1004713b
mov eax, dword [0x10056eac]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10056ba0
call fcn.10047217
add esp, 0xc
test al, al
je 0x1004713b
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10047106
cmp word [eax], di
je 0x10047106
lea eax, [ebp - 0x10]
push eax
call fcn.10047278
pop ecx
jmp 0x1004713d
lea eax, [ebp - 0x10]
push eax
call fcn.10047573
jmp 0x10047103
mov eax, dword [edi]
test eax, eax
je 0x10047128
cmp word [eax], dx
je 0x10047128
lea eax, [ebp - 0x10]
push eax
call fcn.100476b5
pop ecx
jmp 0x1004713b
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 0x10047206
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100477a7
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10047206
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10047206
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10047206
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10047193
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10042f2c
test ebx, ebx
je 0x10047201
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10042f2c
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10047206
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 0x10047206
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1004f137
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10047208
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002aa2a
leave
ret
Function at 0x100478ad
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1004243a
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 0x1004791c
cmp esi, dword [ebp - 4]
je 0x10047917
cmp dword [ebp + 0xc], 0
je 0x10047917
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100478f4
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10047976
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1004791e
xor eax, eax
inc eax
jmp 0x1004791e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10048580
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 0x1004861d
push ebx
push esi
call fcn.1004866e
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.10048484
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100485ca
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004861c
push edi
push eax
call fcn.10044448
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100485ea
call fcn.10041dc4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004861b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10048484
add esp, 0x20
test eax, eax
jne 0x10048609
push edi
call fcn.10041dc4
jmp 0x10048611
push ebx
call fcn.10041dc4
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 0x10048620
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10048631
pop esi
ret
push ebx
push edi
push esi
call fcn.1004866e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10044448
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10048659
push ebx
push esi
push edi
call fcn.1002d6c0
add esp, 0xc
push 0
call fcn.10041dc4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100486a5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100486b0
Function at 0x1004ab6e
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1004ad05
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1004acdd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1004acdd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1004ac92
jg 0x1004abca
test eax, eax
je 0x1004ac88
push 1
push 0x1000
call fcn.10041d67
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1004abed
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1004ac7f
push 0x8000
push ebx
call fcn.1004aa68
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1004ac16
jg 0x1004ac11
cmp ecx, 0x1000
jb 0x1004ac16
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10049f6c
add esp, 0x10
cmp eax, 0xffffffff
je 0x1004ac5b
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1004ac11
jl 0x1004ac42
test ecx, ecx
jne 0x1004ac03
push dword [ebp - 0xc]
push ebx
call fcn.1004aa68
push esi
call fcn.10041dc4
add esp, 0xc
xor ebx, ebx
jmp 0x1004aceb
cmp byte [edi + 0x24], 0
je 0x1004ac72
cmp dword [edi + 0x20], 5
jne 0x1004ac72
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1004ac7d
mov ebx, dword [edi + 0x18]
jmp 0x1004ac7f
xor ebx, ebx
push esi
call fcn.10041dc4
pop ecx
jmp 0x1004aceb
test ecx, ecx
jg 0x1004ac54
jl 0x1004ac92
test eax, eax
jae 0x1004ac54
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1004b712
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1004acb2
cmp byte [edi + 0x1c], 0
je 0x1004ac54
jmp 0x1004ace3
push ebx
call fcn.1003a604
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1004ac54
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1004aceb
cmp byte [edi + 0x1c], 0
je 0x1004ace8
mov ebx, dword [edi + 0x18]
jmp 0x1004aceb
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1004b712
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1004b3cb
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 + 0x10067580]
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 0x1004b40b
cmp byte [ebx], 0xa
jne 0x1004b40b
or byte [edi + eax + 0x28], 4
jmp 0x1004b410
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 0x1004b50f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1004b4f2
inc eax
cmp dl, 0xd
je 0x1004b43c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1004b462
cmp eax, ecx
jae 0x1004b470
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 0x1004b424
jmp 0x1004b50f
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 0x1004b4ed
cmp dword [ebp - 0x10], 0
je 0x1004b4ed
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10067580]
test byte [eax + edi + 0x28], 0x48
je 0x1004b4c7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1004b4b2
mov byte [esi], dl
jmp 0x1004b4c3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10067580]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1004b50f
cmp byte [ebp - 1], 0xa
jne 0x1004b4d6
cmp esi, ebx
jne 0x1004b4d6
mov byte [esi], 0xa
jmp 0x1004b50e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1004b712
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1004b50f
mov byte [esi], 0xd
jmp 0x1004b50e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10067580]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1004b50c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1004b50f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1004b518
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10067580]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1004b55e
cmp word [ebx], dx
jne 0x1004b55e
or byte [eax + edi + 0x28], 4
jmp 0x1004b563
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1004b6c6
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1004b6a6
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1004b5a4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1004b5da
cmp eax, edx
jae 0x1004b5e8
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1004b57f
jmp 0x1004b6c6
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004b6a1
cmp dword [ebp - 0x18], 0
je 0x1004b6a1
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10067580]
test byte [eax + edi + 0x28], 0x48
je 0x1004b677
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1004b63b
mov word [esi], cx
jmp 0x1004b672
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10067580]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10067580]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10067580]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1004b6c6
pop eax
cmp word [ebp - 4], ax
jne 0x1004b687
cmp esi, ebx
jne 0x1004b687
mov word [esi], ax
jmp 0x1004b6c3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1004b712
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1004b6c6
push 0xd
pop eax
jmp 0x1004b682
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10067580]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1004b6c0
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1004b6c6
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret