joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463960
Capabilities:
Get geographical location
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x14670ec]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x463b6a
sub esp, 0x68
movzx eax, byte [esp + 0x88]
test al, al
je 0x463b1a
mov ecx, dword [esp + 0x8c]
test ecx, ecx
sete dl
mov ebx, dword [esp + 0x90]
test ebx, ebx
xchg ebp, ebx
sete bl
xchg ebp, ebx
and ebp, edx
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x463a2a
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x2c], edx
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x34], ebx
movzx eax, al
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 8], eax
mov byte [esp + 0xc], 0x19
lea eax, [esp + 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], 3
call fcn.004601e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
jmp 0x463aac
mov edx, dword [esp + 0x78]
mov dword [esp + 0x48], edx
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x4c], ebp
mov esi, dword [esp + 0x80]
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x84]
mov dword [esp + 0x54], esi
movzx eax, al
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ebx
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 8], eax
mov byte [esp + 0xc], 0x30
lea eax, [esp + 0x48]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 4
mov dword [esp + 0x18], 4
call fcn.004601e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
movzx ebx, byte [esp + 0x89]
test bl, bl
je 0x463b01
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x44], ebx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov byte [esp + 0xc], 0x22
lea eax, [esp + 0x40]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 1
call fcn.004601e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edx
add esp, 0x68
ret
call fcn.0043bf20
lea eax, [0xd53dec]
mov dword [esp], eax
mov dword [esp + 4], 0xe
call fcn.0043c780
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], eax
call fcn.0043c470
call fcn.0043c120
call fcn.0043bf80
lea eax, [0xd79925]
mov dword [esp], eax
mov dword [esp + 4], 0x2f
call fcn.0046ffd0
nop
call fcn.00475a70
jmp fcn.00463960
Function at 0x46a110
Capabilities:
Access peb ldr_data

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x38]
test eax, eax
je 0x46a210
mov eax, dword [0x14670ec]
mov eax, dword fs:[eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x28], eax
mov ecx, dword [eax + 0x98]
mov edx, dword [eax + 0x9c]
lea ebx, [eax + 0x1d0]
mov dword [esp + 0x30], ebx
lea ebp, [eax + 0x318]
mov dword [esp + 0x2c], ebp
add ecx, 1
mov dword [eax + 0x98], ecx
adc edx, 0
mov dword [eax + 0x9c], edx
mov ecx, dword [eax + 0xa8]
mov dword [ecx], 0
call fcn.004702f0
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.00438790
mov eax, dword [esp + 0x28]
mov byte [eax + 0x8c], 1
inc dword [eax + 0xa0]
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
mov edx, dword [esp + 0x3c]
mov dword [esp + 4], edx
call fcn.00476b00
mov eax, dword [esp + 8]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x28]
mov byte [ecx + 0x8c], 0
dec dword [ecx + 0xa0]
nop
mov edx, dword [esp + 0x2c]
mov dword [esp], edx
mov dword [esp + 4], 0
call fcn.0047d480
lea edi, [esp + 0xc]
mov esi, dword [esp + 0x30]
call fcn.004775f4
call fcn.004704a0
mov eax, dword [0x14670ec]
mov eax, dword fs:[eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
test byte [eax], al
lea edi, [eax + 0x1d0]
lea esi, [esp + 0xc]
call fcn.004775f4
mov eax, dword [esp + 0x24]
mov dword [esp + 0x40], eax
add esp, 0x34
ret
lea eax, [0xd4fd90]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.0046ffd0
nop
int3
Function at 0x473350
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [0x14670ec]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4734ca
sub esp, 0x10
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x4734c0
mov edx, dword [esp + 0x14]
movzx ebx, byte [edx]
test ebx, ebx
jne 0x4733aa
movzx ebp, byte [esp + 0x28]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x4733aa
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov byte [esp + 0x38], 0
add esp, 0x10
ret
test ebx, 0x80
je 0x4733bd
xor eax, eax
xor ebx, ebx
xor ebp, ebp
jmp 0x473497
mov eax, 1
mov ebp, ebx
and ebx, 1
neg ebx
shr ebp, 1
xor ebx, ebp
mov ebp, dword [esp + 0x24]
add dword [ebp], ebx
cmp ecx, eax
jb 0x47348b
sub ecx, eax
mov ebx, dword [esp + 0x1c]
sub ebx, eax
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and eax, ebx
lea ebx, [edx + eax]
test ecx, ecx
jbe 0x473482
movzx edx, byte [edx + eax]
test edx, 0x80
je 0x473410
mov dword [esp + 0xc], ecx
xor eax, eax
xor edx, edx
xor esi, esi
jmp 0x473453
mov eax, 1
cmp eax, ecx
ja 0x473447
mov esi, dword [esp + 0x20]
add dword [esi], edx
sub ebp, eax
sub ecx, eax
mov edx, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and eax, ebp
add eax, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov byte [esp + 0x38], 1
add esp, 0x10
ret
call fcn.00476f60
lea esi, [ecx + 7]
mov ecx, dword [esp + 0xc]
cmp eax, ecx
jae 0x47347d
movzx edi, byte [eax + ebx]
xchg edi, eax
mov byte [esp + 0xb], al
xchg edi, eax
and edi, 0x7f
mov ecx, esi
shl edi, cl
inc eax
or edx, edi
movzx edi, byte [esp + 0xb]
xchg edi, eax
test al, 0x80
xchg edi, eax
jne 0x47344c
mov ecx, dword [esp + 0xc]
jmp 0x473415
call fcn.00476f00
xor eax, eax
mov ecx, eax
call fcn.00476ef0
call fcn.00476f60
lea ebp, [ecx + 7]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jbe 0x4734bb
movzx esi, byte [eax + edx]
mov edi, esi
and esi, 0x7f
mov ecx, ebp
shl esi, cl
inc eax
or ebx, esi
xchg edi, eax
test al, 0x80
xchg edi, eax
jne 0x473490
mov ecx, dword [esp + 0x18]
jmp 0x4733c2
call fcn.00476f00
xor eax, eax
mov ecx, eax
call fcn.00476ef0
nop
call fcn.00475a70
jmp fcn.00473350
Function at 0x474d20
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword [0x14670ec]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x474dbb
sub esp, 0x30
lea ecx, [esp + 0x34]
mov dword [esp + 4], ecx
mov edx, dword [0x14670ec]
mov edx, dword fs:[edx]
mov edx, dword [edx]
mov dword [esp + 8], 0
lea edi, [esp + 0xc]
xor eax, eax
call fcn.00477117
lea ecx, [0x45dc80]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
lea ecx, [esp + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0xc]
mov dword [esp], ecx
call fcn.00475980
mov ecx, dword [esp + 8]
mov dword [esp + 0x44], ecx
add esp, 0x30
ret
call fcn.00475a70
jmp fcn.00474d20
Function at 0x476d20
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movd xmm0, dword [esp + 8]
pinsrw xmm0, ebx, 4
pshufhw xmm0, xmm0, 0
movdqa xmm1, xmm0
pxor xmm0, xmmword [0x14678c0]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x4754ab
je 0x4754fe
cmp ebx, 0x20
jbe 0x475504
cmp ebx, 0x40
jbe 0x47554a
jmp 0x4755eb
test ebx, ebx
je 0x4754f4
add eax, 0x10
test ax, 0xff0
je 0x4754e0
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0xe80160]
pxor xmm1, xmm0
aesenc xmm1, xmm1
aesenc xmm1, xmm1
aesenc xmm1, xmm1
movd dword [edx], xmm1
ret
movdqu xmm1, xmmword [eax + ebx - 0x20]
add ebx, ebx
pshufb xmm1, xmmword [ebx*8 + 0xe80260]
jmp 0x4754c8
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x4754c8
pxor xmm1, xmmword [0x14678d0]
aesenc xmm1, xmm1
movdqu xmm2, xmmword [eax]
movdqu xmm3, xmmword [eax + ebx - 0x10]
pxor xmm2, xmm0
pxor xmm3, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
pxor xmm2, xmm3
movd dword [edx], xmm2
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x14678d0]
pxor xmm2, xmmword [0x14678e0]
pxor xmm3, xmmword [0x14678f0]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax]
movdqu xmm5, xmmword [eax + 0x10]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
pxor xmm4, xmm0
pxor xmm5, xmm1
pxor xmm6, xmm2
pxor xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x14678d0]
pxor xmm2, xmmword [0x14678e0]
pxor xmm3, xmmword [0x14678f0]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax + ebx - 0x40]
movdqu xmm5, xmmword [eax + ebx - 0x30]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
dec ebx
shr ebx, 6
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
movdqu xmm2, xmmword [eax + 0x20]
movdqu xmm3, xmmword [eax + 0x30]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
add eax, 0x40
dec ebx
jne 0x47564a
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
cmp byte [0x1466e87], 0
je 0x476d3a
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x475470
jmp fcn.0040c900
Function at 0x4d9e10
Capabilities:
Get geographical location

Disassembly:
mov ecx, dword [0x14670ec]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x24]
cmp eax, dword [ecx + 8]
jbe 0x4d9fd6
sub esp, 0xa4
lea eax, [0xc4fe80]
mov dword [esp], eax
call fcn.0040f6d0
mov eax, dword [esp + 4]
mov dword [esp + 0xa0], eax
nop
mov dword [esp], 1
mov dword [esp + 8], 5
mov dword [esp + 0xc], 5
call fcn.00474d20
mov ecx, dword [esp + 0x10]
cmp ecx, 5
ja 0x4d9fcb
mov dword [esp + 0x38], ecx
lea eax, [0xccd840]
mov dword [esp], eax
call fcn.0040f6d0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], ecx
mov dword [eax + 8], 5
mov ecx, dword [0x14674f0]
lea edx, [eax + 0x1c]
test ecx, ecx
jne 0x4d9eab
mov ecx, dword [esp + 0xa0]
jmp 0x4d9ebc
call fcn.00476e80
mov ecx, dword [esp + 0xa0]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x44], eax
mov dword [eax], ecx
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 2
mov dword [eax + 0x10], edx
lea edi, [esp + 0x48]
xor eax, eax
call fcn.00477115
jmp 0x4d9ee2
xor eax, eax
lea edi, [esp + 0x74]
call fcn.00477115
mov ecx, dword [esp + 0x44]
mov dword [esp], ecx
call fcn.00455a40
movzx ecx, byte [esp + 0x30]
mov byte [esp + 0x37], cl
lea edi, [esp + 0x74]
lea esi, [esp + 4]
call fcn.004775c2
lea edi, [esp + 0x48]
lea esi, [esp + 0x74]
call fcn.004775c2
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
cmp ecx, 0xe
jg 0x4d9f2b
xor eax, eax
jmp 0x4d9f5a
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp], edx
lea eax, [0xd53e5c]
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
call fcn.004066c0
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
test al, al
je 0x4d9f7e
cmp ecx, 0xe
jb 0x4d9fc1
je 0x4d9f7e
lea ebx, [ecx - 0xe]
neg ebx
sar ebx, 0x1f
and ebx, 0xe
movzx ebx, byte [edx + ebx]
cmp bl, 0x41
jb 0x4d9f7e
cmp bl, 0x5a
jbe 0x4d9f8d
movzx ecx, byte [esp + 0x37]
test cl, cl
jne 0x4d9ee0
jmp 0x4d9fa2
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], ecx
add esp, 0xa4
ret
lea eax, [0xd53e6a]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], 0xe
add esp, 0xa4
ret
mov eax, 0xe
call fcn.00476f50
mov edx, 5
call fcn.00476f10
nop
call fcn.00475a70
jmp fcn.004d9e10
Function at 0x4e3330
Capabilities:
Get geographical location

Disassembly:
mov ecx, dword [0x14670ec]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4e3402
sub esp, 0x24
mov eax, dword [esp + 0x30]
test eax, 0x1f
je 0x4e33ec
test eax, eax
je 0x4e336d
test eax, 0x200
jne 0x4e336d
lea eax, [0xe7f9d4]
mov ecx, dword [esp + 0x28]
jmp 0x4e338d
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004e3660
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x94]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], 0
lea edx, [0xe72d84]
mov dword [esp + 4], edx
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
lea eax, [0xd4b13b]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 7
call fcn.00454950
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
add esp, 0x24
ret
lea eax, [0xd54f0e]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0xf
add esp, 0x24
ret
call fcn.00475a70
jmp fcn.004e3330
Function at 0x710c92
Capabilities:
Encode data using xor

Disassembly:
push 0x7109ec
pop edx
or ecx, eax
call fcn.00710cbc
add eax, ecx
xor dword [ebx], edx
mov eax, 0xb88fc432
and eax, eax
inc ebx
sub eax, 0x2bdb3781
sub eax, ecx
cmp ebx, edi
jne fcn.00710c92
add eax, eax
ret
Function at 0x402c86
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x432180]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [0x481c7c]
xor ebx, ebx
push edi
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x402ced
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.004033f7
lea ecx, [esp + 0x1c]
call fcn.00402a16
cmp eax, dword [esp + 0x14]
je 0x402d05
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00403e30
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x402cbd
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409180
add esp, 0x2c
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00403e30
jmp 0x402cef

Function at 0x402d88
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x481c7c], eax
push 0x27
mov esi, 0x47f860
mov edx, 0x547
push 0x432c30
mov ecx, esi
call fcn.00402805
push 1
push 0x42dd9c
call fcn.004011cb
add esp, 0x10
mov edx, 0x8aafdc01
call fcn.00402c86
lea ecx, [esp + 0xc]
push ecx
push 0x40
push 0x4e4
push esi
call eax
test eax, eax
je 0x402e20
lea ecx, [esp + 0x10]
call fcn.004047f3
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], ecx
mov byte [esp + 0x14], 1
test ecx, ecx
je 0x402e2a
cmp byte [ecx + 0x6c], 0
jne 0x402e2a
mov eax, dword [ecx]
push 1
call dword [eax + 8]
lea ecx, [esp + 0x10]
call fcn.00402f73
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 4
pop ecx
call fcn.0040277a
int3
Function at 0x41a818
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a689

Function at 0x41ac12
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a250
mov eax, dword [0x432180]
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.00418734
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ac54
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41adb0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00424b50
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 + 0x481940]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041bc09
mov ecx, dword [esi*4 + 0x481940]
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 0x41ada9
cmp eax, dword [edi + ecx + 0x24]
jne 0x41ada9
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 0x41ada9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041bc09
add esp, 0x14
test edx, edx
jl 0x41ada9
jg 0x41ad1f
test eax, eax
jb 0x41ada9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41ada9
jl 0x41ad39
cmp dword [ebp - 0x1008], eax
ja 0x41ada9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41ad57
test ebx, ebx
je 0x41ad90
cmp ecx, edi
jae 0x41ad90
mov al, byte [ecx]
cmp al, 0xd
jne 0x41ad71
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41ad7d
cmp byte [ecx + 1], 0xa
jne 0x41ad7d
inc ecx
jmp 0x41ad7d
movzx eax, al
movsx eax, byte [eax + 0x432460]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41ad57
cmp edx, ebx
jne 0x41ad57
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41adae
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409180
leave
ret
Function at 0x41b0a7
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 + 0x481940]
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 0x41b0e7
cmp byte [ebx], 0xa
jne 0x41b0e7
or byte [eax + edi + 0x28], 4
jmp 0x41b0ec
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41b1ea
mov al, byte [edx]
cmp al, 0x1a
je 0x41b1cc
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41b11b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41b140
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41b14a
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 0x41b0fd
jmp 0x41b1ea
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 0x41b1c7
cmp dword [ebp - 0xc], 0
je 0x41b1c7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x481940]
test byte [eax + edi + 0x28], 0x48
je 0x41b1a1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41b18c
mov byte [esi], dl
jmp 0x41b19d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x481940]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41b1ea
cmp byte [ebp - 1], 0xa
jne 0x41b1b0
cmp esi, ebx
jne 0x41b1b0
mov byte [esi], 0xa
jmp 0x41b1e9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041bc27
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41b1ea
mov byte [esi], 0xd
jmp 0x41b1e9
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x481940]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b1e6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b1ea
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b1f3
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 + 0x481940]
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 0x41b236
cmp word [esi], dx
jne 0x41b236
or byte [edi + eax + 0x28], 4
jmp 0x41b23b
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 0x41b38e
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 0x41b36e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41b27d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41b2b3
cmp eax, edx
jae 0x41b2bf
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 0x41b255
jmp 0x41b38e
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 0x41b36a
cmp dword [ebp - 0x14], 0
je 0x41b36a
mov eax, dword [ebx*4 + 0x481940]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41b342
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41b30b
mov word [esi], cx
jmp 0x41b33e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x481940]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x481940]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x481940]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41b38e
pop ebx
cmp word [ebp - 4], bx
jne 0x41b353
cmp esi, dword [ebp + 0xc]
jne 0x41b353
mov word [esi], bx
jmp 0x41b38b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041bc27
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41b38e
push 0xd
jmp 0x41b387
mov ecx, dword [ebx*4 + 0x481940]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b385
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b38e
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