joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1015cf6f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [ebp + 8]
mov dword [0x102db164], 0xaa5
mov ecx, dword [0x102db168]
add ecx, 0xffffd942
mov dword [0x102db168], ecx
mov dword [ebp - 0x10], eax
call fcn.1015e3b5
xor ecx, ecx
mov dword [0x102db168], 0x1d70
mov edx, eax
mov esi, dword [eax + 0x3c]
mov dword [0x102db164], 0x9d6
mov dword [0x102db168], 0x84a
mov esi, dword [eax + esi + 0x78]
mov dword [0x102db164], 0x13d1
mov dword [0x102db168], 0x1706
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
je 0x1015d0ff
jmp 0x1015d02d
mov eax, dword [ebp - 0x28]
mov ecx, eax
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x31], bh
mov byte [ebp - 0x32], cl
je 0x1015d08f
jmp 0x1015d063
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
add eax, dword [eax + ecx + 0x24]
mov dword [ebp - 0x38], eax
xor eax, eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
jmp 0x1015d047
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edx
jmp 0x1015d002
mov eax, dword [ebp - 0x30]
add eax, 1
mov cl, byte [ebp - 0x31]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x32]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x28], eax
jne 0x1015d002
mov al, byte [ebp - 0x32]
test al, 1
jne 0x1015d0c8
jmp 0x1015d098
xor eax, eax
mov ecx, dword [ebp - 0x48]
add ecx, 2
mov dword [0x102db164], 0xd28
mov edx, dword [ebp - 0x44]
add edx, 1
mov esi, dword [ebp - 0x18]
cmp edx, esi
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x24], eax
jb 0x1015d047
jmp 0x1015d0ff
mov eax, dword [ebp - 0x48]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x102db164], 0x547
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [0x102db168], 0x1a0f
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x24], eax
jmp 0x1015d0ff
mov eax, dword [ebp - 0x24]
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1015d10a
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x102db164]
add eax, 0xfffffadd
mov dword [0x102db164], eax
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x3c]
mov dword [0x102db168], 0x15f7
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], eax
jmp 0x1015d185
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [0x102db164], 0x28a1
mov dword [0x102db168], 0x2cb8
mov edx, dword [ebp - 0x10]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
je 0x1015d1c6
jmp 0x1015d298
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], edx
je 0x1015d155
mov eax, dword [ebp - 0x24]
add eax, 1
cmp eax, 0x104
setl cl
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x29], cl
mov al, byte [ebp - 0x29]
test al, 1
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
jne 0x1015d185
jmp 0x1015d155
mov dword [0x102db164], 0x7d9
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff4
mov dword [ebp - 0x30], eax
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
cmp word [ecx + edx*2], 0x6f
mov dword [ebp - 0x20], eax
jne 0x1015d298
xor eax, eax
mov dword [0x102db164], 0x3dce
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x20], eax
jne 0x1015d298
xor eax, eax
mov dword [0x102db164], 0x20ef
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x20], eax
jne 0x1015d298
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x20], eax
jne 0x1015d298
mov dword [0x102db164], 0x1c90
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x10], 0x6c
sete dl
mov byte [ebp - 0x31], dl
xor eax, eax
mov cl, byte [ebp - 0x31]
test cl, 1
mov dword [ebp - 0x20], eax
jne 0x1015d272
jmp 0x1015d298
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
jne 0x1015d298
mov eax, 1
mov dword [0x102db164], 0x8a6
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add esp, 0x34
pop ebp
ret
Function at 0x1015d807
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x102db170], 0
mov byte [0x102db174], 0
mov dword [0x102db168], 0x2272
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
xor eax, eax
mov ecx, dword [0x102db164]
add ecx, 0xffffe432
mov dword [0x102db164], ecx
mov dword [0x102db16c], 0
mov dword [ebp - 0x1c], eax
jmp 0x1015d880
xor eax, eax
mov dword [0x102db16c], 0
mov ecx, dword [0x102db164]
add ecx, 0xfffff4ce
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
jmp 0x1015d8b2
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x102db168], 0xde5
mov eax, dword [0x102db16c]
add eax, 1
mov dword [0x102db16c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1015d880
jmp 0x1015d860
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, 0x1831
mov esi, 0x100
mov dword [0x102db178], 0
mov edi, dword [0x102db170]
mov ebx, dword [ebp - 0x18]
movzx ebx, byte [ebx + eax]
add ebx, edi
mov dword [ebp - 0x28], eax
xor edi, edi
mov dword [ebp - 0x2c], edx
mov edx, edi
mov edi, dword [ebp - 0x10]
div edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add ebx, edx
mov dword [0x102db178], ebx
mov dword [0x102db168], 0x1119
mov eax, ebx
cdq
idiv esi
mov dword [0x102db170], edx
mov dword [0x102db164], ecx
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
mov cl, byte [ecx + esi]
mov byte [0x102db174], cl
mov dword [0x102db168], 0x249d
mov ebx, dword [ebp - 0x18]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov dword [0x102db168], 0x1076
mov cl, byte [0x102db174]
mov edx, dword [0x102db170]
mov byte [ebx + edx], cl
mov dword [0x102db164], 0x2363
mov edx, dword [0x102db16c]
add edx, 1
mov dword [0x102db16c], edx
cmp edx, 0x100
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
jl 0x1015d8b2
mov dword [0x102db164], 0x3cc4
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1015dab2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [0x102db164], 0x12cc
lea eax, [fcn.1015dab2]
mov ecx, dword [0x102db168]
add ecx, 0xfffff509
mov dword [0x102db168], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
jmp 0x1015daf2
mov eax, dword [ebp - 0xc]
mov dword [0x102db168], eax
mov eax, dword [ebp - 0x10]
add esp, 0x14
pop ebp
ret
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, ecx
add edx, 0x5c2
cmp word [eax], 0x5a4d
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], edx
jne 0x1015db1f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
je 0x1015dae2
mov eax, dword [ebp - 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov ecx, dword [ebp - 0x14]
add ecx, 0x164a
mov dword [0x102db164], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
jmp 0x1015daf2
Function at 0x1015db46
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [0x102c8443]
mov esi, 0xe
lea edi, [ebp - 0x28]
mov dword [0x102db164], 0xfffff764
mov dword [0x102db168], 0xe7d
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0xe
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
call fcn.1015e1c2
mov dword [0x102db168], 0xefc
mov dword [0x102db164], 0x784
call fcn.1015dcc6
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.1015dd9b
xor ecx, ecx
mov dword [0x102db168], 0xe3a
mov dword [0x102db164], 0x162c
cmp eax, 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
je 0x1015dc8a
mov eax, dword [ebp - 0x3c]
mov dword [0x102db164], 0xbfe
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x44], eax
call fcn.1015d6cc
mov eax, dword [ebp - 0x44]
mov word [eax], 0x5a4d
mov dword [eax + 0x3c], 0xd0
mov dword [eax + 0xd0], 0x4550
xor eax, eax
mov ecx, dword [ebp - 0x44]
add ecx, 0xffc00000
mov dword [0x102db168], 0x2241
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x34], ecx
mov ecx, dword [ebp - 0x44]
mov dword [edx + 0x24], ecx
mov dword [0x102db164], 0x20d7
cmp ecx, 0
mov dword [ebp - 0x40], eax
je 0x1015dc8a
mov eax, dword [ebp - 0x44]
add eax, 0x1d4b
mov dword [0x102db164], 0x556
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x4c
pop esi
pop edi
pop ebp
ret
Function at 0x1015df1e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x168
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x102db164], 0x1b78
mov dword [0x102db168], 0x1566
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, eax, 0x84
mov edi, edx
add edi, esi
add edi, 0x80
mov esi, dword [edi]
imul edi, eax, 0x84
add edx, edi
add edx, 0x2c
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x1d4
mov ecx, edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x1015df57
lea eax, [0x102c8443]
mov ecx, 0xe
lea edx, [ebp - 0x12c]
mov dword [0x102db164], 0x14bc
mov dword [0x102db168], 0xfffff816
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x144], ecx
call fcn.1015e1c2
mov dword [0x102db164], 0x784
call fcn.1015dcc6
mov dword [esp], eax
mov eax, dword [ebp - 0x140]
mov dword [esp + 4], eax
call fcn.1015dd9b
mov dword [0x102db184], eax
mov dword [0x102db164], 0x867
mov ecx, esp
mov edx, dword [ebp - 0x13c]
mov dword [ecx + 4], edx
mov dword [ecx + 0xc], 4
mov dword [ecx + 8], 0x1000
mov dword [ecx], 0
call eax
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], ecx
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x14c]
lea edx, section..data
imul esi, eax, 0x84
mov edi, edx
add edi, esi
add edi, 0x80
imul esi, eax, 0x84
mov ebx, edx
add ebx, esi
add ebx, 0x2c
mov esi, eax
add esi, 1
imul eax, eax, 0x84
add edx, eax
mov eax, dword [ebp - 0x148]
add eax, ecx
mov edi, dword [edi]
mov edx, dword [edx]
movzx ebx, word [ebx]
xor ebx, edi
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x15c], ebx
call fcn.1015e27b
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x158]
add eax, ecx
mov edx, dword [ebp - 0x154]
cmp edx, 0x1d4
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x14c], eax
jne 0x1015e05f
lea eax, [0x102c8451]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [0x102db164], 0x2154
mov dword [0x102db168], 0x4610
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x164], ecx
call fcn.1015d807
mov eax, dword [0x102db164]
add eax, 0x170f
mov dword [0x102db168], eax
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
mov ecx, dword [ebp - 0x148]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x13c]
mov dword [esp + 0xc], edx
call fcn.1015e522
xor eax, eax
mov ecx, dword [ebp - 0x148]
add ecx, 0xe5d2c
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x128600
mov ecx, dword [ebp - 0x148]
add ecx, 0xd9b05
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x20d0
mov dword [0x102db168], 0x1682
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1015e522
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x102db16c], 0
mov dword [0x102db170], 0
mov dword [0x102db17c], 0
mov dword [0x102db164], 0x1445
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
mov edx, eax
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
je 0x1015e6c8
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x102db164], 0x1a3e
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x102db16c], edx
mov dword [0x102db168], 0x263
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x102db170], edx
mov dword [0x102db168], 0x25c1
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x102db174], cl
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov edx, dword [0x102db168]
add edx, 0x1fb5
mov dword [0x102db164], edx
mov cl, byte [0x102db174]
mov edx, dword [0x102db170]
mov byte [edi + edx], cl
mov edx, dword [0x102db164]
add edx, 0x201f
mov dword [0x102db164], edx
mov edx, dword [0x102db16c]
movzx edx, byte [edi + edx]
mov ebx, dword [0x102db170]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x102db17c], ebx
mov dword [0x102db164], 0xfad
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
mov ch, byte [edx + ebx]
mov byte [0x102db181], ch
mov byte [0x102db182], cl
xor ch, cl
mov byte [0x102db180], ch
mov dword [0x102db164], 0x8f3
mov edx, dword [0x102db168]
add edx, 0xffffec9d
mov dword [0x102db168], edx
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], ch
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x38], ebx
je 0x1015e6c8
mov eax, dword [0x102db16c]
mov ecx, dword [0x102db170]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], edx
jmp 0x1015e589
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x417040
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push ebx
push esi
push edi
lea edi, [ebp - 0x138]
mov ecx, 0x4e
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x434d40]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x4380d6
call fcn.0041169a
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x40], xmm0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x50], ecx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x4c]
jg 0x4171cb
jl 0x4170bf
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [ebp - 0x50]
jae 0x4171cb
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x4c]
sbb ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], ecx
cmp dword [ebp - 0x6c], 0
jl 0x4170ee
jg 0x4170e2
cmp dword [ebp - 0x70], 0x500000
jbe 0x4170ee
mov dword [ebp - 0x138], 0x500000
jmp 0x4170f7
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x24], ecx
mov esi, esp
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.004116a9
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x417133
cmp dword [ebp - 0x18], 0
jne 0x417138
jmp 0x4171cb
mov eax, dword [ebp - 0x18]
xor ecx, ecx
add eax, dword [ebp - 0x40]
adc ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
add eax, 0x44
push eax
call fcn.0041163b
add esp, 0x10
mov eax, dword [ebp - 0x18]
xor ecx, ecx
neg eax
adc ecx, 0
neg ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ecx
mov esi, esp
push 1
push 0
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp esi, esp
call fcn.004116a9
test eax, eax
jne 0x4171a4
jmp 0x4171cb
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call fcn.00417d40
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4171c6
jmp 0x4171cb
jmp 0x4170a5
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x417200]
call fcn.00411703
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004115f0
add esp, 0x138
cmp ebp, esp
call fcn.004116a9
mov esp, ebp
pop ebp
ret
Function at 0x4172b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push ebx
push esi
push edi
lea edi, [ebp - 0x138]
mov ecx, 0x4e
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x434d40]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x4380d6
call fcn.0041169a
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x50], 0x100000
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x4c]
jg 0x41743a
jl 0x41732e
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [ebp - 0x50]
jae 0x41743a
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x4c]
sbb ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], ecx
cmp dword [ebp - 0x6c], 0
jl 0x41735d
jg 0x417351
cmp dword [ebp - 0x70], 0x500000
jbe 0x41735d
mov dword [ebp - 0x138], 0x500000
jmp 0x417366
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x24], ecx
mov esi, esp
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.004116a9
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4173a2
cmp dword [ebp - 0x18], 0
jne 0x4173a7
jmp 0x41743a
mov eax, dword [ebp - 0x18]
xor ecx, ecx
add eax, dword [ebp - 0x40]
adc ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
add eax, 0x44
push eax
call fcn.0041163b
add esp, 0x10
mov eax, dword [ebp - 0x18]
xor ecx, ecx
neg eax
adc ecx, 0
neg ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ecx
mov esi, esp
push 1
push 0
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp esi, esp
call fcn.004116a9
test eax, eax
jne 0x417413
jmp 0x41743a
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call fcn.00417d40
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x417435
jmp 0x41743a
jmp 0x417314
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x417470]
call fcn.00411703
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004115f0
add esp, 0x138
cmp ebp, esp
call fcn.004116a9
mov esp, ebp
pop ebp
ret
Function at 0x417970
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
push ebx
push esi
push edi
lea edi, [ebp - 0xe0]
mov ecx, 0x38
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x434d40]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x4380d6
call fcn.0041169a
mov esi, esp
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp esi, esp
call fcn.004116a9
mov edx, dword [ebp + 8]
mov dword [edx + 4], eax
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004116a9
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0xffffffff
jne 0x4179eb
xor eax, eax
jmp 0x417a69
mov esi, esp
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp esi, esp
call fcn.004116a9
test eax, eax
je 0x417a22
mov eax, dword [ebp - 0x1c]
or eax, dword [ebp - 0x18]
je 0x417a22
cmp dword [ebp - 0x18], 0
jg 0x417a32
jl 0x417a22
cmp dword [ebp - 0x1c], 0x216
jae 0x417a32
mov eax, dword [ebp + 8]
push eax
call fcn.00411159
add esp, 4
xor eax, eax
jmp 0x417a69
mov eax, dword [ebp + 8]
push eax
call fcn.00417b10
add esp, 4
test eax, eax
jne 0x417a52
mov eax, dword [ebp + 8]
push eax
call fcn.00411159
add esp, 4
xor eax, eax
jmp 0x417a69
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0x14]
mov dword [eax + 0xc], ecx
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x417a98]
call fcn.00411703
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004115f0
add esp, 0xe0
cmp ebp, esp
call fcn.004116a9
mov esp, ebp
pop ebp
ret