joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466c70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3b000]
push edi
jmp 0x466c8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x466c91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x466c80
mov eax, 1
add ebx, ebx
jne 0x466ca3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x466cb4
jne 0x466cd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x466cd3
dec eax
add ebx, ebx
jne 0x466cc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x466c98
add ebx, ebx
jne 0x466ccf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x466d25
xor ecx, ecx
sub eax, 3
jb 0x466ceb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x466d5a
sar eax, 1
mov ebp, eax
jmp 0x466cf6
add ebx, ebx
jne 0x466cf6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x466cc4
inc ecx
add ebx, ebx
jne 0x466d04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x466cc4
add ebx, ebx
jne 0x466d11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x466d06
jne 0x466d22
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x466d06
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x466d44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x466d36
jmp 0x466c86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x466d44
add edi, ecx
jmp 0x466c86
pop esi
mov edi, esi
mov ecx, 0x1d76
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x466d62
cmp byte [edi], 0xa
jne 0x466d62
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x466d67
lea edi, [esi + 0x62000]
mov eax, dword [edi]
or eax, eax
je 0x466ddf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6a878]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6a954]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x466d94
mov ecx, edi
jns 0x466dc3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6a958]
or eax, eax
je 0x466dd9
mov dword [ebx], eax
add ebx, 4
jmp 0x466db1
call dword [esi + 0x6a968]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x466e10
cmp al, 0xef
ja 0x466e03
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x466de5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x466df2
mov ebp, dword [esi + 0x6a95c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x466e44
sub esp, 0xffffff80
jmp 0x40eafb
Function at 0x59afbc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5ae8b0]
jne 0x59afc6
repz ret
jmp fcn.0059d6db

Function at 0x59ed5f
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.0059b0bc
and dword [ebp - 4], 0
cmp dword [0x5b0b34], 0
mov ebx, eax
jne 0x59ee10
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x59eec1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x59eec1
push eax
call fcn.0059b04a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5b0b34], eax
call esi
push eax
call fcn.0059b04a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5b0b38], eax
call esi
push eax
call fcn.0059b04a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5b0b3c], eax
call esi
push eax
call fcn.0059b04a
pop ecx
mov dword [0x5b0b44], eax
test eax, eax
je 0x59ee10
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0059b04a
pop ecx
mov dword [0x5b0b40], eax
mov eax, dword [0x5b0b40]
cmp eax, ebx
je 0x59ee68
cmp dword [0x5b0b44], ebx
je 0x59ee68
push eax
call fcn.0059b0c5
push dword [0x5b0b44]
mov esi, eax
call fcn.0059b0c5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x59ee68
test edi, edi
je 0x59ee68
call esi
test eax, eax
je 0x59ee5f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x59ee5f
test byte [ebp - 0xc], 1
jne 0x59ee68
or dword [ebp + 0x10], 0x200000
jmp 0x59eea1
mov eax, dword [0x5b0b38]
cmp eax, ebx
je 0x59eea1
push eax
call fcn.0059b0c5
pop ecx
test eax, eax
je 0x59eea1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x59eea1
mov eax, dword [0x5b0b3c]
cmp eax, ebx
je 0x59eea1
push eax
call fcn.0059b0c5
pop ecx
test eax, eax
je 0x59eea1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5b0b34]
call fcn.0059b0c5
pop ecx
test eax, eax
je 0x59eec1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x59eec3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5a0800
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [0x5ae454], 0x1b77
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x5ae454], 0x2042
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x5a0859
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x18], eax
je 0x5a0871
jmp 0x5a0941
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
je 0x5a08cd
jmp 0x5a08ea
xor eax, eax
mov dword [0x5ae458], 0x2099
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x18], eax
je 0x5a08ad
jmp 0x5a0941
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x18], eax
je 0x5a0907
jmp 0x5a0941
xor eax, eax
mov dword [0x5ae454], 0xe2e
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x18], eax
je 0x5a0894
jmp 0x5a0941
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
je 0x5a0840
jmp 0x5a0941
mov eax, dword [ebp - 0x1c]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], eax
jl 0x5a0859
jmp 0x5a08cd
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x18], eax
jne 0x5a0941
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x18], eax
jne 0x5a0941
mov eax, 1
mov dword [0x5ae458], 0xffffe8fd
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add esp, 0x20
pop ebp
ret
Function at 0x5a19c0
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov bl, 0x6b
lea esi, [ebp - 0x4c]
lea edi, [ebp - 0x8c]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x6c]
mov byte [ebp - 0x6c], 0x56
mov byte [ebp - 0x6b], 0x69
mov byte [ebp - 0x6a], 0x72
mov byte [ebp - 0x69], 0x74
mov byte [ebp - 0x68], 0x75
mov byte [ebp - 0x67], 0x61
mov byte [ebp - 0x66], 0x6c
mov byte [ebp - 0x65], 0x41
mov byte [ebp - 0x64], 0x6c
mov byte [ebp - 0x63], 0x6c
mov byte [ebp - 0x62], 0x6f
mov byte [ebp - 0x61], 0x63
mov byte [ebp - 0x60], 0
mov byte [ebp - 0x5f], 0x6f
mov dword [0x5ae458], 0x256
mov byte [ebp - 0x8c], 0x6b
mov byte [ebp - 0x8b], 0x65
mov byte [ebp - 0x8a], 0x72
mov byte [ebp - 0x89], 0x6e
mov byte [ebp - 0x88], 0x65
mov byte [ebp - 0x87], 0x6c
mov byte [ebp - 0x86], 0x33
mov byte [ebp - 0x85], 0x32
mov byte [ebp - 0x84], 0x2e
mov byte [ebp - 0x83], 0x64
mov byte [ebp - 0x82], 0x6c
mov byte [ebp - 0x81], 0x6c
mov byte [ebp - 0x80], 0
mov byte [ebp - 0x7f], 0x6f
mov dword [0x5ae454], 0x2598
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0xa4], edi
mov byte [ebp - 0xa5], bl
jmp 0x5a1b80
mov eax, dword [ebp - 0xac]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x90]
mov dword [esp + 4], ecx
mov dword [ebp - 0xb0], eax
call fcn.005a0970
xor eax, eax
mov ecx, dword [ebp - 0xb0]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [0x5ae454], 0x1cae
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x98]
mov dword [edx + 0x54], ecx
mov ecx, dword [ebp - 0xb0]
mov dword [edx + 0x20], ecx
mov dword [0x5ae458], 0x3c1
add ecx, 0x15cd
mov esi, dword [ebp - 0xb0]
cmp esi, 0
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xb8], eax
je 0x5a1b6f
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
add esp, 0xc0
pop esi
pop edi
pop ebx
pop ebp
ret
mov al, byte [ebp - 0xa5]
mov ecx, dword [ebp - 0xa0]
mov edx, ecx
inc edx
movsx esi, al
mov di, si
mov word [ebp + ecx*2 - 0x4c], di
mov al, byte [ebp + ecx - 0x8b]
cmp al, 0
mov dword [ebp - 0xa0], edx
mov byte [ebp - 0xa5], al
jne 0x5a1b80
xor eax, eax
lea ecx, [ebp - 0x4c]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [ebp - 0xbc], eax
call fcn.005a0530
mov dword [esp], eax
mov eax, dword [ebp - 0x94]
mov dword [esp + 4], eax
call fcn.0059f7f0
mov dword [0x5ae454], 0x1dfa
cmp eax, 0
mov dword [ebp - 0xac], eax
jne 0x5a1ab9
xor eax, eax
add esp, 0xc0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5a1f20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x5ae45c], 0
mov dword [0x5ae460], 0
mov dword [0x5ae46c], 0
mov dword [0x5ae458], 0x109b
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
je 0x5a1f74
jmp 0x5a1f7c
jmp 0x5a1f74
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x5a1f8d
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov edi, eax
add edi, 1
add edx, 1
mov dword [ebp - 0x2c], eax
mov eax, edx
cdq
idiv esi
mov dword [0x5ae45c], edx
mov ebx, dword [ebp - 0x1c]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x5ae460], edx
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov cl, byte [ecx + esi]
mov byte [0x5ae464], cl
mov ebx, dword [ebp - 0x1c]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x5ae464]
mov edx, dword [0x5ae460]
mov byte [ebx + edx], cl
mov dword [0x5ae458], 0x122e
mov edx, dword [0x5ae45c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x5ae460]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x5ae46c], ecx
mov dword [0x5ae458], 0x2252
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2c]
mov ch, byte [edx + esi]
mov dword [0x5ae458], 0x100b
mov dword [0x5ae454], 0x156a
xor ch, cl
mov edx, dword [ebp - 0x18]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x34], edi
je 0x5a1f72
mov eax, dword [0x5ae460]
mov ecx, dword [0x5ae45c]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], edx
jmp 0x5a1f8d
Function at 0x5a2080
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x88]
lea ecx, [esp + 0x28]
mov dword [0x5ae454], 0x928
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.005a0dc0
lea ecx, [0x5a0b50]
mov edx, dword [esp + 0x88]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x44], 0x14c000
mov edx, dword [0x5ae440]
mov dword [esp + 0x3c], edx
mov edx, dword [0x5ae444]
mov dword [esp + 0x30], edx
mov edx, dword [0x5ae458]
add edx, 0xffffdee9
mov dword [0x5ae454], edx
mov edx, dword [0x5ae448]
mov dword [esp + 0x80], edx
mov edx, dword [0x5ae44c]
mov dword [esp + 0x38], edx
mov edx, dword [0x5ae450]
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x5a2131
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
je 0x5a2154
jmp 0x5a2140
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
je 0x5a2117
mov eax, dword [esp + 0x18]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x1c], eax
jmp 0x5a2131
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov eax, dword [eax + ecx + 0x50]
mov dword [esp + 0x70], eax
call fcn.005a0800
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x5a21c3
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x90]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.005a19c0
mov dword [0x5ae458], 0x1220
mov ecx, esp
lea edx, [esp + 0x28]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov ecx, dword [0x5ae454]
add ecx, 0xfffff14b
mov dword [0x5ae454], ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x402734
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.0040377c
test esi, esi
jne 0x40276a
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.0040386c
jmp 0x402788
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402648
mov edi, eax
test esi, esi
je 0x402788
cmp dword [ebx], 0
je 0x402788
dec esi
jmp 0x402771
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402c9c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x40a008], 0x8088405
inc edx
mov dword [ebx + 0x40a008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402f20
Capabilities:
Query or enumerate registry value

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

Function at 0x403600
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40b034], 0
je 0x403661
cmp word [0x40b208], 0xd7b2
jne 0x403629
cmp dword [0x40b210], 0
jbe 0x403629
mov eax, 0x40b204
call dword [0x40b220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40a074
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 0x403688
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40a01c], 0
jne 0x40367d
push 0
push 0x40a094
push 0x40a074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4046ac
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4048dc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40472f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4048dc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40472f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4048f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4047b8
xor eax, eax
push ebp
push 0x4047b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004044f4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404796
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404918
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404796
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4047b8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4048d2
cmp byte [ebp - 0xd], 0
jne 0x4047ff
cmp byte [ebp - 0x12], 0
je 0x4048d2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404818
dec ebx
cmp byte [ebx], 0x2e
je 0x404827
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404817
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4048d2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404864
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4048d2
cmp byte [ebp - 0xd], 0
je 0x4048d2
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4048d2
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4056cc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
call sub.kernel32.dll_GetTickCount
mov esi, eax
push edi
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, esi
mov edx, edi
sub edx, 0x64
cmp edx, eax
jbe 0x4056f2
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x405ac8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebp, ecx
mov ebx, edx
mov dword [esp], eax
mov eax, ebp
mov edx, dword [esp]
call fcn.004037d0
mov esi, ebx
mov eax, dword [ebp]
call fcn.00403900
test ax, ax
jbe 0x405b33
mov word [esp + 4], ax
mov bx, 1
mov eax, ebp
call fcn.00403b50
movzx edi, bx
mov edx, dword [ebp]
mov dl, byte [edx + edi - 1]
movzx ecx, si
shr ecx, 8
xor dl, cl
mov byte [eax + edi - 1], dl
mov eax, dword [esp]
movzx eax, byte [eax + edi - 1]
add si, ax
imul ax, si, 0xa80d
add ax, 0x53bb
mov esi, eax
inc ebx
dec word [esp + 4]
jne 0x405af8
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x406018
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
mov eax, esi
mov edx, ebx
call fcn.004037d0
mov eax, dword [esi]
call fcn.00403900
test ax, ax
jbe 0x406078
mov word [esp], ax
mov bx, 1
mov eax, esi
call fcn.00403b50
movzx ebp, bx
mov edx, dword [esi]
mov dl, byte [edx + ebp - 1]
movzx ecx, di
shr ecx, 8
xor dl, cl
mov byte [eax + ebp - 1], dl
mov eax, dword [esi]
movzx eax, byte [eax + ebp - 1]
add di, ax
imul ax, di, 0xa80d
add ax, 0x53bb
mov edi, eax
inc ebx
dec word [esp]
jne 0x406040
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4061ac
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 0x4061e5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040386c
jmp 0x4061ee
mov eax, ebx
mov edx, esi
call fcn.004037d0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4