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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
mov al, byte [ebx + 0x6d]
test al, al
push esi
push edi
je 0x46fe48
push ebx
call fcn.0046faf0
mov eax, dword [ebx + 0x14]
xor esi, esi
cmp eax, esi
je 0x46ffc1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
lea edi, [ebx + 0x24]
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x78], ecx
mov eax, dword [edi + 0xc]
cmp eax, esi
je 0x46fe74
push eax
call fcn.0051d030
add esp, 4
fild dword [ebp + 8]
mov eax, esi
cmp eax, esi
mov dword [edi + 0xc], esi
fst qword [esp + 0x28]
mov dword [edi], esi
fstp qword [esp + 0x10]
mov dword [edi + 4], esi
jne 0x46fe97
mov eax, dword [edi + 8]
mov esi, edi
call fcn.00473e80
mov ecx, dword [edi + 4]
cmp dword [edi], ecx
jne 0x46feaa
mov eax, dword [edi + 8]
add eax, ecx
mov esi, edi
call fcn.00473e80
mov edx, dword [edi]
fld qword [esp + 0x10]
mov eax, dword [edi + 0xc]
fstp qword [eax + edx*8]
mov esi, dword [edi]
inc esi
mov dword [edi], esi
mov esi, ebx
call fcn.0046fda0
mov ecx, dword [ebx + 0x14]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
jle 0x46ffb8
fld qword [0x55a488]
fdiv st(1)
fstp qword [esp + 0x18]
fstp st(0)
fild dword [ebp + 0xc]
fstp qword [esp + 0x20]
nop
mov ecx, dword [ebx + 0x20]
lea ecx, [ecx + eax*4]
mov eax, dword [ecx - 4]
fld dword [eax]
mov edx, dword [eax + 8]
fld dword [eax + 4]
mov eax, dword [ecx]
fxch st(1)
mov dword [esp + 0x44], edx
fsub dword [eax]
fstp dword [esp + 0x3c]
fsub dword [eax + 4]
fld dword [esp + 0x44]
fsub dword [eax + 8]
mov eax, dword [edi + 0xc]
test eax, eax
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld dword [esp + 0x3c]
fmul dword [esp + 0x3c]
faddp st(1)
fsqrt
fstp st(2)
fstp st(0)
fadd qword [esp + 0x10]
fstp qword [esp + 0x10]
fld qword [esp + 0x18]
fmul qword [esp + 0x10]
fmul qword [esp + 0x20]
fadd qword [esp + 0x28]
fstp qword [esp + 0x30]
jne 0x46ff70
mov eax, dword [edi + 8]
mov esi, edi
call fcn.00473e80
mov ecx, dword [edi + 4]
cmp dword [edi], ecx
jne 0x46ff83
mov eax, dword [edi + 8]
add eax, ecx
mov esi, edi
call fcn.00473e80
mov eax, dword [edi]
fld qword [esp + 0x30]
mov ecx, dword [edi + 0xc]
fstp qword [ecx + eax*8]
mov esi, dword [edi]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
inc esi
inc eax
cmp eax, ecx
mov dword [edi], esi
mov dword [esp + 8], eax
jl 0x46ff00
mov dword [ebx + 0x70], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
fstp st(0)
mov dword [ebx + 0x70], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x48c350
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x530928
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [esp + 0x3c]
push ebx
push esi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.0048c6d0
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x44], ebx
call fcn.0048ca50
mov esi, dword [eax]
cmp dword [esp + 0x28], 0x10
mov dword [esp + 0x38], 0xffffffff
jb 0x48c3c7
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0051d030
add esp, 4
mov ecx, dword [esp + 0x30]
lea eax, [esi + 0x28]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 8

Function at 0x49697f
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x531168
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
xor edi, edi
cmp esi, edi
mov ebx, ecx
je 0x496887
mov eax, dword [ebx]
mov ecx, dword [esi]
push esi
push 1
push eax
call fcn.00496640
mov ebp, eax
jmp 0x496889
mov ebp, dword [ebx]
push 0x14
call fcn.0042a470
add esp, 4
cmp eax, edi
je 0x4968a9
mov dword [eax], ebp
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov ebp, eax
jmp 0x4968ab
xor ebp, ebp
mov eax, dword [ebx + 0x10]
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x10], eax
jne 0x4968e0
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
lea ecx, [ecx]
cmp esi, edi
je 0x4968f5
mov eax, dword [eax]
mov ecx, dword [esi]
push esi
push 1
push eax
call fcn.00496640
mov ebx, eax
jmp 0x4968f7
mov ebx, dword [eax]
cmp dword [ebp + 0x10], edi
push 0x10
jne 0x496928
call fcn.0051b1e7
mov esi, eax
add esp, 4
cmp esi, edi
je 0x49697a
push 0x10
push edi
push esi
call fcn.0042b1c0
mov dword [esi], ebx
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [ebp + 0x10], esi
mov dword [esi + 8], esi
jmp 0x49695f
call fcn.0051b1e7
mov esi, eax
add esp, 4
cmp esi, edi
je 0x49697a
push 0x10
push edi
push esi
call fcn.0042b1c0
mov dword [esi], ebx
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 8]
mov dword [edx + 4], esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 4]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
add esp, 0xc
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x4968d5
jmp 0x4968be
call fcn.00451300
push 0x10
push str.WIN_OUT_OF_MEM_TITLE
call fcn.00450c30
add esp, 4
push eax
push str.WIN_OUT_OF_MEM_BODY
call fcn.00450c30
add esp, 4
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call fcn.0051c8f0
int3
Function at 0x4973a6
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x4973e1
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4973c8
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x4973d9
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x4973e3
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4973be
xor eax, eax
pop edi
pop esi
ret

Function at 0x497430
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov esi, dword [edi + 0x3c]
add esi, edi
push esi
mov ebx, dword [esi + 0x78]
push ebx
call fcn.004973a6
pop ecx
test eax, eax
pop ecx
je 0x4974f1
push edi
push esi
push ebx
call fcn.004973e6
mov esi, dword [esi + 0x78]
xor ecx, ecx
add esp, 0xc
cmp esi, ecx
je 0x4974f1
mov ebx, dword [esi + edi + 0x24]
mov eax, dword [esi + edi + 0x20]
mov edx, dword [ebp + 0xc]
add esi, edi
add ebx, edi
add eax, edi
mov edi, dword [esi + 0x1c]
mov dword [ebp - 0x18], eax
add edi, dword [ebp + 8]
shr edx, 0x10
test dx, dx
invalid
je 0x497500
mov dword [ebp - 4], ecx
cmp dword [edi], 0
je 0x4974e5
and dword [ebp - 0x10], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
call fcn.00497366
clc
pop edi
test eax, 0xf8458b3a
movzx eax, word [eax]
cmp eax, dword [ebp - 4]
jne 0x4974ce
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, dword [ecx]
mov dword [ebp - 0x14], eax
call fcn.00497366
ret
mov eax, dword [esi + 0x18]
inc dword [ebp - 0x10]
add dword [ebp - 8], 2
add dword [ebp - 0xc], 4
dec eax
cmp dword [ebp - 0x10], eax
jbe 0x497495
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi + 0x14]
inc dword [ebp - 4]
dec ecx
cmp dword [ebp - 4], ecx
jbe 0x497486
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [esi + 0x10]
mov edx, edi
cmp dword [ebp + 0xc], eax
jne 0x49750f
cmp dword [edx], 0
jne 0x49751e
mov ebx, dword [esi + 0x14]
inc ecx
inc eax
add edx, 4
dec ebx
cmp ecx, ebx
jbe 0x497505
jmp 0x4974f1
mov eax, dword [edi + ecx*4]
shl eax, 6
add eax, dword [ebp + 8]
jmp 0x4974f3
Function at 0x4e0450
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x34
movzx ecx, byte [edx + 1]
push ebx
movzx ebx, byte [edx]
push ebp
movzx ebp, byte [edx + 2]
push esi
push edi
mov edi, eax
movzx eax, byte [edx + 3]
and ecx, 0xfffffffc
shl ecx, 3
imul ecx, eax
and ebx, 0xfffffff8
shl ebx, 8
shr ebp, 3
imul ebx, eax
mov esi, 0xff
imul ebp, eax
sub esi, eax
test edi, edi
mov dword [esp + 0x3c], ecx
jle 0x4e05a5
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x10]
sub eax, ecx
dec edi
shr edi, 4
inc edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edi
lea ebx, [ebx]
xor edx, edx
xor ecx, ecx
mov edi, dword [esp + 0x14]
lea eax, [esp + edx + 0x10]
mov di, word [edi + eax]
mov word [eax], di
movzx eax, di
mov edi, eax
and edi, 0xf800
imul edi, esi
add edi, ebx
sar edi, 8
and edi, 0xf800
mov dword [esp + ecx + 0x30], edi
mov edi, eax
and eax, 0x1f
and edi, 0x7e0
imul eax, esi
imul edi, esi
add edi, dword [esp + 0x3c]
add eax, ebp
sar eax, 8
and eax, 0x1f
sar edi, 8
and edi, 0x7e0
mov dword [esp + ecx + 0x28], eax
mov ax, di
or ax, word [esp + ecx + 0x28]
mov dword [esp + ecx + 0x20], edi
or ax, word [esp + ecx + 0x30]
add ecx, 4
mov word [esp + edx + 0x18], ax
add edx, 2
cmp ecx, 8
jl 0x4e04b4
cmp dword [esp + 0x4c], 8
mov ecx, dword [esp + 0x18]
mov dx, word [esp + 0x1a]
je 0x4e0577
cmp dx, cx
sbb eax, eax
xor edi, edi
mov di, word [esp + 0x12]
neg eax
cmp di, word [esp + 0x10]
sbb edi, edi
neg edi
cmp edi, eax
je 0x4e0577
mov eax, dword [esp + 0x48]
mov word [eax], dx
mov word [eax + 2], cx
mov ecx, dword [eax + 4]
mov edx, ecx
not edx
shr edx, 1
and edx, 0x55555555
xor edx, ecx
mov dword [eax + 4], edx
jmp 0x4e0582
mov eax, dword [esp + 0x48]
mov word [eax], cx
mov word [eax + 2], dx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x14]
add eax, ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x1c]
add edx, ecx
dec eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], eax
jne 0x4e04b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x4efdc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd0
mov eax, dword [0x1533bb4]
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x4f0007
test byte [0x11d82f8], 1
je 0x4f0007
test byte [0x11d8980], 1
je 0x4f0007
mov edx, dword [0x11d9004]
mov esi, dword [0x11d897c]
mov eax, edx
xor eax, esi
test eax, 0xfffffe00
jne 0x4f0007
xor ecx, ecx
lea eax, [esp + 0x10]
jmp 0x4efe20
mov edi, dword [ecx + 0x11d838c]
test edi, edi
mov dword [eax], 0
je 0x4efe48
mov ebx, dword [eax]
inc ebx
mov edi, ebx
imul edi, edi, 0xc8
mov ebp, dword [edi + ecx + 0x11d838c]
test ebp, ebp
jne 0x4efe32
mov dword [eax], ebx
add ecx, 0x688
add eax, 4
cmp ecx, 0xd10
jl 0x4efe20
cmp dword [esp + 0x14], 1
jne 0x4f0007
mov ebx, dword [esp + 0x10]
mov eax, dword [0x15336f8]
lea ecx, [ebx + 1]
cmp ecx, eax
jg 0x4f0007
and esi, 0xff
and edx, 0xff
xor eax, eax
mov ecx, 0x5354bc
jmp 0x4efe90
cmp esi, dword [ecx - 4]
jne 0x4efe99
cmp edx, dword [ecx]
je 0x4efea2
inc eax
add ecx, 0x10
cmp eax, 9
jb 0x4efe90
cmp eax, 9
je 0x4f0007
shl eax, 4
mov edx, dword [eax + 0x5354c0]
cmp edx, 0x104
jne 0x4efecc
mov ecx, dword [0x1533718]
test ecx, ecx
je 0x4f0007
cmp edx, edx
mov edi, dword [0x11d895c]
jne 0x4efedd
cmp edi, 2
jne 0x4f0007
mov ecx, dword [0x11d8fe4]
cmp edi, ecx
mov esi, dword [0x11d8ffc]
mov ebp, dword [0x11d8974]
jne 0x4efef7
cmp ebp, esi
je 0x4eff19
cmp edx, 0x2100
jne 0x4f0007
cmp ecx, 2
jne 0x4f0007
test esi, esi
je 0x4eff19
cmp esi, 1
jne 0x4f0007
cmp edi, 8
jne 0x4eff3b
mov ecx, 5
mov edi, 0x11d8fd0
mov esi, 0x11d8948
xor ebx, ebx
repe cmpsd dword [esi], dword es:[edi]
jne 0x4f0007
mov ebx, dword [esp + 0x10]
cmp ebp, 7
jne 0x4eff59
mov ecx, 5
mov edi, 0x11d8fe8
mov esi, 0x11d8960
xor ebp, ebp
repe cmpsd dword [esi], dword es:[edi]
jne 0x4f0007
cmp ebx, 1
jne 0x4eff94
mov cl, byte [0x11d83c0]
test cl, cl
je 0x4eff94
mov ecx, 0x32
mov esi, 0x11d82fc
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x32
mov esi, 0x11d8984
mov edi, 0x11d82fc
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x18]
mov edi, 0x11d83c4
jmp 0x4effa7
mov edi, ebx
imul edi, edi, 0xc8
add edi, 0x11d82fc
mov esi, 0x11d8984
imul ebx, ebx, 0xc8
mov ecx, 0x32
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x11d838c], edx
mov edx, dword [eax + 0x5354c4]
mov byte [0x11d897c], 0
mov edi, dword [0x11d897c]
push 0x2730
or edi, edx
push 0x11d9008
push 0x11d8980
mov dword [0x11d897c], edi
call fcn.0051a330
add esp, 0xc
xor eax, eax
mov ecx, 0x1a2
mov edi, 0x11db0b0
rep stosd dword es:[edi], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50ad50
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [esi + 0x10], 0xcc
je 0x50ad73
mov eax, dword [esi + 0x17c]
push esi
call dword [eax]
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x10], 0xcc
mov ecx, dword [esi + 0x17c]
mov al, byte [ecx + 8]
test al, al
je 0x50ad9e
mov edx, dword [esi]
mov dword [edx + 0x14], 0x2d
mov eax, dword [esi]
push esi
call dword [eax]
mov ecx, dword [esi + 0x17c]
mov al, byte [ecx + 8]
add esp, 4
test al, al
jne 0x50ad80
mov cl, byte [esi + 0x41]
xor edx, edx
test cl, cl
setne dl
mov al, 1
add edx, 0xcd
mov dword [esi + 0x10], edx
ret

Function at 0x50efbe
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
cmp ebp, 0x3b9ac9f0
push esi
mov esi, dword [esp + 0x18]
mov ebx, dword [esi + 4]
push edi
mov dword [esp + 0x14], ebx
jbe 0x50eed8
mov eax, dword [esi]
mov dword [eax + 0x14], 0x33
mov ecx, dword [esi]
mov dword [ecx + 0x18], 1
mov edx, dword [esi]
push esi
call dword [edx]
add esp, 4
mov eax, ebp
and eax, 7
jbe 0x50eeec
mov ecx, 8
sub ecx, eax
add ebp, ecx
mov dword [esp + 0x24], ebp
mov edi, dword [esp + 0x20]
test edi, edi
jl 0x50eef9
cmp edi, 2
jl 0x50ef0f
mov edx, dword [esi]
mov dword [edx + 0x14], 0xb
mov eax, dword [esi]
mov dword [eax + 0x18], edi
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
mov ecx, dword [ebx + edi*4 + 0x30]
test ecx, ecx
mov dword [esp + 0x10], 0
je 0x50ef33
nop
cmp dword [ecx + 8], ebp
jae 0x50f028
mov dword [esp + 0x10], ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x50ef20
mov eax, dword [esp + 0x10]
add ebp, 0x10
test eax, eax
jne 0x50ef47
mov edi, dword [edi*4 + 0x534b58]
jmp 0x50ef4e
mov edi, dword [edi*4 + 0x534b60]
mov eax, 0x3b9aca00
sub eax, ebp
cmp edi, eax
jbe 0x50ef5b
mov edi, eax
lea ebx, [edi + ebp]
push ebx
call fcn.0051b1e7
mov esi, eax
add esp, 4
test esi, esi
je 0x50efb9
lea ecx, [ecx]
push ebx
push 0
push esi
call fcn.0042b1c0
add esp, 0xc
test esi, esi
mov ecx, esi
jne 0x50efeb
shr edi, 1
cmp edi, 0x32
jae 0x50efa7
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov dword [edx + 0x14], 0x33
mov ecx, dword [eax]
mov dword [ecx + 0x18], 2
mov edx, dword [eax]
push eax
call dword [edx]
add esp, 4
lea ebx, [edi + ebp]
push ebx
call fcn.0051b1e7
mov esi, eax
add esp, 4
test esi, esi
jne 0x50ef70
call fcn.00451300
push 0x10
push str.WIN_OUT_OF_MEM_TITLE
call fcn.00450c30
add esp, 4
push eax
push str.WIN_OUT_OF_MEM_BODY
call fcn.00450c30
add esp, 4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call fcn.0051c8f0
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 0x48]
lea edx, [edi + ebp]
mov ebp, dword [esp + 0x24]
add ebx, edx
mov edx, dword [esp + 0x24]
add edi, edx
mov edx, dword [esp + 0x10]
test edx, edx
mov dword [eax + 0x48], ebx
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], edi
jne 0x50f026
mov edx, dword [esp + 0x20]
mov dword [eax + edx*4 + 0x30], esi
jmp 0x50f028
mov dword [edx], esi
mov edx, dword [ecx + 4]
lea eax, [edx + ecx + 0x10]
add edx, ebp
pop edi
mov dword [ecx + 4], edx
mov edx, dword [ecx + 8]
pop esi
sub edx, ebp
pop ebp
mov dword [ecx + 8], edx
pop ebx
add esp, 8
ret
Function at 0x51c5c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x562940]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x51c640
push ebx
call fcn.0051c58e
test eax, eax
pop ecx
jne 0x51c612
call fcn.005204e8
mov dword [eax], 0xf
call fcn.005204df
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.00523319
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x51c652
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x51c602
inc eax
cmp eax, 0x104
ja 0x51c602
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x51c68a
cmp eax, dword [ebp + 0x10]
jg 0x51c66d
mov eax, dword [ebp + 0x10]
push eax
call fcn.0051b1e7
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x51c69f
call fcn.005204df
mov dword [eax], 0xc
jmp 0x51c602
cmp eax, dword [ebp + 0x10]
jle 0x51c69f
call fcn.005204df
mov dword [eax], 0x22
jmp 0x51c602
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.005231f0
pop ecx
pop ecx
jmp 0x51c604

Function at 0x51c81d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0051f9ae
xor esi, esi
inc esi
cmp dword [0x56e220], esi
pop ecx
jne 0x51c845
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x56e21c], esi
mov byte [0x56e218], al
jne 0x51c8ab
mov ecx, dword [0x140210c]
test ecx, ecx
je 0x51c88c
mov eax, dword [0x1402108]
sub eax, 4
cmp eax, ecx
jmp 0x51c885
mov eax, dword [eax]
test eax, eax
je 0x51c877
call eax
mov eax, dword [0x1402108]
sub eax, 4
cmp eax, dword [0x140210c]
mov dword [0x1402108], eax
jae 0x51c86f
mov eax, 0x562084
mov esi, 0x56208c
cmp eax, esi
mov edi, eax
jae 0x51c8ab
mov eax, dword [edi]
test eax, eax
je 0x51c8a4
call eax
add edi, 4
cmp edi, esi
jb 0x51c89c
mov eax, 0x562090
mov esi, 0x562098
cmp eax, esi
mov edi, eax
jae 0x51c8ca
mov eax, dword [edi]
test eax, eax
je 0x51c8c3
call eax
add edi, 4
cmp edi, esi
jb 0x51c8bb
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x51c8db
push 8
call fcn.0051f902
jmp 0x51c8ed
push dword [ebp + 8]
mov dword [0x56e220], 1
call fcn.0051c740
pop ecx
pop ebp
ret
Function at 0x521610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x562940]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x521639
xor eax, eax
jmp 0x5217a7
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x1400fc0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x52166c
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00528edc
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x52173e
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x521779
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x5216c7
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x5216b8
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x52169b
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x521707
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x521710
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x52168c
jmp 0x521712
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x5217a2
cmp dword [ebp - 8], edi
je 0x521779
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x52176b
call fcn.005204df
mov dword [eax], 9
call fcn.005204e8
mov dword [eax], esi
jmp 0x521774
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x521760
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x521712
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x521712
push dword [ebp - 8]
call fcn.005204f1
pop ecx
or eax, 0xffffffff
jmp 0x5217a5
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x52178e
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x52178e
xor eax, eax
jmp 0x5217a5
call fcn.005204df
mov dword [eax], 0x1c
call fcn.005204e8
mov dword [eax], edi
jmp 0x521774
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.00523319
leave
ret
Function at 0x521cb2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x521e78
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x1400fc0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x521e78
test cl, 0x48
je 0x521d18
mov al, byte [eax + 5]
cmp al, 0xa
je 0x521d18
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x521d6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x521d52
call fcn.005204df
mov dword [eax], 9
call fcn.005204e8
mov dword [eax], esi
jmp 0x521d62
cmp eax, 0x6d
je 0x521e78
push eax
call fcn.005204f1
pop ecx
or eax, 0xffffffff
jmp 0x521e7a
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x521e73
test edx, edx
je 0x521d8d
cmp byte [ebx], 0xa
jne 0x521d8d
or al, 4
jmp 0x521d8f
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x521e6d
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x521e5d
cmp al, 0xd
je 0x521dc3
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x521e4f
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x521ddd
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x521dd8
add dword [ebp + 0x10], 2
jmp 0x521e31
mov dword [ebp + 0x10], eax
jmp 0x521e4b
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x521e05
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x521e4b
cmp dword [ebp - 0xc], 0
je 0x521e4b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x521e26
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x521e31
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x521e4e
cmp ebx, dword [ebp + 0xc]
jne 0x521e36
cmp byte [ebp - 1], 0xa
jne 0x521e36
mov byte [ebx], 0xa
jmp 0x521e4e
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005224b7
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x521e4f
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x521da7
jmp 0x521e6d
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x521e6d
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x521e7a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret