joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40aa60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4100a0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x416008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 4]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
test esi, esi
je 0x40abd2
cmp byte [esi + 0x54], 0
je 0x40abd2
add esi, 0x1c
xorps xmm0, xmm0
xor bl, bl
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x14], bl
test esi, esi
je 0x40aae6
mov eax, dword [esi]
test eax, eax
je 0x40aae3
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40aadd
cmp eax, 0x80
je 0x40aadd
xor bl, bl
jmp 0x40aae3
mov byte [esi + 4], 1
mov bl, 1
mov byte [ebp - 0x14], bl
mov dword [ebp - 4], 0
mov eax, dword [edi + 4]
cmp dword [eax + 0x14], 8
jb 0x40aaf8
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40abab
mov edx, dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x30]
call fcn.004062c0
add esp, 4
mov byte [ebp - 4], 1
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x34]
push 0
push ecx
push dword [ebp - 0x20]
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x40ab99
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ab8f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ab8f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0040d8bc
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x40abcb
test bl, bl
je 0x40abcb
mov eax, dword [esi]
test eax, eax
je 0x40abc7
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d87b
mov esp, ebp
pop ebp
ret 4
Function at 0x40acf0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4100d8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x416008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x40ad33
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.00407a80
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x40ad5c
lea eax, [esi + 8]
jmp 0x40ad5e
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x40ad6e
cmp dword [ebx + 0x14], 8
jb 0x40ad70
mov ebx, dword [ebx]
jmp 0x40ad70
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x40ad91
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40ad91
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x40adba
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40adcf
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.0040d8bc
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d87b
mov esp, ebp
pop ebp
ret 4

Function at 0x40ce00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x416008]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x40ce82
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x40ce82
test ecx, ecx
je 0x40ce7e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x40ce40
xor eax, eax
jmp 0x40ce87
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40ce91
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040d87b
add esp, 0xc
ret 0xc
Function at 0x40d6d0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x416008]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x40d735
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d710
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40d735
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0040d87b
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0040d87b
add esp, 8
ret 4

Function at 0x623114
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp + 8]
call fcn.0075d674
pushfd
push ecx
jmp 0x763a05
jmp 0x622db6

Function at 0x75c32a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [esp], 0xa582f2e8
stosb byte es:[edi], al
push dword [esp]
push dword [esp + 4]
lea esp, [esp + 0xc]
jne 0x75bb06
push 0xdfba4e1d
jmp 0x61931a

Function at 0x7644a8
Capabilities:
Encode data using xor

Disassembly:
bt cx, cx
shr ebx, 0xc
test bp, 0x1f8e
cmc
stc
cmp ebx, 1
push ebp
call fcn.00760878
jmp 0x61fa71
Function at 0x401000
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push edx
push 0x41bb80
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360sd.exe
push 0x80000002
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x208
call dword [0x4161ec]
lea eax, [esp + 0xc]
push eax
call dword [0x4161f0]
test eax, eax
pop edi
je 0x40109a
mov ecx, dword [esp + 0x214]
push 2
lea edx, [esp + 0xc]
push ecx
push edx
call dword [0x416180]
add esp, 0xc
test eax, eax
je 0x40109a
push 0x40
push 0x419088
push 0x419058
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov al, 1
add esp, 0x210
ret
xor al, al
add esp, 0x210
ret

Function at 0x4016a0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x458
push ebx
push ebp
push edi
xor ebp, ebp
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x56]
mov word [esp + 0x54], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, dword [esp + 0x468]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x25e]
mov word [esp + 0x25c], bp
push 0x5c
rep stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
call dword [0x416188]
add esp, 8
cmp eax, ebp
je 0x4017f4
sub eax, ebx
mov edi, dword [0x416184]
sar eax, 1
push esi
lea esi, [eax + 1]
lea eax, [esp + 0x58]
push esi
push ebx
push eax
call edi
push esi
lea ecx, [esp + 0x270]
push ebx
push ecx
call edi
mov esi, dword [0x416190]
push 0x419200
call esi
mov edi, dword [0x41618c]
push eax
lea edx, [esp + 0x78]
push 0x419200
push edx
call edi
push str.360sdrun.old
call esi
push eax
lea eax, [esp + 0x290]
push str.360sdrun.old
push eax
call edi
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x70]
mov dword [esp + 0x6c], ebp
rep stosd dword es:[edi], eax
mov ecx, 8
lea edi, [esp + 0x4c]
mov esi, dword [0x41604c]
mov dword [esp + 0x48], ebp
rep stosd dword es:[edi], eax
add esp, 0x38
lea ecx, [esp + 0x10]
lea edx, [esp + 0x58]
push ecx
push ebp
push edx
call esi
lea eax, [esp + 0x34]
push eax
push ebp
push ebx
call esi
mov ecx, 8
lea edi, [esp + 0x48]
lea esi, [esp + 0x24]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
pop esi
je 0x4017a6
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
je 0x4017f4
lea ecx, [esp + 0x54]
push ecx
call dword [0x4161f0]
test eax, eax
je 0x4017f4
lea edx, [esp + 0x54]
push edx
call fcn.00402bc0
add esp, 4
test eax, eax
je 0x4017f4
lea eax, [esp + 0x25c]
push eax
call dword [0x416048]
lea ecx, [esp + 0x25c]
push ecx
push ebx
call dword [0x416044]
push ebp
lea edx, [esp + 0x58]
push ebx
push edx
call dword [0x416038]
pop edi
pop ebp
pop ebx
add esp, 0x458
ret
Function at 0x4029e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x44
push esi
mov esi, dword [esp + 0x4c]
push esi
mov dword [esi], 0x114
call dword [0x416080]
test eax, eax
jne 0x402aa3
push edi
mov ecx, 0xf
lea edi, [esp + 0xd]
mov byte [esp + 0xc], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x50]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0xc]
push ecx
push edx
push str.CurrentVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
mov dword [esp + 0x20], 1
mov dword [esp + 0x68], 0x40
call dword [0x4161ec]
test eax, eax
pop edi
jne 0x402a76
movsx eax, byte [esp + 8]
lea ecx, [esp + 0xa]
sub eax, 0x30
push ecx
mov dword [esi + 0x10], 2
mov dword [esi + 4], eax
call dword [0x4161a8]
add esp, 4
mov dword [esi + 8], eax
mov eax, 1
pop esi
add esp, 0x44
ret
call dword [0x41607c]
xor edx, edx
mov ecx, eax
mov dl, ah
and ecx, 0xff
mov eax, 4
and edx, 0xff
cmp eax, ecx
mov dword [esi + 4], ecx
sbb ecx, ecx
mov dword [esi + 8], edx
neg ecx
inc ecx
mov dword [esi + 0x10], ecx
mov eax, 1
pop esi
add esp, 0x44
ret

Function at 0x402b00
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], eax
call fcn.00402ab0
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
neg eax
sbb eax, eax
mov dword [esp + 0x18], ecx
and eax, str.runas
lea ecx, [esp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x54]
push ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 1
xor esi, esi
call dword [0x4161e4]
test eax, eax
je 0x402ba9
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x40]
push edx
push eax
call dword [0x416040]
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x402b93
mov ecx, dword [esp + 0x40]
push eax
push ecx
mov dword [eax], esi
call dword [0x4160a0]
mov edx, dword [esp + 0x40]
push edx
call dword [0x41602c]
pop edi
mov eax, 1
pop esi
add esp, 0x3c
ret
mov eax, esi
pop edi
pop esi
add esp, 0x3c
ret
Function at 0x409090
Capabilities:
Parse pe header

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x1c]
push 0x40
push edi
push 0
push 0
push ebp
call fcn.00409240
add esp, 0x14
test eax, eax
je 0x40922f
cmp word [edi], 0x5a4d
je 0x4090cd
push 0x41ab04
push 1
push 0x197
jmp 0x409222
lea eax, [esp + 0x10]
push 4
push eax
mov eax, dword [edi + 0x3c]
cdq
push edx
push eax
push ebp
call fcn.00409240
add esp, 0x14
test eax, eax
je 0x40922f
cmp dword [esp + 0x10], 0x4550
je 0x409106
push 0x41ab04
push 1
push 0x19c
jmp 0x409222
mov esi, dword [edi + 0x3c]
xor ebx, ebx
push 0x14
add esi, 4
push edi
push ebx
push esi
push ebp
call fcn.00409240
add esp, 0x14
test eax, eax
je 0x40922f
add esi, 0x14
lea ecx, [esp + 0x1c]
adc ebx, ebx
push 2
push ecx
push ebx
push esi
push ebp
call fcn.00409240
add esp, 0x14
test eax, eax
je 0x40922f
mov ax, word [esp + 0x1c]
cmp ax, 0x10b
jne 0x409173
mov ax, word [edi + 0x10]
cmp ax, 0x78
jae 0x409169
push 0x41aaf0
push 1
push 0x1a9
jmp 0x409222
mov dword [esp + 0x18], 1
jmp 0x4091a0
cmp ax, 0x20b
jne 0x409216
mov ax, word [edi + 0x10]
cmp ax, 0x88
jae 0x409198
push 0x41aaf0
push 1
push 0x1af
jmp 0x409222
mov dword [esp + 0x18], 0
and eax, 0xffff
push eax
push edi
push ebx
push esi
push ebp
call fcn.00409240
add esp, 0x14
test eax, eax
je 0x40922f
mov eax, dword [esp + 0x18]
lea edx, [esi + 0x40]
test eax, eax
mov eax, dword [esp + 0x20]
mov dword [eax], edx
je 0x4091e1
add esi, 0x80
mov dword [eax + 4], esi
mov ecx, dword [edi + 0x80]
mov dword [eax + 0xc], ecx
mov edx, dword [edi + 0x84]
jmp 0x4091f9
add esi, 0x90
mov dword [eax + 4], esi
mov ecx, dword [edi + 0x90]
mov dword [eax + 0xc], ecx
mov edx, dword [edi + 0x94]
mov dword [eax + 0x14], edx
mov edx, dword [eax + 4]
mov ecx, dword [edi + 0x40]
add edx, 4
pop edi
pop esi
mov dword [eax + 0x10], ecx
mov dword [eax + 8], edx
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
push 0x41aad8
push 1
push 0x1b3
push str.D:_root.ddev360C360PubSrc360Base360BaseQHImageHlp.c
call fcn.004047d0
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x40e950
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret 4

Function at 0x40f770
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
ret

Function at 0x4128a0
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [0x416004]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x4128d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [0x416010]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x412900
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [section..rdata]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x412a20
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x402ef8
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403488
Capabilities:
Query or enumerate registry value

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

Function at 0x404200
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b2048], 0
je 0x404261
cmp word [0x4b221c], 0xd7b2
jne 0x404229
cmp dword [0x4b2224], 0
jbe 0x404229
mov eax, 0x4b2218
call dword [fcn.004b2234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4b0058
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 0x404288
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b0020], 0
jne 0x40427d
push 0
push 0x4b0078
push 0x4b0058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405cd4
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 0x405f04
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405d57
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405f04
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405d57
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405f20
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405de0
xor eax, eax
push ebp
push 0x405dd9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405b1c
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 0x405dbe
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405f40
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405dbe
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 0x405de0
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 0x405efa
cmp byte [ebp - 0xd], 0
jne 0x405e27
cmp byte [ebp - 0x12], 0
je 0x405efa
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405e40
dec ebx
cmp byte [ebx], 0x2e
je 0x405e4f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405e3f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405efa
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405e8c
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 0x405efa
cmp byte [ebp - 0xd], 0
je 0x405efa
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 0x405efa
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 0x409b34
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 0x409b6d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040446c
jmp 0x409b76
mov eax, ebx
mov edx, esi
call fcn.004043d0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40a228
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a0a0
mov eax, dword [0x4b1c20]
cmp byte [eax], 0
je 0x40a290
mov eax, dword [0x4b1a20]
call fcn.00402d1c
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408d58
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x40a2d8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a2c6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4b19c8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b2714]
call fcn.00405ae0
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 0x40ae34
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 0x40ae98
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.004045e4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004088f4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ae9f
lea eax, [ebp - 0xc]
call fcn.0040437c
ret