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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ebx
call fcn.0056e280
mov edi, dword [ebx + 0x18]
xor eax, eax
mov esi, dword [ebx + 0x1c]
add esp, 4
mov word [ebp - 0x20], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
movsx eax, byte [ebx + 0x44]
mov dword [ebp - 0x10], 0
mov eax, dword [ebx + eax*4 + 0x78]
mov ecx, dword [eax + 0x3c]
movzx eax, word [ebx + 0x20]
sub ecx, edi
cmp eax, ecx
cmovb ecx, eax
cmp esi, ecx
ja 0x5ab1e9
mov eax, 0x1010
mov dword [ebp - 0x18], edi
mov word [ebp - 0x20], ax
mov dword [ebp - 0x1c], esi
jmp 0x5ab209
lea eax, [ebp - 0x28]
push eax
push 1
push esi
push 0
push ebx
call fcn.005b7840
add esp, 0x14
test eax, eax
jne 0x5ab2d9
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov al, byte [edi]
cmp al, 0x80
jae 0x5ab214
movzx ebx, al
jmp 0x5ab224
lea eax, [ebp + 0xc]
push eax
push edi
call fcn.0058ffa0
mov ebx, dword [ebp + 0xc]
add esp, 8
cmp ebx, 3
jb 0x5ab29b
cmp ebx, esi
jg 0x5ab29b
lea eax, [edi - 1]
add eax, ebx
mov cl, byte [eax]
cmp cl, 0x80
jae 0x5ab23e
movzx ecx, cl
jmp 0x5ab24e
lea ecx, [ebp + 0xc]
push ecx
push eax
call fcn.0058ffa0
mov ecx, dword [ebp + 0xc]
add esp, 8
lea eax, [ecx - 1]
cmp eax, 8
ja 0x5ab29b
cmp ecx, 7
je 0x5ab29b
movzx edx, byte [ecx + 0x5fd3c0]
lea eax, [edx + ebx]
cmp esi, eax
jb 0x5ab29b
lea eax, [ebp - 0x50]
sub esi, edx
push eax
push ecx
add esi, edi
push esi
call fcn.005ad5c0
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x50]
mov dword [ecx], eax
mov eax, dword [ebp - 0x4c]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x28]
push eax
call fcn.005ac300
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dword [ebp - 0x20], 0x2460
jne 0x5ab2aa
cmp dword [ebp - 0x10], 0
je 0x5ab2b6
lea eax, [ebp - 0x28]
push eax
call fcn.005b7780
add esp, 4
push 0x605788
push 0x123c9
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0055a850
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5b4ce0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov cl, byte [esi]
test cl, cl
je 0x5b4d0e
nop
movzx ecx, cl
lea esi, [esi + 1]
movzx edx, byte [ecx + 0x5fce00]
lea ecx, [eax*8]
xor edx, ecx
mov cl, byte [esi]
xor eax, edx
test cl, cl
jne 0x5b4cf0
pop esi
pop ebp
ret
Function at 0x405c90
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x405cce
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x405cc6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x405cd0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x405cb6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x405da0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x405dd1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x405dd1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x405dd1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x21a47df9
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..text_1
nop
nop
nop
cmp eax, 0
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x2407a80
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x46e7f6
Capabilities:
Read file on windows

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

Function at 0x46ed24
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042d530
mov eax, dword [0x49a040]
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.0046b883
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x46ed66
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x46eec2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00482380
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 + 0x4e88e8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004702b7
mov ecx, dword [esi*4 + 0x4e88e8]
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 0x46eebb
cmp eax, dword [edi + ecx + 0x24]
jne 0x46eebb
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 0x46eebb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004702b7
add esp, 0x14
test edx, edx
jl 0x46eebb
jg 0x46ee31
test eax, eax
jb 0x46eebb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x46eebb
jl 0x46ee4b
cmp dword [ebp - 0x1008], eax
ja 0x46eebb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x46ee69
test ebx, ebx
je 0x46eea2
cmp ecx, edi
jae 0x46eea2
mov al, byte [ecx]
cmp al, 0xd
jne 0x46ee83
lea eax, [edi - 1]
cmp ecx, eax
jae 0x46ee8f
cmp byte [ecx + 1], 0xa
jne 0x46ee8f
inc ecx
jmp 0x46ee8f
movzx eax, al
movsx eax, byte [eax + 0x49a320]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x46ee69
cmp edx, ebx
jne 0x46ee69
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x46eec0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042c38b
leave
ret
Function at 0x46f440
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 + 0x4e88e8]
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 0x46f480
cmp byte [ebx], 0xa
jne 0x46f480
or byte [eax + edi + 0x28], 4
jmp 0x46f485
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x46f583
mov al, byte [edx]
cmp al, 0x1a
je 0x46f565
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x46f4b4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x46f4d9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x46f4e3
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 0x46f496
jmp 0x46f583
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 0x46f560
cmp dword [ebp - 0xc], 0
je 0x46f560
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4e88e8]
test byte [eax + edi + 0x28], 0x48
je 0x46f53a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46f525
mov byte [esi], dl
jmp 0x46f536
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4e88e8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46f583
cmp byte [ebp - 1], 0xa
jne 0x46f549
cmp esi, ebx
jne 0x46f549
mov byte [esi], 0xa
jmp 0x46f582
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004702d5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46f583
mov byte [esi], 0xd
jmp 0x46f582
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4e88e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46f57f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46f583
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46f58c
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 + 0x4e88e8]
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 0x46f5cf
cmp word [esi], dx
jne 0x46f5cf
or byte [edi + eax + 0x28], 4
jmp 0x46f5d4
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 0x46f727
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 0x46f707
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x46f616
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46f64c
cmp eax, edx
jae 0x46f658
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 0x46f5ee
jmp 0x46f727
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 0x46f703
cmp dword [ebp - 0x14], 0
je 0x46f703
mov eax, dword [ebx*4 + 0x4e88e8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x46f6db
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x46f6a4
mov word [esi], cx
jmp 0x46f6d7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4e88e8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4e88e8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4e88e8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x46f727
pop ebx
cmp word [ebp - 4], bx
jne 0x46f6ec
cmp esi, dword [ebp + 0xc]
jne 0x46f6ec
mov word [esi], bx
jmp 0x46f724
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004702d5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x46f727
push 0xd
jmp 0x46f720
mov ecx, dword [ebx*4 + 0x4e88e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46f71e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46f727
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 0x4878b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x49a040]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
push 1
call fcn.0042c39e
mov cl, byte [0x491c7c]
xorps xmm0, xmm0
movups xmmword [esp + 0x20], xmm0
xor esi, esi
mov byte [esp + 0x20], cl
xor edi, edi
mov byte [esp + 0x21], 0
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
xor ebx, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
nop dword [eax]
movd xmm0, ebx
cvtdq2ps xmm0, xmm0
addss xmm0, dword [0x491de0]
movss dword [esp + 0x14], xmm0
cmp esi, edi
je 0x487926
movss dword [esi], xmm0
add esi, 4
mov dword [esp + 0x20], esi
jmp 0x48793d
lea eax, [esp + 0x14]
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.00408170
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
inc ebx
cmp ebx, 0xa
jl 0x487900
mov eax, dword [esp + 0x1c]
xor ebx, ebx
sub esi, eax
xor ecx, ecx
mov edx, esi
xor ebp, ebp
sar edx, 2
mov dword [esp + 0x14], edx
test edx, edx
je 0x4879cd
cmp edx, 0x3fffffff
ja 0x487ada
lea ebp, [edx*4]
cmp ebp, 0x1000
jb 0x4879a2
lea eax, [ebp + 0x23]
cmp eax, ebp
jbe 0x487adf
push eax
call fcn.0042c39e
add esp, 4
test eax, eax
je 0x487ae4
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
mov eax, dword [esp + 0x1c]
jmp 0x4879b9
test ebp, ebp
je 0x4879b7
push ebp
call fcn.0042c39e
mov ebx, eax
add esp, 4
mov eax, dword [esp + 0x1c]
jmp 0x4879b9
xor ebx, ebx
push esi
push eax
push ebx
add ebp, ebx
call fcn.0042e280
mov eax, dword [esp + 0x20]
add esp, 0xc
lea ecx, [ebx + eax*4]
sub ecx, ebx
sar ecx, 2
test ecx, ecx
je 0x487a5b
xor esi, esi
nop dword [eax]
movzx eax, byte [esi + 0x4e5f00]
mov edx, str.Own_head
xor al, 0x73
sub al, 0x6c
xor al, 0x74
mov byte [esi + 0x4e5f00], al
call fcn.00405ba0
push eax
call fcn.00405db0
movzx eax, byte [esi + 0x4e5f00]
add esp, 4
add al, 0x4e
mov edx, str.Earth
xor al, 0xdc
mov byte [esi + 0x4e5f00], al
call fcn.00405ba0
push eax
call fcn.00405db0
movzx eax, byte [esi + 0x4e5f00]
add esp, 4
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x491cdc
mov byte [esi + 0x4e5f00], al
call fcn.0045676a
xor byte [esi + 0x4e5f00], al
add esp, 4
inc esi
cmp esi, 0x4ac
jb 0x4879e0
test ebx, ebx
je 0x487a88
sub ebp, ebx
mov eax, ebx
and ebp, 0xfffffffc
cmp ebp, 0x1000
jb 0x487a7e
mov ebx, dword [eax - 4]
add ebp, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487ae4
push ebp
push ebx
call fcn.0042c3ce
add esp, 8
push 1
push dword [esp + 0x1c]
call fcn.0042c3ce
mov ecx, dword [esp + 0x24]
add esp, 8
test ecx, ecx
je 0x487ac7
sub edi, ecx
mov eax, ecx
and edi, 0xfffffffc
cmp edi, 0x1000
jb 0x487abd
mov ecx, dword [eax - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487ae4
push edi
push ecx
call fcn.0042c3ce
add esp, 8
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042c38b
add esp, 0x2c
ret
call fcn.004079e0
call fcn.00401520
call fcn.00456c11
int3
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6e207c8c
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x2c8a62d7
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x402a20
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404078
test esi, esi
jne 0x402a56
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404168
jmp 0x402a74
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402934
mov edi, eax
test esi, esi
je 0x402a74
cmp dword [ebx], 0
je 0x402a74
dec esi
jmp 0x402a5d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40311c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45d020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4031b4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403194
xor eax, eax
push ebp
push 0x40318d
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 0x4031d0
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 0x403194
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45d020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45d020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403e78
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45f048], 0
je 0x403ed9
cmp word [0x45f21c], 0xd7b2
jne 0x403ea1
cmp dword [0x45f224], 0
jbe 0x403ea1
mov eax, 0x45f218
call dword [0x45f234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45d06c
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 0x403f00
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45d030], 0
jne 0x403ef5
push 0
push 0x45d064
push 0x45d06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40402c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026ec
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x45f049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403ff4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405d34
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405d9a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004042e8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ce0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d84
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405da1
lea eax, [ebp - 0x10]
call fcn.00404078
ret

Function at 0x40b068
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 pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b0a1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404168
jmp 0x40b0aa
mov eax, ebx
mov edx, esi
call fcn.004040cc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b0b4
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_1
test eax, eax
jle 0x40b0d5
mov al, byte [esp]
jmp 0x40b0d7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b75c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b5d4
mov eax, dword [0x45e1cc]
cmp byte [eax], 0
je 0x40b7d8
mov eax, dword [0x45dfd8]
call fcn.00402b4c
call fcn.00402860
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408730
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b820
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b80e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45df84]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45f664]
call fcn.00405248
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40c074
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c14a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404110
lea eax, [ebp - 8]
call fcn.00404588
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404538
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c134
mov eax, ebx
call fcn.004026ec
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c12d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404538
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c117
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c15c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c117
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c134
mov eax, dword [ebp - 0x10]
call fcn.0040270c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c151
lea eax, [ebp - 8]
call fcn.00404078
ret

Function at 0x40c654
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 0x40c6b8
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_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004042e8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040822c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c6bf
lea eax, [ebp - 0xc]
call fcn.00404078
ret

Function at 0x41a928
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45f884
cmp dword [edi], 0
jne 0x41a9a4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45f880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45d46c
mov ecx, 2
call fcn.004028f4
mov edx, 0x41a900
lea eax, [esi + 5]
call fcn.0041a920
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a920
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41a979
mov dword [0x45f880], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41bf20
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41bf26
ret