joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446bd9
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x446bf2
or eax, 0xffffffff
jmp 0x446c53
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x446c4f
push 0x3d
push esi
call fcn.00446dae
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x446c4f
cmp esi, eax
je 0x446c4f
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x472234]
sete cl
cmp eax, dword [0x472238]
mov dword [ebp - 8], ecx
jne 0x446c35
mov edi, eax
call fcn.00446b78
mov dword [0x472234], eax
cmp eax, ebx
jne 0x446c8e
cmp dword [ebp + 0xc], ebx
je 0x446c57
cmp dword [0x47223c], ebx
je 0x446c57
call fcn.00442be6
test eax, eax
je 0x446c8e
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x446c60
xor eax, eax
jmp 0x446c52
push 4
call fcn.0043c45b
cmp eax, ebx
pop ecx
mov dword [0x472234], eax
je 0x446c4f
mov dword [eax], ebx
cmp dword [0x47223c], ebx
jne 0x446c8e
push 4
call fcn.0043c45b
cmp eax, ebx
pop ecx
mov dword [0x47223c], eax
je 0x446c4f
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x472234]
call fcn.00446b2b
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x446cef
cmp dword [esi], ebx
je 0x446cef
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0043c5cf
cmp dword [ebp - 8], ebx
pop ecx
jne 0x446cd2
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x446d30
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x446cc9
mov eax, edi
shl eax, 2
push eax
push dword [0x472234]
call fcn.0043c46d
cmp eax, ebx
pop ecx
pop ecx
je 0x446d30
jmp 0x446d2b
cmp dword [ebp - 8], ebx
jne 0x446d9b
cmp edi, ebx
jge 0x446cfe
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x472234]
call fcn.0043c46d
cmp eax, ebx
pop ecx
pop ecx
je 0x446c4f
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x472234], eax
cmp dword [ebp + 0xc], ebx
je 0x446d85
push dword [ebp - 4]
call fcn.0043e090
inc eax
inc eax
push eax
call fcn.0043c45b
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x446d85
push dword [ebp - 4]
push esi
call fcn.00442cc0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x446d7e
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0043c5cf
pop ecx
cmp dword [ebp - 8], ebx
je 0x446d93
push dword [ebp - 4]
call fcn.0043c5cf
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x446c52
push dword [ebp - 4]
call fcn.0043c5cf
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x446c5c
Function at 0x44725b
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0043b1d0
mov eax, dword [0x4713a0]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x4726cc]
mov dword [ebp - 4], eax
jae 0x44739e
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x4726e0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x44739e
push 1
push esi
push ebx
call fcn.004410ed
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x4473a8
push 2
push esi
push ebx
call fcn.004410ed
add esp, 0xc
cmp eax, 0xffffffff
je 0x4473a8
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x447348
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00443500
push 0x8000
push ebx
call fcn.0044769a
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x447307
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.0043e4e4
add esp, 0xc
cmp eax, 0xffffffff
je 0x447325
sub edi, eax
test edi, edi
jg 0x4472fc
jmp 0x44733b
cmp dword [0x47220c], 5
jne 0x447338
mov dword [0x472208], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.0044769a
pop ecx
pop ecx
jmp 0x447388
jge 0x447388
push 0
push dword [ebp + 0xc]
push ebx
call fcn.004410ed
push ebx
call fcn.00443a69
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x447388
mov dword [0x472208], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x47220c], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.004410ed
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4473ab
mov dword [0x472208], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0043e404
leave
ret
Function at 0x4027b0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
test byte [eax + 0x68], 0x70
je 0x4027c8
push 1
call dword [0x406a00]
pop ecx
ret

Function at 0x403180
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4031bf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4031bf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4031bf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4031bf
cmp dword [ecx + 0x74], 0xe
jbe 0x4031bf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40d9bc
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x40da02
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x40d9fd
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x40d9e7
and ecx, 0xfff
mov edx, esi
salc
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x40d9ef
cmp edx, ebx
jne 0x40db3d
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x40d9be
add eax, dword [eax + 4]
jmp 0x40d9ab
mov dword [ebp + 0xc], ebx
jmp 0x40da0d
Function at 0x4059f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426d76
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x45190c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp + 0x10]
mov dword [ebx], 0x428da8
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x28], edx
or dword [ebx + 0x2c], 0xffffffff
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x44], edx
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], ecx
mov eax, dword [ecx + 4]
and dword [ebx + 0x8c], 0xffffffc0
and byte [ebx + 0x91], 0x80
or dword [ebx + 0x94], 0xffffffff
or dword [ebx + 0x98], 0xffffffff
mov dword [ebx + 0x64], eax
xor eax, eax
inc eax
mov dword [ebx + 0x68], edx
mov dword [ebx + 0x6c], edx
mov dword [ebx + 0x70], edx
mov dword [ebx + 0x74], edx
mov byte [ebx + 0x90], 0x4f
mov dword [ebx + 0x9c], eax
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0xa4], edx
mov dword [ebx + 0xa8], edx
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x405acb
mov eax, dword [ecx + 0x24]
mov dword [ebx + 0x78], eax
mov dword [ecx + 0x24], ebx
mov eax, dword [ebx + 0x5c]
lea edi, [ebx + 0x58]
push 1
push edx
push edi
mov dword [eax + 4], ebx
lea esi, [ebx + 0x54]
mov ecx, dword [ebx + 0x60]
push esi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
push 4
push dword [esi]
mov esi, dword [0x4280f8]
push 6
call esi
push 8
push dword [edi]
mov dword [ebx + 0x7c], eax
push 2
call esi
mov ecx, dword [ebx + 0x7c]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x88], eax
mov eax, ebx
mov dword [ebx + 0x84], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x45ce2f03
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x42115e77
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4025b2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], edx
push esi
push edi
mov eax, dword [ebx]
mov edi, dword [ebx + 4]
xor edi, eax
mov dword [ebp - 0xc], eax
mov eax, edi
mov ecx, edi
and eax, 0xfffffffc
mov esi, edi
add eax, 4
and cl, 3
cmovne esi, eax
mov ecx, esi
call fcn.00402f38
mov dword [ebp - 4], eax
test eax, eax
je 0x40262c
shr esi, 2
lea edx, [ebx + 8]
xor ebx, ebx
and dword [ebp - 8], ebx
lea ecx, [edx + esi*4]
mov esi, ecx
sub esi, edx
add esi, 3
shr esi, 2
cmp edx, ecx
cmova esi, dword [ebp - 8]
test esi, esi
je 0x402620
mov ecx, eax
sub ecx, edx
mov eax, dword [edx]
xor eax, dword [ebp - 0xc]
inc ebx
mov dword [ecx + edx], eax
lea edx, [edx + 4]
cmp ebx, esi
jb 0x402610
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x402629
mov dword [eax], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402638
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
xor ebx, ecx
mov dword [ebp - 0xc], ecx
push edi
mov dword [ebp - 0x14], ebx
lea esi, [ebx + 1]
mov eax, esi
mov edx, esi
and eax, 0xfffffffc
add eax, 4
and dl, 3
cmovne esi, eax
lea ecx, [esi + esi]
call fcn.00402f38
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x4026e3
mov eax, dword [ebp - 4]
and dword [ebp - 4], 0
add eax, 8
shr esi, 2
lea ecx, [eax + esi*4]
mov esi, edi
mov edx, ecx
sub edx, eax
add edx, 3
shr edx, 2
cmp eax, ecx
cmova edx, dword [ebp - 4]
test edx, edx
je 0x4026dd
mov ebx, eax
xor edi, edi
mov ecx, dword [ebx]
lea ebx, [ebx + 4]
xor ecx, dword [ebp - 0xc]
movzx eax, cl
mov word [esi], ax
mov eax, ecx
shr eax, 8
lea esi, [esi + 8]
movzx eax, al
mov word [esi - 6], ax
shr ecx, 0x10
movzx eax, cl
shr ecx, 8
inc edi
mov word [esi - 4], ax
movzx eax, cl
mov word [esi - 2], ax
cmp edi, edx
jb 0x4026a1
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
xor eax, eax
mov word [edi + ebx*2], ax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4026ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
xor eax, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
lea edi, [eax + 1]
mov eax, edi
mov edx, edi
and eax, 0xfffffffc
add eax, 4
and dl, 3
cmovne edi, eax
mov ecx, edi
call fcn.00402f38
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x40277e
and dword [ebp - 4], 0
add ebx, 8
shr edi, 2
xor eax, eax
mov edx, esi
lea ecx, [ebx + edi*4]
mov edi, ecx
sub edi, ebx
add edi, 3
shr edi, 2
cmp ebx, ecx
cmova edi, eax
test edi, edi
je 0x402777
mov esi, dword [ebp - 4]
mov ecx, dword [ebx]
lea ebx, [ebx + 4]
xor ecx, dword [ebp - 8]
mov byte [edx], cl
mov eax, ecx
shr eax, 8
lea edx, [edx + 4]
shr ecx, 0x10
mov byte [edx - 3], al
mov byte [edx - 2], cl
shr ecx, 8
inc esi
mov byte [edx - 1], cl
cmp esi, edi
jb 0x40274e
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov byte [esi + eax], 0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402aab
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 0xc], 0
xor edx, edx
mov dword [ebp - 0x24], 0xc152c74a
mov dword [ebp - 0x20], 0xdafdbf1
mov dword [ebp - 0x1c], 0x8f28396d
mov dword [ebp - 0x18], 0x647ba8a9
mov dword [ebp - 0x14], 0xe39dd972
mov dword [ebp - 0x10], 0xb5859007
mov dword [ebp - 8], 0x4701
shl dword [ebp - 8], 6
xor dword [ebp - 8], 0x11c040
mov dword [ebp - 4], 0xb3c9
add dword [ebp - 4], 0xffff91a6
xor dword [ebp - 4], 0x4569
mov dword [ebp - 4], 0xbe4d
add dword [ebp - 4], 0xffffb375
mov eax, dword [ebp - 4]
push ebx
mov ebx, ecx
push 0x46
pop ecx
div ecx
mov dword [ebp - 4], eax
imul eax, dword [ebp - 4], 0x6c
mov dword [ebp - 4], eax
xor dword [ebp - 4], 0x33fbebe6
xor dword [ebp - 4], 0x4595231
imul eax, dword [ebp - 4], 0xb
mov dword [ebp - 4], eax
add dword [ebp - 4], 0x4777
xor dword [ebp - 4], 0x63f73d24
cmp byte [ebx], 0
je 0x402be1
push esi
push edi
mov edi, dword [ebp - 8]
xor edx, edx
mov dword [ebp - 4], 0xb3c9
add dword [ebp - 4], 0xffff91a6
xor dword [ebp - 4], 0x4569
mov cl, byte [ebp - 4]
mov esi, dword [ebp - 8]
mov dword [ebp - 4], 0xbe4d
add dword [ebp - 4], 0xffffb375
mov eax, dword [ebp - 4]
shl esi, cl
push 0x46
pop ecx
div ecx
mov dword [ebp - 4], eax
imul eax, dword [ebp - 4], 0x6c
mov dword [ebp - 4], eax
xor dword [ebp - 4], 0x33fbebe6
xor dword [ebp - 4], 0x4595231
imul eax, dword [ebp - 4], 0xb
mov dword [ebp - 4], eax
add dword [ebp - 4], 0x4777
xor dword [ebp - 4], 0x63f73d24
mov cl, byte [ebp - 4]
mov edx, dword [ebp - 8]
movsx eax, byte [ebx]
mov dword [ebp - 8], eax
add dword [ebp - 8], esi
shl edx, cl
add dword [ebp - 8], edx
sub dword [ebp - 8], edi
inc ebx
cmp byte [ebx], 0
jne 0x402b59
pop edi
pop esi
mov eax, dword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402d2b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
push esi
push edi
xor esi, esi
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
mov edi, dword [eax + ebx + 0x78]
add edi, ebx
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
add eax, ebx
mov dword [ebp - 0x14], eax
add ecx, ebx
mov eax, dword [edi + 0x24]
add eax, ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
mov eax, esi
cmp dword [edi + 0x18], esi
jbe 0x402db7
mov ecx, dword [ecx + eax*4]
add ecx, ebx
call fcn.00402aab
xor eax, 0x49d2e3a0
cmp eax, dword [ebp - 8]
mov eax, dword [ebp - 4]
je 0x402d8e
mov ecx, dword [ebp - 0xc]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [edi + 0x18]
jb 0x402d69
jmp 0x402db7
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
movzx eax, word [ecx + eax*2]
mov esi, dword [esi + eax*4]
add esi, ebx
cmp esi, edi
jb 0x402db7
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx + 0x7c]
add eax, edi
cmp esi, eax
jae 0x402db7
mov ecx, esi
call fcn.00402df7
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402dc0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov edi, dword [eax + 0xc]
mov ebx, ecx
add edi, 0xc
mov esi, dword [edi]
jmp 0x402de8
mov ecx, dword [esi + 0x30]
call fcn.00402be9
xor eax, 0x6868408a
cmp eax, ebx
je 0x402df2
mov esi, dword [esi]
cmp esi, edi
jne 0x402dd5
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x18]
jmp 0x402dee

Function at 0x402f99
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
push edi
mov dword [ebp - 4], eax
call fcn.00403090
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x40308b
push esi
push 0x40
push 0x3000
push dword [edi + 0x50]
mov edx, 0x700345ea
mov ecx, 0xe716a6f8
push 0
push 0x1e5
call fcn.00402e7c
pop ecx
call eax
mov esi, eax
test esi, esi
je 0x403088
movzx ecx, word [edi + 0x14]
lea eax, [edi + 0x18]
mov edx, dword [ebp - 4]
add eax, ecx
movzx ecx, word [edi + 6]
push ebx
push dword [edi + 0x54]
imul ebx, ecx, 0x28
mov ecx, esi
mov dword [ebp - 8], eax
add ebx, eax
call fcn.00402f14
pop ecx
mov ecx, dword [ebp - 8]
cmp ecx, ebx
jae 0x403051
sub ebx, ecx
mov edi, dword [ebp - 4]
lea eax, [ecx + 0x10]
xor edx, edx
mov dword [ebp - 0xc], eax
push 0x28
lea eax, [ebx - 1]
mov ebx, dword [ebp - 0xc]
pop ecx
div ecx
inc eax
mov dword [ebp - 8], eax
mov ecx, dword [ebx]
cmp dword [ebx - 8], ecx
mov edx, dword [ebx + 4]
cmovb ecx, dword [ebx - 8]
add edx, edi
push ecx
mov ecx, dword [ebx - 4]
add ecx, esi
call fcn.00402f14
dec dword [ebp - 8]
lea ebx, [ebx + 0x28]
pop ecx
jne 0x40302c
mov edi, dword [ebp - 0x10]
mov edx, edi
mov ecx, esi
call fcn.0040316c
mov edx, edi
mov ecx, esi
call fcn.004030be
pop ebx
test eax, eax
jne 0x403088
push 0x8000
push eax
push esi
push 0x14a
mov edx, 0xb3203cf7
mov ecx, 0xe716a6f8
call fcn.00402e7c
pop ecx
call eax
xor esi, esi
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x403090
Capabilities:
Parse pe header

Disassembly:
cmp edx, 0x40
jae 0x403098
xor eax, eax
ret
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x403095
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x403095
mov edx, 0x10b
xor ecx, ecx
cmp word [eax + 0x18], dx
cmovne eax, ecx
ret
Function at 0x402528
Capabilities:
Check if file exists
Check mutex on windows
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.00420000
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.00420000
push 0xfffffffffffffff1
call sub.KERNEL32.DLL_GetCurrentThread
push eax
call sub.KERNEL32.DLL_SetThreadPriority
push str.pUcE
push 0
push 0
call sub.KERNEL32.DLL_CreateMutexA
mov ebx, eax
call sub.KERNEL32.DLL_GetLastError
push 0xffffffffffffffff
push ebx
call sub.KERNEL32.DLL_WaitForSingleObject
push 0
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
je 0x40257d
cmp eax, 5
jne 0x4025b5
push 3
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0040236c
add esp, 0xc
push 6
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0040236c
add esp, 0xc
push 4
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040236c
add esp, 0xc
jmp 0x4025eb
push 4
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0040236c
add esp, 0xc
push 3
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0040236c
add esp, 0xc
push 6
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040236c
add esp, 0xc
push ebx
call sub.KERNEL32.DLL_ReleaseMutex
push ebx
call sub.KERNEL32.DLL_CloseHandle
lea eax, [ebp + 8]
mov edx, 2
call fcn.00420080
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00420080
pop ebx
pop ebp
ret

Function at 0x404fc8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x405001
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00412d84
jmp 0x40500a
mov eax, ebx
mov edx, esi
call fcn.00412ce8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405014
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x405035
mov al, byte [esp]
jmp 0x405037
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406204
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x406268
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00412efc
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00403610
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40626f
lea eax, [ebp - 0xc]
call fcn.00412c94
ret
Function at 0x4116ec
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x411729
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryA
push esp
call sub.KERNEL32.DLL_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test bl, bl
je 0x411749
lea eax, [esp + 0x109]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00412efc
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x412128
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4215f4]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4121c0
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4121a0
xor eax, eax
push ebp
push 0x412199
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4121dc
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4121a0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x4215f4]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4215f4], ax
mov esp, ebp
pop ebp
ret

Function at 0x412b18
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x425224], 0
je 0x412b79
cmp word [0x4253f8], 0xd7b2
jne 0x412b41
cmp dword [0x425400], 0
jbe 0x412b41
mov eax, 0x4253f4
call dword [0x425410]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x412ba0
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x421600], 0
jne 0x412b95
push 0
push 0x421658
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret