joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4202d8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x18218f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420313
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x42032c
lea eax, [ebp - 0x10]
mov edx, dword [0x183e54c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x42033f
lea eax, [ebp - 0x10]
mov edx, dword [0x183e54c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42034b
adc edx, 0
mov edx, dword [edx*4 + 0x183d378]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4204c5
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4204b8
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4204b8
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420456
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420456
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420456
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420456
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4204b8
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4204b8
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x4204dd
inc ebx
cmp ebx, 0x19
jne 0x420305
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x18218fa
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x10001360
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100040c0
push 0x100034f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x1c], 1
mov dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 0x1c]
pop ebx
pop ecx
pop edx
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001f10
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
xor ecx, ecx
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [ecx + eax + 0x18]
jbe 0x10001fd1
push esi
push edi
add ebx, 0x10
cmp dword [ebx], 0
jne 0x10001f7b
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x10001faf
mov eax, dword [ebx - 4]
push 4
push 0x1000
add eax, ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x10001faf
mov ecx, dword [ebx - 4]
mov eax, dword [ebx]
push 4
push 0x1000
add ecx, ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add ebx, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x10001f3e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10001fe0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
xor ecx, ecx
push ebp
mov ebx, dword [eax]
xor ebp, ebp
mov cx, word [ebx + 0x14]
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x10002094
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x10002037
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1000207a
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov edx, dword [edx*4 + 0x1000510c]
je 0x1000204e
or dh, 2
mov ecx, dword [edi - 0x14]
test ecx, ecx
jne 0x10002067
test al, 0x40
je 0x1000205e
mov ecx, dword [ebx + 0x20]
jmp 0x10002065
test al, 0x80
je 0x1000207a
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x1000207a
lea eax, [esp + 0x10]
push eax
push edx
push ecx
mov ecx, dword [edi - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
xor eax, eax
inc ebp
add edi, 0x28
mov ebx, dword [edx]
mov ax, word [ebx + 6]
cmp ebp, eax
jl 0x10002004
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10002f20
Capabilities:
Write file on windows

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

Function at 0x10002f40
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 0x38]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
ret 8
Function at 0x100034a0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
xor ecx, ecx
dec edx
mov al, byte [esi]
test edx, edx
jle 0x100034bf
push ebx
mov bl, byte [esi + ecx + 1]
xor al, bl
inc ecx
cmp ecx, edx
jl 0x100034b3
pop ebx
pop esi
ret 8
Function at 0x40d4e3
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419458]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00404cc5
mov dword [ebp - 0x14], eax
cmp dword [0x430f04], esi
jne 0x40d5d6
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d563
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d6b6
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d6b6
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d6b6
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x430f04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x430f08], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x430f0c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x430f14], eax
test eax, eax
je 0x40d5d3
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x430f10], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d5fb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d5ee
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d610
push 4
pop eax
jmp 0x40d6b8
cmp dword [ebp - 0x14], esi
je 0x40d610
push dword [0x430f04]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d5f5
mov eax, dword [0x430f10]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d66e
cmp dword [0x430f14], edi
je 0x40d66e
push eax
call ebx
push dword [0x430f14]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d66e
test eax, eax
je 0x40d66e
call ecx
test eax, eax
je 0x40d663
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d663
test byte [ebp - 8], 1
jne 0x40d66e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d69e
mov eax, dword [0x430f08]
cmp eax, edi
je 0x40d69b
push eax
call ebx
test eax, eax
je 0x40d69b
call eax
mov esi, eax
test esi, esi
je 0x40d69b
mov eax, dword [0x430f0c]
cmp eax, edi
je 0x40d69b
push eax
call ebx
test eax, eax
je 0x40d69b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x430f04]
call ebx
test eax, eax
je 0x40d6b6
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d6b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403f41
mov esp, ebp
pop ebp
ret
Function at 0x402b80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4204db
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x42a6a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0x44
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.0040d580
xor eax, eax
lea ecx, [ebp - 0x2c]
push esi
push ecx
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0x104], 0x44
call fcn.004029f0
add esp, 0x14
mov eax, 0x10
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], eax
jb 0x402c0a
mov ecx, dword [edi]
jmp 0x402c0c
mov ecx, edi
mov edx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], eax
jae 0x402c17
lea edx, [ebp - 0x2c]
cmp dword [esi + 0x14], eax
jb 0x402c20
mov eax, dword [esi]
jmp 0x402c22
mov eax, esi
lea ebx, [ebp - 0xc0]
push ebx
lea ebx, [ebp - 0x104]
push ebx
push edx
push 0
push 0
push 0
push 0
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [ebp - 0xc0]
test eax, eax
push edx
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x402cdb
mov eax, 0x10
cmp dword [edi + 0x14], eax
jb 0x402c72
mov edi, dword [edi]
cmp dword [esi + 0x14], eax
jb 0x402c79
mov esi, dword [esi]
push edi
push esi
lea ecx, [ebp - 0x48]
push str.Failed_to_launch_process:__s_args:__s
push ecx
call fcn.004063b0
add esp, 0x10
push str.LaunchProcess
push 0x35
push str.main.cpp
lea edx, [ebp - 0x48]
mov bl, 1
push edx
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], bl
call fcn.004046a1
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.004049d4
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], bl
call fcn.0040406d
cmp dword [ebp - 0x34], 0x10
jb 0x402cdb
mov eax, dword [ebp - 0x48]
push eax
call fcn.0040c80d
add esp, 4
cmp dword [ebp - 0x18], 0x10
jb 0x402ced
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0040c80d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d568
mov esp, ebp
pop ebp
ret
Function at 0x406a08
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x2c
mov eax, 0x420ed2
call fcn.0040daee
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x34], ebx
xor eax, eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
xor edi, edi
inc edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
movzx ecx, word [ecx + 8]
shr eax, 4
inc eax
push ecx
movzx eax, ax
push eax
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
cmp eax, ebx
jne 0x406a71
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.004034f0
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp - 0x2c]
call fcn.004014d0
mov eax, esi
jmp 0x406ae2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, ebx
je 0x406ac3
mov eax, dword [ebp + 0xc]
and eax, 0xf
xor edx, edx
movzx ecx, word [esi]
mov dword [ebp - 0x38], ecx
cmp edx, eax
je 0x406a9d
inc edx
lea esi, [esi + ecx*2 + 2]
cmp edx, 0x10
jb 0x406a87
jmp 0x406ac3
push ebx
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00405c8d
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x406ab3
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x38]
lea edx, [esi + eax*2 + 2]
lea ecx, [esi + 2]
call fcn.00406492
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.004034f0
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp - 0x2c]
call fcn.004014d0
mov eax, dword [ebp - 0x30]
call fcn.0040db71
ret 8
Function at 0x408b9a
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xd4
mov eax, 0x42150c
call fcn.0040daee
mov eax, dword [ebp + 8]
mov dword [ebp - 0xe0], eax
xor ebx, ebx
xor eax, eax
mov esi, ecx
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xd8]
push eax
push ebx
push ebx
push ebx
push dword [esi + 0x28]
mov dword [ebp - 0xd8], ebx
mov dword [ebp - 0xd4], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, str.SourceWtSystemWin32RegistryKey.cpp
cmp eax, ebx
jge 0x408c7d
lea eax, [esi + 8]
push eax
mov edx, str.RegQueryInfoKey_failure_reading_registry_key_info_
lea ecx, [ebp - 0x64]
call fcn.004047fc
mov byte [ebp - 4], 1
push 0x422b94
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00404958
mov byte [ebp - 4], 3
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.004014d0
push str.WT::System::Win32::CRegistryKey::EnumerateSubKeyNames
push 0x176
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xcc]
call fcn.0040461e
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xcc]
call fcn.004049d4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xcc]
call fcn.0040406d
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004014d0
mov eax, dword [ebp - 0xd4]
add eax, 2
and eax, 0xfffffffe
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], ebx
cmp dword [ebp - 0xd8], ebx
jbe 0x408dad
jmp 0x408ca9
mov eax, dword [ebp - 0xd4]
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xdc], eax
call fcn.00405c8d
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x408cc5
lea eax, [ebp - 0x2c]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0xdc]
push ecx
push eax
push dword [ebp - 0xd0]
push dword [esi + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
jge 0x408d5d
lea eax, [esi + 8]
push eax
mov edx, str.RegEnumKeyExW_failure_reading_registry_names_
lea ecx, [ebp - 0x64]
call fcn.004047fc
mov byte [ebp - 4], 5
push 0x422b94
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00404958
mov byte [ebp - 4], 7
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.004014d0
push str.WT::System::Win32::CRegistryKey::EnumerateSubKeyNames
push 0x187
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xcc]
call fcn.0040461e
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xcc]
call fcn.004049d4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xcc]
call fcn.0040406d
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004014d0
mov ecx, dword [ebp - 0xdc]
cmp ecx, ebx
je 0x408d86
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x408d73
lea eax, [ebp - 0x2c]
cmp word [eax + ecx*2 - 2], bx
jne 0x408d86
dec ecx
push 0xffffffffffffffff
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401520
mov ecx, dword [ebp - 0xe0]
lea eax, [ebp - 0x2c]
push eax
call fcn.00408b34
inc dword [ebp - 0xd0]
mov eax, dword [ebp - 0xd0]
cmp eax, dword [ebp - 0xd8]
jb 0x408ca3
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004014d0
call fcn.0040db71
ret 4
Function at 0x408df4
Capabilities:
Identify system language via api

Disassembly:
push 0x214
mov eax, 0x42156d
call fcn.0040daee
push str.en_us
mov dword [ebp - 0x21c], ecx
call fcn.004029a0
and dword [ebp - 4], 0
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 0x220], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x408eb6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetGeoInfoW
push edi
call esi
push str.GetUserGeoID
push edi
mov ebx, eax
call esi
mov esi, eax
test ebx, ebx
je 0x408eb6
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0040d580
add esp, 0xc
push 0x10
call esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
push 0x103
lea eax, [ebp - 0x218]
push eax
push 6
push esi
call ebx
test eax, eax
je 0x408eb6
lea eax, [ebp - 0x218]
push eax
call fcn.0040ee4e
pop ecx
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
call fcn.00402870
mov byte [ebp - 4], 0
test edi, edi
je 0x408ec5
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
call fcn.0040db71
ret

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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x409008
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40901b
test al, 0x10
jne 0x40901b
mov al, 1
ret
xor al, al
ret

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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x4090c1
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4090d4
test al, 0x10
je 0x4090d4
mov al, 1
ret
xor al, al
ret
Function at 0x40a5d6
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x42181d
call fcn.0040daee
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x40a6cd
cmp byte [esi + 0x4a], bl
je 0x40a6cd
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x40a612
xor al, al
jmp 0x40a6cf
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.0040a39c
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40a670
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x40a675
dec eax
je 0x40a679
dec eax
dec eax
je 0x40a6c9
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401480
mov al, bl
jmp 0x40a6cf
mov edx, dword [ebp - 0x2c]
jmp 0x40a63b
mov byte [esi + 0x4a], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40a685
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x40a6ab
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40a698
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.004112fb
add esp, 0x10
cmp edi, eax
jne 0x40a65e
cmp byte [esi + 0x4a], 0
je 0x40a6c9
test edi, edi
jne 0x40a62d
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00405c07
jmp 0x40a62d
mov bl, 1
jmp 0x40a660
mov al, 1
call fcn.0040db71
ret

Function at 0x40d568
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a6a8]
jne 0x40d572
repz ret
jmp fcn.004133cc
Function at 0x41ce2c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a6a8]
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.00412e6f
and dword [ebp - 0x14], 0
cmp dword [0x42cc44], 0
mov dword [ebp - 0x18], eax
jne 0x41cedf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41cf87
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x425eac
push ebx
call edi
test eax, eax
je 0x41cf87
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42cc44], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42cc48], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42cc4c], eax
call edi
push eax
call esi
mov dword [0x42cc54], eax
test eax, eax
je 0x41cedf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42cc50], eax
mov eax, dword [0x42cc50]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41cf38
cmp dword [0x42cc54], ecx
je 0x41cf38
push eax
call esi
push dword [0x42cc54]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41cf38
test ebx, ebx
je 0x41cf38
call edi
test eax, eax
je 0x41cf2f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41cf2f
test byte [ebp - 8], 1
jne 0x41cf38
or dword [ebp + 0x10], 0x200000
jmp 0x41cf6b
mov eax, dword [0x42cc48]
cmp eax, dword [ebp - 0x18]
je 0x41cf6b
push eax
call esi
test eax, eax
je 0x41cf6b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41cf6b
mov eax, dword [0x42cc4c]
cmp eax, dword [ebp - 0x18]
je 0x41cf6b
push eax
call esi
test eax, eax
je 0x41cf6b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42cc44]
call esi
test eax, eax
je 0x41cf87
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41cf89
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d568
leave
ret