joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4019c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401a04
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401a00
lea ebx, [ebx]
cmp esi, eax
jae 0x401a04
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4019f0
cmp esi, eax
jb 0x401a0a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4279b0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x214
mov eax, dword [0x4c5174]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x224]
mov ebx, ecx
mov ecx, dword [0x4c6c80]
mov dword [esp + 0xc], esi
call int.00412c90
mov ebp, eax
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4279e6
sub eax, edx
sar eax, 1
jne 0x427a00
mov eax, 1
mov dword [ebx], eax
jmp 0x427a43
mov ecx, str.default
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x427a2d
test dx, dx
je 0x427a29
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x427a2d
add eax, 4
add ecx, 4
test dx, dx
jne 0x427a07
xor eax, eax
jmp 0x427a32
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x427a3f
mov eax, 1
mov dword [ebx], eax
jmp 0x427a43
xor eax, eax
mov dword [ebx], eax
mov ecx, dword [0x4c6d30]
test ecx, ecx
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jne 0x427a6c
lea eax, [ebx + 0xc]
push eax
lea ecx, [esp + 0x1c]
push str._sSkinSkin.xml
push ecx
call fcn.004553fc
add esp, 0xc
jmp 0x427ab0
cmp dword [ecx + 4], 0
je 0x427ac8
test eax, eax
jne 0x427ab0
lea esi, [ebx + 0xc]
push esi
lea edx, [esp + 0x1c]
push str._sTempSkinSkin.xml
push edx
mov dword [ebx], eax
call fcn.004553fc
add esp, 0xc
lea eax, [esp + 0x18]
push eax
call edi
test eax, eax
jne 0x427aac
push esi
lea ecx, [esp + 0x1c]
push str._sSkinSkin.xml
push ecx
call fcn.004553fc
add esp, 0xc
mov esi, dword [esp + 0x10]
cmp dword [ebx], 0
jne 0x427ae5
lea ecx, [esp + 0x18]
push ecx
call edi
test eax, eax
jne 0x427ae0
mov dword [ebx], 1
jmp 0x427ae5
lea edx, [ebx + 0xc]
push edx
lea eax, [esp + 0x1c]
push str._sSkinSkin.xml
push eax
call fcn.004553fc
add esp, 0xc
jmp 0x427ab0
cmp dword [ebx], 0
je 0x427b04
push 0
push 0x10
mov ecx, ebp
call fcn.004321b0
push 0
push 0x21
mov ecx, ebp
call fcn.004321e0
push 0xffffffffffffffff
push str.default
jmp 0x427b1d
push 1
push 0x10
mov ecx, ebp
call fcn.004321b0
push 1
push 0x21
mov ecx, ebp
call fcn.004321e0
push 0xffffffffffffffff
push esi
push 2
mov ecx, ebp
call fcn.004321d0
mov ecx, ebx
call fcn.004275d0
mov ecx, ebx
call fcn.00427220
mov ecx, ebx
call fcn.00426430
test eax, eax
pop edi
je 0x427b47
mov ecx, ebx
call fcn.00425180
mov ecx, dword [esp + 0x21c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00454f91
add esp, 0x214
ret 4
Function at 0x432210
Capabilities:
Copy file

Disassembly:
mov ecx, dword [ecx]
jmp 0x434a30
sub esp, 0x214
mov eax, dword [0x4c5174]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
lea eax, [esp + 0x228]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x18]
call fcn.00432db0
mov ebx, dword [esp + 0x10]
test ebx, ebx
mov eax, dword [esi + 0x18]
mov ebp, dword [eax + 4]
je 0x434a71
cmp ebx, eax
je 0x434a76
call fcn.00455674
mov edi, dword [esp + 0x14]
cmp edi, ebp
je 0x434b0b
test ebx, ebx
jne 0x434a8b
call fcn.00455674
cmp edi, dword [ebx + 4]
jne 0x434a95
call fcn.00455674
mov edi, dword [edi + 0x10]
mov edx, dword [edi + 4]
mov eax, dword [edx]
push eax
lea ecx, [esp + 0x1c]
push 0x497504
push ecx
call fcn.004553fc
add esp, 0xc
lea ebx, [esi + 0x24]
push ebx
lea edx, [esp + 0x1c]
push edx
add edi, 8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push str.Setting
call edi
lea ebp, [esi + 0x22c]
push ebp
push 0x4987fc
push str.IsModifySetConfig
push str.SetModify
call edi
push ebp
push 0x4987fc
push str.IsModifySetConfig64
push str.SetModify
call edi
push 0
add esi, 0x63c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, 1
jmp 0x434b0d
xor eax, eax
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00454f91
add esp, 0x214
ret 4
Function at 0x434830
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x248
mov eax, dword [0x4c5174]
xor eax, esp
mov dword [esp + 0x244], eax
push ebp
push esi
lea eax, [esp + 0xc]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x40
mov ecx, esi
call fcn.00434530
push 0x206
lea ecx, [esp + 0x4a]
push 0
push ecx
mov ebp, eax
mov word [esp + 0x50], 0
call fcn.004554d0
xor eax, eax
push ebp
lea edx, [esp + 0x40]
push 0x497504
push edx
mov word [esp + 0x48], 0
mov dword [esp + 0x4a], eax
mov dword [esp + 0x4e], eax
mov dword [esp + 0x52], eax
mov dword [esp + 0x56], eax
mov word [esp + 0x5a], ax
mov word [esp + 0x34], ax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov word [esp + 0x46], ax
call fcn.004553fc
movzx eax, word [esp + 0x2a]
push eax
lea ecx, [esp + 0x38]
push 0x497504
push ecx
call fcn.004553fc
add esp, 0x24
add esi, 0x434
push esi
push 0
push str.LastUseDay
push str.Setting
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
movzx edx, word [esp + 0x12]
cmp eax, edx
je 0x434a0b
push esi
lea eax, [esp + 0x20]
push eax
push str.LastUseDay
push str.Setting
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
xor eax, eax
jmp 0x434920
movzx ecx, word [eax + str.UseDayTotal]
mov word [esp + eax + 0x44], cx
add eax, 2
test cx, cx
jne 0x434920
test ebp, ebp
push edi
jle 0x434974
lea eax, [esp + 0x34]
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x434940
lea edi, [esp + 0x48]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x434954
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0xc]
push esi
push 0
lea ecx, [esp + 0x50]
push ecx
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
add eax, 1
push eax
lea edx, [esp + 0x24]
push 0x497504
push edx
call fcn.004553fc
add esp, 0xc
xor eax, eax
nop
movzx ecx, word [eax + str.UseDayTotal]
mov word [esp + eax + 0x48], cx
add eax, 2
test cx, cx
jne 0x4349a0
test ebp, ebp
jle 0x4349f4
lea eax, [esp + 0x34]
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4349c0
lea edi, [esp + 0x48]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4349d4
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0xc]
push esi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x50]
push ecx
push str.Setting
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop edi
mov ecx, dword [esp + 0x24c]
pop esi
pop ebp
xor ecx, esp
call fcn.00454f91
add esp, 0x248
ret
Function at 0x43c37e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x43c3b7
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0043c341
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0043b1ed
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x43df04
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x43df47
call fcn.004442a4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x43df47
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43df62
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0043dabe
test ebx, ebx
mov esi, eax
je 0x43df60
test edi, edi
je 0x43df60
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4448fa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x444940
call fcn.004442a4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x444940
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x444983
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x44496c
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x44496c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x444980
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x446007
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 0x446035
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x446053
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00445f71
jmp 0x446053
mov eax, dword [esi + 0x14]
test eax, eax
je 0x446053
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00445f71
test edi, edi
mov eax, edi
jne 0x44603d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4c89f0]
test ecx, ecx
je 0x446116
jmp 0x446006
ret 8
Function at 0x4574ad
Capabilities:
Encode data using xor

Disassembly:
mov ch, 0xd0
pop ebx
cdq
add byte [edi - 0x5bc8a43], bh
cmpsd dword [esi], dword es:[edi]
push cs
dec edi
add eax, 0xc248b482
in al, dx

Function at 0x4645b0
Capabilities:
Encode data using xor

Disassembly:
aas
mov ebp, 0x5f96dbe2
test al, 0x65
std
std
push esp
or ah, dl
insb byte es:[edi], dx
dec dword [esi]
jecxz 0x464602
xchg ecx, eax
jb 0x4645b7
sbb ah, byte [ebx + esi*8 - 0x15cb124e]
pop edx
sub eax, ebp
xchg ebx, eax
adc dword gs:[ebp + esi*2 + 0x6d], 0xfb9e22a8
pop eax
popal
add al, 0xdb
test eax, 0x9023c7f4
xchg esp, eax
loope 0x464650
lcall 0xba03, 0x287f4cc7
xor eax, 0xa05e8f6
inc ebx
push cs
or eax, 0x55323e28
pop ebp
jbe 0x4645ec
invalid
or dword [edi + ecx*2 - 0x17], ecx
or edx, dword [ebx - 0x5a]
adc eax, 0x3662e60b
ret 0x15ad
invalid

Function at 0x48a6c8
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4c5174]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0048a65d
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004554d0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x48a717
cmp dword [ebp - 0x1c], 5
jb 0x48a72f
jmp 0x48a72b
cmp dword [ebp - 0x10], 1
jne 0x48a72f
cmp dword [ebp - 0x1c], 4
ja 0x48a72b
jne 0x48a72f
cmp dword [ebp - 0x18], 0
jbe 0x48a72f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4a73c0
call fcn.0048a54e
test eax, eax
jge 0x48a750
mov byte [0x4c6b60], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00454f91
add ebp, 0x78
leave
ret
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x40604c], 1
mov dword [0x406050], 1
mov dword [0x406054], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40134f
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret

Function at 0x40181c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._vfprintf
call sym._abort

Function at 0x4023f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40240f
mov eax, 0
jmp 0x402453
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x402432
mov eax, 0
jmp 0x402453
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x40244e
mov eax, 0
jmp 0x402453
mov eax, 1
leave
ret
Function at 0x402455
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x4024b4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x4024ac
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x4024ac
mov eax, dword [ebp - 4]
jmp 0x4024c8
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x402489
mov eax, 0
leave
ret
Function at 0x419297c
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.04193f28
test esi, esi
jne 0x41929b2
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.04194018
jmp 0x41929d0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.04192830
mov edi, eax
test esi, esi
je 0x41929d0
cmp dword [ebx], 0
je 0x41929d0
dec esi
jmp 0x41929b9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x41932f4
Capabilities:
Query or enumerate registry value

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

Function at 0x4193d8c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41a5044], 0
je 0x4193ded
cmp word [0x41a5218], 0xd7b2
jne 0x4193db5
cmp dword [0x41a5220], 0
jbe 0x4193db5
mov eax, 0x41a5214
call dword [0x41a5230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41a406c
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 0x4193e14
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41a402c], 0
jne 0x4193e09
push 0
push 0x41a4064
push 0x41a406c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4195054
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 0x4195284
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x41950d7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4195284
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x41950d7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x41952a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4195160
xor eax, eax
push ebp
push 0x4195159
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.04194e9c
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 0x419513e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x41952c0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x419513e
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 0x4195160
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 0x419527a
cmp byte [ebp - 0xd], 0
jne 0x41951a7
cmp byte [ebp - 0x12], 0
je 0x419527a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x41951c0
dec ebx
cmp byte [ebx], 0x2e
je 0x41951cf
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x41951bf
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x419527a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x419520c
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 0x419527a
cmp byte [ebp - 0xd], 0
je 0x419527a
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 0x419527a
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 0x4195160
Capabilities:
Get geographical location

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 0x4195284
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x41950d7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4195284
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x41950d7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x41952a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4195160
xor eax, eax
push ebp
push 0x4195159
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.04194e9c
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 0x419513e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x41952c0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x419513e
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 0x4195160
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 0x419527a
cmp byte [ebp - 0xd], 0
jne 0x41951a7
cmp byte [ebp - 0x12], 0
je 0x419527a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x41951c0
dec ebx
cmp byte [ebx], 0x2e
je 0x41951cf
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x41951bf
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x419527a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x419520c
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 0x419527a
cmp byte [ebp - 0xd], 0
je 0x419527a
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 0x419527a
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