joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b837
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004aae00
mov eax, dword [0x512a40]
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.00497138
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49b879
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49b9d5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004aab80
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 + 0x517260]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0049c632
mov ecx, dword [esi*4 + 0x517260]
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 0x49b9ce
cmp eax, dword [edi + ecx + 0x24]
jne 0x49b9ce
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 0x49b9ce
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0049c632
add esp, 0x14
test edx, edx
jl 0x49b9ce
jg 0x49b944
test eax, eax
jb 0x49b9ce
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49b9ce
jl 0x49b95e
cmp dword [ebp - 0x1008], eax
ja 0x49b9ce
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49b97c
test ebx, ebx
je 0x49b9b5
cmp ecx, edi
jae 0x49b9b5
mov al, byte [ecx]
cmp al, 0xd
jne 0x49b996
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49b9a2
cmp byte [ecx + 1], 0xa
jne 0x49b9a2
inc ecx
jmp 0x49b9a2
movzx eax, al
movsx eax, byte [eax + 0x512228]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49b97c
cmp edx, ebx
jne 0x49b97c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49b9d3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004a9ea5
leave
ret
Function at 0x49bad0
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 + 0x517260]
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 0x49bb10
cmp byte [ebx], 0xa
jne 0x49bb10
or byte [eax + edi + 0x28], 4
jmp 0x49bb15
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49bc13
mov al, byte [edx]
cmp al, 0x1a
je 0x49bbf5
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x49bb44
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x49bb69
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x49bb73
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 0x49bb26
jmp 0x49bc13
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 0x49bbf0
cmp dword [ebp - 0xc], 0
je 0x49bbf0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x517260]
test byte [eax + edi + 0x28], 0x48
je 0x49bbca
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49bbb5
mov byte [esi], dl
jmp 0x49bbc6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x517260]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49bc13
cmp byte [ebp - 1], 0xa
jne 0x49bbd9
cmp esi, ebx
jne 0x49bbd9
mov byte [esi], 0xa
jmp 0x49bc12
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0049c650
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49bc13
mov byte [esi], 0xd
jmp 0x49bc12
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x517260]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49bc0f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49bc13
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49bc1c
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 + 0x517260]
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 0x49bc5f
cmp word [esi], dx
jne 0x49bc5f
or byte [edi + eax + 0x28], 4
jmp 0x49bc64
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 0x49bdb7
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 0x49bd97
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x49bca6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49bcdc
cmp eax, edx
jae 0x49bce8
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 0x49bc7e
jmp 0x49bdb7
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 0x49bd93
cmp dword [ebp - 0x14], 0
je 0x49bd93
mov eax, dword [ebx*4 + 0x517260]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x49bd6b
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x49bd34
mov word [esi], cx
jmp 0x49bd67
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x517260]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x517260]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x517260]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x49bdb7
pop ebx
cmp word [ebp - 4], bx
jne 0x49bd7c
cmp esi, dword [ebp + 0xc]
jne 0x49bd7c
mov word [esi], bx
jmp 0x49bdb4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0049c650
add esp, 0x10
cmp word [ebp - 4], bx
je 0x49bdb7
push 0xd
jmp 0x49bdb0
mov ecx, dword [ebx*4 + 0x517260]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49bdae
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49bdb7
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
Function at 0x4a9640
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4a96dd
push ebx
push esi
call fcn.004a9609
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0049f7c5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4a968a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4a96dc
push edi
push eax
call fcn.0049c7ef
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4a96aa
call fcn.0049a3b4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4a96db
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0049f7c5
add esp, 0x20
test eax, eax
jne 0x4a96c9
push edi
call fcn.0049a3b4
jmp 0x4a96d1
push ebx
call fcn.0049a3b4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4a96e0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a96f1
pop esi
ret
push ebx
push edi
push esi
call fcn.004a9609
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0049c7ef
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a9719
push ebx
push esi
push edi
call fcn.004abcb0
add esp, 0xc
push 0
call fcn.0049a3b4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4a9add
Capabilities:
Set environment variable

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

Function at 0x4aa940
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4aa97f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4aa97f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4aa97f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4aa97f
cmp dword [ecx + 0x74], 0xe
jbe 0x4aa97f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4b28f0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, eax
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
shr edx, 0x10
movzx edi, ax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0x15b0
nop dword [eax + eax]
cmp eax, 0x10
jb 0x4b2a9e
xorps xmm7, xmm7
nop dword [eax]
cmp dword [ebp + 0x14], 0x15b0
movaps xmm6, xmm7
movd xmm0, edx
movaps xmm5, xmm7
cmova eax, dword [esp + 0xc]
and eax, 0xfffffff0
movd xmm4, edi
sub dword [ebp + 0x14], eax
movaps xmmword [esp + 0x10], xmm0
cmp eax, 0x20
jb 0x4b29ca
mov edx, eax
shr edx, 5
nop
movups xmm2, xmmword [esi]
sub eax, 0x20
movups xmm3, xmmword [esi + 0x10]
add esi, 0x20
movups xmmword [ecx], xmm2
movaps xmm1, xmm2
movaps xmm0, xmm3
pmaddubsw xmm2, xmmword [0x4d78b0]
paddd xmm6, xmm4
movups xmmword [ecx + 0x10], xmm3
add ecx, 0x20
pmaddubsw xmm3, xmmword [0x4d78a0]
psadbw xmm1, xmm7
pmaddwd xmm2, xmmword [0x4d7890]
psadbw xmm0, xmm7
pmaddwd xmm3, xmmword [0x4d7890]
paddd xmm4, xmm1
paddd xmm4, xmm0
movaps xmm0, xmmword [esp + 0x10]
paddd xmm0, xmm2
movaps xmmword [esp + 0x10], xmm0
paddd xmm5, xmm3
sub edx, 1
jne 0x4b2960
pslld xmm6, 5
paddd xmm5, xmm0
movaps xmm3, xmm7
paddd xmm5, xmm6
cmp eax, 0x10
jb 0x4b2a20
movaps xmm2, xmm4
shr eax, 4
movups xmm1, xmmword [esi]
add esi, 0x10
paddd xmm3, xmm2
movaps xmm0, xmm1
psadbw xmm0, xmm7
movups xmmword [ecx], xmm1
add ecx, 0x10
paddd xmm4, xmm0
movaps xmm0, xmm1
pmaddubsw xmm0, xmmword [0x4d78a0]
movaps xmm2, xmm4
pmaddwd xmm0, xmmword [0x4d7890]
paddd xmm5, xmm0
sub eax, 1
jne 0x4b29e5
movaps xmm0, xmm4
pslld xmm3, 4
psrldq xmm0, 8
mov eax, 0x80078071
paddd xmm0, xmm4
paddd xmm3, xmm5
movd edi, xmm0
movaps xmm1, xmm3
punpckhqdq xmm1, xmm3
paddd xmm1, xmm3
mul edi
pshufd xmm0, xmm1, 1
paddd xmm0, xmm1
shr edx, 0xf
imul eax, edx, 0xfff1
movd edx, xmm0
sub edi, eax
mov eax, 0x80078071
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
movd edx, xmm0
sub edx, eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], edx
cmp eax, 0x10
jae 0x4b2930
test eax, eax
jne 0x4b2920
shl edx, 0x10
or edx, edi
mov eax, edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x4b2ac4
sub esi, ecx
dec eax
lea ecx, [ecx + 1]
mov dword [ebp + 0x14], eax
mov al, byte [esi + ecx - 1]
mov byte [ecx - 1], al
movzx eax, al
add edi, eax
mov eax, dword [ebp + 0x14]
add edx, edi
test eax, eax
jne 0x4b2aa4
mov dword [esp + 8], edx
mov eax, 0x80078071
mul edi
mov eax, 0x80078071
shr edx, 0xf
imul ecx, edx, 0xfff1
mul dword [esp + 8]
sub edi, ecx
shr edx, 0xf
mov eax, edx
shl eax, 4
sub eax, edx
add eax, dword [esp + 8]
shl eax, 0x10
or eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b2b40
Capabilities:
Compute adler32 checksum

Disassembly:
mov ecx, dword [esp + 0xc]
sub esp, 8
test ecx, ecx
jne 0x4b2b55
lea eax, [ecx + 1]
vzeroupper
add esp, 8
ret
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x4b2b6a
mov eax, dword [esp + 0x10]
pop edi
vzeroupper
add esp, 8
ret
mov edx, dword [esp + 0x10]
mov eax, edx
vmovdqu ymm7, ymmword [0x4d7c80]
mov dword [esp + 4], edx
shr eax, 0x10
movzx edx, dx
push esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], edx
nop
cmp edi, 0x10
jb 0x4b2d08
cmp edi, 0x20
jb 0x4b2cce
vpxor xmm6, xmm6, xmm6
nop word [eax + eax]
vmovd xmm3, eax
cmp edi, 0x15b0
mov eax, edi
vmovd xmm1, edx
mov edx, 0x15b0
cmova eax, edx
and eax, 0xffffffe0
sub edi, eax
vmovdqu ymm5, ymm1
vmovdqu ymm4, ymm6
cmp eax, 0x20
jb 0x4b2c19
mov edx, dword [esp + 0x24]
shr eax, 5
vmovdqu ymm0, ymmword [ecx]
add ecx, 0x20
vpsadbw ymm2, ymm0, ymm6
test edx, edx
je 0x4b2bf7
vmovdqu ymmword [esi], ymm0
add esi, 0x20
vpmaddubsw ymm0, ymm0, ymm7
vpmaddwd ymm0, ymm0, ymmword [0x4d7c60]
vpaddd ymm1, ymm2, ymm1
vpaddd ymm4, ymm4, ymm5
vpaddd ymm3, ymm0, ymm3
vmovdqu ymm5, ymm1
sub eax, 1
jne 0x4b2be1
vpslld ymm0, ymm4, 5
vpaddd ymm2, ymm0, ymm3
vmovdqu ymm0, ymmword [0x4d7c40]
vpermd ymm1, ymm0, ymm1
vpunpckhqdq xmm0, xmm1, xmm1
vpaddd xmm1, xmm0, xmm1
vpshufd xmm0, xmm1, 1
vpaddd xmm0, xmm0, xmm1
vmovd edx, xmm0
mov eax, 0x80078071
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
vmovd edx, xmm0
vextracti128 xmm0, ymm2, 1
vpaddd xmm1, xmm0, xmm2
vpunpckhqdq xmm0, xmm1, xmm1
sub edx, eax
mov eax, 0x80078071
vpaddd xmm1, xmm0, xmm1
mov dword [esp + 0xc], edx
vpshufd xmm0, xmm1, 1
vpaddd xmm0, xmm0, xmm1
vmovd edx, xmm0
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
vmovd edx, xmm0
sub edx, eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
cmp edi, 0x20
jae 0x4b2bb0
mov edx, eax
shl edx, 0x10
mov dword [esp + 8], edx
mov edx, dword [esp + 0xc]
or dword [esp + 8], edx
test edi, edi
jne 0x4b2b90
mov eax, dword [esp + 8]
pop esi
pop edi
vzeroupper
add esp, 8
ret
cmp dword [esp + 0x24], 0
push edi
push ecx
je 0x4b2cf0
push esi
push dword [esp + 0x14]
vzeroupper
call fcn.004b28f0
add esp, 0x10
pop esi
pop edi
vzeroupper
add esp, 8
ret
push dword [esp + 0x10]
vzeroupper
call fcn.004b1eb0
add esp, 0xc
pop esi
pop edi
vzeroupper
add esp, 8
ret
cmp dword [esp + 0x24], 0
je 0x4b2d48
test edi, edi
je 0x4b2d30
sub ecx, esi
mov al, byte [ecx + esi]
lea esi, [esi + 1]
mov byte [esi - 1], al
movzx eax, al
add edx, eax
add dword [esp + 0x1c], edx
sub edi, 1
jne 0x4b2d15
mov dword [esp + 0xc], edx
mov esi, dword [esp + 0xc]
mov eax, 0x80078071
mul edx
shr edx, 0xf
imul ecx, edx, 0xfff1
sub esi, ecx
jmp 0x4b2d7b
test edi, edi
je 0x4b2d65
nop dword [eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 1]
add edx, eax
add dword [esp + 0x1c], edx
sub edi, 1
jne 0x4b2d50
mov dword [esp + 0xc], edx
mov esi, dword [esp + 0xc]
mov eax, 0x80078071
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
sub esi, eax
mov eax, 0x80078071
mul dword [esp + 0x1c]
shr edx, 0xf
mov eax, edx
shl eax, 4
sub eax, edx
add eax, dword [esp + 0x1c]
shl eax, 0x10
or eax, esi
pop esi
pop edi
vzeroupper
add esp, 8
ret
Function at 0x4b660d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x4b6634
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x4b6637
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004b65e9
pop esi
leave
ret 8

Function at 0x4b6b71
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
push 0x105
call fcn.004b6661
mov edi, eax
test edi, edi
jne 0x4b6b98
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, esi
jmp 0x4b6be1
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x4b6bdc
test al, 0x10
je 0x4b6bdc
test eax, 0x400
je 0x4b6bd8
push 0x2000000
push 0x80
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.004b6be7
push dword [ebp - 4]
mov esi, eax
call fcn.004b66cc
test esi, esi
jne 0x4b6bdc
xor edx, edx
jmp 0x4b6bde
mov edx, ebx
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x4bacc9
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004bac45
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4bae41
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4bae41
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4badf0
jg 0x4bad22
test eax, eax
je 0x4bade6
push 1
push 0x1000
call fcn.0049a99b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4bad48
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4baddd
push 0x8000
push ebx
call fcn.004b89b8
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4bad74
jg 0x4bad6f
cmp ecx, 0x1000
jb 0x4bad74
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0049a1b4
add esp, 0x10
cmp eax, 0xffffffff
je 0x4badb9
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4bad6f
jl 0x4bada0
test ecx, ecx
jne 0x4bad61
push dword [ebp - 0xc]
push ebx
call fcn.004b89b8
push esi
call fcn.0049a3b4
add esp, 0xc
xor edi, edi
jmp 0x4bae52
cmp byte [edi + 0x24], 0
je 0x4badd0
cmp dword [edi + 0x20], 5
jne 0x4badd0
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4baddb
mov edi, dword [edi + 0x18]
jmp 0x4baddd
xor edi, edi
push esi
call fcn.0049a3b4
pop ecx
jmp 0x4bae52
test ecx, ecx
jg 0x4badb2
jl 0x4badf0
test eax, eax
jae 0x4badb2
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0049c650
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4bae13
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4badb2
jmp 0x4bae4a
push ebx
call fcn.004a143f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4badb2
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4bae52
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4bae4f
mov edi, dword [edi + 0x18]
jmp 0x4bae52
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0049c650
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4baf90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4bafbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4bafbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x401310
Capabilities:
Create thread

Disassembly:
push esi
push 0x4941d0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x6c]
test eax, eax
jne 0x40135f
mov eax, dword [esp + 8]
push 0x63
push eax
lea ecx, [esi + 4]
push ecx
call fcn.00449c50
add esp, 0xc
push esi
push 0
push esi
push 0x4012a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x6c], eax
push 0x4941d0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop esi
ret 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40134e
mov edx, dword [esi + 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4941d0
mov dword [esi + 0x6c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x68]
pop esi
ret 4

Function at 0x401470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401489
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40149d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4014be
cmp esi, eax
jae 0x401497
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4014b0
cmp esi, eax
jae 0x401497
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x405b30
Capabilities:
Resume thread

Disassembly:
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x2c]
lea edi, [esi + 0x2c]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 4
push 0
push 0
push 0x47c72c
mov dword [esi + 0x24], eax
call fcn.0045c1e4
test eax, eax
mov dword [esi + 0x1c], eax
jne 0x405b71
mov eax, dword [esi + 0x24]
test eax, eax
je 0x405b71
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x1c]
push edi
add ecx, 0x40
call fcn.00403d30
mov ecx, dword [esi + 0x1c]
lea eax, [esi + 0x28]
push eax
add ecx, 0x4c
call fcn.00403d30
mov ecx, dword [esi + 0x1c]
mov dl, byte [esi + 0x20]
mov byte [ecx + 0x48], dl
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
ret
Function at 0x4077f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4700c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00407410
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.004026d0
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x407882
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret