joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415060
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2470
call fcn.0042eb10
mov eax, dword [0x446414]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x44
lea eax, [ebp - 0x2470]
push 0
push eax
mov esi, ecx
mov edi, edx
call fcn.004224d0
add esp, 0xc
xor ecx, ecx
push ecx
push 0x2b
lea edx, [ebp - 0x210]
push edx
push ecx
mov dword [ebp - 0x2470], 0x44
mov word [ebp - 0x2440], cx
mov dword [ebp - 0x2444], 0x101
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
push str._sKingdeeYSCompress.KD
lea edx, [ebp - 0x418]
call fcn.004156c0
push edi
push esi
lea ecx, [ebp - 0x418]
push ecx
push str._s_e__inul___s____s_
lea edx, [ebp - 0x2418]
push 0x1000
push edx
call fcn.00421fb6
add esp, 0x20
lea eax, [ebp - 0x2428]
push eax
lea ecx, [ebp - 0x2470]
push ecx
push 0
push 0
push 0x8000020
push 0
push 0
push 0
lea edx, [ebp - 0x2418]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
je 0x41516e
mov eax, dword [ebp - 0x2428]
push 0x4e20
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x415144
xor esi, esi
mov ecx, dword [ebp - 0x2428]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [ebp - 0x2424]
push edx
call edi
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fcea
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0041fcea
mov esp, ebp
pop ebp
ret
Function at 0x4156e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43602e
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x446414]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
test byte [0x449000], 1
jne 0x415766
or dword [0x449000], 1
mov byte [ebp - 4], 2
call fcn.00401000
push 0x437470
call fcn.004204a6
add esp, 4
mov byte [ebp - 4], 1
push 0x449004
mov ecx, str.path
lea edx, [ebp - 0x18]
call fcn.00401ad0
mov eax, dword [ebp - 0x18]
cmp eax, dword [0x44900c]
jne 0x415787
xor eax, eax
jmp 0x41578a
mov eax, dword [eax + 0x10]
push eax
push 0x440658
lea edi, [ebp - 0x10]
call fcn.00404180
add esp, 8
push 0x43b744
push 0x440670
mov eax, edi
push eax
call fcn.0040e7e0
mov esi, dword [ebp - 0x10]
push esi
push 0x440674
lea edi, [ebp - 0x14]
call fcn.00404180
mov edi, dword [ebp - 0x14]
add esp, 8
push edi
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x44903c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
or edx, 0xffffffff
cmp eax, 0xb7
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
jne 0x415837
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415801
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415824
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41584a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41586d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41c3e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4351fb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x446414]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0041fba7
push 4
mov dword [ebp - 4], 0
call fcn.00420182
mov edi, eax
add esp, 4
test edi, edi
je 0x41c45c
call fcn.0041f6b0
mov dword [edi], eax
call fcn.0041f46f
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0041f3a4
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x41c452
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0041f3cc
jmp 0x41c45e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41dcf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4351cb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x446414]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0041dca0
push 0x844
call fcn.00420182
add esp, 4
mov dword [ebp - 0x10], eax
xor esi, esi
mov dword [ebp - 4], esi
cmp eax, esi
je 0x41dd3f
mov esi, eax
call fcn.0041e340
mov esi, eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0x14], edx
mov dword [esi + 0x30], eax
mov dword [esi + 0x83c], ecx
mov ecx, dword [ebp + 0x10]
lea edx, [esi + 0x34]
push edi
mov dword [ebp - 0x10], esi
call fcn.0041de10
test eax, eax
jne 0x41dd9a
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ebx, dword [edi + 0x14]
mov edx, dword [ebx + 4]
lea ecx, [ebp - 0x10]
push ecx
push edx
push ebx
call fcn.00415660
mov ecx, dword [edi + 0x18]
mov edx, 0x3ffffffe
sub edx, ecx
cmp edx, 1
jae 0x41ddc4
push str.list_T__too_long
call fcn.0041f284
push 0
push 0
push esi
inc ecx
mov dword [edi + 0x18], ecx
push 0x41e570
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
push 0
push 0
mov dword [ecx], eax
call fcn.00420924
mov dword [esi + 0x18], eax
add esp, 0x18
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x41e7a0
Capabilities:
Connect to http server

Disassembly:
movzx eax, word [esi + 0x634]
mov edx, dword [esi + 0x24]
push esi
push 0
push 3
push 0x43b744
push 0x43b744
push eax
lea ecx, [esi + 0x434]
push ecx
push edx
mov dword [esi + 0x10], 1
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 0x28], eax
test eax, eax
jne 0x41e819
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x41e7e9
mov eax, 3
ret
mov eax, dword [esi + 8]
imul eax, eax, 0x3e8
push eax
push 0
lea ecx, [esi + 0x1c]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
jne 0x41e80e
mov eax, 1
ret
cmp eax, 1
jne 0x41e819
mov eax, 2
ret
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor eax, eax
ret
Function at 0x41fcea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x446414]
jne 0x41fcf4
repz ret
jmp fcn.0042527a

Function at 0x430c94
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x446414]
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.00425d9d
and dword [ebp - 0x14], 0
cmp dword [0x448fd8], 0
mov dword [ebp - 0x18], eax
jne 0x430d47
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x430def
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43aff4
push ebx
call edi
test eax, eax
je 0x430def
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x448fd8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x448fdc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x448fe0], eax
call edi
push eax
call esi
mov dword [0x448fe8], eax
test eax, eax
je 0x430d47
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x448fe4], eax
mov eax, dword [0x448fe4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x430da0
cmp dword [0x448fe8], ecx
je 0x430da0
push eax
call esi
push dword [0x448fe8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x430da0
test ebx, ebx
je 0x430da0
call edi
test eax, eax
je 0x430d97
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x430d97
test byte [ebp - 8], 1
jne 0x430da0
or dword [ebp + 0x10], 0x200000
jmp 0x430dd3
mov eax, dword [0x448fdc]
cmp eax, dword [ebp - 0x18]
je 0x430dd3
push eax
call esi
test eax, eax
je 0x430dd3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x430dd3
mov eax, dword [0x448fe0]
cmp eax, dword [ebp - 0x18]
je 0x430dd3
push eax
call esi
test eax, eax
je 0x430dd3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x448fd8]
call esi
test eax, eax
je 0x430def
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x430df1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fcea
leave
ret
Function at 0x401cd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0x40
push 0x1000
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
pop ebp
ret

Function at 0x401cf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x571d0f05
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x2ca06955
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x40a4c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x412250], 0
push esi
push edi
jne 0x40a436
call fcn.0040a3a2
test eax, eax
je 0x40a47b
mov eax, dword [0x412250]
cmp eax, 1
jne 0x40a457
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40a47b
jmp 0x40a4bd
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x40a4bd
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40a47f
xor eax, eax
jmp 0x40a4bd
mov eax, dword [esi]
push dword [0x412250]
call edi
mov edi, eax
test edi, edi
je 0x40a4a1
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40a4bd
lea edi, [esi + 0xff0]
push esi
push dword [0x412250]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x40a4a7
mov eax, esi
pop edi
pop esi
ret
jmp 0x40a422

Function at 0x40a788
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412120]
jne 0x40a792
repz ret
jmp fcn.0040adba

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

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

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

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
mov ecx, 0x633f2cce
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
mov ecx, 0x6e365d32
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x403698
Capabilities:
Query or enumerate registry value

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

Function at 0x404624
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x54304c], 0
je 0x404685
cmp word [0x543220], 0xd7b2
jne 0x40464d
cmp dword [0x543228], 0
jbe 0x40464d
mov eax, 0x54321c
call dword [0x543238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x4046ac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46e02c], 0
jne 0x4046a1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40883c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4088cc
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4088cc
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40887f
test edx, 3
jne 0x40886e
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408879
jmp 0x40887f
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40887f
cmp dword [ecx - 8], 1
je 0x408889
mov edx, ebx
or edx, 3
call fcn.00404ef0
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40889b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004047a4

Function at 0x4088d8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408968
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408968
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40891b
test edx, 3
jne 0x40890a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408915
jmp 0x40891b
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40891b
cmp dword [ecx - 8], 1
je 0x408925
mov edx, ebx
or edx, 3
call fcn.00404ef0
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408937
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004047a4

Function at 0x40bc24
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 0x40bc5d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404894
jmp 0x40bc66
mov eax, ebx
mov edx, esi
call fcn.004047f8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bc70
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 0x40bc92
movzx eax, byte [esp]
jmp 0x40bc94
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40c324
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c19c
mov eax, dword [0x541f18]
cmp byte [eax], 0
je 0x40c3a0
mov eax, dword [0x541cf0]
call fcn.00403060
call fcn.00402e38
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409384
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x40c3e8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c3d6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x541c90]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5457f8]
call fcn.00405cb8
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 0x40cc88
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cd5e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040483c
lea eax, [ebp - 4]
call fcn.00404cb8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404c68
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cd48
mov eax, ebx
call fcn.00402cdc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cd41
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 - 4]
call fcn.00404c68
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cd2b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cd70
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cd2b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd48
mov eax, dword [ebp - 0x10]
call fcn.00402cf8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd65
lea eax, [ebp - 4]
call fcn.004047a4
ret
Function at 0x41ed0c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x546304
cmp dword [edi], 0
jne 0x41ed88
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x546300]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x46eae8
mov ecx, 2
call fcn.00402ecc
mov edx, 0x41ece4
lea eax, [esi + 5]
call fcn.0041ed04
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041ed04
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41ed5d
mov dword [0x546300], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4212dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404c68
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x421334
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x542050]
mov dl, 1
mov eax, dword [0x420e00]
call fcn.0040c4f0
call fcn.004041d0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00420f08
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42248c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x422492
ret