joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436a85
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00436a01
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x436bf4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x436bf4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x436ba9
jg 0x436ae1
test eax, eax
je 0x436b9f
push 1
push 0x1000
call fcn.004282b1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x436b04
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x436b96
push 0x8000
push ebx
call fcn.00426762
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x436b2d
jg 0x436b28
cmp ecx, 0x1000
jb 0x436b2d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042e3ba
add esp, 0x10
cmp eax, 0xffffffff
je 0x436b72
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x436b28
jl 0x436b59
test ecx, ecx
jne 0x436b1a
push dword [ebp - 0xc]
push ebx
call fcn.00426762
push esi
call fcn.004275f2
add esp, 0xc
xor ebx, ebx
jmp 0x436c02
cmp byte [edi + 0x24], 0
je 0x436b89
cmp dword [edi + 0x20], 5
jne 0x436b89
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x436b94
mov ebx, dword [edi + 0x18]
jmp 0x436b96
xor ebx, ebx
push esi
call fcn.004275f2
pop ecx
jmp 0x436c02
test ecx, ecx
jg 0x436b6b
jl 0x436ba9
test eax, eax
jae 0x436b6b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042d4ff
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x436bc9
cmp byte [edi + 0x1c], 0
je 0x436b6b
jmp 0x436bfa
push ebx
call fcn.0042f10e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x436b6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x436c02
cmp byte [edi + 0x1c], 0
je 0x436bff
mov ebx, dword [edi + 0x18]
jmp 0x436c02
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0042d4ff
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x438600
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43862d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43862d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x218c3855
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x431060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x4310d2
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x76950cfe
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4310c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401ea0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
test ebx, ebx
je 0x401ee7
mov esi, dword [esp + 0x14]
test esi, esi
je 0x401ee7
push edi
mov edi, dword [esp + 0x14]
xor edx, edx
test edi, edi
jle 0x401edc
push ebp
mov edi, edi
movzx ebp, byte [edx + ebx]
mov eax, dword [esi]
xor ebp, eax
and ebp, 0xff
shr eax, 8
xor eax, dword [ecx + ebp*4]
inc edx
cmp edx, edi
mov dword [esi], eax
jl 0x401ec0
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x402b10
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4497c4]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebp
mov ebp, dword [esp + 0x12c]
test ebp, ebp
jne 0x402b48
xor al, al
pop ebp
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00421cbd
add esp, 0x120
ret
push str.Ntdll.dll
mov byte [ebp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402b30
push ebx
push str.RtlVerifyVersionInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x402c34
mov eax, dword [esp + 0x12c]
dec eax
push esi
push edi
cmp eax, 6
ja case.default.0x402b81
jmp dword [eax*4 + 0x402c6c]
mov esi, 5
jmp 0x402bd8
call fcn.00402a80
mov esi, 5
test al, al
jne 0x402ba7
lea edi, [esi - 4]
jmp 0x402bda
mov esi, 5
mov edi, 2
jmp 0x402bda
mov esi, 6
jmp 0x402bd8
mov esi, 6
lea edi, [esi - 5]
jmp 0x402bda
mov esi, 6
lea edi, [esi - 4]
jmp 0x402bda
mov esi, 6
lea edi, [esi - 3]
jmp 0x402bda
mov esi, 0xa
xor edi, edi
push 0x11c
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00421cd0
add esp, 0xc
push 1
push 2
push 0
mov dword [esp + 0x20], esi
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 0
mov dword [esp + 0x20], 0x11c
mov dword [esp + 0x28], edi
call esi
push 1
push 1
push edx
push eax
call esi
push edx
push eax
push 3
lea ecx, [esp + 0x1c]
push ecx
call ebx
pop edi
pop esi
test eax, eax
jge 0x402c4d
cmp eax, 0xc0000059
jne 0x402c34
mov byte [ebp], 0
jmp 0x402c51
pop ebx
xor al, al
pop ebp
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00421cbd
add esp, 0x120
ret
mov byte [ebp], 1
mov ecx, dword [esp + 0x124]
pop ebx
pop ebp
xor ecx, esp
mov al, 1
call fcn.00421cbd
add esp, 0x120
ret

Function at 0x40b2eb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40b332
call fcn.004103f6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40b332
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40b34e
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040ae63
mov esi, eax
test edi, edi
je 0x40b34c
test ebx, ebx
je 0x40b34c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40bb3e
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x437611
call fcn.0042437e
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40bb63
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x40bba9
lea ecx, [ebp - 0x10]
call fcn.00401440
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040b355
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401140
mov eax, esi
call fcn.00424456
ret 8

Function at 0x40dcc7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x40dceb
cmp dword [edi + 0x54], 0
jne 0x40dceb
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004103f6
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040dc88
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40e334
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x4497c4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x40e3cc
push 0x43c414
push 4
push eax
call fcn.00425f94
push eax
call fcn.00405820
add esp, 0x10
push ebx
push edi
call fcn.00425e78
mov edi, dword [eax]
call fcn.00425e78
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00423e4c
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00425e78
cmp dword [eax], ebx
je 0x40e3e3
call fcn.00425e78
push dword [eax]
call fcn.0040584c
pop ecx
jmp 0x40e3ea
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x40e377
jmp 0x40e471
call fcn.00425e78
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x40e46d
cmp dword [ebp - 0x234], esi
jae 0x40e46d
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.00421cd0
add esp, 0xc
push 0x43c174
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x40e45c
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40e45c
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x40e45c
push ebx
push ebx
push esi
jmp 0x40e465
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x40e46f
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00421cbd
leave
ret

Function at 0x4109a2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4109ea
call fcn.004103f6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4109ea
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x410a2d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x410a16
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x410a16
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x410a2a
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x421cbd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4497c4]
jne 0x421cc7
repz ret
jmp fcn.004290de
Function at 0x422d45
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x422d76
call fcn.00425e8b
mov dword [eax], esi
call fcn.00425e78
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004290b8
add esp, 0x14
push 0x16
pop eax
jmp 0x422dcb
test dword [ebp + 0xc], 0xfffffff9
jne 0x422d52
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x422da3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00425e9e
pop ecx
call fcn.00425e78
mov eax, dword [eax]
jmp 0x422dcb
test al, 0x10
jne 0x422dc9
test al, 1
je 0x422dc9
test byte [ebp + 0xc], 2
je 0x422dc9
call fcn.00425e8b
mov dword [eax], 5
call fcn.00425e78
mov dword [eax], 0xd
jmp 0x422d9a
xor eax, eax
pop esi
pop ebp
ret

Function at 0x423780
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4237b1
call fcn.00425e8b
mov dword [eax], esi
call fcn.00425e78
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004290b8
add esp, 0x14
or eax, 0xffffffff
jmp 0x4237ec
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4237ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00425e9e
pop ecx
jmp 0x4237ac
test byte [ebp + 0xc], 0x80
je 0x4237d9
and eax, 0xfffffffe
jmp 0x4237dc
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4237bf
xor eax, eax
pop esi
pop ebp
ret
Function at 0x431152
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.00427c02
and dword [ebp - 4], 0
cmp dword [0x44e7cc], 0
mov ebx, eax
jne 0x431203
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4312b4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4312b4
push eax
call fcn.00427b90
mov dword [esp], 0x43ea40
push edi
mov dword [0x44e7cc], eax
call esi
push eax
call fcn.00427b90
mov dword [esp], 0x43ea2c
push edi
mov dword [0x44e7d0], eax
call esi
push eax
call fcn.00427b90
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44e7d4], eax
call esi
push eax
call fcn.00427b90
pop ecx
mov dword [0x44e7dc], eax
test eax, eax
je 0x431203
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00427b90
pop ecx
mov dword [0x44e7d8], eax
mov eax, dword [0x44e7d8]
cmp eax, ebx
je 0x43125b
cmp dword [0x44e7dc], ebx
je 0x43125b
push eax
call fcn.00427c0b
push dword [0x44e7dc]
mov esi, eax
call fcn.00427c0b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43125b
test edi, edi
je 0x43125b
call esi
test eax, eax
je 0x431252
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x431252
test byte [ebp - 0xc], 1
jne 0x43125b
or dword [ebp + 0x10], 0x200000
jmp 0x431294
mov eax, dword [0x44e7d0]
cmp eax, ebx
je 0x431294
push eax
call fcn.00427c0b
pop ecx
test eax, eax
je 0x431294
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x431294
mov eax, dword [0x44e7d4]
cmp eax, ebx
je 0x431294
push eax
call fcn.00427c0b
pop ecx
test eax, eax
je 0x431294
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44e7cc]
call fcn.00427c0b
pop ecx
test eax, eax
je 0x4312b4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4312b6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40105b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x250
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esp], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
call ebx
push edx
mov dword [ebp - 0x228], eax
call esi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x21c], 6
push ecx
push ecx
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push esi
push esi
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x220], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push edx
push edx
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x238]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
push ecx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
mov dword [esp], 0
call ebx
lea ebx, [ebp - 0x210]
push edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push ecx
push ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1a
mov dword [esp], 0
call dword [sym.imp.SHELL32.DLL_SHGetFolderPathW]
sub esp, 0x14
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx - 5]
push esi
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x4012c8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 1
call fcn.0040105b
test eax, eax
jne 0x401362
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x402b7c
sub eax, 0x40211a
mov dword [esp], 0x40211a
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401362
lea ebx, [ebp - 0x88]
mov dword [esp], 0
jmp loc.004607c2
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402707
Capabilities:
Get common file path

Disassembly:
sub esp, 0x400
push esi
push edi
xor edi, edi
xor esi, esi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp esi, 0x9f60fc3
jg 0x40272d
inc esi
cmp esi, 0x1e70dee2
jl 0x402713
cmp dword [0x4304fc], 0x400
jne 0x402755
push edi
call fcn.00402874
push edi
push edi
call fcn.00402cd3
push edi
call fcn.00402b32
push edi
call fcn.00402db1
add esp, 0x14
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x58bc6e
jg 0x402774
inc esi
cmp esi, 0xe52f
jl 0x402757
mov eax, dword [0x4284cc]
mov dword [0x4304fc], eax
call fcn.0040247d
mov esi, 0x3078f
cmp dword [0x4304fc], 0x51f
jne 0x4027a0
push edi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
dec esi
jne 0x402788
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10

Function at 0x405c41
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c5a0]
jne 0x405c4b
repz ret
jmp fcn.004072b1