joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46e008]
jne 0x40100a
repz ret
jmp fcn.00401828

Function at 0x406403
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403380
and dword [ebp - 4], 0
cmp dword [0x470250], 0
mov ebx, eax
jne 0x4064b4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406565
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406565
push eax
call fcn.0040330e
mov dword [esp], 0x46b9a8
push edi
mov dword [0x470250], eax
call esi
push eax
call fcn.0040330e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x470254], eax
call esi
push eax
call fcn.0040330e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x470258], eax
call esi
push eax
call fcn.0040330e
pop ecx
mov dword [0x470260], eax
test eax, eax
je 0x4064b4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040330e
pop ecx
mov dword [0x47025c], eax
mov eax, dword [0x47025c]
cmp eax, ebx
je 0x40650c
cmp dword [0x470260], ebx
je 0x40650c
push eax
call fcn.00403389
push dword [0x470260]
mov esi, eax
call fcn.00403389
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40650c
test edi, edi
je 0x40650c
call esi
test eax, eax
je 0x406503
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406503
test byte [ebp - 0xc], 1
jne 0x40650c
or dword [ebp + 0x10], 0x200000
jmp 0x406545
mov eax, dword [0x470254]
cmp eax, ebx
je 0x406545
push eax
call fcn.00403389
pop ecx
test eax, eax
je 0x406545
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406545
mov eax, dword [0x470258]
cmp eax, ebx
je 0x406545
push eax
call fcn.00403389
pop ecx
test eax, eax
je 0x406545
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x470250]
call fcn.00403389
pop ecx
test eax, eax
je 0x406565
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406567
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46a240
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x46e008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x565dfc]
push ebx
push esi
mov esi, dword [0x565c44]
mov ebx, eax
cmp eax, 0x5dd
jne 0x46a27d
push 0
lea eax, [ebp - 0x404]
push eax
push str.berajowototadosacirokavedevaparezeguvicaxajabaxiwosuf
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov eax, dword [0x46f000]
call fcn.0046a120
cmp dword [0x565dfc], 0x2f
jne 0x46a298
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push esi
call fcn.0046a160
add esp, 4
cmp dword [0x565dfc], 0x568
pop esi
pop ebx
jne 0x46a2ca
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov ecx, dword [ebp - 0x408]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x523221e2
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4ab9589d
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x402370
Capabilities:
Access the windows event log

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41157d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x41a040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x30], ecx
push 0x415138
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 0x38], eax
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
push 0x28
push str.Description:_A_.NET_application_failed._n
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], eax
call fcn.00405790
push 0xd
push str.Application:
lea ecx, [ebp - 0x2c]
call fcn.00405790
mov ecx, esi
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x402404
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, eax
call fcn.00405790
push 1
push 0x415134
mov ecx, eax
call fcn.00405790
push 6
push str.Path:
lea ecx, [ebp - 0x2c]
call fcn.00405790
mov esi, eax
mov eax, dword [ebp - 0x30]
mov edx, eax
lea edi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x402443
sub edx, edi
mov ecx, esi
sar edx, 1
push edx
push eax
call fcn.00405790
push 1
push 0x415134
mov ecx, eax
call fcn.00405790
push 9
push str.Message:
lea ecx, [ebp - 0x2c]
call fcn.00405790
cmp dword [0x41a548], 7
mov ecx, 0x41a534
push dword [0x41a544]
cmova ecx, dword [0x41a534]
push ecx
mov ecx, eax
call fcn.00405790
push 1
push 0x415134
mov ecx, eax
call fcn.00405790
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x38]
cmova eax, dword [ebp - 0x2c]
push 0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 1
push 0
push 0x3ff
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x402517
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40250d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40250d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040e213
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040e205
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x405370
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41180d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x41a040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
lea eax, [ecx + 4]
mov dword [ecx], 0x414e58
lea ebx, [ecx + 0x24]
mov dword [ebp - 0x14], eax
lea edi, [ecx + 0x28]
mov dword [eax], 0
push 8
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
call fcn.0040e221
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0040db34
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edx, [eax + 8]
lea ecx, [eax + 0x14]
mov dword [eax + 0x34], esi
lea esi, [eax + 4]
mov dword [eax + 0xc], esi
mov esi, eax
mov dword [eax + 0x10], edx
mov dword [eax + 0x1c], ecx
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], edi
mov esi, dword [ebp - 0x14]
mov dword [edx], 0
mov dword [eax], 0
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov dword [ebx], 0
mov dword [ebp - 4], 1
mov eax, 0x41a534
mov ebx, dword [ebp - 0x10]
mov dword [ebx], 0x414e1c
cmp dword [0x41a548], 7
mov edi, dword [0x41a544]
cmova eax, dword [0x41a534]
mov dword [ebp - 0x18], eax
xor eax, eax
cmp edi, 0x7fffffff
ja 0x40550d
test edi, edi
je 0x4054f1
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
call fcn.00405a50
lea ecx, [edi + edi]
mov esi, eax
push ecx
push dword [ebp - 0x18]
push esi
call fcn.0040f500
mov eax, dword [ebx + 0xc]
lea ecx, [esi + edi*2]
mov dword [ebx + 0x38], ecx
add esp, 0xc
mov dword [eax], esi
mov eax, dword [ebx + 0x1c]
mov dword [eax], esi
mov eax, dword [ebx + 0x2c]
mov dword [eax], edi
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x38]
sub ecx, esi
sar ecx, 1
mov dword [eax], esi
mov eax, dword [ebx + 0x20]
mov dword [eax], esi
mov eax, dword [ebx + 0x30]
mov dword [eax], ecx
mov eax, 1
jmp 0x4054f4
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.0040d91d
int3
Function at 0x405560
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411848
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x41a040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx]
push 0
push 0
mov eax, dword [eax + 4]
mov dword [ecx + eax], 0x414e0c
mov eax, dword [ecx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ecx - 4], eax
mov eax, dword [ecx]
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov ebx, dword [eax + 4]
add ebx, ecx
mov ecx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebx + 0x30], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x201
mov dword [ebx + 0x18], 6
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
call fcn.004021e0
push 8
call fcn.0040e221
add esp, 4
mov esi, eax
push 1
mov dword [ebp - 4], 2
call fcn.0040db34
mov dword [esi + 4], eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
mov ebx, dword [esi + 4]
mov dword [ebp - 0x14], ebx
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4131fc]
mov ecx, ebx
call esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 3
push eax
call fcn.00405d40
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x4131fc]
mov ecx, edi
call esi
movzx eax, ax
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4131fc]
mov ecx, ebx
call esi
mov edi, eax
test edi, edi
je 0x4056ae
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x4131fc]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
cmp dword [ecx + 0x38], 0
mov word [ecx + 0x40], ax
jne 0x4056cc
mov eax, dword [ecx + 0xc]
push 0
or eax, 4
push eax
call fcn.004021e0
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x10]
lea edx, [esi + 0x10]
mov dword [ebp - 0x20], edx
mov eax, dword [eax + 4]
mov dword [edx + eax], 0x414e18
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], 0x414e14
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + esi - 4], eax
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 8
Function at 0x406bb0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411a55
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x41a040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00406690
lea ecx, [ebp - 0x1c]
lea esi, [eax + 1]
push esi
call fcn.00406e50
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x1c]
mov edx, esi
push eax
push ecx
push dword [ebp + 8]
push ecx
mov ecx, edi
call fcn.00406650
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x10], 0x41b048
xor esi, esi
mov eax, 1
mov ebx, 0x41b048
xchg dword [ebx], eax
test eax, eax
setne al
test al, al
je 0x406c53
mov eax, esi
inc esi
test eax, 0x3ff
jne 0x406c43
call sub.KERNEL32.dll_SwitchToThread
mov eax, 1
xchg dword [ebx], eax
test eax, eax
setne al
test al, al
jne 0x406c34
mov byte [ebp - 4], 1
mov eax, dword fs:[0x2c]
mov ebx, dword [eax]
mov esi, dword [ebx + 4]
test esi, esi
jne 0x406c95
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputws]
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 0xc
push eax
push 0xa
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 8
jmp 0x406ca3
push edi
mov ecx, esi
call dword [0x4131fc]
call esi
add esp, 4
cmp dword [0x41b044], 0
je 0x406ce5
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov esi, dword [0x41b04c]
add esp, 4
cmp esi, eax
jne 0x406cca
cmp dword [ebx + 4], 0
je 0x406ce5
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00406620
push esi
push 0xa
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 0x10
nop
mov dword [0x41b048], 0
test edi, edi
je 0x406d26
mov ecx, dword [ebp - 0x14]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x406d1c
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406d1c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.0040e213
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40acd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
mov eax, esi
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 7
jbe 0x40acec
mov eax, dword [esi]
xor ecx, ecx
push ecx
push ecx
push edi
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
je 0x40ad28
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040e4d8
add esp, 4
push ebx
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x40ad59
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x40ad50
test eax, eax
jle 0x40ad41
movzx eax, ax
or eax, 0x80070000
push eax
push edi
push str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.00406d40
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ad60
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, esi
call fcn.00405900
push ebx
call fcn.0040e4d3
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ec11
Capabilities:
Parse pe header

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

Function at 0x411390
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4113bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4113bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10004770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
nop
mov eax, 0x6737f508
cmp eax, 0x3099b2c8
inc eax
inc eax
inc eax
inc eax
mov eax, 0x2886fb28
cmp eax, 0xa3ad4edd
mov eax, 0x95c6c431
cmp eax, 0x98e431aa
cmp eax, 0x3f180fce
mov eax, ecx
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp eax, 7
mov eax, ebx
mov eax, ecx
cmp eax, 0xbe0a0c9c
inc eax
nop
cmp eax, 0xffffff82
mov eax, 0x8b029436
cmp eax, 0xc66e8d84
mov eax, 0x46ccb355
mov eax, ecx
nop
cmp eax, 0xa7dd7fe2
mov eax, ebx
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, 0x69dc1b36
cmp eax, 0x4168d8ae
cmp eax, 0x3eae4823
inc eax
inc eax
nop
nop
nop
cmp eax, 0xd2aaff3
cmp eax, 0xf90af521
cmp eax, 0x59585166
cmp eax, 0xffffffe0
cmp eax, 0x3e
inc eax
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
push 0x1002beb4
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, 0x5220c6dd
mov eax, ecx
mov eax, ecx
mov eax, 0xaca93256
mov eax, ecx
inc eax
mov eax, 0xc9216372
mov eax, 0xfcbc1ac5
mov eax, 0x63028c6e
inc eax
cmp eax, 0x6fdd9a3d
mov eax, ebx
inc eax
inc eax
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1003e22c], eax
mov eax, 0xca7f9ca6
cmp eax, 0xffffffb3
cmp eax, 0xffffffc7
inc eax
mov eax, ebx
nop
inc eax
mov eax, ebx
cmp eax, 0xbfb8b14b
cmp eax, 0x4d373e3e
cmp eax, 0x1afa4b40
mov eax, ecx
cmp eax, 0x48
inc eax
mov eax, ecx
inc eax
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp dword [0x1003e22c], 0
jne 0x1000491f
push 0x41030
push str.DllWrap
push str.miss
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0xd49a6c25
mov eax, 0x2daaa31c
cmp eax, 0xdd61b30d
nop
mov eax, 0x3f447cda
mov eax, ecx
mov eax, ecx
cmp eax, 0x6a
cmp eax, 0x4e
cmp eax, 0x6b
mov eax, ebx
inc eax
cmp eax, 0x76
mov eax, ebx
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp dword [0x1003e22c], 0
je 0x10004931
mov dword [ebp - 4], 1
jmp 0x10004938
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdd4
mov eax, dword [0x40d008]
xor eax, esp
mov dword [esp + 0xdd0], eax
push ebx
push esi
push edi
push 0x104
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
mov dword [esp + 0x14], esi
call fcn.004011c8
add esp, 4
push 0
lea edx, [esp + 0x18]
push edx
mov ebx, eax
push esi
push ebx
push edi
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
fld qword [0x40c298]
fld1
fld qword [0x40c290]
jmp 0x401092
fxch st(2)
fxch st(2)
fadd st(1)
fadd st(1)
fcom st(2)
fnstsw ax
test ah, 5
jnp 0x401090
push 0
fstp st(0)
push 0
fstp st(0)
push 3
fstp st(0)
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4010ca
push 0
call fcn.00401532
xor edi, edi
test esi, esi
jbe 0x40113e
movzx eax, byte [edi + ebx]
movzx ecx, byte [edi + ebx + 2]
lea esi, [edi + ebx + 0xa]
lea edx, [eax + 4]
cmp ecx, edx
jne 0x401137
movzx ecx, byte [edi + ebx + 4]
lea edx, [eax + 2]
cmp ecx, edx
jne 0x401137
movzx ecx, byte [edi + ebx + 6]
lea edx, [eax + 1]
cmp ecx, edx
jne 0x401137
movzx ecx, byte [edi + ebx + 8]
add eax, 3
cmp ecx, eax
jne 0x401137
mov cl, byte [esi - 5]
xor eax, eax
lea ecx, [ecx]
mov dl, byte [esi + eax]
mov ebx, eax
xor dl, cl
shr ebx, 1
add eax, 2
mov byte [esp + ebx + 0x220], dl
cmp eax, 0x1770
jb 0x401110
lea eax, [esp + 0x220]
call eax
mov ebx, dword [esp + 0xc]
inc edi
cmp edi, dword [esp + 0x10]
jb 0x4010d0
mov ecx, dword [esp + 0xddc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040116a
mov esp, ebp
pop ebp
ret

Function at 0x40116a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d008]
jne 0x401174
repz ret
jmp fcn.0040177a
Function at 0x4044bb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004029ee
and dword [ebp - 4], 0
cmp dword [0x40e9b0], 0
mov ebx, eax
jne 0x40456c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40461d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40461d
push eax
call fcn.0040297c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e9b0], eax
call esi
push eax
call fcn.0040297c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e9b4], eax
call esi
push eax
call fcn.0040297c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40e9b8], eax
call esi
push eax
call fcn.0040297c
pop ecx
mov dword [0x40e9c0], eax
test eax, eax
je 0x40456c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040297c
pop ecx
mov dword [0x40e9bc], eax
mov eax, dword [0x40e9bc]
cmp eax, ebx
je 0x4045c4
cmp dword [0x40e9c0], ebx
je 0x4045c4
push eax
call fcn.004029f7
push dword [0x40e9c0]
mov esi, eax
call fcn.004029f7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4045c4
test edi, edi
je 0x4045c4
call esi
test eax, eax
je 0x4045bb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4045bb
test byte [ebp - 0xc], 1
jne 0x4045c4
or dword [ebp + 0x10], 0x200000
jmp 0x4045fd
mov eax, dword [0x40e9b4]
cmp eax, ebx
je 0x4045fd
push eax
call fcn.004029f7
pop ecx
test eax, eax
je 0x4045fd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4045fd
mov eax, dword [0x40e9b8]
cmp eax, ebx
je 0x4045fd
push eax
call fcn.004029f7
pop ecx
test eax, eax
je 0x4045fd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e9b0]
call fcn.004029f7
pop ecx
test eax, eax
je 0x40461d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40461f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret