joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002c620
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
call edx
mov edi, dword [esp + 0x2c]
mov ebp, eax
mov eax, dword [esp + 0x38]
mov ecx, eax
and cl, 3
movzx ecx, cl
neg ecx
sbb ecx, ecx
mov esi, dword [esp + 0x28]
not ecx
and ecx, ebp
mov edx, edi
neg edx
sbb edx, edx
and edx, ebp
mov dword [esp + 0x10], edx
mov edx, eax
and dl, 2
movzx edx, dl
neg edx
sbb edx, edx
not edx
and edx, ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
test al, 8
je 0x1002c6b4
mov eax, dword [esp + 0x34]
mov ebx, eax
sub ebx, ebp
add esi, ebx
mov ebx, eax
sub ebx, ebp
add edi, ebx
mov ebx, dword [esp + 0x30]
sub eax, ebp
add ebx, eax
mov eax, dword [esp + 0x10]
neg eax
neg ecx
neg edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
jmp 0x1002c6b8
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
cmp ecx, ebp
jb 0x1002c79b
mov ecx, eax
and ecx, 4
and eax, 1
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], eax
jmp 0x1002c6da
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x1002c752
mov ecx, ebp
shr ecx, 2
xor eax, eax
test ecx, ecx
je 0x1002c712
mov edx, edi
mov edi, ebx
sub edx, esi
mov eax, esi
sub edi, esi
mov dword [esp + 0x28], ecx
mov ebx, dword [edx + eax]
xor ebx, dword [eax]
add eax, 4
dec ecx
mov dword [edi + eax - 4], ebx
jne 0x1002c6f7
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add eax, eax
add eax, eax
mov ecx, ebp
sub ecx, eax
je 0x1002c74c
lea edx, [eax + ebx]
mov dword [esp + 0x30], edx
lea edx, [eax + edi]
add eax, esi
test ecx, ecx
je 0x1002c74c
mov edi, dword [esp + 0x30]
sub edx, eax
sub edi, eax
mov dword [esp + 0x30], ecx
mov cl, byte [edx + eax]
xor cl, byte [eax]
inc eax
dec dword [esp + 0x30]
mov byte [edi + eax - 1], cl
jne 0x1002c738
mov edi, dword [esp + 0x2c]
push ebx
push 0
push ebx
jmp 0x1002c755
push ebx
push edi
push esi
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp dword [esp + 0x20], 0
je 0x1002c76b
inc byte [esi + ebp - 1]
mov eax, dword [esp + 0x34]
add ebx, dword [esp + 0x1c]
add edi, dword [esp + 0x10]
add esi, dword [esp + 0x18]
sub eax, ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], eax
cmp eax, ebp
jae 0x1002c6d6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x14
ret 0x14
Function at 0x1002dda0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, eax
mov eax, ebp
shr eax, 2
xor ecx, ecx
xor edx, edx
test eax, eax
je 0x1002ddda
mov edx, edi
sub esi, edi
mov dword [esp + 0xc], eax
push ebx
mov ebx, dword [esi + edx]
xor ebx, dword [edx]
add edx, 4
or ecx, ebx
dec eax
jne 0x1002ddc4
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
pop ebx
lea eax, [edx*4]
sub ebp, eax
jne 0x1002ddf1
pop edi
xor eax, eax
test ecx, ecx
pop esi
sete al
pop ebp
pop ecx
ret
add esi, eax
add edi, eax
mov eax, ecx
mov edx, ecx
shr edx, 0x10
shr eax, 0x18
or al, dl
mov edx, ecx
shr edx, 8
or al, dl
or cl, al
test ebp, ebp
je 0x1002de1f
mov eax, edi
sub esi, edi
mov edi, ebp
mov dl, byte [eax + esi]
xor dl, byte [eax]
inc eax
or cl, dl
dec edi
jne 0x1002de14
pop edi
xor eax, eax
test cl, cl
pop esi
sete al
pop ebp
pop ecx
ret
Function at 0x1002f2f0
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [eax]
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov ecx, dword [eax + 0x8c]
push edi
add ecx, 8
mov edi, 8
mov eax, esi
ror eax, 4
xor eax, dword [ecx - 8]
add ecx, 0x10
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x10061f60]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x10062160]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x10062360]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x10062560]
mov eax, dword [ecx - 0x14]
xor edx, ebx
xor eax, esi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x10062060]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x10062260]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x10062460]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x10062660]
xor edx, ebx
mov eax, edx
ror eax, 4
xor eax, dword [ecx - 0x10]
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x10061f60]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x10062160]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x10062360]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x10062560]
mov eax, dword [ecx - 0xc]
xor esi, ebx
xor eax, edx
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x10062060]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x10062260]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x10062460]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x10062660]
xor esi, ebx
dec edi
jne 0x1002f312
mov ecx, dword [esp + 0x18]
mov dword [ecx], edx
mov edx, dword [esp + 0x1c]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x10031210
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x1005a5b6
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x10070660]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
mov eax, dword [0x10070660]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
lea esi, [edi + 0x10]
mov ecx, pe_nt_image_headers32
mov dword [esp + 0x20], edi
mov dword [edi + 0xc], 0xffffffff
mov dword [edi], vtable.CryptoPP::MessageQueue.0
mov dword [edi + 4], vtable.CryptoPP::MessageQueue.1.0
call fcn.100341a0
mov dword [esp + 0x48], 2
xor ebx, ebx
lea esi, [edi + 0x38]
push 8
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], esi
mov dword [esi], ebx
call fcn.10036d51
add esp, 4
cmp eax, ebx
je 0x10031350
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea ecx, [esp + 0x14]
push ecx
push esi
mov byte [esp + 0x50], 3
call fcn.10031720
mov byte [esp + 0x48], 4
lea esi, [edi + 0x50]
push 8
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], esi
mov dword [esi], ebx
call fcn.10036d51
add esp, 4
cmp eax, ebx
je 0x10031327
mov dword [esi], eax
xor edx, edx
mov dword [eax + 4], edx
xor ecx, ecx
mov dword [eax], ecx
mov edx, dword [esi]
mov dword [edx], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea eax, [esp + 0x1c]
push eax
push esi
mov byte [esp + 0x50], 5
call fcn.10031ab0
mov eax, edi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.100368bb
add esp, 0x40
ret
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x10], ebx
call fcn.10036c63
push 0x10069948
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], vtable.std::bad_alloc.0
call fcn.1003bba8
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], ebx
call fcn.10036c63
push 0x10069948
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], vtable.std::bad_alloc.0
call fcn.1003bba8
int3
Function at 0x10034d00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005b670
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x10070660]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov eax, dword [0x10070660]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [ecx]
push 1
push 0x10071d14
mov dword [esp + 0x28], edx
xor edx, edx
push edx
push eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
push eax
mov eax, dword [esi + 0x80]
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], vtable.CryptoPP::ArraySink.0
mov dword [esp + 0x30], vtable.CryptoPP::ArraySink.1.0
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.100368bb
mov esp, ebp
pop ebp
ret 8

Function at 0x100368bb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10070660]
jne 0x100368c5
repz ret
jmp fcn.1003e8f0

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x1003aeb8
call fcn.1003d334
mov dword [eax], esi
call fcn.1003d321
push 0x16
pop esi
mov dword [eax], esi
call fcn.1003b941
mov eax, esi
jmp 0x1003af0d
test dword [ebp + 0xc], 0xfffffff9
jne 0x1003ae9e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1003aee5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1003d347
pop ecx
call fcn.1003d321
mov eax, dword [eax]
jmp 0x1003af0d
test al, 0x10
jne 0x1003af0b
test al, 1
je 0x1003af0b
test byte [ebp + 0xc], 2
je 0x1003af0b
call fcn.1003d334
mov dword [eax], 5
call fcn.1003d321
mov dword [eax], 0xd
jmp 0x1003aedc
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10053034
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10070660]
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.10041591
and dword [ebp - 0x14], 0
cmp dword [0x1007427c], 0
mov dword [ebp - 0x18], eax
jne 0x100530e7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1005318f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1005318f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1007427c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10074280], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10074284], eax
call edi
push eax
call esi
mov dword [0x1007428c], eax
test eax, eax
je 0x100530e7
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10074288], eax
mov eax, dword [0x10074288]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10053140
cmp dword [0x1007428c], ecx
je 0x10053140
push eax
call esi
push dword [0x1007428c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10053140
test ebx, ebx
je 0x10053140
call edi
test eax, eax
je 0x10053137
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10053137
test byte [ebp - 8], 1
jne 0x10053140
or dword [ebp + 0x10], 0x200000
jmp 0x10053173
mov eax, dword [0x10074280]
cmp eax, dword [ebp - 0x18]
je 0x10053173
push eax
call esi
test eax, eax
je 0x10053173
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10053173
mov eax, dword [0x10074284]
cmp eax, dword [ebp - 0x18]
je 0x10053173
push eax
call esi
test eax, eax
je 0x10053173
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1007427c]
call esi
test eax, eax
je 0x1005318f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10053191
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100368bb
leave
ret
Function at 0x404894
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.0040744c
test esi, esi
jne 0x4048cc
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00407588
jmp 0x4048ea
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004047d8
mov edi, eax
test esi, esi
je 0x4048ea
cmp dword [ebx], 0
je 0x4048ea
dec esi
jmp 0x4048d3
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x40491c
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x406228
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5a9054], 0
je 0x406289
cmp word [0x5a9330], 0xd7b2
jne 0x406251
cmp dword [0x5a9338], 0
jbe 0x406251
mov eax, 0x5a932c
call dword [0x5a9348]
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 0x4062b4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5a3030], 0
jne 0x4062a5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406434
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x5a3034], 0
je 0x40645a
mov edx, esi
mov eax, ebx
call dword [0x5a3034]
jmp 0x406469
mov eax, 8
call fcn.00404520
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x5a9055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4063fc
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4096b0
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 0x409817
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040744c
cmp si, word [0x5a37dc]
jb 0x40974a
cmp si, word [0x5a39dc]
ja 0x40974a
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40974a
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5a37dc]
jae 0x409724
mov edi, ebx
dec edi
jmp 0x409745
cmp si, word [ebx*8 + 0x5a37dc]
jbe 0x409734
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x409745
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5a37e0]
call fcn.004095c0
jmp 0x40974a
cmp edi, dword [ebp - 0xc]
jae 0x40970e
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4097f9
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4097f9
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.00407644
push dword [ebp - 0x164]
push 0x409834
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407644
push dword [ebp - 0x168]
push 0x409844
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407644
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004079fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40981e
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00407444
ret
Function at 0x4099d0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409ad5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5abb5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5abb74]
jne 0x409a1c
mov eax, esi
mov edx, 0x5abb78
mov ecx, 0x55
call fcn.00407644
push 0x5abb5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409abf
push 0x5abb5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.0040744c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409a8d
cmp byte [0x5abb58], 0
je 0x409a52
mov edx, esi
mov eax, ebx
call fcn.004098b0
jmp 0x409a8d
mov edx, esi
mov eax, ebx
call fcn.004096b0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409a8d
cmp dword [esi], 0
je 0x409a76
mov eax, esi
mov edx, 0x409af0
call fcn.00407858
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004096b0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407858
push 0x5abb5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5abb74], bx
push 0xaa
mov eax, dword [esi]
call fcn.004074d8
push eax
push 0x5abb78
call sub.kernel32.dll_lstrcpynW
push 0x5abb5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409adc
lea eax, [ebp - 4]
call fcn.0040743c
ret
Function at 0x409d14
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.00407434
xor eax, eax
push ebp
push 0x409ef9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409d54
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409d6e
push 0x105
mov eax, dword [ebp - 4]
call fcn.004074d8
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409ee3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409f08
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409dfd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409f08
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409dfd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409f3c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409dfd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409f70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409ee3
xor eax, eax
push ebp
push 0x409edc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409b18
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 0x409e6c
mov eax, dword [ebp - 0x10]
call fcn.00404520
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.00407608
jmp 0x409eb7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409fb0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409eb7
mov eax, dword [ebp - 0x10]
call fcn.00404520
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409fb0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407608
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409ee3
cmp dword [ebp - 8], 0
je 0x409ed2
mov eax, dword [ebp - 8]
call fcn.0040453c
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 0x409f00
lea eax, [ebp - 4]
call fcn.0040743c
ret
Function at 0x40a1c4
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.00407434
mov eax, dword [ebp - 0x21c]
call fcn.00407434
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40a363
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.0040744c
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004074d8
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 0x40a264
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40a276
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x40a261
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40a32f
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 0x40a29f
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.00409d14
cmp dword [ebp - 0x220], 0
je 0x40a2d7
push ebp
mov eax, dword [ebp - 0x220]
call fcn.0040a0b8
pop ecx
mov ebx, eax
jmp 0x40a32f
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.004099d0
mov eax, dword [ebp - 0x224]
call fcn.0040a0b8
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a322
cmp byte [0x5abb58], 0
jne 0x40a322
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.004099d0
mov eax, dword [ebp - 0x228]
call fcn.0040a0b8
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a32f
push ebp
call fcn.0040a168
pop ecx
mov ebx, eax
test bl, bl
je 0x40a345
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407644
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a36a
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00407444
ret

Function at 0x40e7f8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x5abc5c
push 0xa
push 0x40e88c
mov eax, dword [0x5abc40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40e81c
call fcn.0041c698
push ebx
mov eax, dword [0x5abc40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40e833
call fcn.0041c698
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40e845
call fcn.0041c698
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x5abc60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x5abc64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x5abc68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x5abc6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x5abc70], ecx
add edx, dword [eax + 0x14]
mov dword [0x5abc74], edx
pop esi
pop ebx
ret