joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45fb40
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Execute anti-debugging instructions

Disassembly:
push ebx
push ecx
push edx
push ebp
push esi
push edi
sub esp, 0xc
call dword [esp + 0x28]
mov dword [esp], eax
xor eax, eax
cpuid
rdtsc
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov ecx, 0x2710
xor eax, edx
imul eax, ecx, 0xd
sub edx, eax
add eax, edx
loop 0x45fb63
call dword [esp + 0x28]
sub eax, dword [esp]
cmp eax, 0x46
jb 0x45fb5e
push eax
xor eax, eax
cpuid
rdtsc
sub eax, dword [esp + 8]
sbb edx, dword [esp + 0xc]
pop ebx
imul ebx, ebx, 0x3e8
div ebx
add esp, 0xc
pop edi
pop esi
pop ebp
pop edx
pop edx
pop ebx
ret 4
Function at 0x55b2ae
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x55b2cb
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x55b2bc
add dl, dl
jne 0x55b2d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x55b322
xor eax, eax
add dl, dl
jne 0x55b2e3
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x55b3bf
add dl, dl
jne 0x55b2f2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x55b2fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x55b308
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x55b313
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x55b31d
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x55b2c2
mov eax, 1
add dl, dl
jne 0x55b330
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x55b33b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x55b327
sub eax, 2
jne 0x55b36a
mov ecx, 1
add dl, dl
jne 0x55b350
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x55b35b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x55b347
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x55b2c2
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x55b381
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x55b38c
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x55b378
cmp eax, 0x7d00
jae 0x55b3af
cmp eax, 0x500
jb 0x55b3aa
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x55b2c2
cmp eax, 0x7f
ja 0x55b3b2
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x55b2c2
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x55b3db
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x55b2c2
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8

Function at 0x58d8a0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x5b703c], 0x8088405
inc edx
mov dword [0x5b703c], edx
mul edx
mov eax, edx
ret

Function at 0x594d80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffefc
mov ebp, edx
mov dword [esp], eax
xor ebx, ebx
mov esi, dword [esp]
lea edi, [esp + 4]
mov byte [esi], bl
mov eax, ebx
cdq
idiv ecx
add edx, ebp
mov al, byte [edx]
mov byte [edi], al
inc ebx
inc edi
inc esi
cmp ebx, 0x100
jne 0x594d98
xor esi, esi
mov ebx, 0x100
mov eax, dword [esp]
lea edi, [esp + 4]
mov dl, byte [eax]
xor ecx, ecx
mov cl, dl
add esi, ecx
xor ecx, ecx
mov cl, byte [edi]
add esi, ecx
and esi, 0xff
mov ecx, dword [esp]
mov cl, byte [ecx + esi]
mov byte [eax], cl
mov ecx, dword [esp]
mov byte [ecx + esi], dl
inc edi
inc eax
dec ebx
jne 0x594dbe
mov edx, dword [esp]
mov eax, dword [esp]
add eax, 0x100
mov ecx, 0x100
call fcn.00590a90
add esp, 0x104
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x594e18
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
xor ecx, ecx
xor edx, edx
mov ebx, dword [ebp + 8]
dec ebx
test ebx, ebx
jl 0x594ea9
inc ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0
inc ecx
and cl, 0xff
xor ebx, ebx
mov bl, cl
add dl, byte [eax + ebx]
and dl, 0xff
xor ebx, ebx
mov bl, cl
mov bl, byte [eax + ebx]
mov byte [ebp - 9], bl
mov esi, edx
and esi, 0xff
xor ebx, ebx
mov bl, cl
lea edi, [eax + ebx]
mov bl, byte [eax + esi]
mov byte [edi], bl
mov bl, byte [ebp - 9]
mov byte [eax + esi], bl
xor ebx, ebx
mov bl, cl
mov bl, byte [eax + ebx]
mov esi, edx
and esi, 0xff
add bl, byte [eax + esi]
and bl, 0xff
mov byte [ebp - 9], bl
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0x10]
mov bl, byte [ebx + esi]
movzx esi, byte [ebp - 9]
xor bl, byte [eax + esi]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov byte [esi + edi], bl
inc dword [ebp - 0x10]
dec dword [ebp - 0x14]
jne 0x594e3e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x59c448
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff58
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x58], eax
xor edi, edi
mov dword [ebp - 0x10], 0x67452301
mov dword [ebp - 0xc], 0xefcdab89
mov dword [ebp - 8], 0x98badcfe
mov dword [ebp - 4], 0x10325476
mov eax, ebx
shl eax, 3
mov edx, eax
add edx, dword [ebp - 0x54]
cmp edx, dword [ebp - 0x54]
jae 0x59c491
inc dword [ebp - 0x58]
add dword [ebp - 0x54], eax
mov eax, ebx
shr eax, 0x1d
add dword [ebp - 0x58], eax
mov esi, dword [ebp + 0xc]
cmp ebx, 0x40
jb 0x59c4b9
mov edx, esi
lea eax, [ebp - 0x10]
call fcn.0059c558
add esi, 0x40
sub ebx, 0x40
cmp ebx, 0x40
jae 0x59c4a4
test ebx, ebx
jbe 0x59c4ce
mov edi, ebx
lea eax, [ebp - 0xa8]
mov ecx, edi
mov edx, esi
call fcn.00590a90
push edi
lea esi, [ebp - 0x10]
lea edi, [ebp - 0x68]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
lea edx, [ebp - 0xa8]
lea eax, [ebp - 0x50]
mov ecx, edi
call fcn.00590a90
mov byte [ebp + edi - 0x50], 0x80
lea eax, [edi + 1]
cmp eax, 0x38
jbe 0x59c517
mov edx, 0x40
sub edx, eax
lea eax, [ebp + eax - 0x50]
call fcn.00590aa4
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x68]
call fcn.0059c558
xor eax, eax
mov edx, 0x38
sub edx, eax
lea eax, [ebp + eax - 0x50]
call fcn.00590aa4
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x68]
call fcn.0059c558
mov eax, dword [ebp + 8]
mov edi, eax
lea esi, [ebp - 0x68]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5a6484
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov esi, eax
mov ebp, edi
mov dword [esp], 1
mov cl, 1
mov edx, edi
mov eax, esi
call fcn.005a391c
mov ebx, eax
mov byte [ebp + 0xb4], bl
xor eax, eax
mov al, bl
xor edx, edx
mov dl, byte [esi + 0x10]
add eax, edx
mov edx, eax
and edx, 0xf0
cmp edx, 0x90
jg 0x5a64da
je 0x5a653a
sub edx, 1
jb 0x5a64f0
sub edx, 0x2f
je 0x5a6507
sub edx, 0x50
je 0x5a6529
jmp 0x5a66e1
sub edx, 0xa0
je 0x5a6553
sub edx, 0x10
je 0x5a6641
jmp 0x5a66e1
cmp eax, 2
jae 0x5a66e1
mov edx, edi
mov eax, esi
call fcn.005a2538
jmp 0x5a66e1
cmp eax, 0x31
jne 0x5a66e1
mov eax, dword [ebp + 0x94]
xor edx, edx
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x90]
mov dword [ebp + 0x20], eax
jmp 0x5a66e1
mov edx, edi
mov eax, esi
call fcn.005a4590
mov dword [esp], eax
jmp 0x5a66e1
mov edx, ebx
add dl, byte [esi + 0x10]
and dl, 0xf
mov ecx, edi
mov eax, esi
call fcn.005a62dc
mov dword [esp], eax
jmp 0x5a66e1
xor edx, edx
mov dl, byte [ebp + 0xb4]
xor eax, eax
mov al, byte [esi + 0x10]
add edx, eax
mov eax, edx
and eax, 7
cmp eax, 4
je 0x5a6571
cmp eax, 5
jne 0x5a657f
mov edx, edi
mov eax, esi
call fcn.005a377c
jmp 0x5a66e1
cmp edx, 0xaf
jne 0x5a65e8
push edi
lea ecx, [ebp + 0xa2]
lea edx, [ebp + 0xa7]
mov eax, esi
call fcn.005a234c
lea edx, [ebp + 0xa2]
mov ecx, edi
mov eax, esi
call fcn.005a260c
mov ebx, eax
lea edx, [ebp + 0xa7]
mov ecx, edi
mov eax, esi
call fcn.005a260c
imul ebx, eax
push edi
lea edx, [ebp + 0xa7]
mov ecx, ebx
mov eax, esi
call fcn.005a2698
mov eax, ebx
xor edx, edx
push edx
push eax
mov ecx, edi
mov dl, byte [ebp + 0xac]
mov eax, esi
call fcn.005a2728
jmp 0x5a66e1
cmp edx, 0xa2
jne 0x5a66e1
mov eax, dword [ebp + 0x20]
sub eax, 1
jb 0x5a6603
je 0x5a6624
jmp 0x5a66e1
mov dword [ebp + 0x20], 2
mov dword [ebp + 0x2c], 0x756e6547
mov dword [ebp + 0x24], 0x6c65746e
mov dword [ebp + 0x28], 0x49656e69
jmp 0x5a66e1
mov dword [ebp + 0x20], 0xf10
mov dword [ebp + 0x2c], 0xb
xor eax, eax
mov dword [ebp + 0x24], eax
xor eax, eax
mov dword [ebp + 0x28], eax
jmp 0x5a66e1
xor eax, eax
mov al, byte [ebp + 0xb4]
xor edx, edx
mov dl, byte [esi + 0x10]
add eax, edx
and eax, 7
cmp eax, 6
jne 0x5a6664
mov dword [ebp + 0xac], 1
jmp 0x5a666e
mov dword [ebp + 0xac], 2
push edi
lea ecx, [ebp + 0xa2]
lea edx, [ebp + 0xa7]
mov eax, esi
call fcn.005a234c
lea edx, [ebp + 0xa2]
mov ecx, edi
mov eax, esi
call fcn.005a260c
mov ebx, eax
xor eax, eax
mov al, byte [ebp + 0xb4]
xor edx, edx
mov dl, byte [esi + 0x10]
add eax, edx
test al, 8
je 0x5a66c7
cmp dword [ebp + 0xac], 1
jne 0x5a66bc
mov edx, ebx
mov eax, esi
call fcn.005a1d94
mov ebx, eax
jmp 0x5a66c7
mov edx, ebx
mov eax, esi
call fcn.005a1d90
mov ebx, eax
mov dword [ebp + 0xac], 4
push edi
lea edx, [ebp + 0xa7]
mov ecx, ebx
mov eax, esi
call fcn.005a2698
mov eax, dword [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5adb14
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ecx
push edx
push esi
push edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
add eax, 0xc
mov ecx, dword [eax]
cmp ecx, eax
je 0x5adb42
mov edx, ecx
mov ecx, dword [ecx]
cmp dword [edx + 8], 0
je 0x5adb42
push dword [edx + 0x18]
call fcn.005ad998
jmp 0x5adb2a
pop edi
pop esi
pop edx
pop ecx
ret
Function at 0x5be651
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x5be66e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x5be65f
add dl, dl
jne 0x5be679
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x5be6c5
xor eax, eax
add dl, dl
jne 0x5be686
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x5be762
add dl, dl
jne 0x5be695
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x5be6a0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x5be6ab
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x5be6b6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x5be6c0
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x5be665
mov eax, 1
add dl, dl
jne 0x5be6d3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x5be6de
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x5be6ca
sub eax, 2
jne 0x5be70d
mov ecx, 1
add dl, dl
jne 0x5be6f3
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x5be6fe
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x5be6ea
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5be665
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x5be724
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x5be72f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x5be71b
cmp eax, 0x7d00
jae 0x5be752
cmp eax, 0x500
jb 0x5be74d
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5be665
cmp eax, 0x7f
ja 0x5be755
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5be665
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x5be77e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5be665
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8
Function at 0x401fd5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x428040]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [0x48a698]
xor ebx, ebx
push edi
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov dword [esp + 0x18], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x402045
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.004029da
lea ecx, [esp + 0x1c]
call fcn.00401e05
cmp eax, dword [esp + 0x10]
je 0x40205c
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00402a67
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x402015
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406cb1
mov esp, ebp
pop ebp
ret
mov edx, str.QwruxAA
call fcn.00402da6
push eax
call fcn.00403028
mov edx, dword [esp + 0x1c]
pop ecx
mov eax, dword [edx + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00402a67
jmp 0x402047

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

Disassembly:
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 [0x48a698], eax
pop edi
pop esi
ret

Function at 0x404c0b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x404c2c
jl 0x404c23
test edi, edi
jne 0x404c2c
xor eax, eax
xor edx, edx
jmp 0x404ced
cmp dword [ebx + 0x38], 0
je 0x404c41
push eax
push edi
push dword [ebp + 8]
call fcn.00404cf3
jmp 0x404ced
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x404c88
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x404c88
cmp eax, edi
jb 0x404c62
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00407b20
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x404c8e
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x404ce2
mov ecx, ebx
call fcn.0040445b
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x404ccd
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040c50c
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x404ce2
jmp 0x404ca0
test edx, edx
je 0x404ce2
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040c50c
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x4135d6
Capabilities:
Read file on windows

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

Function at 0x4135e1
Capabilities:
Read file on windows

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

Function at 0x4139db
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407a70
mov eax, dword [0x428040]
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.0041246d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x413a1d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x413b79
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041d110
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 + 0x48a360]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00414bab
mov ecx, dword [esi*4 + 0x48a360]
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 0x413b72
cmp eax, dword [edi + ecx + 0x24]
jne 0x413b72
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 0x413b72
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00414bab
add esp, 0x14
test edx, edx
jl 0x413b72
jg 0x413ae8
test eax, eax
jb 0x413b72
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x413b72
jl 0x413b02
cmp dword [ebp - 0x1008], eax
ja 0x413b72
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x413b20
test ebx, ebx
je 0x413b59
cmp ecx, edi
jae 0x413b59
mov al, byte [ecx]
cmp al, 0xd
jne 0x413b3a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x413b46
cmp byte [ecx + 1], 0xa
jne 0x413b46
inc ecx
jmp 0x413b46
movzx eax, al
movsx eax, byte [eax + 0x4282f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x413b20
cmp edx, ebx
jne 0x413b20
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x413b77
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406cb1
leave
ret
Function at 0x414049
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 + 0x48a360]
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 0x414089
cmp byte [ebx], 0xa
jne 0x414089
or byte [eax + edi + 0x28], 4
jmp 0x41408e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41418c
mov al, byte [edx]
cmp al, 0x1a
je 0x41416e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4140bd
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4140e2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4140ec
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 0x41409f
jmp 0x41418c
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 0x414169
cmp dword [ebp - 0xc], 0
je 0x414169
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x48a360]
test byte [eax + edi + 0x28], 0x48
je 0x414143
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41412e
mov byte [esi], dl
jmp 0x41413f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x48a360]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41418c
cmp byte [ebp - 1], 0xa
jne 0x414152
cmp esi, ebx
jne 0x414152
mov byte [esi], 0xa
jmp 0x41418b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00414bc9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41418c
mov byte [esi], 0xd
jmp 0x41418b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x48a360]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414188
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41418c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x414195
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 + 0x48a360]
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 0x4141d8
cmp word [esi], dx
jne 0x4141d8
or byte [edi + eax + 0x28], 4
jmp 0x4141dd
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 0x414330
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 0x414310
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41421f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x414255
cmp eax, edx
jae 0x414261
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 0x4141f7
jmp 0x414330
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 0x41430c
cmp dword [ebp - 0x14], 0
je 0x41430c
mov eax, dword [ebx*4 + 0x48a360]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4142e4
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4142ad
mov word [esi], cx
jmp 0x4142e0
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x48a360]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x48a360]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x48a360]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x414330
pop ebx
cmp word [ebp - 4], bx
jne 0x4142f5
cmp esi, dword [ebp + 0xc]
jne 0x4142f5
mov word [esi], bx
jmp 0x41432d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00414bc9
add esp, 0x10
cmp word [ebp - 4], bx
je 0x414330
push 0xd
jmp 0x414329
mov ecx, dword [ebx*4 + 0x48a360]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414327
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x414330
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