joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7b1770
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x278000]
mov dword [edi + 0x39affc], 0xf17f10e1
push edi
or ebp, 0xffffffff
jmp 0x7b179a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7b17a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b1790
mov eax, 1
add ebx, ebx
jne 0x7b17b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7b17c4
jne 0x7b17e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b17e3
dec eax
add ebx, ebx
jne 0x7b17d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7b17a8
add ebx, ebx
jne 0x7b17df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7b1835
xor ecx, ecx
sub eax, 3
jb 0x7b17fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7b186a
sar eax, 1
mov ebp, eax
jmp 0x7b1806
add ebx, ebx
jne 0x7b1806
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b17d4
inc ecx
add ebx, ebx
jne 0x7b1814
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b17d4
add ebx, ebx
jne 0x7b1821
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7b1816
jne 0x7b1832
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7b1816
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7b1854
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7b1846
jmp 0x7b1796
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7b1854
add edi, ecx
jmp 0x7b1796
pop esi
mov edi, esi
mov ecx, 0x5126
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7b1872
cmp byte [edi], 0x21
jne 0x7b1872
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 0x7b1877
lea edi, [esi + 0x3ab000]
mov eax, dword [edi]
or eax, eax
je 0x7b18e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3b1000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3b1058]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7b18a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3b1060]
or eax, eax
je 0x7b18e0
mov dword [ebx], eax
add ebx, 4
jmp 0x7b18c1
call dword [esi + 0x3b105c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x7b1920
cmp al, 0xef
ja 0x7b190a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x7b18ec
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
or eax, eax
jne 0x7b18f9
mov eax, dword [edi]
add edi, 4
jmp 0x7b18f9
mov ebp, dword [esi + 0x3b1064]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x7b1954
sub esp, 0xffffff80
jmp 0x4011fe
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x4f5c04e0
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
mov eax, str.cst
nop
nop
mov ebx, 0x42e3d0
mov ecx, 0x73233ac4
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x404a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
aas
in al, dx
pop ds
cmp eax, 0xc458b0c
push ebx
push esi
push edi
lea eax, [esi]
pop es
and edx, 0xfffffff8
cmp edx, eax
inc esp
inc ebp
pop ss
mov dword [ebp - 8], edx
jae 0x404a99
mov eax, dword [eax + 0x40]
test eax, eax
test byte [esi + 2], al
add byte [eax], al
push 0xffffffffffffffaa
inc dword [ebp - 0x23fb6e7d]
rcr byte [edi + 0x5e], 0x5b
mov esp, ebp
pop ebp
ret 8
mov esi, dword [eax + 0x2c]
jle 0x404aec
adc byte [ebx - 0x7cd4eb82], cl
cmp esp, dword [edx]
ja 0x404ab8
add esp, dword [eax + 0x5f]
sti
jge 0x404abe
pop esp
mov eax, ecx
pop ebx
invalid
mov ecx, dword [esi]
mov edi, dword [ecx + 0x14]
mov edi, esi
movsd dword es:[edi], dword [esi]
std
sti
cmp edx, edi
add dl, byte [ebx + ecx*4]
inc ecx
add al, 0x8b
cmp dword [ebp + 0x38], esp
mov eax, dword [ecx]
mov edi, dword [ecx + 4]
mov dword [edi + 4], edi
jmp 0x404c4a
invalid
pop ebp
imul ecx, dword [edi], 0xffffff82
retf
mov eax, dword [ecx + 0x10]
or dword [ecx + 0xc], eax
pushal
add byte [eax], al
push 3
ror byte [ecx + 0x568b0951], 1
add al, 0xe3
push ebp
add al, 0x89
or cl, byte [ebx + 0x31890855]
mov dword [ebp + 0x2c4a8952], ecx
mov ecx, ebp
adc al, 0x8b
jle 0x404ce8
sub ecx, edi
mov edi, dword [esi]
add ecx, 0x1000
invalid
push edi
mov edi, dword [ebp + 8]
lea eax, [edx]
cmp byte [esi - 0x45], dl
sti
or dword [eax], eax
jnp 0xdb735141
add esp, 4
cmp eax, ebx
mov dword [esi], ebx
mov dword [edi + 0x3c], ebx
je 0x404d13
xor eax, 0x951d
sbb ebx, dword [edi - 0x3cc4fbb9]
jne 0x404d06
lea esi, [edi - 0x37]
push esi
call fcn.004056f0
mov esp, dword [eax + 0x501e891c]
sbb ebx, dword [edi + 0x14]
call fcn.00405730
add byte [edi + 0x30], 0x8b
dec edi
xor al, 0x89
mov edi, 0x245f641c
mov dword [edi + 0x2c], eax
mov dword [eax - 0x27], ecx
mov ecx, dword [eax]
add esp, 8
cmp ecx, eax
jbe 0x404d8a
hlt
push ds
jmp 0x7c703969
jl 0x404d84
adc al, 0x83
and ecx, dword [ebx - 0x32eb78cd]
push es
mov dword [esi], ecx
jne 0x404da1
invalid
cmp eax, dword [ebp + 8]
jbe 0x404da1
Function at 0x40a580
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_strrchr]
push esi
push edi
mov edi, dword [ebp + 0x6b]
push 0x2f
jb 0x40a592
call ebx
push 0x52
shr dword [edx + 0x52], cl
push edi
mov esi, eax
push dword [ecx]
or dword [edx + 0x76c63b10], 0xffffffd4
mov esi, eax
test edx, edi
jne 0x40a5b6
push 0x3a
push edi
lodsb al, byte [esi]
ror dword [ebx + 0x8c483f0], cl
test esi, esi
je 0x40a5c0
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov al, byte [0x8b0e04c2]
invalid
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
add al, 0xc
xor byte [eax - 0x6f6f6f39], dl
inc eax
push ebp
mov ebp, esp
out dx, eax
in al, dx
sbb byte [ebx], dh
mov ebx, dword [ebp + 2]
test ebx, ebx
push edi
mov dword [ebp - 4], 0xda000000
jge 0x40a5f9
inc ebp
or al, 0x33
xchg ebx, eax
add dword [eax - 0x74f68c00], 0x4c
cwde
add al, 0x43
ror cl, 0x75
test dword [ebp + 0x46204], 0x50563000
lea eax, [edx]
add al, 0
add byte [eax], dh
push esi
push eax
call dword [0x919fc15c]
adc al, 0xc4
add al, 0x22
clc
test ebx, ebx
mov dword [ebp - 0xc], ebp
jle 0x40a61f
mov eax, dword [ebp + 0xc]
mov esi, edi
sub eax, edi
xchg ebp, eax
pop ebp
clc
mov dword [ebp + 0x10], eax
pop esi
add ecx, dword [ebp - 0x3063efbb]
xor byte [ecx - 1], dl
adc eax, sym.imp.MSVCRT.dll_wcslen
add esp, 4
inc eax
mov dword [esi], eax
mov esi, dword [edx]
cld
add edx, eax
mov eax, dword [ebp - 8]
xor edx, 4
dec eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
jnp 0x40a623
inc ebp
adc byte [esi + 3], bl
lea eax, [ebp + 0x10]
pushfd
iretd
mov eax, dword [ebp + 0x11]
lea eax, [eax + eax*2 + 1]
push eax
mov dword [ebp - 4], eax
jb 0x40a66c
pop esp
rol dword [eax], 0x83
invalid
pop edi
dec ebp
mov dh, 0x21
ror dword [ebx + 0x4589fc4d], 0x10
rcr dword [ebp + 0x61], 1
mov dword [ebp - 0x18], ebx
jmp 0x40a682
mov edx, dword [edi]
mov dword [ebp - 0x14], ecx
into
dec ebp
pop es
mov dword [ebp - 0x10], edx
mov dword [edi], esi
mov eax, dword [edi + eax]
push ecx
lea edx, [ebp - 0x10]
mov esi, 0xe6165052
add eax, 0x4d8b0000
cld
mov eax, dword [ebp - 0x14]
sub eax, ecx
add edi, 4
add byte [ebx + ecx*4 - 0x76b7f3bb], bh
inc ebp
or al, 0x75
mov di, word [ebp - 0x79]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
mov dword [esi + ecx*8], 0xe2000000
mov byte [esi], 0
sub eax, dword [edi - 0xaf49ba]
mov dword [ebx], esp
rol dword [eax], 0x8b
dec esp
clc
add esp, 0x4c
cmp eax, ecx
pop esi
fbstp tbyte [ecx]
sub eax, ecx
sub eax, ecx
and al, al
test ebx, ebx
jle 0x40a701
mov edx, dword [edi + eax*4]
add edx, ecx
mov dword [edi + eax*4], edx
inc eax
cmp ebx, dword [ebx + 0x4d8bf37c]
or byte [ebx + 0x5f39dac3], cl
xchg edx, eax
insb byte es:[edi], dx
in eax, 0x5d
ret
mov ecx, 0xc38b0855
retf
Function at 0x4926fe
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401db6
mov eax, dword [0x566d00]
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.00405eb1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x492740
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49289c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406014
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 + 0x56a970]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403279
mov ecx, dword [esi*4 + 0x56a970]
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 0x492895
cmp eax, dword [edi + ecx + 0x24]
jne 0x492895
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 0x492895
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403279
add esp, 0x14
test edx, edx
jl 0x492895
jg 0x49280b
test eax, eax
jb 0x492895
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x492895
jl 0x492825
cmp dword [ebp - 0x1008], eax
ja 0x492895
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x492843
test ebx, ebx
je 0x49287c
cmp ecx, edi
jae 0x49287c
mov al, byte [ecx]
cmp al, 0xd
jne 0x49285d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x492869
cmp byte [ecx + 1], 0xa
jne 0x492869
inc ecx
jmp 0x492869
movzx eax, al
movsx eax, byte [eax + 0x567868]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x492843
cmp edx, ebx
jne 0x492843
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49289a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040306c
leave
ret
Function at 0x498fd1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x566d00]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49901c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00499493
test al, al
jne 0x499016
sub edx, 2
cmp edx, edi
jne 0x498ffc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49903e
lea eax, [edi + 2]
cmp edx, eax
je 0x49903e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00498bca
add esp, 0x10
jmp 0x499138
push esi
lea ecx, [ebp - 0x255]
call fcn.00499493
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x499081
push dword [ebp - 0x25c]
jmp 0x49902e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4990be
cmp word [ebp - 0x226], 0
je 0x4990df
cmp word [ebp - 0x226], ax
jne 0x4990be
cmp word [ebp - 0x224], 0
je 0x4990df
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00498bca
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49912b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x499098
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x499113
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x499138
push 0x4985b2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040556a
add esp, 0x10
jmp 0x499108
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040306c
leave
ret
Function at 0x4a11fc
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 + 0x56a970]
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 0x4a123c
cmp byte [ebx], 0xa
jne 0x4a123c
or byte [eax + edi + 0x28], 4
jmp 0x4a1241
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a133f
mov al, byte [edx]
cmp al, 0x1a
je 0x4a1321
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a1270
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a1295
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a129f
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 0x4a1252
jmp 0x4a133f
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 0x4a131c
cmp dword [ebp - 0xc], 0
je 0x4a131c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x56a970]
test byte [eax + edi + 0x28], 0x48
je 0x4a12f6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a12e1
mov byte [esi], dl
jmp 0x4a12f2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x56a970]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a133f
cmp byte [ebp - 1], 0xa
jne 0x4a1305
cmp esi, ebx
jne 0x4a1305
mov byte [esi], 0xa
jmp 0x4a133e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040194c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a133f
mov byte [esi], 0xd
jmp 0x4a133e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x56a970]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a133b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a133f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a139b
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 + 0x56a970]
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 0x4a13de
cmp word [esi], dx
jne 0x4a13de
or byte [edi + eax + 0x28], 4
jmp 0x4a13e3
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 0x4a1536
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 0x4a1516
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a1425
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a145b
cmp eax, edx
jae 0x4a1467
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 0x4a13fd
jmp 0x4a1536
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 0x4a1512
cmp dword [ebp - 0x14], 0
je 0x4a1512
mov eax, dword [ebx*4 + 0x56a970]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a14ea
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a14b3
mov word [esi], cx
jmp 0x4a14e6
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x56a970]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x56a970]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x56a970]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a1536
pop ebx
cmp word [ebp - 4], bx
jne 0x4a14fb
cmp esi, dword [ebp + 0xc]
jne 0x4a14fb
mov word [esi], bx
jmp 0x4a1533
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040194c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a1536
push 0xd
jmp 0x4a152f
mov ecx, dword [ebx*4 + 0x56a970]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a152d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a1536
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
Function at 0x402df0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f65ad
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x5381f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x224], ecx
cmp dword [ebp + 8], 0
je 0x402e3a
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, word [edx + ecx]
test eax, eax
jne 0x402e41
xor eax, eax
jmp 0x403045
mov ecx, dword [ebp - 0x224]
call fcn.00404b90
movzx ecx, al
test ecx, ecx
je 0x402e5b
or eax, 0xffffffff
jmp 0x403045
lea ecx, [ebp - 0x220]
call fcn.004037a0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x230]
call fcn.00403720
mov byte [ebp - 4], 1
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x230]
push ecx
call fcn.004045f0
add esp, 8
movzx edx, al
test edx, edx
jne 0x402ea9
mov dword [ebp - 0x22c], 1
jmp 0x402eb3
mov dword [ebp - 0x22c], 0
mov al, byte [ebp - 0x22c]
mov byte [ebp - 0x219], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00403900
movzx ecx, byte [ebp - 0x219]
test ecx, ecx
je 0x402f00
mov dword [ebp - 0x23c], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.00403900
mov eax, dword [ebp - 0x23c]
jmp 0x403045
push 0x208
push 0
lea edx, [ebp - 0x218]
push edx
call fcn.004a03d0
add esp, 0xc
mov ecx, dword [ebp - 0x224]
call fcn.00403a90
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
lea ecx, [ebp - 0x220]
call fcn.00403a90
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, 2
imul eax, edx, 0
movzx ecx, word [ebp + eax - 0x218]
test ecx, ecx
jne 0x402f88
mov dword [ebp - 0x240], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.00403900
mov eax, dword [ebp - 0x240]
jmp 0x403045
mov edx, dword [ebp - 0x224]
add edx, 4
push edx
lea ecx, [ebp - 0x228]
call fcn.00403700
mov byte [ebp - 4], 2
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x228]
call fcn.00403af0
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x234]
call fcn.00403720
mov byte [ebp - 4], 3
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x238]
push ecx
call fcn.00457770
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x234]
call fcn.00403900
push 0xa
push 0
lea ecx, [ebp - 0x238]
call fcn.00403a90
push eax
call fcn.004ad6ed
add esp, 0xc
mov dword [ebp - 0x244], eax
lea ecx, [ebp - 0x238]
call fcn.00403900
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00403900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.00403900
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046621a
mov esp, ebp
pop ebp
ret 4
Function at 0x4055a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4055c4
xor eax, eax
jmp 0x405644
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4055db
xor eax, eax
jmp 0x405644
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x405627
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x405627
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x4055fe
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x405633
xor eax, eax
jmp 0x405644
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x405641
xor eax, eax
jmp 0x405644
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret