joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10033fc0
Capabilities:
Link many functions at runtime

Disassembly:
push edi
mov edi, ecx
cmp byte [edi + 0x30], 0
je 0x10033fcd
xor eax, eax
pop edi
ret
push esi
push str.wintrust.dll
mov esi, 0x80004005
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x28], eax
test eax, eax
je 0x100340c0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminAcquireContext
push eax
call esi
push str.CryptCATAdminReleaseContext
push dword [edi + 0x28]
mov dword [edi], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push dword [edi + 0x28]
mov dword [edi + 4], eax
call esi
push str.CryptCATCatalogInfoFromContext
push dword [edi + 0x28]
mov dword [edi + 8], eax
call esi
push str.CryptCATAdminCalcHashFromFileHandle
push dword [edi + 0x28]
mov dword [edi + 0xc], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push dword [edi + 0x28]
mov dword [edi + 0x10], eax
call esi
push str.WinVerifyTrust
push dword [edi + 0x28]
mov dword [edi + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push dword [edi + 0x28]
mov dword [edi + 0x24], eax
call esi
push str.WTHelperGetProvSignerFromChain
push dword [edi + 0x28]
mov dword [edi + 0x18], eax
call esi
push str.WTHelperGetProvCertFromChain
push dword [edi + 0x28]
mov dword [edi + 0x1c], eax
call esi
mov ecx, edi
mov dword [edi + 0x20], eax
call fcn.100349d0
cmp dword [edi], 0
je 0x100340bb
cmp dword [edi + 4], 0
je 0x100340bb
cmp dword [edi + 8], 0
je 0x100340bb
cmp dword [edi + 0xc], 0
je 0x100340bb
cmp dword [edi + 0x10], 0
je 0x100340bb
cmp dword [edi + 0x14], 0
je 0x100340bb
cmp dword [edi + 0x24], 0
je 0x100340bb
cmp dword [edi + 0x18], 0
je 0x100340bb
cmp dword [edi + 0x1c], 0
je 0x100340bb
cmp dword [edi + 0x20], 0
je 0x100340bb
xor esi, esi
mov byte [edi + 0x30], 1
mov eax, esi
pop esi
pop edi
ret
mov esi, 0x80004005
mov eax, esi
pop esi
pop edi
ret
Function at 0x100349d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1006c740]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x11c
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10034abd
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x10034a52
mov eax, dword [ebp - 0x118]
cmp eax, 1
jb 0x10034a54
jne 0x10034a33
mov dword [esi + 0x2c], 0x33
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100359a8
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x10034ac4
mov dword [esi + 0x2c], 0x34
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100359a8
mov esp, ebp
pop ebp
ret
jae 0x10034a6a
mov dword [esi + 0x2c], 0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100359a8
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x10034abb
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x10034a8f
mov dword [esi + 0x2c], 0x3c
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100359a8
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x10034aaa
mov dword [esi + 0x2c], 0x3d
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100359a8
mov esp, ebp
pop ebp
ret
ja 0x10034abd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100359a8
mov esp, ebp
pop ebp
ret
jbe 0x10034ac4
mov dword [esi + 0x2c], 0x7fffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100359a8
mov esp, ebp
pop ebp
ret
Function at 0x401d80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x427621
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x436300]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.console.0
xor edi, edi
mov dword [esi + 0x20], 7
mov dword [esi + 0x1c], edi
mov word [esi + 0xc], di
mov dword [esp + 0x14], edi
mov dword [esi + 0x24], edi
call fcn.00404d40
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], edi
mov byte [esp + 0x14], 1
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], 0x14
mov dword [esi + 0x3c], 0x32
call fcn.00404ac0
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x405aa0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x426f3b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x436300]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00410b7a
push 4
mov dword [esp + 0x20], 0
call fcn.00411774
mov edi, eax
add esp, 4
test edi, edi
je 0x405b20
call fcn.0041098d
mov dword [edi], eax
call fcn.004107c1
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00410ac9
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405b15
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00410aea
jmp 0x405b22
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 [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x409370
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x427286
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x436300]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
xor eax, eax
mov dword [esi + 0xc], ecx
mov dword [esi], vtable.registry_value.0
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, 7
mov dword [esi + 0x28], ecx
mov dword [esi + 0x24], eax
mov word [esi + 0x14], ax
mov dword [esp + 0x10], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x40], eax
mov word [esi + 0x30], ax
push edx
push esi
mov byte [esp + 0x18], 1
call fcn.00409460
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 4
Function at 0x4098f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x427793
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x436300]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
lea ecx, [esi + 0x10]
mov dword [esp + 0x14], edi
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], edi
mov word [ecx + 4], di
mov eax, dword [esp + 0x20]
mov byte [esp + 0x14], 1
push 0xffffffffffffffff
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x28]
push edi
call fcn.004046b0
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0xc

Function at 0x409970
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x427bf8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x436300]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov eax, dword [0x436300]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
cmp dword [edi + 0x28], 8
jb 0x4099ac
mov eax, dword [edi + 0x14]
jmp 0x4099af
lea eax, [edi + 0x14]
lea esi, [edi + 0x30]
push esi
push 0xf003f
push 0
push eax
mov eax, dword [edi + 0x2c]
push eax
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409ad2
mov ecx, dword [esi]
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [edi + 0x860]
push eax
lea ebx, [edi + 0x85c]
push ebx
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x409ad2
cmp dword [ebx], eax
mov dword [edi + 0x858], eax
jbe 0x409ac9
lea ebp, [edi + 0x864]
lea ebx, [edi + 0x448]
lea esp, [esp]
mov eax, dword [edi + 0x858]
mov edx, dword [edi + 0x860]
mov ecx, dword [esi]
push 0
push 0
push 0
push 0
push ebp
push ebx
push eax
add edx, 1
push ecx
mov dword [ebp], edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [edi + 0x874], eax
xor esi, esi
mov eax, ebx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], esi
mov word [esp + 0x1c], si
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x409a64
sub eax, edx
sar eax, 1
push eax
push ebx
lea esi, [esp + 0x20]
call fcn.00406050
mov edx, esi
push edx
mov esi, edi
mov dword [esp + 0x44], 0
call fcn.00403790
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x409aac
mov eax, dword [esp + 0x1c]
push eax
call fcn.00411642
add esp, 4
add dword [edi + 0x858], 1
mov ecx, dword [edi + 0x858]
cmp ecx, dword [edi + 0x85c]
mov esi, dword [esp + 0x14]
jb 0x409a20
mov edx, dword [esi]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004111ac
add esp, 0x34
ret
Function at 0x40d4c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x427e16
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x38ac
call fcn.00421ee0
mov eax, dword [0x436300]
xor eax, esp
mov dword [esp + 0x38a8], eax
push ebx
push esi
push edi
mov eax, dword [0x436300]
xor eax, esp
push eax
lea eax, [esp + 0x38c0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x5c]
push 0x400
lea ecx, [esp + 0x10b8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x10b4]
push eax
call fcn.00409b80
add esp, 4
lea ecx, [esp + 0x20b4]
push ecx
lea edx, [esp + 0x30b8]
push edx
lea eax, [esp + 0x18bc]
push eax
lea ecx, [esp + 0x28c0]
push ecx
lea edx, [esp + 0x10c4]
push edx
call fcn.004125f5
add esp, 0x14
lea eax, [esp + 0x2c]
push eax
call fcn.00403b60
lea ecx, [esp + 0x18b4]
push ecx
push ecx
lea edx, [esp + 0x28bc]
push edx
lea eax, [esp + 0x40]
xor ebx, ebx
push eax
mov dword [esp + 0x38d8], ebx
call fcn.00407e60
add esp, 0xc
push eax
call fcn.00407e60
add esp, 8
lea ecx, [esp + 0x10]
lea eax, [esp + 0x2c]
call fcn.00403c90
push 0xffffffffffffffff
push ebx
mov ecx, 0x439470
mov byte [esp + 0x38d0], 1
call fcn.004046b0
mov edi, 8
mov byte [esp + 0x38c8], bl
cmp dword [esp + 0x28], edi
jb 0x40d5da
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00411642
add esp, 4
cmp dword [0x439488], edi
mov eax, dword [0x439474]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
jae 0x40d5fd
mov eax, 0x439474
push eax
call fcn.00409b80
add esp, 4
push 0x400
lea edx, [esp + 0x8b8]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x8b4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d623
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x8b8]
push eax
mov esi, 0x43948c
call fcn.00406050
cmp dword [0x4394a4], edi
mov eax, dword [0x439490]
jae 0x40d657
mov eax, 0x439490
push eax
call fcn.00409b80
add esp, 4
push 0x400
lea ecx, [esp + 0xb8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0xb4]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d680
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xb8]
push edx
mov esi, 0x4394a8
call fcn.00406050
cmp dword [0x4394c0], edi
mov eax, dword [0x4394ac]
jae 0x40d6b4
mov eax, 0x4394ac
push eax
call fcn.00409b80
add esp, 4
lea ecx, [esp + 0x80]
mov dword [esp + 0x38c8], 0xffffffff
call fcn.00403c00
lea eax, [esp + 0x80]
push eax
mov dword [esp + 0x84], vtable.std::ios_base.0
call fcn.00410728
add esp, 4
mov ecx, dword [esp + 0x38c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38a8]
xor ecx, esp
call fcn.004111ac
mov esp, ebp
pop ebp
ret 4
Function at 0x410260
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4276f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x436300]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
call fcn.004046b0
mov eax, 0x4317c8
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4102b7
sub eax, edx
sar eax, 1
push eax
push 0x4317c8
lea ecx, [esp + 0x14]
call fcn.0040f4f0
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.004046b0
cmp dword [esp + 0x24], 8
jb 0x410301
mov eax, dword [esp + 0x10]
push eax
call fcn.00411642
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x4111ac
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x436300]
jne 0x4111b6
repz ret
jmp fcn.00416e11
Function at 0x4215a9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00418669
xor ebx, ebx
cmp dword [0x43a7bc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x42167e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4215e9
xor eax, eax
jmp 0x421742
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4215e2
push eax
call fcn.00418606
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43a7bc], eax
call esi
push eax
call fcn.00418606
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43a7c0], eax
call esi
push eax
call fcn.00418606
mov dword [0x43a7c4], eax
lea eax, [ebp - 8]
push eax
call fcn.00416abf
test eax, eax
pop ecx
pop ecx
je 0x42164c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041150d
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x42167e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00418606
cmp eax, ebx
pop ecx
mov dword [0x43a7cc], eax
je 0x42167e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00418606
pop ecx
mov dword [0x43a7c8], eax
mov eax, dword [0x43a7c8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4216f7
cmp dword [0x43a7cc], esi
je 0x4216f7
push eax
call fcn.00418672
pop ecx
call eax
cmp eax, ebx
je 0x4216c4
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x43a7cc]
call fcn.00418672
pop ecx
call eax
test eax, eax
je 0x4216c4
test byte [ebp - 0x18], 1
jne 0x4216f7
lea eax, [ebp - 0xc]
push eax
call fcn.00416af6
test eax, eax
pop ecx
je 0x4216df
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041150d
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4216ee
or dword [ebp + 0x10], 0x200000
jmp 0x421728
or dword [ebp + 0x10], 0x40000
jmp 0x421728
mov eax, dword [0x43a7c0]
cmp eax, esi
je 0x421728
push eax
call fcn.00418672
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x421728
mov eax, dword [0x43a7c4]
cmp eax, esi
je 0x421728
push dword [ebp - 4]
push eax
call fcn.00418672
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x43a7bc]
call fcn.00418672
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

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

Disassembly:
sub esp, 0x98
push ebx
push ebp
push esi
push edi
mov edi, 0x406048
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
xor ebx, ebx
mov dword [esp + 0x10], ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x405c48
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x25
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x24], 2
jne 0x401ab7
call section..text
test eax, eax
jne 0x401ad9
call fcn.004016a0
test eax, eax
jne 0x401ad9
call fcn.00401300
jmp 0x401ad9
xor esi, esi
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x401ad9
mov al, byte [0x405c48]
test al, al
jne 0x401ae0
call fcn.00401590
inc esi
mov dword [esp + 0x10], eax
cmp esi, 0xa
jl 0x401ab9
mov al, byte [0x405c48]
test al, al
jle 0x401c30
mov esi, 0x405c48
push 4
push str.WD_W
push esi
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x401b05
mov esi, 0x405c4d
test esi, esi
je 0x401c30
mov al, byte [esi]
test al, al
je 0x401c16
cmp al, 0x2d
je case.0x401b3d.48
push 0
push 0xa
push ebp
push ebx
call fcn.00403250
mov ebx, eax
mov ebp, edx
movsx eax, byte [esi]
add eax, 0xffffffd0
cmp eax, 0x4a
ja case.0x401b3d.48
jmp dword [eax*4 + 0x401c40]
add ebx, 1
jmp 0x401c0c
add ebx, 2
jmp 0x401c0c
add ebx, 3
jmp 0x401c0c
add ebx, 4
jmp 0x401c0c
add ebx, 5
jmp 0x401c0c
add ebx, 6
jmp 0x401c0c
add ebx, 7
jmp 0x401c0c
add ebx, 8
jmp 0x401c0c
add ebx, 9
jmp 0x401c0c
add ebx, 0xa
jmp 0x401c0c
add ebx, 0xb
jmp 0x401c0c
add ebx, 0xc
jmp 0x401c0c
add ebx, 0xd
jmp 0x401c0c
add ebx, 0xe
jmp 0x401c0c
add ebx, 0xf
jmp 0x401c0c
add ebx, 0x10
jmp 0x401c0c
add ebx, 0x11
jmp 0x401c0c
add ebx, 0x12
jmp 0x401c0c
add ebx, 0x13
jmp 0x401c0c
add ebx, 0x14
jmp 0x401c0c
add ebx, 0x15
jmp 0x401c0c
add ebx, 0x16
jmp 0x401c0c
add ebx, 0x17
jmp 0x401c0c
add ebx, 0x18
jmp 0x401c0c
add ebx, 0x19
jmp 0x401c0c
add ebx, 0x1a
jmp 0x401c0c
add ebx, 0x1b
jmp 0x401c0c
add ebx, 0x1c
jmp 0x401c0c
add ebx, 0x1d
jmp 0x401c0c
add ebx, 0x1e
jmp 0x401c0c
add ebx, 0x1f
jmp 0x401c0c
add ebx, 0x20
jmp 0x401c0c
add ebx, 0x21
jmp 0x401c0c
add ebx, 0x22
jmp 0x401c0c
add ebx, 0x23
adc ebp, 0
inc esi
jne 0x401b0d
test ebp, ebp
jl 0x401c30
jg 0x401c21
cmp ebx, 0x64
jbe 0x401c30
pop edi
mov edx, ebp
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x98
ret
call fcn.004019e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
Function at 0x402570
Capabilities:
Clear file content
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x403628
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x402651
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x402651
mov edx, dword [esp + 0x20]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402651
test edi, edi
mov esi, edi
mov dword [esp + 0x24], edi
jbe 0x40261a
mov ecx, ebp
lea eax, [esp + 0x24]
sub ecx, esi
push 0
push eax
add ecx, edi
push esi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esi, dword [esp + 0x24]
jne 0x4025fe
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.004030d0
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0x10
push 0x405130
push 0x405124
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.004030d0
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x404210
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4043ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4042c0
xor eax, eax
push ebp
push 0x4042b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4042a2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4043cc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4042c0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4043a1
cmp byte [ebp - 0xd], 0
jne 0x404302
cmp byte [ebp - 0x12], 0
je 0x4043a1
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40431b
dec ebx
cmp byte [ebx], 0x2e
je 0x40432a
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40431a
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4043a1
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404357
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4043a1
cmp byte [ebp - 0xd], 0
je 0x4043a1
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4043a1
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
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 0x406ed8
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 0x406f11
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403614
jmp 0x406f1a
mov eax, ebx
mov edx, esi
call fcn.004035c8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4