joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013b0
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40144b
cmp ax, 9
je 0x401438
cmp ax, 0x20
je 0x401438
mov dword [ebp - 0x6c], 0
xor edi, edi
lea esi, [esi]
cmp ax, 0x5c
je 0x4014a0
cmp ax, 0x22
je 0x4014b0
mov dword [ebp - 0x6c], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40144b
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x4013f0
test edi, 1
jne 0x4013f0
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x401438
cmp ax, 0x20
je 0x401438
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x4014c8
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.wWinMain@16
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
add dword [ebp - 0x6c], 1
jmp 0x40140b
and dword [ebp - 0x6c], 1
jne 0x401404
xor edi, 1
jmp 0x40140b
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x401464

Function at 0x401570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
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 0x4015cb
cmp byte [esi + ebx - 1], 0xa
je 0x40159f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x405084], 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]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x401af0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x405094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x401cb0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x405094]
movzx eax, al
bt eax, esi
jae 0x401d10
mov ecx, dword [0x405084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x401bb6
test byte [0x402014], 8
jne 0x401c50
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x402024], 8
jne 0x401c00
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 dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x401b85
cmp esi, 3
jbe 0x401bc0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
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 + 0x4031c0]
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 0x401b85
mov ecx, dword [0x405094]
test ecx, ecx
je 0x401cf0
mov dword [esp], 0x402024
call dword [0x405094]
test al, 8
je 0x401b5c
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 dbg.sprintf
add edi, eax
jmp 0x401b5c
mov ebx, dword [0x405094]
test ebx, ebx
je 0x401cd0
mov dword [esp], 0x402014
call dword [0x405094]
test al, 8
je 0x401b49
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
shr edx, 6
imul ebx, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, ebx
lea ebx, [esp + 0x28]
mov dword [esp + 0xc], ecx
mov dword [esp], ebx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x401b4f
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x405094
call sym._load_func.part.0
jmp 0x401b10
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x405094
call sym._load_func.part.0
jmp 0x401c5a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x405094
call sym._load_func.part.0
jmp 0x401c0e
mov eax, 0xffffffff
jmp 0x401bb6
Function at 0x401160
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
movzx esi, dx
or ebx, 0xffffffff
xor ecx, ecx
test esi, esi
je 0x401189
movzx eax, byte [ecx + edi]
inc ecx
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x4033e8]
cmp ecx, esi
jb 0x401171
push esi
mov eax, edx
mov byte [0x405bd9], dl
shr eax, 8
not ebx
push edi
push 0x405bda
mov byte [0x405bd8], al
call sub.VCRUNTIME140.dll_memcpy
mov eax, ebx
mov byte [esi + 0x405bdd], bl
shr eax, 0x18
add esp, 0xc
mov byte [esi + 0x405bda], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0x405bdb], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0x405bdc], al
lea eax, [esi + 6]
pop edi
pop esi
mov dword [0x4053c8], eax
xor eax, eax
pop ebx
ret
Function at 0x4022e9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402328
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402328
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402328
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402328
cmp dword [ecx + 0x74], 0xe
jbe 0x402328
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x404532
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x404541
pop dword [ebp - 0x44]
mov eax, 0x404541
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x362b2
push 0
mov eax, 0xb18f5650
sub eax, 0xb14e7578
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x3bda
xor ebx, ebx
add ebx, eax
mov esi, 0xa3d4431a
add esi, 0x5c6cf8aa
add esi, dword [ebp - 0x44]
mov edx, 0x5019914c
add edx, 0xff514cd6
mov dword [ebp - 0x10], 0x7c3263c6
mov edi, dword [esi]
xor dword [ebp - 0x34], eax
add edi, edx
add dword [ebp - 8], 0xc14caaf3
mov dword [ebx], edi
xor dword [ebp - 0x14], ebx
add ebx, 4
add esi, 0x84ebd70d
sub esi, 0x84ebd709
loop 0x404597
add eax, 0x2a60d485
add eax, 0xd5a00db6
mov ebx, eax
add eax, 0x50206970
add eax, 0xafdf9695
mov ecx, 0x574de60
sub ecx, 0x534de60
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x466500
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x24000]
push edi
jmp 0x46651a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x466521
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x466510
mov eax, 1
add ebx, ebx
jne 0x466533
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x466544
jne 0x466563
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x466563
dec eax
add ebx, ebx
jne 0x466550
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x466528
add ebx, ebx
jne 0x46655f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4665b5
xor ecx, ecx
sub eax, 3
jb 0x46657b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4665ea
sar eax, 1
mov ebp, eax
jmp 0x466586
add ebx, ebx
jne 0x466586
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x466554
inc ecx
add ebx, ebx
jne 0x466594
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x466554
add ebx, ebx
jne 0x4665a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x466596
jne 0x4665b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x466596
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4665d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4665c6
jmp 0x466516
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4665d4
add edi, ecx
jmp 0x466516
pop esi
mov edi, esi
mov ecx, 0x93f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4665f2
cmp byte [edi], 0x11
jne 0x4665f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4665f7
lea edi, [esi + 0x64000]
mov eax, dword [edi]
or eax, eax
je 0x46666f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6c1e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6c290]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x466624
mov ecx, edi
jns 0x466653
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6c298]
or eax, eax
je 0x466669
mov dword [ebx], eax
add ebx, 4
jmp 0x466641
call dword [esi + 0x6c294]
mov ebp, dword [esi + 0x6c29c]
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 0x4666a3
sub esp, 0xffffff80
jmp 0x40c9e9
Function at 0x52c720
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x4d8015
lea edi, [esi - 0xd7015]
push edi
or ebp, 0xffffffff
jmp 0x52c742
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x52c749
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52c738
mov eax, 1
add ebx, ebx
jne 0x52c75b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x52c76c
jne 0x52c78b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52c78b
dec eax
add ebx, ebx
jne 0x52c778
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x52c750
add ebx, ebx
jne 0x52c787
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x52c7dd
xor ecx, ecx
sub eax, 3
jb 0x52c7a3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52c812
sar eax, 1
mov ebp, eax
jmp 0x52c7ae
add ebx, ebx
jne 0x52c7ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52c77c
inc ecx
add ebx, ebx
jne 0x52c7bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52c77c
add ebx, ebx
jne 0x52c7c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x52c7be
jne 0x52c7da
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x52c7be
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x52c7fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x52c7ee
jmp 0x52c73e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x52c7fc
add edi, ecx
jmp 0x52c73e
pop esi
mov edi, esi
mov ecx, 0x13f9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x52c81a
cmp byte [edi], 0xc
jne 0x52c81a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x52c81f
lea edi, [esi + 0x12a000]
mov eax, dword [edi]
or eax, eax
je 0x52c88e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12c4ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12c54c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x52c84c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12c554]
or eax, eax
je 0x52c888
mov dword [ebx], eax
add ebx, 4
jmp 0x52c869
call dword [esi + 0x12c550]
mov ebp, dword [esi + 0x12c558]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x52c8c2
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x40af70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, dword [ebp + 0xc]
and eax, 3
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
sub ecx, eax
je 0x40afba
rol edx, 5
xor edx, dword [esi + ebx]
add esi, 4
imul eax, edx, 0x9e3779b9
rol eax, 5
xor eax, 4
imul edx, eax, 0x9e3779b9
cmp esi, ecx
jb 0x40af89
jmp 0x40afba
movsx ecx, byte [esi + ebx]
rol edx, 5
xor edx, ecx
imul edx, edx, 0x9e3779b9
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x40afaa
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x40c050
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40c085
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x40c0af
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40c0af
test edi, edi
je 0x40c07c
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40c07c
test edi, edi
je 0x40c0b7
mov eax, edi
jmp 0x40c07e
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40c07e
mov esi, 0xc3
push esi
push str.c:_builds_moz2_slave_m_cen_w32_d_000000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.0040fdc3
add esp, 0xc
int3
Function at 0x40fdf7
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestTemplateLib.exe_gMozillaPoisonSize], eax
call fcn.0040c050
pop ecx
mov ecx, dword [sym.TestTemplateLib.exe_gMozillaPoisonSize]
mov dword [sym.TestTemplateLib.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40fe2f
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestTemplateLib.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
mov eax, section..00cfg
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0xc6360d9
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x68465ba1
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x402a0c
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.00403fc0
test esi, esi
jne 0x402a42
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004040b0
jmp 0x402a60
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402920
mov edi, eax
test esi, esi
je 0x402a60
cmp dword [ebx], 0
je 0x402a60
dec esi
jmp 0x402a49
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030e8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x495020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403180
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x403160
xor eax, eax
push ebp
push 0x403159
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 0x40319c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403160
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x495020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x495020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403e44
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x498048], 0
je 0x403ea5
cmp word [0x49821c], 0xd7b2
jne 0x403e6d
cmp dword [0x498224], 0
jbe 0x403e6d
mov eax, 0x498218
call dword [0x498234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49506c
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 0x403ecc
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x495030], 0
jne 0x403ec1
push 0
push 0x495064
push 0x49506c
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x40527c
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_1
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4054ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x4052ff
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4054ac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x4052ff
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4054c8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x405388
xor eax, eax
push ebp
push 0x405381
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004050c4
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_1
test eax, eax
je 0x405366
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4054e8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x405366
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 0x405388
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
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_1
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4054a2
cmp byte [ebp - 0xd], 0
jne 0x4053cf
cmp byte [ebp - 0x12], 0
je 0x4054a2
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4053e8
dec ebx
cmp byte [ebx], 0x2e
je 0x4053f7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4053e7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4054a2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405434
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 0x4054a2
cmp byte [ebp - 0xd], 0
je 0x4054a2
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 0x4054a2
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 0x405b74
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405bda
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404230
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402cac
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405bc4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405be1
lea eax, [ebp - 0x10]
call fcn.00403fc0
ret

Function at 0x40b09c
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
test eax, eax
jle 0x40b0d5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040b0
jmp 0x40b0de
mov eax, ebx
mov edx, esi
call fcn.00404014
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b0e8
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
test eax, eax
jle 0x40b109
mov al, byte [esp]
jmp 0x40b10b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c0a8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c17e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404058
lea eax, [ebp - 8]
call fcn.004044d0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404480
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c168
mov eax, ebx
call fcn.004026e4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c161
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404480
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c14b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c190
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c14b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c168
mov eax, dword [ebp - 0x10]
call fcn.00402704
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c185
lea eax, [ebp - 8]
call fcn.00403fc0
ret