joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4123a3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040ae14
and dword [ebp - 4], 0
cmp dword [0x422444], 0
mov ebx, eax
jne 0x412454
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x412505
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x412505
push eax
call fcn.0040ada2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x422444], eax
call esi
push eax
call fcn.0040ada2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x422448], eax
call esi
push eax
call fcn.0040ada2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42244c], eax
call esi
push eax
call fcn.0040ada2
pop ecx
mov dword [0x422454], eax
test eax, eax
je 0x412454
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040ada2
pop ecx
mov dword [0x422450], eax
mov eax, dword [0x422450]
cmp eax, ebx
je 0x4124ac
cmp dword [0x422454], ebx
je 0x4124ac
push eax
call fcn.0040ae1d
push dword [0x422454]
mov esi, eax
call fcn.0040ae1d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4124ac
test edi, edi
je 0x4124ac
call esi
test eax, eax
je 0x4124a3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4124a3
test byte [ebp - 0xc], 1
jne 0x4124ac
or dword [ebp + 0x10], 0x200000
jmp 0x4124e5
mov eax, dword [0x422448]
cmp eax, ebx
je 0x4124e5
push eax
call fcn.0040ae1d
pop ecx
test eax, eax
je 0x4124e5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4124e5
mov eax, dword [0x42244c]
cmp eax, ebx
je 0x4124e5
push eax
call fcn.0040ae1d
pop ecx
test eax, eax
je 0x4124e5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x422444]
call fcn.0040ae1d
pop ecx
test eax, eax
je 0x412505
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x412507
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c9b1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x1002d54c], 0
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
jne 0x41ca6b
xor ebx, ebx
nop dword [eax]
mov edx, ebx
mov eax, ebx
shr eax, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, eax
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, edx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [ebx*4 + 0x1002d548], eax
inc ebx
cmp ebx, 0x100
jb 0x41c9d1
mov ebx, dword [ebp + 8]
not ebx
mov eax, ebx
test edi, edi
jle 0x41ca97
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1002d548]
sub edi, 1
jne 0x41ca76
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x41cac9
nop dword [eax]
cmp cl, 0x23
jne 0x41cab0
cmp byte [esi], cl
jne 0x41cab0
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x1002d548]
test cl, cl
jne 0x41caa1
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x431681
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x28
xor eax, eax
mov dword [ebp - 8], edx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
cmp dword [ebx + 0xc], eax
jle 0x431866
mov esi, dword [ebx + 8]
xorps xmm0, xmm0
add esi, 0x14
mov dword [ebp - 0x14], esi
nop dword [eax + eax]
movss xmm1, dword [esi - 0x14]
mov eax, 0x100
comiss xmm1, xmm0
jbe 0x43171b
mov esi, dword [edx + 4]
mov edi, dword [edx + 0x1c]
cwde
movzx ecx, byte [edi + esi + 6]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 7]
add cx, ax
mov eax, 0x100
movsx edx, cx
movzx ecx, byte [edi + esi + 4]
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 5]
mov esi, dword [ebp - 0x14]
add cx, ax
movsx eax, cx
sub eax, edx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
jmp 0x431745
mov eax, dword [ebp - 8]
mov edx, dword [edx + 0x14]
mov eax, dword [eax + 4]
movzx ecx, byte [edx + eax + 0x12]
movzx eax, byte [edx + eax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
xorps xmm1, xmmword [0x1002b560]
mov ecx, dword [ebp - 0xc]
xor edi, edi
movss dword [ebp - 0x18], xmm1
movzx eax, byte [ecx + 0x18]
mov byte [esi], al
movzx eax, byte [ecx + 0x1c]
mov byte [esi + 1], al
mov eax, dword [ebp - 4]
cmp dword [esi - 8], edi
jle 0x431850
mov ecx, dword [ebx + 0x10]
shl eax, 4
add ecx, 6
add eax, ecx
mov dword [ebp - 0x10], eax
mov edx, dword [esi - 0xc]
test edx, edx
jne 0x431784
mov edx, dword [esi - 0x10]
add edx, edi
jmp 0x431787
mov edx, dword [edx + edi*4]
mov ecx, dword [ebp - 8]
call fcn.0042c681
mov ecx, dword [ebp - 0xc]
mov edx, eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ecx + 0x1c]
sub esp, 8
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov dword [esp + 4], 0
mov dword [esp], 0
addsd xmm0, qword [eax*8 + 0x1002b510]
mov eax, dword [ecx + 0x18]
mov ecx, dword [ebp - 8]
cvtpd2ps xmm3, xmm0
movd xmm0, eax
mulss xmm3, dword [ebp - 0x18]
shr eax, 0x1f
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x1002b510]
cvtpd2ps xmm2, xmm0
mulss xmm2, dword [ebp - 0x18]
call fcn.0042efb1
mov edx, dword [ebp - 0xc]
inc edi
mov esi, dword [ebp - 0x10]
add esp, 0x18
movzx eax, word [edx + 0x18]
sub ax, word [ebp - 0x1c]
movzx ecx, word [edx + 0x14]
dec ax
add ax, cx
dec cx
add ax, word [ebp - 0x20]
mov word [esi - 2], ax
movzx eax, word [edx + 0x1c]
sub ax, word [ebp - 0x24]
add ax, cx
mov ecx, esi
add ax, word [ebp - 0x28]
mov esi, dword [ebp - 0x14]
mov word [ecx], ax
add ecx, 0x10
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], eax
cmp edi, dword [esi - 8]
jl 0x431776
mov edx, dword [ebp - 8]
add esi, 0x18
sub dword [ebx + 0xc], 1
xorps xmm0, xmm0
mov dword [ebp - 0x14], esi
jne 0x4316c1
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4387d1
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0x5e6ea9af
push esi
mov esi, edx
mov ecx, 1
mul ebx
push edi
shr edx, 0xb
xor edi, edi
imul eax, edx, 0x15b0
mov edx, ebx
mov dword [ebp - 0x10], edi
sub edx, eax
mov dword [ebp - 4], edx
test ebx, ebx
je 0x43890b
xor ebx, ebx
cmp edx, 7
jbe 0x43886a
mov eax, 7
sub eax, esi
mov dword [ebp - 0x10], eax
movzx eax, byte [esi]
add ebx, 8
add ecx, eax
movzx eax, byte [esi + 1]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 2]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 3]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 4]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 5]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 6]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 7]
add edi, ecx
add esi, 8
add ecx, eax
mov eax, dword [ebp - 0x10]
add eax, esi
add edi, ecx
cmp eax, edx
jb 0x438819
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
cmp ebx, eax
jae 0x4388d0
sub eax, ebx
cmp eax, 2
jb 0x4388bc
mov edx, dword [ebp - 4]
sub edx, ebx
sub edx, 2
shr edx, 1
inc edx
lea ebx, [ebx + edx*2]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 8]
mov edi, ebx
movzx eax, byte [esi]
add ecx, eax
movzx eax, byte [esi + 1]
add ebx, ecx
add esi, 2
add ecx, eax
add edi, ecx
sub edx, 1
jne 0x438896
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 0x10]
cmp ebx, dword [ebp - 4]
jae 0x4388c9
movzx eax, byte [esi]
add ecx, eax
add edi, ecx
inc esi
mov eax, dword [ebp - 0xc]
add eax, edx
add edi, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul eax, edx, 0xffff000f
mov edx, dword [ebp - 4]
add edi, eax
sub dword [ebp + 8], edx
mov edx, 0x15b0
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edx
jne 0x438808
shl edi, 0x10
lea eax, [ecx + edi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x631ea5
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x10003216
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]

Function at 0x632bd5
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.00631ea5
test eax, eax
je 0x632c1b
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x632c1b
cmp word [eax], 0x5a4d
jne 0x632c1b
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x632c1b
mov eax, dword [eax + 0x50]
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.00631f77
mov eax, dword [ebp + 8]
jmp 0x632c34
mov esp, ebp
pop ebp
ret 4
Function at 0x6338ea
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.00631ea5
test eax, eax
je 0x63392d
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x63392d
cmp word [eax], 0x5a4d
jne 0x63392d
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x63392d
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.00631f77
mov eax, dword [ebp + 8]
jmp 0x633946
mov esp, ebp
pop ebp
ret 4
Function at 0x640457
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
call 0x640460
pop eax
mov esi, dword fs:[0x30]
mov esi, dword [esi + 0xc]
mov esi, dword [esi + 0x1c]
push esi
mov ebx, dword [esi + 8]
cmp eax, ebx
jb 0x640483
mov ecx, dword [esi + 0x10]
add ecx, ebx
cmp eax, ecx
ja 0x640483
mov eax, ebx
jmp 0x640498
mov esi, dword [esi]
mov ebx, dword [esi]
cmp ebx, dword [esp]
jne 0x64046f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
pop esi
pop esi
leave
ret
Function at 0x65d7c2
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x65d7e0
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x65d7d5
pop esi
ret

Function at 0x93c1cb
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x11f50
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]

Function at 0x93ca65
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jge 0x93ca87
mov eax, 0xfffffffd
jmp 0x93cb59
cmp dword [0x74], 0
je 0x93cb32
cmp dword [0x78], 5
jl 0x93cab5
cmp dword [0x78], 7
jg 0x93cab5
mov eax, 1
jmp 0x93caba
mov eax, 0
test eax, eax
jne 0x93cad3
cmp dword [0x78], 0xfffffffb
je 0x93cad3
xor eax, eax
jmp 0x93cad8
mov eax, 1
test eax, eax
je 0x93cb04
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x93caed
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
cmp dword [0x74], 0
jne 0x93cb4f
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x93cb59
mov esp, ebp
pop ebp
ret 4

Function at 0x94fb0f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.0093c1cb
test eax, eax
je 0x94fb52
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x94fb52
cmp word [eax], 0x5a4d
jne 0x94fb52
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x94fb52
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.0093ca19
mov eax, dword [ebp + 8]
jmp 0x94fb6b
mov esp, ebp
pop ebp
ret 4

Function at 0x952d96
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.0093c1cb
test eax, eax
je 0x952e01
push ecx
push ebx
xor eax, eax
xchg dword [ebp + 0xc], eax
xchg dword [ebp + 0x10], eax
mov ebx, dword [ebp + 8]
cmp ebx, 0xffff
jle 0x952dff
cmp word [ebx], 0x5a4d
jne 0x952dff
mov ecx, dword [ebx + 0x3c]
add ecx, ebx
cmp dword [ecx], 0x4550
jne 0x952dff
cmp dword [ebp + 0x10], 0
je 0x952df3
movzx eax, word [ecx + 0x16]
and eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0x10]
jne 0x952dff
cmp dword [ecx + 0x28], 0
je 0x952dff
add ebx, dword [ecx + 0x28]
mov dword [ebp + 0xc], ebx
pop ebx
pop ecx
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.0093ca19
mov eax, dword [ebp + 0xc]
jmp 0x952e1a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

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

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..pdata
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x285a6142
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..pdata_1
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x4da58ab
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x402a2c
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 0x402a69
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 0x402a89
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.0040494c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4036dc
Capabilities:
Query or enumerate registry value

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

Function at 0x404560
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x50d04c], 0
je 0x4045c1
cmp word [0x50d220], 0xd7b2
jne 0x404589
cmp dword [0x50d228], 0
jbe 0x404589
mov eax, 0x50d21c
call dword [0x50d238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x50a070
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 0x4045e8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x50a030], 0
jne 0x4045dd
push 0
push 0x50a068
push 0x50a070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4069c8
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 0x406a2e
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.0040494c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403144
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406a18
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a35
lea eax, [ebp - 0x10]
call fcn.004046dc
ret

Function at 0x40c6cc
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 0x40c705
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047cc
jmp 0x40c70e
mov eax, ebx
mov edx, esi
call fcn.00404730
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c718
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 0x40c739
mov al, byte [esp]
jmp 0x40c73b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40cdc0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cc38
mov eax, dword [0x50c8ac]
cmp byte [eax], 0
je 0x40ce3c
mov eax, dword [0x50c534]
call fcn.00402efc
call fcn.00402988
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.0040986c
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 0x40ce84
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ce72
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x50c4ac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x50d668]
call fcn.00405ec0
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 0x40d744
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 0x40d81a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404774
lea eax, [ebp - 8]
call fcn.00404bec
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404b9c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d804
mov eax, ebx
call fcn.00402820
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d7fd
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.00404b9c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d7e7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d82c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d7e7
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 0x40d804
mov eax, dword [ebp - 0x10]
call fcn.00402840
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d821
lea eax, [ebp - 8]
call fcn.004046dc
ret

Function at 0x40dda4
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 0x40de08
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.0040494c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409370
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de0f
lea eax, [ebp - 0xc]
call fcn.004046dc
ret

Function at 0x426e20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x50d888
cmp dword [edi], 0
jne 0x426e9c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x50d884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x50a650
mov ecx, 2
call fcn.00402ac4
mov edx, 0x426df8
lea eax, [esi + 5]
call fcn.00426e18
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00426e18
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 0x426e71
mov dword [0x50d884], 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 0x428498
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 0x42849e
ret
Function at 0x42ab08
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x42ab59
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42ab40
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42ab30
jmp 0x42ab59
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x42ab41
pop ebx
mov esp, ebp
pop ebp
ret