joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4207a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4628b7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x4812c4]
push esi
push edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov edi, 1
test eax, eax
mov dword [esp + 0x24], edi
je 0x420950
mov esi, dword [esp + 0x34]
test esi, esi
jbe 0x420950
push eax
lea ecx, [esp + 0x34]
call fcn.00445882
mov eax, dword [esp + 0x30]
mov byte [esp + 0x24], 2
mov ecx, dword [eax - 8]
cmp ecx, 5
jge 0x420820
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.00445589
mov dword [esp + 0xc], edi
jmp 0x420940
mov dl, byte [eax + 4]
push edi
mov byte [esp + 0x1c], dl
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call fcn.0043e61b
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x24], 3
push ecx
call fcn.0042d28a
add esp, 4
test eax, eax
jl 0x42091e
cmp eax, 3
jg 0x42091e
mov edx, dword [0x4812c4]
mov dword [esp + 0x10], edx
mov edx, edi
mov ecx, eax
shl edx, cl
lea eax, [esp + 0x10]
mov byte [esp + 0x24], 4
push edx
push 0x480094
push eax
call fcn.0043eb91
add esp, 0xc
lea ecx, [esp + 0x18]
push 4
push ecx
lea ecx, [esp + 0x38]
call fcn.0043e793
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 5
call fcn.0044594d
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 4
call fcn.00445814
mov edx, dword [0x4812c4]
mov dword [esp + 0x34], edx
push esi
lea eax, [esp + 0x38]
push str._.4d
push eax
mov byte [esp + 0x30], 6
call fcn.0043eb91
add esp, 0xc
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0xc]
call fcn.00445c2c
lea edx, [esp + 0x10]
lea ecx, [esp + 8]
push edx
call fcn.00445c2c
mov esi, dword [esp + 0x2c]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.00445589
lea ecx, [esp + 0x34]
mov dword [esp + 0xc], edi
mov byte [esp + 0x24], 4
call fcn.00445814
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 3
call fcn.00445814
jmp 0x420932
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.00445589
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call fcn.00445814
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 1
call fcn.00445814
jmp 0x420964
mov esi, dword [esp + 0x2c]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.00445589
mov dword [esp + 0xc], edi
lea ecx, [esp + 8]
mov byte [esp + 0x24], 0
call fcn.00445814
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x420f20
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor ecx, ecx
test edi, edi
jle 0x420f4b
mov dl, byte [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
mov al, byte [ecx + esi]
xor al, dl
mov dl, al
mov byte [ecx + esi], al
shl dl, 5
shr al, 1
add dl, al
inc ecx
cmp ecx, edi
jl 0x420f34
pop esi
pop edi
ret
Function at 0x420f50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
push esi
xor esi, esi
test ebp, ebp
jle 0x420f7e
mov cl, byte [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
mov al, byte [esi + edi]
mov dl, al
xor dl, cl
mov cl, al
shl cl, 5
shr al, 1
mov byte [esi + edi], dl
add cl, al
inc esi
cmp esi, ebp
jl 0x420f65
pop edi
pop esi
pop ebp
ret

Function at 0x421290
Capabilities:
Terminate process

Disassembly:
sub esp, 0x3e8
push ebx
mov ebx, dword [esp + 0x3f4]
test ebx, ebx
push edi
je 0x42133f
mov edi, dword [esp + 0x3f4]
test edi, edi
je 0x42133f
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [edx]
cmp al, 0x20
je 0x4212e6
cmp al, 9
jne 0x4212e9
inc edx
jmp 0x4212dc
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0xc]
cmp eax, edx
je 0x421314
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x20
je 0x42130d
cmp cl, 9
jne 0x421314
cmp eax, edx
mov byte [eax], 0
jne 0x4212ff
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ebx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop edi
pop ebx
add esp, 0x3e8
ret
push 0
call fcn.0042e1f3
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x421350
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4629af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0xc], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
test esi, esi
jg 0x421391
push 1
call fcn.0042e1f3
push esi
call fcn.00445e00
mov dword [esp + 0x14], eax
mov byte [eax], 0
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x14]
mov edi, 1
push eax
push ebp
mov dword [esp + 0x2c], edi
call fcn.00421290
mov esi, dword [esp + 0x34]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0040e870
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x10]
mov byte [esp + 0x20], 0
test eax, eax
je 0x4213e3
push eax
call fcn.00445e29
add esp, 4
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x43deb0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0042dd40
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x43df7b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x43df7b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x43df2e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x43df39
or bh, 8
and edi, 0x8000000
je 0x43df54
mov eax, dword [0x48921c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x43df7b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43e350
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x43e37b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x43e39f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x43e3ba
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x44118b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4411ad
cmp dword [edi + 0x3c], 0
jne 0x4411ad
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00458998
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004411da
pop edi
pop esi
pop ebx
ret 8

Function at 0x441228
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.00458998
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x441259
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.0044126c
pop edi
pop esi
pop ebx
ret 8
Function at 0x44155e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x462c44
call fcn.0042f7b8
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00458998
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x44159d
call fcn.00458998
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4415ab
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4415b9
or eax, 0xffffffff
jmp 0x4416a1
mov ecx, esi
call fcn.004414d4
mov dword [ebp - 0x14], eax
call fcn.00442390
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4415f0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4415f0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00442344
push dword [ebp - 0x14]
call fcn.00441e76
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0044126c
cmp eax, edi
je 0x441663
test byte [esi + 0x24], 0x10
je 0x441631
push 4
mov ecx, esi
pop ebx
call fcn.00444d5a
test ah, 1
je 0x441629
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004446f7
cmp dword [esi + 0x1c], edi
je 0x441663
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00444ecb
jmp 0x441663
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x441677
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x441690
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x441690
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0044150e
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x442840
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x442878
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00445cbb
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00445c93
jmp 0x442884
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4444a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4444e2
call fcn.00458998
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4444e2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4444d9
xor eax, eax
jmp 0x4444ea
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004444f0
pop edi
pop esi
pop ebx
ret 4

Function at 0x459b7b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x459ba9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x459bc7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00459ae1
jmp 0x459bc7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x459bc7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00459ae1
test edi, edi
mov eax, edi
jne 0x459bb1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x45f90c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_recv
ret 0xc

Function at 0x45f98a
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_send
ret 0xc
Function at 0x4030bc
Capabilities:
Query or enumerate registry value

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

Function at 0x403a00
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x410044], 0
je 0x403a61
cmp word [0x410218], 0xd7b2
jne 0x403a29
cmp dword [0x410220], 0
jbe 0x403a29
mov eax, 0x410214
call dword [0x410230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40f060
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 0x403a88
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40f020], 0
jne 0x403a7d
push 0
push 0x40f058
push 0x40f060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4044a8
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 0x4046d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40452b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4046d8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40452b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4046f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4045b4
xor eax, eax
push ebp
push 0x4045ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004042f0
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 0x404592
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404714
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404592
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 0x4045b4
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 0x4046ce
cmp byte [ebp - 0xd], 0
jne 0x4045fb
cmp byte [ebp - 0x12], 0
je 0x4046ce
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404614
dec ebx
cmp byte [ebx], 0x2e
je 0x404623
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404613
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4046ce
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404660
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 0x4046ce
cmp byte [ebp - 0xd], 0
je 0x4046ce
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 0x4046ce
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 0x404864
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 0x4048ca
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.00403de4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b54
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4048b4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4048d1
lea eax, [ebp - 0x10]
call fcn.00403b9c
ret

Function at 0x406834
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 0x40686d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403c8c
jmp 0x406876
mov eax, ebx
mov edx, esi
call fcn.00403bf0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x406f28
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406da0
mov eax, dword [0x40f3bc]
cmp byte [eax], 0
je 0x406fa4
mov eax, dword [0x40f30c]
call fcn.00402a0c
call fcn.0040262c
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.00405ba8
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 0x406fec
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x406fda
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x40f2ec]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x410660]
call fcn.004042b4
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 0x407998
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 0x4079fc
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.00403de4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405a7c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407a03
lea eax, [ebp - 0xc]
call fcn.00403b9c
ret