joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x477880
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x475015
lea edi, [esi - 0x74015]
push edi
or ebp, 0xffffffff
jmp 0x4778a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4778a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x477898
mov eax, 1
add ebx, ebx
jne 0x4778bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4778b0
jne 0x4778cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4778b0
xor ecx, ecx
sub eax, 3
jb 0x4778e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x477952
mov ebp, eax
add ebx, ebx
jne 0x4778eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4778f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x47791c
inc ecx
add ebx, ebx
jne 0x477908
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4778fd
jne 0x477919
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4778fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47793c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47792d
jmp 0x47789e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47793c
add edi, ecx
jmp 0x47789e
pop esi
mov edi, esi
mov ecx, 0x25e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47795a
cmp byte [edi], 2
jne 0x47795a
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 eax, ebx
loop 0x47795f
lea edi, [esi + 0x75000]
mov eax, dword [edi]
or eax, eax
je 0x4779ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x77000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x770c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47798c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x770cc]
or eax, eax
je 0x4779c8
mov dword [ebx], eax
add ebx, 4
jmp 0x4779a9
call dword [esi + 0x770d0]
popal
jmp 0x4011cb
Function at 0x401588
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x40159a
mov eax, dword [0x4db08b]
shl eax, 2
mov dword [0x4db08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004bcdec
pop edx
call fcn.004bcd50
call fcn.004bce2c
push 0
call fcn.004be238
pop ecx
push 0x4db034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4db093], eax
push 0
jmp fcn.004c20a8
Function at 0x401d2c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
push ebx
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea ebx, [ebp - 0x44]
mov esi, 0x4db37a
mov eax, 0x4db7a8
call fcn.004bd598
mov dword [ebx + 0x1c], 2
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.004c62e4
inc dword [ebx + 0x1c]
lea edx, [ebp - 8]
mov word [ebx + 0x10], 8
lea eax, [ebp - 8]
call fcn.004c62e4
inc dword [ebx + 0x1c]
xor edx, edx
mov word [ebx + 0x10], 0x14
mov dword [ebp - 0x14], edx
lea edx, [ebp - 4]
inc dword [ebx + 0x1c]
lea ecx, [ebp - 0x14]
lea eax, [esi + 0xb6]
call fcn.004c678c
lea ecx, [ebp - 0x14]
push ecx
lea edx, [esi + 0xba]
lea eax, [ebp - 0x18]
call fcn.004c62ac
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x18]
inc dword [ebx + 0x1c]
lea ecx, [ebp - 0x1c]
pop eax
call fcn.004c63d4
lea eax, [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0xc], edx
lea ecx, [ebp - 0xc]
inc dword [ebx + 0x1c]
lea edx, [ebp - 8]
call fcn.004c63d4
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004c637c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004c637c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004c637c
mov word [ebx + 0x10], 8
mov word [ebx + 0x10], 0x20
lea edx, [esi + 0xbe]
lea eax, [ebp - 0x20]
call fcn.004c62ac
inc dword [ebx + 0x1c]
mov edx, eax
xor eax, eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, 0x4ef58c
inc dword [ebx + 0x1c]
call fcn.004c63d4
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004c637c
mov word [ebx + 0x10], 8
push 0x3c
push 0
lea ecx, [ebp - 0x80]
push ecx
call fcn.004bd27c
mov dword [ebp - 0x80], 0x3c
xor eax, eax
lea edx, [esi + 0xcc]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x401e7d
mov ecx, dword [ebp - 0x10]
jmp 0x401e83
lea ecx, [esi + 0xd1]
mov dword [ebp - 0x70], ecx
cmp dword [ebp - 0xc], 0
je 0x401e91
mov eax, dword [ebp - 0xc]
jmp 0x401e97
lea eax, [esi + 0xd2]
mov dword [ebp - 0x6c], eax
xor edx, edx
mov dword [ebp - 0x64], edx
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x7c], 0x40
push ecx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
je 0x401ec6
push 0xffffffffffffffff
mov edx, dword [ebp - 0x48]
push edx
call sub.KERNEL32.DLL_WaitForSingleObject
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004c637c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004c637c
dec dword [ebx + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004c637c
dec dword [ebx + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004c637c
mov ecx, dword [ebx]
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4131c8
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
mov byte [ebp - 8], dl
test dl, dl
jle 0x4131db
call fcn.004c6a90
mov ebx, ecx
mov byte [ebp - 0x29], dl
mov dword [ebp - 4], eax
mov eax, 0x4e0780
call fcn.004bd598
mov word [ebp - 0x18], 8
mov ecx, ebx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0045049c
add dword [ebp - 0xc], 2
mov eax, dword [ebp - 4]
add eax, 0x30
xor edx, edx
mov dword [eax], edx
inc dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add eax, 0x34
xor edx, edx
mov dword [eax], edx
inc dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ecx + 0x40], eax
mov edx, dword [ebp - 4]
xor ecx, ecx
mov dword [edx + 0x44], ecx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x48], edx
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ecx + 0x4c], eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
mov eax, dword [ebp - 4]
cmp byte [ebp - 0x29], 0
je 0x413255
call fcn.004c6a9d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413c60
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea ebx, [ebp - 0x48]
mov esi, 0x4e0b34
mov eax, 0x4e0c18
call fcn.004bd598
mov dword [ebx + 0x1c], 2
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.004c62e4
inc dword [ebx + 0x1c]
lea edx, [ebp - 8]
mov word [ebx + 0x10], 8
lea eax, [ebp - 8]
call fcn.004c62e4
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x110]
push edx
push 0xc8
call sub.KERNEL32.DLL_GetTempPathA
mov word [ebx + 0x10], 0x14
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x14]
call fcn.004c62ac
mov edx, eax
inc dword [ebx + 0x1c]
mov eax, 0x4ef5bc
call fcn.004c63ac
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004c637c
mov word [ebx + 0x10], 0x20
xor ecx, ecx
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x18]
inc dword [ebx + 0x1c]
lea edx, [ebp - 4]
lea eax, [esi + 0x30]
call fcn.004c678c
lea eax, [ebp - 0x18]
push eax
lea edx, [esi + 0x34]
lea eax, [ebp - 0x1c]
call fcn.004c62ac
inc dword [ebx + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x20]
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x1c]
pop eax
call fcn.004c63d4
lea eax, [ebp - 0x20]
xor edx, edx
mov dword [ebp - 0xc], edx
lea ecx, [ebp - 0xc]
inc dword [ebx + 0x1c]
lea edx, [ebp - 8]
call fcn.004c63d4
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004c637c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004c637c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004c637c
mov word [ebx + 0x10], 8
mov word [ebx + 0x10], 0x2c
lea edx, [esi + 0x38]
lea eax, [ebp - 0x24]
call fcn.004c62ac
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, 0x4ef5bc
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x10]
call fcn.004c63d4
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004c637c
mov word [ebx + 0x10], 8
push 0x3c
push 0
lea ecx, [ebp - 0x14c]
push ecx
call fcn.004bd27c
mov dword [ebp - 0x14c], 0x3c
xor eax, eax
lea edx, [esi + 0x46]
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], edx
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x413df9
mov ecx, dword [ebp - 0x10]
jmp 0x413dfc
lea ecx, [esi + 0x4b]
mov dword [ebp - 0x13c], ecx
cmp dword [ebp - 0xc], 0
je 0x413e0d
mov eax, dword [ebp - 0xc]
jmp 0x413e10
lea eax, [esi + 0x4c]
mov dword [ebp - 0x138], eax
xor edx, edx
mov dword [ebp - 0x130], edx
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x148], 0x40
push ecx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
je 0x413e4e
push 0xffffffffffffffff
mov edx, dword [ebp - 0x114]
push edx
call sub.KERNEL32.DLL_WaitForSingleObject
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004c637c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004c637c
dec dword [ebx + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004c637c
dec dword [ebx + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004c637c
mov ecx, dword [ebx]
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41870c
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
and eax, 1
test al, al
je 0x41873b
mov eax, dword [ebp - 4]
shr eax, 1
xor eax, 0xedb88320
mov dword [ebp - 4], eax
jmp 0x41873e
shr dword [ebp - 4], 1
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 8
jne 0x418722
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [eax*4 + 0x4ef5d0], edx
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x100
jne 0x418717
mov byte [0x4ef9d0], 1
mov esp, ebp
pop ebp
ret

Function at 0x41876c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp byte [0x4ef9d0], 0
jne 0x41878f
call fcn.0041870c
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x4187ce
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
movzx eax, byte [eax + edx]
xor eax, dword [ebp - 0x14]
and eax, 0xff
mov eax, dword [eax*4 + 0x4ef5d0]
mov edx, dword [ebp - 0x14]
shr edx, 8
xor eax, edx
mov dword [ebp - 0x14], eax
inc dword [ebp - 0x18]
dec dword [ebp - 0x1c]
jne 0x4187a2
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4507d8
Capabilities:
Suspend thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0xe], 1
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_SuspendThread
test eax, eax
setge dl
mov eax, ebx
call fcn.0045065c
pop ebx
ret

Function at 0x4507f8
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0045065c
dec esi
jne 0x45081a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x451944
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4efd00
cmp dword [edi], 0
jne 0x4519c0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4efcfc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4e9d28
mov ecx, 2
call fcn.004644e8
mov edx, 0x45191c
lea eax, [esi + 5]
call fcn.0045193c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0045193c
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 0x451995
mov dword [0x4efcfc], 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 0x45331c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x443860]
call fcn.00466944
xor eax, eax
push ebp
push 0x453460
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e9d70], 0
jne 0x45336f
mov ecx, dword [0x4eefd0]
mov dl, 1
mov eax, dword [0x4543d4]
call fcn.00457e14
call fcn.004659b8
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00464a78
mov eax, ebx
call fcn.00466794
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x453470
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00467dc8
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004667a4
test eax, eax
jle 0x453407
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.KERNEL32.DLL_GetComputerNameA
test eax, eax
je 0x453400
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.0046619c
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00466184
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004552e0
test eax, eax
jne 0x453400
mov ebx, 0x15
jmp 0x45340c
mov ebx, 0x10
jmp 0x45340c
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4e9d70]
call fcn.00453274
mov eax, dword [ebp - 8]
call fcn.00453274
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00467de0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453467
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00465f40
lea eax, [ebp - 0x10]
mov edx, dword [0x443860]
call fcn.00466a14
ret

Function at 0x4575a0
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x4575d9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0046600c
jmp 0x4575e2
mov eax, ebx
mov edx, esi
call fcn.00465f70
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4575ec
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
test eax, eax
jle 0x45760d
mov al, byte [esp]
jmp 0x45760f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x458920
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 0x458984
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
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00466184
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.004556b0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45898b
lea eax, [ebp - 0xc]
call fcn.00465f1c
ret

Function at 0x46505c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4ea290]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4650f4
push reloc.OLEAUT32.DLL_SysReAllocString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4650d4
xor eax, eax
push ebp
push 0x4650cd
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 0x465110
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 0x4650d4
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x4ea290]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4ea290], ax
mov esp, ebp
pop ebp
ret

Function at 0x465d1c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f0040], 0
je 0x465d7d
cmp word [0x4f0214], 0xd7b2
jne 0x465d45
cmp dword [0x4f021c], 0
jbe 0x465d45
mov eax, 0x4f0210
call dword [0x4f022c]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x465da4
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4ea2a0], 0
jne 0x465d99
push 0
push 0x4ea2f8
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret

Function at 0x465ed0
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.0046424c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4f0041], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x465e98
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4679ec
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 0x467c1c
push SysReAllocString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x467a6f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x467c1c
push reloc.OLEAUT32.DLL_SysReAllocString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x467a6f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x467c38
push SysReAllocString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x467af8
xor eax, eax
push ebp
push 0x467af1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00467834
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 0x467ad6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x467c58
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x467ad6
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 0x467af8
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 0x467c12
cmp byte [ebp - 0xd], 0
jne 0x467b3f
cmp byte [ebp - 0x12], 0
je 0x467c12
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x467b58
dec ebx
cmp byte [ebx], 0x2e
je 0x467b67
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x467b57
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x467c12
inc ebx
cmp byte [ebp - 0x12], 0
je 0x467ba4
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 0x467c12
cmp byte [ebp - 0xd], 0
je 0x467c12
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 0x467c12
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