joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002dad0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100752b9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10093940]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
lea edi, [ebx + 0x30]
mov byte [ebx + 0x2c], 0
mov dword [ebp - 0x14], edi
mov dword [edi], 0
mov dword [edi + 4], 0
push 0x10
mov byte [ebp - 4], 3
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.10049b25
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 8], eax
push 0x400
mov byte [ebp - 4], 4
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.10049f1c
mov esi, eax
add esp, 8
test esi, esi
je 0x1002dbb9
push 0x400
push 0
push esi
call fcn.1004baa0
add esp, 0xc
jmp 0x1002dbbb
xor esi, esi
push esi
mov ecx, edi
call fcn.1002e360
mov dword [ebx + 0x60], 1
mov dword [ebx + 0x64], 0x7f000000
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x74], 0xffffffff
mov word [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x88], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
mov byte [ebx + 0x5c], 0
xor ebx, ebx
mov esi, dword [edi]
mov esi, dword [ebx + esi]
mov eax, esi
test esi, esi
je 0x1002dc50
nop
mov esi, dword [esi]
mov ecx, edi
push eax
call fcn.100191b0
mov eax, esi
test esi, esi
jne 0x1002dc40
mov eax, dword [edi]
mov dword [ebx + eax], 0
add ebx, 4
cmp ebx, 0x400
jb 0x1002dc33
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002e920
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
mov eax, 0xaaaaaaab
mul ebx
push ebp
push esi
push edi
mov edi, edx
mov ebp, ecx
shr edi, 2
mov esi, ebx
mov eax, 0xaaaaaaab
lea ecx, [edi + edi*2]
add ecx, ecx
sub esi, ecx
mul esi
mov ecx, esi
shr edx, 1
lea eax, [edx + edx*2]
mov edx, dword [esp + 0x28]
sub ecx, eax
mov eax, ebx
shl eax, 5
xor bh, bh
add eax, dword [ebp + 0x14]
cmp esi, 3
movups xmm0, xmmword [edx]
mov dword [esp + 0x18], ecx
lea ecx, [edi*8]
mov dword [esp + 0x10], ecx
movups xmmword [eax], xmm0
movups xmm0, xmmword [edx + 0x10]
movups xmmword [eax + 0x10], xmm0
sbb eax, eax
inc eax
mov dword [esp + 0x1c], eax
mov eax, edx
mov dword [esp + 0x14], eax
nop dword [eax]
mov bl, bh
mov esi, eax
add bl, 3
mov edi, 4
shl bl, 2
nop
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + eax]
movzx eax, byte [esi]
push eax
mov al, bl
mov edx, dword [ecx]
shl al, 2
add al, byte [esp + 0x1c]
movzx eax, al
push eax
push dword [esp + 0x24]
call dword [edx + 0x28]
mov ecx, dword [esp + 0x10]
lea esi, [esi + 7]
inc bl
sub edi, 1
jne 0x1002e9a0
mov eax, dword [esp + 0x14]
inc bh
inc eax
mov dword [esp + 0x14], eax
cmp bh, 7
jb 0x1002e990
mov eax, dword [ebp + 8]
mov edi, ecx
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ecx, dword [edi + eax]
mov eax, dword [esp + 0x28]
mov edx, dword [ecx]
movzx eax, byte [eax + 0x1c]
push eax
lea eax, [ebx - 0x50]
movzx eax, al
push eax
push esi
call dword [edx + 0x28]
mov edx, dword [ebp + 0x20]
sub bl, 0x4c
add edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov cl, byte [ecx + 0x1d]
xor cl, byte [edx]
and cl, 0x3f
xor byte [edx], cl
mov eax, dword [ebp + 8]
mov ecx, dword [edi + eax]
mov eax, dword [ebp + 0x20]
mov edi, dword [esp + 0x24]
mov edx, dword [ecx]
movzx eax, byte [eax + edi]
push eax
movzx eax, bl
push eax
push esi
call dword [edx + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x1002ee20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100753ad
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10093940]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
mov ebx, 0x6059dcf9
mov dword [ecx + 0x10], eax
mov eax, 0xac44
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0xac44
mov dword [ecx + 0xc], 0x750ab6
mov byte [ecx + 0x14], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x28], 0
mov ecx, 0x90
mul ecx
mov edi, eax
mov ecx, edx
shld ecx, edi, 0xa
shl edi, 0xa
mov eax, edi
mov dword [ebp - 0x1c], edi
mul ebx
mov eax, edi
mov dword [ebp + 8], ecx
mov esi, edx
mov edx, 0x17f7dfc9
mul edx
mov edi, eax
mov dword [ebp - 0x10], edx
mov eax, ecx
mul ebx
mov ecx, eax
mov ebx, edx
mov eax, dword [ebp + 8]
mov edx, 0x17f7dfc9
mul edx
add ecx, esi
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
adc ebx, 0
add edi, ecx
mov ecx, dword [ebp - 0x10]
adc ecx, 0
xor eax, eax
add ebx, ecx
mov ecx, dword [ebp - 0x14]
adc eax, eax
add ecx, ebx
mov ebx, dword [ebp - 0x1c]
adc edx, eax
mov eax, dword [ebp + 8]
sub ebx, ecx
sbb eax, edx
shrd ebx, eax, 1
shr eax, 1
add ebx, ecx
adc eax, edx
shrd ebx, eax, 0x16
mov dword [esi + 0x2c], ebx
push 2
mov dword [ebp - 4], 0
mov dword [esi], vtable.NukedOPN2.0
call fcn.10034190
push 0x8560
call fcn.10049b25
add esp, 8
mov dword [esi + 0x30], eax
mov ecx, esi
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.1002f7b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10030230
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100753ec
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10093940]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
mov ebx, 0x6059dcf9
mov dword [ecx + 0x10], eax
mov eax, 0xac44
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0xac44
mov dword [ecx + 0xc], 0x750ab6
mov byte [ecx + 0x14], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x28], 0
mov ecx, 0x90
mul ecx
mov edi, eax
mov ecx, edx
shld ecx, edi, 0xa
shl edi, 0xa
mov eax, edi
mov dword [ebp - 0x1c], edi
mul ebx
mov eax, edi
mov dword [ebp + 8], ecx
mov esi, edx
mov edx, 0x17f7dfc9
mul edx
mov edi, eax
mov dword [ebp - 0x10], edx
mov eax, ecx
mul ebx
mov ecx, eax
mov ebx, edx
mov eax, dword [ebp + 8]
mov edx, 0x17f7dfc9
mul edx
add ecx, esi
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
adc ebx, 0
add edi, ecx
mov ecx, dword [ebp - 0x10]
adc ecx, 0
mov dword [esi + 0x30], 0
xor eax, eax
add ebx, ecx
mov ecx, dword [ebp - 0x14]
adc eax, eax
add ecx, ebx
mov ebx, dword [ebp - 0x1c]
adc edx, eax
mov eax, dword [ebp + 8]
sub ebx, ecx
sbb eax, edx
shrd ebx, eax, 1
shr eax, 1
add ebx, ecx
adc eax, edx
shrd ebx, eax, 0x16
mov dword [esi + 0x2c], ebx
push 0x14
mov dword [ebp - 4], 0
mov dword [esi], vtable.GensOPN2.0
call fcn.10049b25
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x10030354
mov ecx, eax
call fcn.1003d280
mov ecx, eax
jmp 0x10030356
xor ecx, ecx
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov dword [esi + 0x434], ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0
cmp byte [esi + 0x14], 0
mov byte [ebp - 4], 0
mov dword [esi + 0x28], 0
jne 0x100303ac
mov eax, dword [esi + 0x10]
sub eax, 0
je 0x100303a7
sub eax, 1
mov eax, 0xd8aa
je 0x100303ac
mov eax, 0xd013
push eax
push edx
call fcn.1003e340
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10030e70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100753ad
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10093940]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
mov ebx, 0x6059dcf9
mov dword [ecx + 0x10], eax
mov eax, 0xac44
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0xac44
mov dword [ecx + 0xc], 0x750ab6
mov byte [ecx + 0x14], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x28], 0
mov ecx, 0x90
mul ecx
mov edi, eax
mov ecx, edx
shld ecx, edi, 0xa
shl edi, 0xa
mov eax, edi
mov dword [ebp - 0x1c], edi
mul ebx
mov eax, edi
mov dword [ebp + 8], ecx
mov esi, edx
mov edx, 0x17f7dfc9
mul edx
mov edi, eax
mov dword [ebp - 0x10], edx
mov eax, ecx
mul ebx
mov ecx, eax
mov ebx, edx
mov eax, dword [ebp + 8]
mov edx, 0x17f7dfc9
mul edx
add ecx, esi
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
adc ebx, 0
add edi, ecx
mov ecx, dword [ebp - 0x10]
adc ecx, 0
mov dword [esi + 0x30], 0
xor eax, eax
add ebx, ecx
mov ecx, dword [ebp - 0x14]
adc eax, eax
add ecx, ebx
mov ebx, dword [ebp - 0x1c]
adc edx, eax
mov eax, dword [ebp + 8]
sub ebx, ecx
sbb eax, edx
shrd ebx, eax, 1
shr eax, 1
add ebx, ecx
adc eax, edx
shrd ebx, eax, 0x16
mov dword [esi + 0x2c], ebx
push 0x10c
mov dword [ebp - 4], 0
mov dword [esi], vtable.MameOPNA.0
call fcn.10049b25
mov dword [esi + 0x434], eax
add esp, 4
mov ecx, esi
mov dword [eax + 0x100], 0
mov eax, dword [esi + 0x434]
mov dword [eax + 0x104], 0
mov eax, dword [esi + 0x434]
mov dword [eax + 0x108], 0
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.10031a10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10031d10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100753ad
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10093940]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
mov ebx, 0x6059dcf9
mov dword [ecx + 0x10], eax
mov eax, 0xac44
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0xac44
mov dword [ecx + 0xc], 0x750ab6
mov byte [ecx + 0x14], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x28], 0
mov ecx, 0x90
mul ecx
mov edi, eax
mov ecx, edx
shld ecx, edi, 0xa
shl edi, 0xa
mov eax, edi
mov dword [ebp - 0x1c], edi
mul ebx
mov eax, edi
mov dword [ebp + 8], ecx
mov esi, edx
mov edx, 0x17f7dfc9
mul edx
mov edi, eax
mov dword [ebp - 0x10], edx
mov eax, ecx
mul ebx
mov ecx, eax
mov ebx, edx
mov eax, dword [ebp + 8]
mov edx, 0x17f7dfc9
mul edx
add ecx, esi
mov dword [ebp - 0x14], eax
adc ebx, 0
add edi, ecx
mov ecx, dword [ebp - 0x10]
adc ecx, 0
mov edi, dword [ebp - 0x20]
xor eax, eax
add ebx, ecx
mov ecx, dword [ebp - 0x14]
adc eax, eax
add ecx, ebx
mov ebx, dword [ebp - 0x1c]
adc edx, eax
mov dword [edi + 0x30], 0
mov eax, dword [ebp + 8]
sub ebx, ecx
sbb eax, edx
shrd ebx, eax, 1
shr eax, 1
add ebx, ecx
adc eax, edx
shrd ebx, eax, 0x16
mov dword [edi + 0x2c], ebx
push 0x12ac
push 1
mov dword [ebp - 4], 0
mov dword [edi], vtable.NP2OPNA_class_FM::OPNA_.0
call fcn.10054dd3
add esp, 8
mov esi, eax
mov ecx, esi
call fcn.10042380
push 0
push 0
push dword [edi + 8]
mov ecx, esi
mov dword [edi + 0x434], eax
push dword [edi + 0xc]
call fcn.10042cd0
push 0x9f
push 0x29
mov ecx, esi
call fcn.10043fb0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10046620
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
movsd xmm0, qword [0x1007bd88]
xorps xmm1, xmm1
push ebp
push esi
push edi
mov ebp, ecx
call fcn.10057f80
mulsd xmm0, qword [0x1007cd68]
mov edx, 0x100938f4
movsd xmm1, qword [0x1007cd60]
nop word [eax + eax]
cvttsd2si eax, xmm0
divsd xmm0, xmm1
mov dword [edx], eax
sub edx, 4
cmp edx, 0x10093880
jge 0x10046650
mov dword [0x1009387c], 0
mov edx, 0x10157118
mov dword [0x10093878], 0
xor edi, edi
push ebx
movzx eax, byte [edi + 0x100938f8]
mov esi, 0x20
mov cl, byte [eax + 0x10093918]
mov bl, byte [eax + 0x1009391c]
nop dword [eax]
movzx eax, cl
add cl, bl
mov eax, dword [eax*4 + 0x10093878]
mov dword [edx], eax
add edx, 4
sub esi, 1
jne 0x100466a0
inc edi
cmp edi, 0x20
jl 0x10046681
mov ecx, dword [ebp + 0x58]
mov dword [ebp + 0x58], ecx
pop ebx
test cl, 1
je 0x100466d8
movzx eax, byte [ebp + 8]
and eax, 0xf
mov eax, dword [eax*8 + 0x1009387c]
jmp 0x100466da
xor eax, eax
mov dword [ebp + 0x14], eax
test cl, 2
je 0x100466f2
movzx eax, byte [ebp + 9]
and eax, 0xf
mov eax, dword [eax*8 + 0x1009387c]
jmp 0x100466f4
xor eax, eax
mov dword [ebp + 0x18], eax
test cl, 4
je 0x1004670c
movzx eax, byte [ebp + 0xa]
and eax, 0xf
mov eax, dword [eax*8 + 0x1009387c]
jmp 0x1004670e
xor eax, eax
mov dword [ebp + 0x1c], eax
cmp dword [0x10158118], 0
jne 0x1004675d
mov ecx, 0x37f1
mov edi, 0x10158118
xor edx, edx
lea esi, [edx + 0x20]
nop dword [eax]
mov eax, ecx
and eax, 1
lea edx, [eax + edx*2]
lea eax, [ecx*4]
xor eax, ecx
sar ecx, 1
and eax, 4
shl eax, 0xe
or ecx, eax
sub esi, 1
jne 0x10046730
mov dword [edi], edx
add edi, 4
cmp edi, 0x1015a118
jl 0x10046724
mov ecx, ebp
call fcn.10047270
pop edi
pop esi
mov dword [ebp + 0x58], 0x3f
mov eax, ebp
pop ebp
ret
Function at 0x10047940
Capabilities:
Read file on windows

Disassembly:
test byte [ecx + 8], 1
push esi
mov esi, dword [esp + 0xc]
je 0x1004796b
push dword [ecx + 4]
push esi
push 1
push dword [esp + 0x14]
call fcn.10059dd5
add esp, 0x10
or ecx, 0xffffffff
test eax, eax
cmove esi, ecx
mov eax, esi
pop esi
ret 8
or eax, 0xffffffff
pop esi
ret 8

Function at 0x10048d00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 8], esi
test eax, eax
jg 0x10048d25
jl 0x10048d1c
test ebx, ebx
jne 0x10048d25
xor eax, eax
xor edx, edx
jmp 0x10048de2
cmp dword [esi + 0x38], 0
je 0x10048d3a
push eax
push ebx
push dword [ebp + 8]
call fcn.10048de8
jmp 0x10048de2
mov eax, dword [esi + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x10048d7d
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x10048d7d
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push ecx
push dword [ebp + 8]
call fcn.1004b4b0
mov ecx, dword [ebp - 8]
sub edi, esi
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, esi
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x10048d83
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [esi + 0x4c], 0
je 0x10048dd7
mov ecx, esi
call fcn.10048593
mov ecx, dword [ebp - 4]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x10048dc2
push dword [esi + 0x4c]
push eax
push 1
push ecx
call fcn.10059dd5
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x10048dd7
jmp 0x10048d95
test edx, edx
je 0x10048dd7
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.10059dd5
add esp, 0x10
sub edi, eax
mov edx, dword [ebp + 0x10]
sub ebx, edi
mov eax, ebx
sbb edx, 0
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1004a822
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x1004a857
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x1004a854
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x1004a860
add edx, 0x28
cmp edx, esi
jne 0x1004a842
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x1004a85d
Function at 0x1005a71a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10049f80
mov eax, dword [0x10093940]
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.100605b9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1005a75c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1005a8b8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1004a1b0
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 + 0x1015aac0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10065860
mov ecx, dword [esi*4 + 0x1015aac0]
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 0x1005a8b1
cmp eax, dword [ecx + edi + 0x24]
jne 0x1005a8b1
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 0x1005a8b1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10065860
add esp, 0x14
test edx, edx
jl 0x1005a8b1
jg 0x1005a827
test eax, eax
jb 0x1005a8b1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1005a8b1
jl 0x1005a841
cmp dword [ebp - 0x1008], eax
ja 0x1005a8b1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1005a85f
test ebx, ebx
je 0x1005a898
cmp ecx, edi
jae 0x1005a898
mov al, byte [ecx]
cmp al, 0xd
jne 0x1005a879
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1005a885
cmp byte [ecx + 1], 0xa
jne 0x1005a885
inc ecx
jmp 0x1005a885
movzx eax, al
movsx eax, byte [eax + 0x10093c00]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1005a85f
cmp edx, ebx
jne 0x1005a85f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1005a8b6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10049b12
leave
ret

Function at 0x1005e9f2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1005ea31
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1005ea31
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005ea31
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1005ea31
cmp dword [ecx + 0x74], 0xe
jbe 0x1005ea31
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100635cb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10085a20
push 0x10085a18
push str.FlsAlloc
push 0x1f
call fcn.10063493
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100635ff
push dword [ebp + 8]
mov ecx, esi
call dword [0x10076194]
call esi
jmp 0x10063605
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10063649
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10085a30
push 0x10085a28
push str.FlsGetValue
push 0x21
call fcn.10063493
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10063680
push dword [ebp + 8]
mov ecx, esi
call dword [0x10076194]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10063688
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10085a38
push 0x10085a30
push str.FlsSetValue
push 0x22
call fcn.10063493
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100636c2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10076194]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10064b5e
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 + 0x1015aac0]
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 0x10064b9e
cmp byte [ebx], 0xa
jne 0x10064b9e
or byte [edi + eax + 0x28], 4
jmp 0x10064ba3
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 0x10064ca2
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10064c85
inc eax
cmp dl, 0xd
je 0x10064bcf
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10064bf5
cmp eax, ecx
jae 0x10064c03
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 0x10064bb7
jmp 0x10064ca2
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 0x10064c80
cmp dword [ebp - 0x10], 0
je 0x10064c80
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1015aac0]
test byte [eax + edi + 0x28], 0x48
je 0x10064c5a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10064c45
mov byte [esi], dl
jmp 0x10064c56
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1015aac0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10064ca2
cmp byte [ebp - 1], 0xa
jne 0x10064c69
cmp esi, ebx
jne 0x10064c69
mov byte [esi], 0xa
jmp 0x10064ca1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1006587e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10064ca2
mov byte [esi], 0xd
jmp 0x10064ca1
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1015aac0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10064c9f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10064ca2
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret