joyce8/EMBER2024-capa huggingface dataset:
Function at 0xdcbdd4
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdcbdde
pushal
call 0xdcbde4
pop ebp
sub ebp, 0x10
sub ebp, 0x9cbdd4
jmp 0xdcbdfa
mov eax, 0x9cbdd4
add eax, ebp
add eax, 0x4c
mov ecx, 0x5d2
mov edx, 0x8cc22709
xor byte [eax], dl
inc eax
dec ecx
jne 0xdcbe11
jmp 0xdcbe24
add ah, 0x82
xor byte [0x88090909], 0xc8
int1
or dword [ecx], ecx
or dword [edx], ecx
les esi, [ecx + 0x909090c]
mov bl, 0x21
or dword [ecx], ecx
or esi, edi
jmp 0xdcbe4b
insd dword es:[edi], dx
sub eax, 0x2d0d80f5
test byte [ebp + 0x2d], ch
cmc
or byte [0x2ccd612d], 0x28
or dword [ecx + 0x19], esp
xchg ecx, eax
jb 0xdcbe6b
or byte [0x3bb0612d], ah
jg 0xdcbe81
loope 0xdcbe78
or al, 9
or dword [ecx], ecx
loopne 0xdcbeaa
or dword [ecx], ecx
or eax, esp
cmp dword [ecx], ecx
or dword [ecx], ecx
pop esp
test byte [ebp + 0x2d], ah
or dword [ecx], ecx
or dword [esp + eax*4 + 0x65], ebx
sub eax, 0x18c8209
or dword [ecx], ecx
or dword [edx + 0x909018c], eax
or dword [edx + 0x909059c], eax
or dword [edx + 0x9091984], eax
add eax, 0x82090909
test byte [ecx], bl
or dword [ecx], ecx
or eax, ecx
loopne 0xdcbe99
cmp byte [ebx], cl
mov cl, bl
or eax, 0xfd8c0640
div dh
test byte [edx + 0x6d842d25], 0x2d
or eax, 0x820905cb
test dword [0x909090d], ebp
popal
int 0x2c
sub byte [ecx], cl
popal
sbb dword [ecx + 0x25080972], edx
sub eax, 0xf52d6d84
or dword [ecx - 0x33], esp
sub al, 0x28
or dword [ecx + 0x19], esp
xchg ecx, eax
jb 0xdcbebe
or byte [0x2d6d842d], ah
cmc
add byte [0x90ce12d], 9
sub eax, 0x9090ce1
or eax, esp
inc edx
or ecx, dword [ecx]
or dword [ebp + ebp*2 + 0x2580f52d], eax
sub eax, 0x7cf6e582
add eax, 0xe1017cf6
jno 0xdcbee4
or dword [ecx], ecx
xor byte [ecx + eax - 0x77f6f6f7], 0xf8
clc
scasb al, byte es:[edi]
push es
nop
push esi
mov al, bh
clc
scasb al, byte es:[edi]
push es
nop
push esi
cmp al, al
cmp bl, bl
mov ah, cl
or al, 0x41
push es
lea eax, [edi + 9]
or dword [ecx], ecx
push es
add dword [ecx + 9], 0x826f0909
adc eax, 0xe1f28930
push es
lea edx, [ebx]
or dword [ecx], ecx
or dword [ecx - 0x72f91f0e], ecx
sbb byte [ecx], cl
or dword [ecx], ecx
outsd dx, dword [esi]
mov dl, dh
imul byte [esi + eax]
lea ebx, [ecx + ecx]
or dword [ecx], ecx
dec eax
loopne 0xdcbeec
div dh
mul byte [eax]
inc ebp
xor byte [eax], cl
mov cl, al
or al, 0x8a
loope 0xdcbf41
loopne 0xdcbeea
div dh
mul byte [eax]
pop ebp
xor byte [ebx], cl
mov cl, al
jp 0xe266cd28
jecxz 0xdcbf50
mov ah, cl
or al, 0xe0
mov byte [0x82f6f6f6], al
and eax, 0x2d6d842d
or eax, 0x5c0905cb
sub eax, 0x905cb0d
pop esp
and ch, 0x5f
pop esi
pop esp
cmp byte [ebp + eax - 0x7e], 0x74
add ebp, esi
mov ebx, 0x880f8389
iretd
Function at 0x40db80
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4143d8], 0
jne 0x40dc01
cmp dword [0x4143f8], 0
jne 0x40dbb0
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4143f8], eax
test eax, eax
jne 0x40dbb0
push str.GetEnvironmentStrings_failed
call fcn.0040cbf0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4143f8]
jmp 0x40dbc4
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00406b08
pop ecx
mov edi, eax
test eax, eax
jne 0x40dbbc
lea edi, [ebp + 1]
push edi
call fcn.00405c3c
pop ecx
mov ebx, eax
mov dword [0x4143dc], ebx
test ebx, ebx
jne 0x40dbee
xor eax, eax
jmp 0x40dcc4
push edi
mov edx, dword [0x4143f8]
push edx
push ebx
call fcn.004069b8
add esp, 0xc
jmp 0x40dc21
xor esi, esi
mov ebx, dword [0x4143d8]
jmp 0x40dc1b
push eax
call fcn.00406b08
pop ecx
test eax, eax
jne 0x40dc17
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40dc0b
lea ebx, [esi + 4]
push 4
mov dword [0x4143e0], ebx
inc ebx
push ebx
call fcn.00405a3c
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x40dc44
xor eax, eax
jmp 0x40dcc4
cmp dword [0x4143d8], 0
jne 0x40dc75
xor esi, esi
mov ebx, dword [0x4143dc]
mov eax, dword [esp]
mov ebp, eax
jmp 0x40dc66
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00406b08
pop ecx
mov edi, eax
test eax, eax
jne 0x40dc5c
jmp 0x40dca6
xor esi, esi
mov ebx, dword [0x4143d8]
mov eax, dword [esp]
mov edi, eax
jmp 0x40dca0
push eax
call fcn.00406b08
pop ecx
test eax, eax
je 0x40dc95
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40dc99
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40dc84
mov eax, dword [0x4143d8]
test eax, eax
je 0x40dcb6
push eax
call fcn.00405c4c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4143d8], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40892e
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
mov edx, 0xfedff908
call fcn.0040894d
mov edx, edi
and edi, edi
xor dword [ebx], ecx
inc ebx
or edx, edx
cmp ebx, esi
jne fcn.0040892e
ret
Function at 0x4bf3b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x87000]
push edi
jmp 0x4bf3ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4bf3d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bf3c0
mov eax, 1
add ebx, ebx
jne 0x4bf3e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4bf3f4
jne 0x4bf413
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bf413
dec eax
add ebx, ebx
jne 0x4bf400
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4bf3d8
add ebx, ebx
jne 0x4bf40f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4bf465
xor ecx, ecx
sub eax, 3
jb 0x4bf42b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4bf49a
sar eax, 1
mov ebp, eax
jmp 0x4bf436
add ebx, ebx
jne 0x4bf436
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bf404
inc ecx
add ebx, ebx
jne 0x4bf444
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bf404
add ebx, ebx
jne 0x4bf451
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4bf446
jne 0x4bf462
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4bf446
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4bf484
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4bf476
jmp 0x4bf3c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4bf484
add edi, ecx
jmp 0x4bf3c6
pop esi
mov edi, esi
mov ecx, 0x45e1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4bf4a2
cmp byte [edi], 0xd
jne 0x4bf4a2
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 0x4bf4a7
lea edi, [esi + 0xbc000]
mov eax, dword [edi]
or eax, eax
je 0x4bf51f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc2758]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc2888]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4bf4d4
mov ecx, edi
jns 0x4bf503
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc2890]
or eax, eax
je 0x4bf519
mov dword [ebx], eax
add ebx, 4
jmp 0x4bf4f1
call dword [esi + 0xc288c]
mov ebp, dword [esi + 0xc2894]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4bf553
sub esp, 0xffffff80
jmp 0x4653d6
Function at 0x10001d90
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [0x1000d040]
xor eax, esp
mov dword [esp + 0x24], eax
mov bl, 1
cmp dword [ecx + 0x38], 0
je 0x10001e19
mov esi, ecx
cmp byte [ecx + 0x3d], 0
je 0x10001e19
mov eax, dword [esi]
mov ecx, esi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10001e0f
mov ecx, dword [esi + 0x38]
lea eax, [esp + 0x24]
lea edx, [esi + 0x40]
mov ebx, dword [ecx]
mov ebp, esp
lea edi, [esp + 4]
push ebp
push eax
push edi
push edx
call dword [ebx + 0x20]
cmp eax, 3
je 0x10001e13
cmp eax, 1
je 0x10001deb
test eax, eax
jne 0x10001e0f
mov byte [esi + 0x3d], 0
mov ebx, dword [esp]
sub ebx, edi
je 0x10001e06
push dword [esi + 0x4c]
push ebx
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp ebx, eax
jne 0x10001e0f
cmp byte [esi + 0x3d], 0
sete bl
jmp 0x10001e19
xor ebx, ebx
jmp 0x10001e19
mov byte [esi + 0x3d], 0
mov bl, 1
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10006357
mov eax, ebx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10002060
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov ebx, dword [esp + 0x44]
mov eax, dword [0x1000d040]
xor eax, esp
mov dword [esp + 0x2c], eax
cmp ebx, 0xffffffff
je 0x10002133
mov esi, ecx
mov eax, dword [ecx + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x100020a2
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
test edi, edi
jle 0x100020a2
dec edi
mov dword [edx], edi
lea edx, [ecx + 1]
mov dword [eax], edx
mov byte [ecx], bl
jmp 0x1000217c
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x10002137
mov ecx, dword [esi + 0xc]
lea edx, [esi + 0x3c]
cmp dword [ecx], edx
jne 0x100020cb
mov edx, dword [esi + 0x50]
mov edi, dword [esi + 0x54]
mov dword [ecx], edx
mov ecx, dword [esi + 0x1c]
mov dword [ecx], edx
sub edi, edx
mov ecx, dword [esi + 0x2c]
mov dword [ecx], edi
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x1000213e
mov byte [esp + 0xb], bl
lea edx, [esi + 0x40]
mov edi, dword [ecx]
mov ebp, esp
lea eax, [esp + 0xc]
push ebp
lea ebp, [esp + 0x30]
push ebp
push eax
lea eax, [esp + 0x10]
push eax
lea ebp, [esp + 0x1b]
lea eax, [esp + 0x1c]
push eax
push ebp
push edx
call dword [edi + 0x1c]
cmp eax, 2
jae 0x10002154
mov edi, dword [esp]
lea eax, [esp + 0xc]
sub edi, eax
je 0x10002124
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov ecx, 0xffffffff
cmp edi, eax
jne 0x1000217a
mov byte [esi + 0x3d], 1
cmp dword [esp + 4], ebp
mov eax, 0xffffffff
jmp 0x1000216e
xor ebx, ebx
jmp 0x1000217c
mov ebx, 0xffffffff
jmp 0x1000217c
movsx ecx, bl
push eax
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
cmp eax, 0xffffffff
cmove ebx, eax
jmp 0x1000217c
cmp eax, 3
jne 0x10002175
movsx eax, byte [esp + 0xb]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
cmp eax, 0xffffffff
cmove ebx, eax
mov ecx, ebx
jmp 0x1000217a
mov ecx, 0xffffffff
mov ebx, ecx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10006357
mov eax, ebx
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x10002680
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebx, ecx
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
cmp esi, 1
mov eax, ecx
sbb eax, 0
jl 0x100026b0
cmp dword [ebx + 0x38], 0
je 0x100026b9
mov ecx, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
xor eax, eax
xor edx, edx
jmp 0x1000276b
mov dword [esp], ecx
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax]
test ecx, ecx
mov dword [esp + 4], esi
je 0x100026f4
mov edx, dword [ebx + 0x2c]
mov edi, dword [edx]
test edi, edi
je 0x100026f4
cmp edi, esi
cmovae edi, esi
push edi
push ecx
push ebp
call fcn.10003ac0
add esp, 0xc
add ebp, edi
sub esi, edi
mov eax, dword [ebx + 0x2c]
sub dword [eax], edi
mov eax, dword [ebx + 0x1c]
add dword [eax], edi
cmp dword [ebx + 0x4c], 0
je 0x1000275f
mov ecx, dword [ebx + 0xc]
lea edx, [ebx + 0x3c]
cmp dword [ecx], edx
jne 0x10002715
mov edx, dword [ebx + 0x50]
mov edi, dword [ebx + 0x54]
mov dword [ecx], edx
mov dword [eax], edx
sub edi, edx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edi
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
nop dword [eax + eax]
cmp esi, 0x1000
jb 0x10002745
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call edi
add esp, 0x10
add ebp, eax
sub esi, eax
cmp eax, 0xfff
je 0x10002720
jmp 0x1000275f
test esi, esi
je 0x1000275d
push dword [ebx + 0x4c]
push esi
push 1
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub esi, eax
jmp 0x1000275f
xor esi, esi
mov eax, dword [esp + 4]
sub eax, esi
mov edx, dword [esp]
sbb edx, 0
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x10002780
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, ecx
cmp dword [ecx + 0x38], 0
je 0x1000279e
mov ecx, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov eax, dword [ebx + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10002819
cmp ebp, 1
mov ecx, edx
sbb ecx, 0
jl 0x10002819
mov esi, ebp
mov ecx, dword [ebx + 0x30]
mov ebp, dword [ecx]
test ebp, ebp
jle 0x10002820
mov dword [esp + 4], 0
mov dword [esp + 8], esi
cmp ebp, esi
mov ecx, 0
sbb ecx, edx
mov ecx, dword [esp + 4]
cmovae ecx, edx
mov dword [esp + 4], ecx
cmovae ebp, esi
push ebp
push edi
push eax
mov esi, edx
call fcn.10003ac0
mov edx, esi
add esp, 0xc
add edi, ebp
mov dword [esp], edi
mov ecx, dword [esp + 8]
mov edi, ecx
sub edi, ebp
sbb esi, dword [esp + 4]
mov eax, dword [ebx + 0x30]
sub dword [eax], ebp
mov eax, dword [ebx + 0x20]
add dword [eax], ebp
mov ebp, ecx
jmp 0x10002829
mov dword [esp], edi
mov edi, ebp
jmp 0x10002827
mov dword [esp], edi
mov ebp, esi
mov edi, esi
mov esi, edx
cmp edi, 1
mov eax, esi
sbb eax, 0
jl 0x10002854
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10002854
push eax
push edi
push 1
push dword [esp + 0xc]
mov ebx, edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, ebx
add esp, 0x10
sub edi, eax
sbb esi, 0
sub ebp, edi
sbb edx, esi
mov eax, ebp
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x403562
Capabilities:
Terminate process

Disassembly:
jmp 0x455f89
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x455f9a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004057d1
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 0x403684
Capabilities:
Query environment variable

Disassembly:
jmp 0x49e135
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49e146
pop esi
ret
push ebx
push edi
push esi
call fcn.0049e01c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403f1c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49e16e
push ebx
push esi
push edi
call fcn.004055ce
add esp, 0xc
push 0
call fcn.004060eb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40568c
Capabilities:
Parse pe header

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

Function at 0x442f47
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.004036e3
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 0x442f86
sub eax, 1
je 0x442f81
sub eax, 1
je 0x442f7d
xor eax, eax
leave
ret
push 3
jmp 0x442f88
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x498001
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d6b
mov eax, dword [0x4ce040]
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.00405d12
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x498043
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49819f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405e61
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 + 0x4d1968]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0040320b
mov ecx, dword [esi*4 + 0x4d1968]
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 0x498198
cmp eax, dword [edi + ecx + 0x24]
jne 0x498198
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 0x498198
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040320b
add esp, 0x14
test edx, edx
jl 0x498198
jg 0x49810e
test eax, eax
jb 0x498198
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x498198
jl 0x498128
cmp dword [ebp - 0x1008], eax
ja 0x498198
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x498146
test ebx, ebx
je 0x49817f
cmp ecx, edi
jae 0x49817f
mov al, byte [ecx]
cmp al, 0xd
jne 0x498160
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49816c
cmp byte [ecx + 1], 0xa
jne 0x49816c
inc ecx
jmp 0x49816c
movzx eax, al
movsx eax, byte [eax + 0x4ce388]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x498146
cmp edx, ebx
jne 0x498146
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49819d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00402fef
leave
ret
Function at 0x4988de
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 + 0x4d1968]
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 0x49891e
cmp byte [ebx], 0xa
jne 0x49891e
or byte [eax + edi + 0x28], 4
jmp 0x498923
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x498a21
mov al, byte [edx]
cmp al, 0x1a
je 0x498a03
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x498952
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x498977
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x498981
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 0x498934
jmp 0x498a21
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 0x4989fe
cmp dword [ebp - 0xc], 0
je 0x4989fe
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4d1968]
test byte [eax + edi + 0x28], 0x48
je 0x4989d8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4989c3
mov byte [esi], dl
jmp 0x4989d4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d1968]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x498a21
cmp byte [ebp - 1], 0xa
jne 0x4989e7
cmp esi, ebx
jne 0x4989e7
mov byte [esi], 0xa
jmp 0x498a20
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401910
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x498a21
mov byte [esi], 0xd
jmp 0x498a20
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4d1968]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x498a1d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x498a21
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x498a7d
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 + 0x4d1968]
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 0x498ac0
cmp word [esi], dx
jne 0x498ac0
or byte [edi + eax + 0x28], 4
jmp 0x498ac5
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 0x498c18
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 0x498bf8
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x498b07
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x498b3d
cmp eax, edx
jae 0x498b49
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 0x498adf
jmp 0x498c18
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 0x498bf4
cmp dword [ebp - 0x14], 0
je 0x498bf4
mov eax, dword [ebx*4 + 0x4d1968]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x498bcc
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x498b95
mov word [esi], cx
jmp 0x498bc8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4d1968]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4d1968]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4d1968]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x498c18
pop ebx
cmp word [ebp - 4], bx
jne 0x498bdd
cmp esi, dword [ebp + 0xc]
jne 0x498bdd
mov word [esi], bx
jmp 0x498c15
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401910
add esp, 0x10
cmp word [ebp - 4], bx
je 0x498c18
push 0xd
jmp 0x498c11
mov ecx, dword [ebx*4 + 0x4d1968]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x498c0f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x498c18
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