joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x401443
pop dword [ebp - 0x50]
mov eax, 0x947629af
add eax, 0x6bc9ea94
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xbcb8eb21
sub dword [ebp - 0x60], 0x6e66a5d6
mov dword [ebp - 0x5c], 0x782c6363
add dword [ebp - 0x5c], 0xba06e8e2
mov dword [ebp - 0x58], 0x5dcd49d4
sub dword [ebp - 0x58], 0x118105a6
mov dword [ebp - 0x54], 0xef478dec
sub dword [ebp - 0x54], 0xef478dec
lea eax, [ebp - 0x60]
push eax
mov eax, 0xa683d969
sub eax, 0xa6436825
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x699d3373
add dword [ebp - 0x60], 0xad535e3
mov dword [ebp - 0x5c], 0x99da509e
sub dword [ebp - 0x5c], 0x586def29
mov dword [ebp - 0x58], 0xb99541e9
sub dword [ebp - 0x58], 0x5625d57d
mov dword [ebp - 0x54], 0x7c0ed39c
add dword [ebp - 0x54], 0x83f12c64
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x5ee8352e
sub eax, 0x5ea7c41e
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x35a49
push 0
call eax
mov ecx, 0x9735aca9
sub ecx, 0x97356e78
mov ebx, eax
mov esi, 0x423724d2
sub esi, 0x41f3c4d2
add esi, dword [ebp - 0x50]
mov edi, 0xcdda2466
add dword [ebp - 0x40], 0x670bf711
mov edx, dword [esi]
xor dword [ebp - 0x10], esi
sub edx, edi
sub dword [ebp - 0x30], ebx
mov dword [ebx], edx
xor dword [ebp - 0x3c], 0x1351439a
add ebx, 0x6fc0768b
add ebx, 0x903f8979
add esi, 0x584d4f3c
add esi, 0xa7b2b0c8
loop 0x40155f
add eax, 0xeb97
mov ebx, eax
add eax, 0x5fde1759
sub eax, 0x5fde1754
mov ecx, 0x9ef314af
sub ecx, 0x9eb314af
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x402a69
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x424010]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402afd
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402aba
cmp dword [ebp + 0x10], ebx
jne 0x402af1
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402acc
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402aa1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
call fcn.004060b1
cmp eax, ebx
je 0x402b04
push ebx
push dword [0x424010]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402afd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x424010], ebx
jne 0x402afa
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402afa
jmp 0x402afd
Function at 0x402fbd
Capabilities:
Encrypt data using rc4 prga

Disassembly:
lea edx, [0x4047d9]
mov ecx, edx
mov eax, dword [edx]
inc ecx
inc ecx
inc ecx
inc ecx
mov edi, dword [ecx]
mov ecx, eax
mov eax, dword [edi]
add edi, 4
mov esi, edi
mov ebx, esi
add edi, eax
mov edx, edi
dec edx
sub ecx, eax
dec ecx
dec ecx
dec ecx
dec ecx
lea eax, [0x4047d9]
mov dword [eax], ecx
inc eax
inc eax
inc eax
inc eax
mov dword [eax], edi
push ecx
mov cl, byte [edi]
mov al, byte [0x404324]
mov ah, byte [esi]
add al, ah
xor al, cl
mov byte [edi], al
mov eax, edx
cmp esi, eax
jne 0x40300a
mov esi, ebx
dec esi
inc esi
pop ecx
inc edi
dec ecx
jne 0x402ff1
mov edi, esi
push 0x39
push 0x4047d9
push 0x111
push dword [0x4047b5]
call dword [sym.imp.user32.dll_SendMessageA]
mov ecx, dword [0x4047d9]
mov edi, dword [0x4047dd]
mov esi, dword [0x4047cd]
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x40303c
mov esi, dword [0x40431f]
mov ecx, dword [0x40431b]
push ecx
add ecx, esi
mov dword [0x404799], ecx
pop ecx
mov eax, dword [esi]
inc esi
inc esi
nop
inc esi
inc esi
mov edi, dword [0x4047cd]
mov ebx, esi
add ebx, eax
mov dword [0x404795], ebx
mov edx, esi
add esi, eax
mov ecx, 0
movzx eax, byte [edx]
inc eax
cmp edx, ebx
jae 0x4030e3
cmp eax, ecx
jae 0x403088
ret
sub eax, ecx
mov ecx, eax
test ecx, ecx
je 0x403099
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x403090
inc edx
mov al, byte [edx]
inc edx
movzx ecx, byte [edx]
test ecx, ecx
je 0x4030ac
push ecx
mov byte [edi], al
inc edi
dec ecx
jne 0x4030a5
pop ecx
inc edx
movzx eax, byte [edx]
inc cl
cmp cl, 0
jne 0x4030cd
inc al
cmp al, 0
jne 0x4030c5
inc edx
movzx eax, word [edx]
inc edx
inc edx
jmp 0x4030c9
mov al, 0
dec al
dec cl
jmp 0x4030df
dec cl
inc al
cmp al, 0
jne 0x4030dd
inc edx
movzx eax, word [edx]
inc edx
inc edx
jmp 0x4030df
dec al
jmp 0x40307f
mov ecx, dword [0x404799]
sub ecx, esi
test ecx, ecx
je 0x4030f8
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x4030ef
mov edi, dword [0x4047cd]
mov dword [0x4047cd], edi
ret

Function at 0x40c7fb
Capabilities:
Encode data using xor

Disassembly:
adc byte [ecx + 0x38fcfcfc], bl
or al, 0x10
adc al, 0x18
arpl word [ecx + 0x2036f8b3], di
and al, 0x28
sub al, 0x30
xor al, 0x1c
xor al, 0x1c
cmp byte [eax + 0x46c72c], bh
mov eax, 0x46c72c
push eax
push dword fs:[0]
mov dword fs:[0], esp
and eax, 0
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x40c87b
arpl word [edx + esi], si
je 0x40c898
inc ecx
sub al, 0x61
jl 0x40c7dc
sub byte [ecx], 0xcb
bound eax, qword [edi - 0x7c]
ja 0x40c80a
jno 0x40c7f7
mov byte [eax + edx*4 + 0x1dc771dc], cl
xchg esp, eax
cwde
pushfd
adc al, 0xc6
sbb eax, 0xa8a4a077
xchg edx, eax
sub al, 0x61
sub al, 0x81
dec esp
aad 0xf3
xor eax, 0x83d40ca8
cmp eax, dword [0x290d2ef8]
jae 0x40c83c
pop ebp
in eax, dx
push 0x38c2fc19
daa
arpl word [ebx], di
das
dec edi
sub al, 0x67
dec esi
hlt
sbb byte [eax], dl
sbb al, 0x14
invalid
mov eax, dword [0x3702acb1]
mov cl, 0xac
add dh, byte [edi]
sal byte [eax], 0x22
or dword [edi], ecx
stosd dword es:[edi], eax
add al, 0x24
jmp 0x40c897
Function at 0x410f7e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x410f8d
pop dword [ebp - 0x38]
mov eax, 0x5b3003b8
add eax, 0xa5110bd5
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x3eb80
push 0
mov eax, 0x611cf603
add eax, 0x9f24dbfd
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0x4e12
xor edx, edx
add edx, eax
mov esi, 0x436000
add esi, dword [ebp - 0x38]
mov ebx, 0x1daa1f32
sub ebx, 0x9eb57849
sub dword [ebp - 0xc], 0xe266bb45
mov edi, dword [esi]
add dword [ebp - 0xc], edi
xor edi, ebx
xor dword [ebp - 0x34], ecx
mov dword [edx], edi
xor dword [ebp - 0x30], 0x9db1f101
add edx, 0x37bb6596
add edx, 0xc8449a6e
add esi, 4
loop 0x410fe2
add eax, 0x12b1b
mov ebx, eax
add eax, 0x64a3879c
sub eax, 0x64a38797
mov ecx, 0x9ee5c278
sub ecx, 0x9ea5c278
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x2bed7b9a
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42cd70
mov ecx, 0x4baf6fed
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4209cb
Capabilities:
Parse pe header

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

Function at 0x433180
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4331ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4331ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x410370
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
jmp 0x41038a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x410391
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x410380
mov eax, 1
add ebx, ebx
jne 0x4103a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x410398
jne 0x4103b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x410398
xor ecx, ecx
sub eax, 3
jb 0x4103c8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41043a
mov ebp, eax
add ebx, ebx
jne 0x4103d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4103e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x410404
inc ecx
add ebx, ebx
jne 0x4103f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4103e5
jne 0x410401
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4103e5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x410424
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x410415
jmp 0x410386
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x410424
add edi, ecx
jmp 0x410386
pop esi
mov edi, esi
mov ecx, 0x277
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x410442
cmp byte [edi], 5
jne 0x410442
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 0x410447
lea edi, [esi + 0xe000]
mov eax, dword [edi]
or eax, eax
je 0x4104b6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x128f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12944]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x410474
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12948]
or eax, eax
je 0x4104b0
mov dword [ebx], eax
add ebx, 4
jmp 0x410491
call dword [esi + 0x12958]
mov ebp, dword [esi + 0x1294c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
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 0x4104ea
sub esp, 0xffffff80
jmp 0x4027e0
Function at 0x40c20d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a548]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00409883
mov dword [ebp - 0x14], eax
cmp dword [0x436478], esi
jne 0x40c300
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c28d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c3e0
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c3e0
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c3e0
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x436478], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43647c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x436480], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x436488], eax
test eax, eax
je 0x40c2fd
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x436484], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c325
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c318
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c33a
push 4
pop eax
jmp 0x40c3e2
cmp dword [ebp - 0x14], esi
je 0x40c33a
push dword [0x436478]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c31f
mov eax, dword [0x436484]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c398
cmp dword [0x436488], edi
je 0x40c398
push eax
call ebx
push dword [0x436488]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c398
test eax, eax
je 0x40c398
call ecx
test eax, eax
je 0x40c38d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c38d
test byte [ebp - 8], 1
jne 0x40c398
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c3c8
mov eax, dword [0x43647c]
cmp eax, edi
je 0x40c3c5
push eax
call ebx
test eax, eax
je 0x40c3c5
call eax
mov esi, eax
test esi, esi
je 0x40c3c5
mov eax, dword [0x436480]
cmp eax, edi
je 0x40c3c5
push eax
call ebx
test eax, eax
je 0x40c3c5
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x436478]
call ebx
test eax, eax
je 0x40c3e0
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c3e2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404320
mov esp, ebp
pop ebp
ret
Function at 0x401b00
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407048
call sym._EnterCriticalSection_4
mov ebx, dword [0x407040]
sub esp, 4
test ebx, ebx
je 0x401b4b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401b44
test esi, esi
je 0x401b44
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401b20
mov dword [esp], 0x407048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401d50
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401da0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401e74
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x401dde
cmp eax, 4
jne 0x401e00
test esi, esi
je 0x401df2
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x401de4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x401e3f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x401e31
cmp ecx, 0x40
je 0x401df2
cmp ecx, 4
je 0x401df2
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401d50
lea esi, [esi]
Function at 0x10006807
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x10006816
pop dword [ebp - 0x28]
mov eax, 0x3295ec1a
add eax, 0xdd6a7bfc
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x39392
push 0
mov eax, 0x446e8710
sub eax, 0x346d25d0
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x4542
xor edi, edi
add edi, eax
mov ebx, 0xf7e6ddff
sub ebx, 0xe7e499ff
add ebx, dword [ebp - 0x28]
mov edx, 0xa3616b1a
add edx, 0xd622cb6d
sub dword [ebp - 0x24], 0x64a08c21
mov esi, dword [ebx]
sub dword [ebp - 0x18], 0x969ffdb5
xor esi, edx
add dword [ebp - 0x24], ecx
mov dword [edi], esi
sub dword [ebp - 0x1c], 0xa1101dbd
add edi, 0x4a0096c4
add edi, 0xb5ff6940
add ebx, 4
loop 0x10006871
add eax, 0x4fcb1cfe
sub eax, 0x4fca1523
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x4027f4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40288c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40286c
xor eax, eax
push ebp
push 0x402865
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 0x4028a8
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 0x40286c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x404118
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 0xf003f
push 0
push 0x4042d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404179
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4042ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4041e6
xor eax, eax
push ebp
push 0x4041df
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
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 0x4041c8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40430c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4041e6
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
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 0x4042c7
cmp byte [ebp - 0xd], 0
jne 0x404228
cmp byte [ebp - 0x12], 0
je 0x4042c7
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404241
dec ebx
cmp byte [ebx], 0x2e
je 0x404250
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404240
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4042c7
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40427d
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4042c7
cmp byte [ebp - 0xd], 0
je 0x4042c7
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4042c7
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
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 0x4067b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4068ba
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x406803
push 0x105
lea eax, [ebp - 0x109]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
mov ecx, eax
lea edx, [ebp - 0x109]
mov eax, dword [ebp - 4]
call fcn.004033c0
jmp 0x4068a1
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
mov eax, ebx
call fcn.00406764
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.00406784
mov ebx, eax
test esi, esi
je 0x40682b
dec esi
test esi, esi
jl 0x40682b
cmp edi, ebx
jne 0x40680a
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.00403400
mov eax, dword [ebp - 0x110]
mov ecx, ebx
sub ecx, edi
mov edx, 1
call fcn.00403658
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403454
cmp eax, 2
jl 0x4068a1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x4068a1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403454
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x4068a1
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403454
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.00403658
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4068c1
lea eax, [ebp - 0x110]
call fcn.004032dc
ret

Function at 0x4069cc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406a36
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.00403400
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00406970
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a3d
lea eax, [ebp - 0x10c]
call fcn.004032dc
ret

Function at 0x406a44
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406aae
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.00403400
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00406970
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406ab5
lea eax, [ebp - 0x10c]
call fcn.004032dc
ret