joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429608
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4297ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40a6f4]
call fcn.00402b60
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.004036b0
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x429783
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004214b0
test al, al
je 0x429776
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4297bc
lea eax, [ebp - 0x254]
call fcn.00407174
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x429776
xor eax, eax
push ebp
push 0x42976f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4297f4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x429758
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004038dc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x429758
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004038dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429776
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x429679
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040d7cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4297b4
lea eax, [ebp - 0x260]
call fcn.004036b0
ret

Function at 0x429a28
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4396f0]
cmp byte [eax + 0x85], 0
jne 0x429a99
cmp dword [0x439728], 0
jne 0x429a5a
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x4299e4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x439728], eax
cmp dword [0x439724], 0
jne 0x429a75
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x439724], eax
cmp dword [0x43972c], 0
jne 0x429a99
push esp
push 0
push 0
push 0x429988
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x43972c], eax
pop edx
ret
Function at 0x42a030
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4396f0]
cmp dword [eax + 0x24], 0
je 0x42a0c0
cmp dword [ebx + 0x74], 0
jne 0x42a0bd
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x429fc4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x70]
cmp dword [eax + 8], 0
je 0x42a0bd
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x42a08c
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x70]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x42a0bd
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x70]
call fcn.0040b5ec
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x42a098
inc dword [ebx + 0x74]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x42a9a8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x84], 0
je 0x42a9dd
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403794
jmp 0x42a9e7
mov eax, esi
mov edx, dword [ebx + 0x6c]
call fcn.00403748
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x42b458
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x64]
test esi, esi
je 0x42b490
mov eax, esi
call fcn.0041efd8
test al, al
je 0x42b490
mov eax, dword [ebx + 0x64]
call fcn.0041ee40
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42b490
push 0
mov eax, dword [ebx + 0x64]
call fcn.0041ee40
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ecx
pcmpeqw mm6, mm6
pxor mm7, mm7
push edx
psllw mm6, 0xf
push edi
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
movq mm1, qword [edx]
sub eax, 4
movq mm0, mm1
psrlq mm1, 0x20
jl 0x4010e4
jmp 0x401040
movq mm3, qword [edx + 8]
add edi, 8
punpckldq mm1, mm3
movq mm4, qword [ecx]
paddd mm0, mm1
pxor mm4, mm6
movq mm1, qword [edx + 0x10]
movq mm5, mm4
punpcklwd mm4, mm7
movq mm2, mm3
psrlq mm3, 0x20
paddd mm0, mm2
punpckldq mm3, mm1
psubd mm0, mm4
paddd mm2, mm1
punpckhwd mm5, mm7
paddd mm3, mm2
pslld mm4, 4
psubd mm3, mm5
pslld mm5, 4
psubd mm4, mm0
pcmpeqd mm7, mm7
psubd mm5, mm3
pslld mm7, 0x12
movq mm2, mm6
paddd mm4, mm7
psrld mm2, 0x1c
paddd mm5, mm7
movq mm3, mm2
psrld mm7, 0x1e
pand mm2, mm4
paddd mm4, mm7
psrld mm2, 3
pand mm3, mm5
paddd mm5, mm7
psrld mm3, 3
paddd mm4, mm2
paddd mm5, mm3
psrad mm4, 3
add edx, 0x10
psrad mm5, 3
add ecx, 8
packssdw mm4, mm5
movq mm0, mm1
pxor mm7, mm7
psrlq mm1, 0x20
sub eax, 4
movq qword [edi - 8], mm4
jge 0x401040
add eax, 4
jle 0x401185
movq mm3, qword [edx + 8]
punpckldq mm1, mm3
movq mm4, qword [ecx]
paddd mm0, mm1
pxor mm4, mm6
movq mm1, qword [edx + 0x10]
movq mm5, mm4
punpcklwd mm4, mm7
movq mm2, mm3
psrlq mm3, 0x20
paddd mm0, mm2
punpckldq mm3, mm1
psubd mm0, mm4
paddd mm2, mm1
punpckhwd mm5, mm7
pcmpeqd mm7, mm7
paddd mm3, mm2
pslld mm4, 4
psubd mm3, mm5
pslld mm5, 4
psubd mm4, mm0
pslld mm7, 0x12
psubd mm5, mm3
psrld mm6, 0x1c
paddd mm4, mm7
movq mm0, mm6
paddd mm5, mm7
psrld mm7, 0x1e
pand mm6, mm4
paddd mm4, mm7
psrld mm6, 3
pand mm0, mm5
paddd mm5, mm7
psrld mm0, 3
paddd mm4, mm6
paddd mm5, mm0
psrad mm4, 3
psrad mm5, 3
packssdw mm4, mm5
cmp eax, 2
jl 0x40117f
movd dword [edi], mm4
je 0x401185
psrlq mm4, 0x20
add edi, 4
movd edx, mm4
mov word [edi], dx
emms
pop edi
pop edx
pop ecx
ret

Function at 0x40da2a
Capabilities:
Encode data using xor

Disassembly:
jnp 0x40d999
mov esi, 0x41153dd2
pop eax
invalid
jns 0x40d992
cmp dword [edi], ebp
push ebx
iretd
add al, 9
mov dh, 0x4b
jp 0x40d9cc
jns 0x40da6b
invalid
dec eax
xor dword [ecx + 0x1cc79795], esi
daa
ja 0x40da7d
das
push esp
adc al, 0x98
shr byte [edi + 0x45], cl
adc eax, dword [0x11ea9bc8]
adc edi, dword [eax - 0x11]
hlt
ljmp 0x97f4:0xef781311
pop edi
dec eax
pop es
dec esp
ja 0x40da0a
cmp edi, dword [eax + 0x7f75ec21]
aam 0x54
push esp
sti
jne 0x40da4f
or edx, 0xffffffe8
inc edx
sub dl, al
fisub word [0xa4aa1a36]
pop edx
cmpsd dword [esi], dword es:[edi]
mov al, 0xe0
lahf
sub al, 0xe0
outsd dx, dword gs:[esi]
jo 0x40da3a
out 0xf1, al
mov byte [edi + 0x626136ea], dh
cmpsb byte [esi], byte es:[edi]
jmp 0x379c8c22
Function at 0x416afb
Capabilities:
Encode data using xor

Disassembly:
push ds
and byte [edx], bl
and cl, byte [esi + ecx*8]
mov eax, dword [0x7df0108]
add dword [edx + 0x1f511af2], ebx
aas
test al, 0x22
faddp st(2)
cmpsb byte [esi], byte es:[edi]
jle 0x416b4c
adc dword [ebp + ecx*2 - 0x59a62c62], ebx
sub ch, byte [ebx]
scasd eax, dword es:[edi]
sbb ebp, eax
xlatb
xor ecx, esp
pop esp
dec ecx
push edi
cmc
sti
sbb eax, 0x81ac0088
mov ch, 0x28
fisttp word [eax - 0xa]
adc dword cs:[esp + esi*4 + 0x4e], eax
fcom qword [ebx - 0x36]
stosd dword es:[edi], eax
aaa
test al, 0x54
and byte [esi + 0x35], 0x1c
out dx, eax
sahf
xlatb
pushfd
fild qword [esi + 0x74795a7a]
stc
je 0x416b47
xor al, 0x94
xchg esi, eax
loop 0x416b26
cmp dword [edi - 0x178bbb9c], eax
mov cl, byte [ecx + 0x8826d6f]
xchg esp, eax
jnp 0x416bd9
ret 0xb315
cli
iretd

Function at 0x44d8ab
Capabilities:
Encode data using xor

Disassembly:
sar dword [esi - 0x60], 1
rcr dword cs:[esi], 1
and al, 0xd8
call [eax - 0x30]
aas
fstp dword [ebp + 0x4bab36da]
les esi, [esi + ebx*2 + 0xb601bfe]
sbb esp, dword [eax + 0xb]
sbb esp, dword [eax + 0xb]
mov ch, byte [ebp - 0xd]
lahf
sbb byte [edi + 0x57], ah
mov edx, 0x9a5eabeb
jge 0x44d895
push ebp
ror dh, 1
loope 0x44d8bd
xchg byte [edi - 0x27], ah
salc
mov ah, 0x43
sub eax, 0x104d4f43
outsd dx, dword [esi]
jge 0x44d905
nop
jbe 0x44d91c
xor eax, 0xcec3369b
aas
invalid
mov cl, 0xcd
push ecx
or al, 0x1f
lodsd eax, dword [esi]
invalid
xchg ebp, eax
ror byte [ecx], 0xef
sub al, 0x1e
lahf
bswap esi
sub cl, dl
jno 0x44d931
pop es
xchg dh, cl
int 0xa7
adc dword [eax + 0x1b], ebp
jg 0x44d95e
invalid
fsubp st(7)
call dword [edi]
cli
or al, 0x59
invalid

Function at 0x494041
Capabilities:
Encode data using xor

Disassembly:
sub dl, byte [ebp - 0x43b5fbfe]
xor dword [eax], esp
lds edx, [ebp + 0x43]
jne 0x494077
lodsd eax, dword [esi]
sub eax, eax
sub ecx, ebx
test eax, 0x1081999f
dec edi
cmp al, byte [ecx + 0x37]
pop esi
rcl byte [esp + esi*2 - 0x48], cl
mov ch, 0xfe
aam 0x45
adc dword [ebp + 0xa], edx
or eax, 0x703bb559
rcr byte [esi], 0xc5
mov cl, 0x18
movsd dword es:[edi], dword [esi]
fidiv dword [0x3018399d]
sbb byte [eax], dh
sbb al, byte [esi + 0x159b76e8]
sbb ah, byte [ebx + 0x28]
rol dword [ecx + 0x3e41724e], cl
sub bh, byte [ebx]
salc
cmp byte [esi], al
cmp dl, byte [esi + 0x26]
and eax, 0x64a31658
invalid

Function at 0x6056ca
Capabilities:
Encode data using xor

Disassembly:
bnd jb 0x605715
test ebx, ebp
ret 0x9034
push ds
lea esi, [ebx + 0x6dea8d75]
cmp dword [eax + 0x1b], 0xffffff92
inc ecx
cmp eax, 0x5efeca72
add eax, 0xc26e9722
mov bh, byte [eax - 0x3b]
mov al, 0x60
push esp
test eax, 0xadff63d9
pop ebp
mov al, 0xbc
cmp ch, dl
sar byte [esp + ebp*2 - 0x58249c3c], 1
cdq
aam 0x60
leave
in al, dx
fst qword [eax + 0x7c]
adc ecx, dword [0x5c2d422]
aas
lock xor al, byte [ecx]
mov eax, dword [0x5b4594b3]
add dh, byte [eax]
aam 0x68
jle 0x60574b
mov es, ecx
mov bh, 0x7d
sbb al, 0x92
test byte gs:[eax], 0x79
in al, 0x9d
or dword [0x96765966], 0x3d
invalid
Function at 0x627cd9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x630388
cmp edx, dword [eax]
je 0x627cfb
add eax, 8
inc ecx
cmp eax, 0x630418
jl 0x627cec
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x630388]
jne 0x627e29
mov eax, dword [0x639d14]
cmp eax, 1
je 0x627e03
test eax, eax
jne 0x627d2c
cmp dword [0x6302b4], 1
je 0x627e03
cmp edx, 0xfc
je 0x627e29
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x627d63
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.006286c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00628b50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x627da6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00628b50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62ca3c
push edi
call fcn.0062aa20
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.006286c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.006286d0
lea eax, [ebp - 0xa0]
push 0x62ca1c
push eax
call fcn.006286d0
push dword [esi + 0x63038c]
lea eax, [ebp - 0xa0]
push eax
call fcn.006286d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062a994
add esp, 0x2c
pop edi
jmp 0x627e29
lea eax, [ebp + 8]
lea esi, [esi + 0x63038c]
push 0
push eax
push dword [esi]
call fcn.00628b50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402a3c
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.00404588
test esi, esi
jne 0x402a72
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.00404678
jmp 0x402a90
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004028f0
mov edi, eax
test esi, esi
je 0x402a90
cmp dword [ebx], 0
je 0x402a90
dec esi
jmp 0x402a79
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402ff4
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x40300a
sub ecx, 2
jne 0x40302c
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x403033
cmp edx, dword [ebx + 8]
je 0x40303d
mov eax, 0x64
jmp 0x403038
mov eax, 0x67
jmp 0x403038
call sub.kernel32.dll_GetLastError
call fcn.00402830
pop ebx
ret

Function at 0x403230
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x403263
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x40326a
cmp edx, dword [ebx + 8]
je 0x403274
mov eax, 0x65
jmp 0x40326f
mov eax, 5
jmp 0x40326f
call sub.kernel32.dll_GetLastError
call fcn.00402830
mov eax, ebx
pop ebx
ret

Function at 0x4036c0
Capabilities:
Query or enumerate registry value

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

Function at 0x40440c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x428044], 0
je 0x40446d
cmp word [0x428218], 0xd7b2
jne 0x404435
cmp dword [0x428220], 0
jbe 0x404435
mov eax, 0x428214
call dword [0x428230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x427074
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 0x404494
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x42701c], 0
jne 0x404489
push 0
push 0x427094
push 0x427074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405d70
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 0x405fa0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405df3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405fa0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405df3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405fbc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405e7c
xor eax, eax
push ebp
push 0x405e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405bb8
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 0x405e5a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405fdc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405e5a
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 0x405e7c
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 0x405f96
cmp byte [ebp - 0xd], 0
jne 0x405ec3
cmp byte [ebp - 0x12], 0
je 0x405f96
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405edc
dec ebx
cmp byte [ebx], 0x2e
je 0x405eeb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405edb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405f96
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405f28
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 0x405f96
cmp byte [ebp - 0xd], 0
je 0x405f96
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 0x405f96
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 0x408164
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404a38
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40817d
test al, 0x10
jne 0x408181
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x408188
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404a38
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x40819c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404a38
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4081be
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40abf8
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 0x40ac31
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404678
jmp 0x40ac3a
mov eax, ebx
mov edx, esi
call fcn.004045dc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b2ec
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b164
mov eax, dword [0x427bbc]
cmp byte [eax], 0
je 0x40b359
mov eax, dword [0x427ad4]
call fcn.00402e3c
call fcn.00402810
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004084b4
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 0x40b3a0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b38f
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x427ab0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x428710]
call fcn.00405b7c
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 0x40c010
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 0x40c074
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.004047f0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407dc0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c07b
lea eax, [ebp - 0xc]
call fcn.00404588
ret

Function at 0x424ea0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404a38
push eax
call sub.kernel32.dll_GetFileAttributesA_1
cmp eax, 0xffffffff
je 0x424eb9
test al, 0x10
jne 0x424ebd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x42558c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
test dl, dl
je 0x4255a9
add esp, 0xfffffff0
call fcn.00403b80
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404a28
mov eax, dword [ebp + 8]
call fcn.00404a28
xor eax, eax
push ebp
push 0x4256c2
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.00403820
lea eax, [esi + 8]
mov edx, 0x4256f0
call fcn.004045dc
lea eax, [esi + 4]
mov edx, 0x42570c
call fcn.004045dc
lea edx, [ebp - 0xc]
mov eax, dword [ebp + 8]
call fcn.00407968
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
mov edx, 2
call fcn.0042502c
mov edx, dword [ebp - 8]
lea eax, [esi + 0xc]
call fcn.004045dc
mov dl, 1
mov eax, dword [0x4180a0]
call fcn.00403820
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 4]
call fcn.00408154
test al, al
je 0x42569f
push 0x40
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x418634]
call fcn.0041b6b8
mov dword [esi + 0x10], eax
mov eax, esi
call fcn.00425b14
lea eax, [ebp - 0x14]
lea edx, [esi + 0x28]
mov ecx, 7
call fcn.004047f0
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00407968
mov eax, dword [ebp - 0x10]
push eax
lea edx, [ebp - 0x18]
mov eax, dword [esi + 0xc]
call fcn.00407968
mov edx, dword [ebp - 0x18]
pop eax
call fcn.00404984
je 0x425698
mov ecx, 0x425728
mov dl, 1
mov eax, dword [0x425320]
call fcn.0040b3a4
call fcn.00403fe8
mov eax, esi
call fcn.004259d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4256c9
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004045ac
lea eax, [ebp + 8]
call fcn.00404588
ret