joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007eb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10017040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10007f6c
cmp byte [esi + 0x3d], 0
je 0x10007f6c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10007f5a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10007f21
sub eax, 1
je 0x10007f25
sub eax, 2
jne 0x10007f5a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d1ca
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10007f43
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10007f5a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d1ca
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d1ca
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1000d1ca
mov esp, ebp
pop ebp
ret
Function at 0x1000d247
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x1000d27c
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x1000d279
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x1000d285
add edx, 0x28
cmp edx, esi
jne 0x1000d267
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x1000d282

Function at 0x1000e210
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1000e3e0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1000e2ed
mov edx, dword [ebp - 4]
cmp edx, dword [0x100170a0]
jb 0x1000e25a
mov eax, dword [ebp - 4]
cmp eax, dword [0x100170a4]
ja 0x1000e25a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000e22a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1000e27f
jmp 0x1000e2ed
cmp dword [ebp - 0x14], 0x10000
jne 0x1000e2d3
cmp dword [ebp - 0x18], 0x10000
jb 0x1000e2d3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000e2b6
mov eax, dword [ebp - 8]
jmp 0x1000e2ef
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1000e2c6
xor eax, eax
jmp 0x1000e2ef
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000e2e8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1000e3e0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000e22a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000e300
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1000e410
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000e3d5
mov edx, dword [ebp - 4]
cmp edx, dword [0x100170a0]
jb 0x1000e345
mov eax, dword [ebp - 4]
cmp eax, dword [0x100170a4]
ja 0x1000e345
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000e315
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1000e36a
jmp 0x1000e3d5
cmp dword [ebp - 0x14], 0x10000
jne 0x1000e3be
cmp dword [ebp - 0x18], 0x10000
jb 0x1000e3be
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000e3a1
mov eax, dword [ebp - 8]
jmp 0x1000e3d7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1000e3b1
xor eax, eax
jmp 0x1000e3d7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000e3d0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1000e410
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000e315
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000e440
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1000e830
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1001789c], 0
jne 0x1000e47d
cmp dword [0x10017898], 0
je 0x1000e47d
mov eax, dword [0x10017898]
mov dword [0x1001789c], eax
cmp dword [0x1001789c], 0
je 0x1000e4fa
mov ecx, dword [0x1001789c]
cmp dword [ecx + 8], 0
je 0x1000e4fa
mov edx, dword [0x1001789c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1000e4fa
mov ecx, dword [0x1001789c]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1000e4fa
mov eax, dword [0x1001789c]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1000e4c9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1000e4d0
xor eax, eax
jmp 0x1000e619
mov ecx, dword [0x1001789c]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1000e619
mov edx, dword [0x10017898]
mov dword [0x1001789c], edx
jmp 0x1000e516
mov eax, dword [0x1001789c]
mov ecx, dword [eax + 4]
mov dword [0x1001789c], ecx
cmp dword [0x1001789c], 0
je 0x1000e556
cmp dword [0x1001789c], 0
je 0x1000e554
mov edx, dword [0x1001789c]
cmp dword [edx + 8], 0
je 0x1000e554
mov eax, dword [0x1001789c]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1000e554
mov edx, dword [0x1001789c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1000e554
jmp 0x1000e4ae
jmp 0x1000e508
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1000e620
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1000e617
mov eax, dword [ebp - 0x18]
mov dword [0x1001789c], eax
mov ecx, dword [0x1001789c]
mov dword [ecx], 0x52727464
mov edx, dword [0x1001789c]
mov dword [edx + 8], 0
mov eax, dword [0x1001789c]
mov ecx, dword [0x10017898]
mov dword [eax + 4], ecx
mov edx, dword [0x1001789c]
mov dword [0x10017898], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1001789c]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1000e5e7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1000e607
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1000e5de
mov eax, dword [0x1001789c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1000e4ae
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000f360
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10017898]
mov dword [ebp - 4], eax
jmp 0x1000f379
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1000f3a0
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1000f39e
call sub.KERNEL32.dll_GetLastError
jmp 0x1000f3a2
jmp 0x1000f370
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000f840
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100178a8], eax
je 0x1000f85d
mov eax, 0x10dd
jmp 0x1000f940
mov eax, dword [0x100178b8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000f8dc
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1000f8b8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1000f8b8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1000e8c0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1000d20d
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1000f865
mov dword [0x100178b8], 0
call fcn.1000f1a0
mov ecx, dword [0x100178b4]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1000f92a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1000d20d
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1000f8f4
mov dword [0x100178b4], 0
mov dword [0x100178a8], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000fe20
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x100178ac], 0
je 0x1000fe39
mov eax, dword [0x100178ac]
jmp 0x1000fed8
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1000fe4a
xor eax, eax
jmp 0x1000fed8
push 8
call fcn.1000d1dd
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000fea2
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1000fe8b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1000d20d
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x100178ac], eax
mov dword [0x100178b0], 0
mov eax, dword [ebp - 8]
jmp 0x1000fed8
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1000feba
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1000fe6a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x100178b4]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x100178b4], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x412722
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41274e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4127eb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412815
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412790
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41281a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412815
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x40894a
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop edx
or eax, ebx
sub eax, 0x9f2b02c6
call fcn.0040897d
sub eax, 1
xor dword [esi], edx
dec ebx
add esi, 1
or eax, ebx
cmp esi, ecx
jne fcn.0040894a
add eax, eax
add ebx, 1
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x3ad27558
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x4d560080
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401558
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00402ca4
test esi, esi
jne 0x40158e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00402d90
jmp 0x4015ac
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040140c
mov edi, eax
test esi, esi
je 0x4015ac
cmp dword [ebx], 0
je 0x4015ac
dec esi
jmp 0x401595
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402c60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040126c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x42d030], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x402c28
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4065e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004030e0
mov eax, dword [ebp - 8]
call fcn.004030e0
mov eax, dword [ebp + 0xc]
call fcn.004030e0
xor eax, eax
push ebp
push 0x4066c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.00402cf8
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.004030f0
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4066a3
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.004030f0
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x40669a
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.0040321c
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx]
call fcn.004030f0
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
mov edx, dword [ebp - 0x14]
dec edx
mov eax, ebx
call fcn.0040321c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066cd
lea eax, [ebp - 8]
mov edx, 2
call fcn.00402cc8
lea eax, [ebp + 0xc]
call fcn.00402ca4
ret

Function at 0x406880
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004030e0
xor eax, eax
push ebp
push 0x4068d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004030f0
push eax
call sub.kernel32.dll_GetFileAttributesA
test al, 0x10
jne 0x4068b5
cmp eax, 0xffffffff
jne 0x4068b9
xor ebx, ebx
jmp 0x4068bb
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4068d8
lea eax, [ebp - 4]
call fcn.00402ca4
ret
Function at 0x406b50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406cb0
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
push 2
push ebx
mov eax, dword [0x42d67c]
push eax
call sub.kernel32.dll_FindResourceA
test eax, eax
jbe 0x406baa
lea eax, [ebp - 0x18]
mov edx, ebx
call fcn.004033e8
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [0x42d67c]
mov dl, 1
mov eax, dword [0x405564]
call fcn.00405804
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x406c92
push 0xa
push ebx
mov eax, dword [0x42d67c]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x406c92
push ebx
mov eax, dword [0x42d67c]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x406c92
xor eax, eax
push ebp
push 0x406c8b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x406c74
push ebx
mov eax, dword [0x42d67c]
push eax
call sub.kernel32.dll_SizeofResource
mov esi, eax
test esi, esi
je 0x406c74
push esi
push 0x62
call sub.kernel32.dll_GlobalAlloc
mov ebx, eax
test ebx, ebx
je 0x406c74
push ebx
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x406c74
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, esi
call fcn.004013ac
push ebx
call sub.kernel32.dll_GlobalUnlock
lea eax, [ebp - 0x14]
call fcn.00404008
lea eax, [ebp - 0x14]
call fcn.00404008
push eax
push 0xffffffffffffffff
push ebx
call sub.ole32.dll_CreateStreamOnHGlobal
push 0
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x405564]
call fcn.0040569c
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c92
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeResource
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cb7
lea eax, [ebp - 0x18]
call fcn.004032d8
lea eax, [ebp - 0x14]
call fcn.00404008
ret
Function at 0x406dd4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
xor ecx, ecx
push ebp
push 0x406e98
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor ecx, ecx
mov dword [ebp - 4], ecx
push edx
push eax
mov eax, dword [0x42d67c]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
push ebx
mov eax, dword [0x42d67c]
push eax
call sub.kernel32.dll_SizeofResource
mov esi, eax
test esi, esi
jbe 0x406e7c
push ebx
mov eax, dword [0x42d67c]
push eax
call sub.kernel32.dll_LoadResource
mov edi, eax
test edi, edi
jbe 0x406e76
push edi
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x406e6f
push esi
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x406dac]
call fcn.00403f68
add esp, 4
mov eax, dword [ebp - 0xc]
mov ecx, esi
mov edx, dword [ebp - 8]
call fcn.004045fc
push GdipGetImageWidth
push 0
push esi
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_CreateIconFromResource
mov dword [ebp - 4], eax
mov eax, edi
call fcn.0040460c
push ebx
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406e9f
lea eax, [ebp - 0xc]
mov edx, dword [0x406dac]
call fcn.00403f74
ret

Function at 0x406fb4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x110], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40703f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x105]
call fcn.00406f14
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x10c]
call fcn.00406f28
mov edx, dword [ebp - 0x10c]
mov eax, ebx
mov ecx, 0x407054
call fcn.00402f44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407046
lea eax, [ebp - 0x110]
mov edx, 2
call fcn.00402cc8
ret

Function at 0x407058
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00406f14
add esp, 0x108
pop ebx
ret

Function at 0x407084
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
mov eax, esp
call fcn.00406f14
add esp, 0x108
pop ebx
ret

Function at 0x4070ac
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffff004
push eax
add esp, 0xfffffff8
mov ebx, eax
mov dword [esp], 0x1000
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x1001
call fcn.00402ecc
add esp, 0x1008
pop ebx
ret
Function at 0x407330
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00402ca4
push esp
push esi
call sub.user32.dll_GetActiveWindow
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.00404650
test eax, eax
je 0x407385
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x40737c
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00402ecc
mov eax, dword [esp]
push eax
call sub.ole32.dll_CoTaskMemFree
cmp dword [ebx], 0
je 0x4073a6
mov eax, dword [ebx]
call fcn.00402ef8
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x4073a6
mov eax, ebx
mov edx, 0x4073b8
call fcn.00402f00
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x407624
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, eax
xor ebx, ebx
xor eax, eax
mov dword [esp], eax
mov eax, ebp
call fcn.00403db4
mov esi, eax
test esi, esi
jl 0x407669
inc esi
xor edi, edi
push 0
mov eax, dword [ebp + edi*4]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x407665
inc dword [esp]
inc edi
dec esi
jne 0x407642
mov eax, ebp
call fcn.00403dac
test eax, eax
jle 0x407681
mov eax, ebp
call fcn.00403dac
cmp eax, dword [esp]
sete bl
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4076c0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push ebx
mov edi, edx
mov esi, eax
xor ebx, ebx
mov eax, 0xffffffff
mov ecx, edi
shr ecx, 2
jecxz 0x407717
mov edx, dword [esi]
mov bl, al
xor bl, dl
shr eax, 8
xor eax, dword [ebx*4 + 0x42d9fc]
mov bl, al
xor bl, dh
shr eax, 8
xor eax, dword [ebx*4 + 0x42d9fc]
shr edx, 0x10
mov bl, al
xor bl, dl
shr eax, 8
xor eax, dword [ebx*4 + 0x42d9fc]
mov bl, al
xor bl, dh
shr eax, 8
xor eax, dword [ebx*4 + 0x42d9fc]
add esi, 4
loop 0x4076d5
mov ecx, edi
and ecx, 3
jecxz 0x40772f
mov bl, al
xor bl, byte [esi]
shr eax, 8
inc esi
xor eax, dword [ebx*4 + 0x42d9fc]
loop 0x40771e
xor eax, 0xffffffff
pop ebx
pop edi
pop esi
ret