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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cce8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1005d500]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov ebx, edx
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov esi, 0x10
cmp dword [ebp + 0x1c], esi
jae 0x10029b8d
lea eax, [ebp + 8]
push eax
call fcn.10036f23
mov eax, dword [ebp + 8]
add esp, 4
cmp dword [ebp + 0x1c], esi
jae 0x10029ba1
lea eax, [ebp + 8]
push 0x100546e8
push eax
call fcn.10035645
add esp, 8
add ebx, 0x61
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x38], esp
push 0xffffffffffffffff
push 0
add edi, 0xec
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edi
mov esi, eax
mov byte [ecx], 0
call fcn.10002da0
lea eax, [ebp - 0x30]
push eax
call fcn.10029950
mov ecx, dword [ebp - 0x20]
push esi
push 1
lea edx, [ebp - 0x34]
push 4
push edx
mov dword [ebp - 0x34], ecx
call fcn.10035cde
mov eax, dword [ebp - 0x30]
mov edi, 0x10
add esp, 0x10
cmp dword [ebp - 0x1c], edi
jae 0x10029c0e
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
push esi
push ecx
push 1
push eax
call fcn.10035cde
push esi
call fcn.100352ae
add esp, 0x14
cmp dword [ebp - 0x1c], edi
jb 0x10029c35
mov edx, dword [ebp - 0x30]
push edx
call fcn.10032d80
add esp, 4
cmp dword [ebp + 0x1c], edi
jb 0x10029c56
mov eax, dword [ebp + 8]
push eax
call fcn.10032d80
add esp, 4
jmp 0x10029c56
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10034d1a
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10029c80
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004bb47
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1005d500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x100534e8
mov dword [ebx + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov dword [ebx + edx], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx]
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [ebp - 0x10], 1
call fcn.10006d60
lea esi, [ebx + 0x10]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.100063a0
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x10029d17
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.10007c00
mov dword [ebp - 4], 2
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov ecx, esi
mov dword [ebx + edx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.10006170
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x1006145c]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
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 4
Function at 0x10029db0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004baf7
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1005d500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x100534f8
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov edi, dword [edx + 4]
add edi, ebx
mov ecx, edi
mov dword [ebp - 0x10], 1
call fcn.10006d60
lea esi, [ebx + 4]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.100063a0
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x10029e43
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.10007c00
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, esi
call fcn.10006170
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x1006145c]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
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 4
Function at 0x1002cc20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004d310
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1005d500]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov eax, dword [0x1005d500]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0x14], vtable.SysService.0
mov dword [esp + 0x38], 0
mov eax, dword [0x10061c90]
mov dword [esp + 0x10], eax
lea edx, [esp + 0x10]
mov eax, 0x1005fbb4
call fcn.10004c60
mov esi, dword [eax]
cmp dword [esi + 0xc], 8
mov ebx, 1
je 0x1002ccdc
mov dword [esp + 0x10], vtable.AdInfoService.0
mov ecx, esi
mov byte [esp + 0x38], bl
call fcn.10009d90
test al, al
jne 0x1002ccc9
cmp dword [esi + 0x160], 0
ja 0x1002ccc9
cmp dword [esi + 0x10], 6
je 0x1002ccd1
mov ecx, dword [esi + 0x54]
sub ecx, dword [esi + 0x50]
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x1002ccd1
add dword [0x100a1db0], ebx
jmp 0x1002ccd7
add dword [0x100a1dac], ebx
mov byte [esp + 0x38], 0
mov edx, dword [0x100a1db0]
cmp edx, dword [0x100a1dcc]
jl 0x1002ccf0
push ebx
call fcn.1002cdd0
mov eax, dword [0x100a1dac]
cmp eax, dword [0x100a1dc8]
jl 0x1002cd04
push 0
call fcn.1002cdd0
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0x1e]
movzx eax, word [esp + 0x1a]
movzx ecx, word [esp + 0x18]
push edx
call fcn.10030130
movzx ecx, word [esp + 0x20]
lea eax, [eax + eax*2 - 0x6fb8a4]
lea eax, [ecx + eax*8]
mov edx, eax
shl edx, 4
sub edx, eax
movzx eax, word [esp + 0x22]
add dword [esi + 0x18], ebx
lea eax, [eax + edx*4]
movzx edx, word [esp + 0x24]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*4]
movzx ecx, word [esp + 0x26]
imul eax, eax, 0x3e8
add eax, ecx
push 0x100a2010
mov dword [esi + 0x44], eax
call fcn.100039e0
mov edx, dword [0x10061c90]
mov dword [0x100a1db4], edx
mov eax, dword [esi + 0x44]
add dword [0x100a1da8], ebx
mov esi, 0x10061c20
mov dword [0x100a1da4], eax
call fcn.1001eea0
push 0x100a202c
mov ebx, 0x100a1d90
call fcn.100250b0
mov eax, 9
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10034d1a
mov esp, ebp
pop ebp
ret
Function at 0x1002fd90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x1005d500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push esi
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1002fdb8
sub eax, esi
push eax
push ecx
lea ecx, [ebp - 0x20]
call fcn.100028b0
push 0x44
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.10037e20
xor eax, eax
add esp, 0xc
cmp dword [ebp - 0xc], 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x74], 0x44
jae 0x1002fdfc
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x74]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1002fe47
cmp byte [ebp + 8], al
jne 0x1002fe47
cmp dword [ebp - 0xc], 0x10
jb 0x1002fe34
mov eax, dword [ebp - 0x20]
push eax
call fcn.10032d80
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10034d1a
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0xc], 0x10
mov esi, dword [ebp - 0x30]
jb 0x1002fe5c
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.10032d80
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10034d1a
mov esp, ebp
pop ebp
ret 4
Function at 0x10031af0
Capabilities:
Get disk information

Disassembly:
push esi
push edi
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_GetTextCharsetInfo]
push 0
push 0
push 0
push 0
push str.dgewq
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push str.yklb
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push 0
push 0
push str.udhk
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov eax, dword [0x10061bd4]
mov esi, dword [eax]
cmp esi, eax
je 0x10031b9b
lea ebx, [ebx]
mov eax, dword [esi + 0x10]
push eax
call fcn.10032d80
add esp, 4
cmp byte [esi + 0x15], 0
jne 0x10031b92
mov eax, dword [esi + 8]
cmp byte [eax + 0x15], 0
jne 0x10031b71
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x15], 0
jne 0x10031b92
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x15], 0
je 0x10031b65
jmp 0x10031b92
mov eax, dword [esi + 4]
cmp byte [eax + 0x15], 0
jne 0x10031b90
lea ebx, [ebx]
cmp esi, dword [eax + 8]
jne 0x10031b90
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x10031b80
mov esi, eax
mov eax, dword [0x10061bd4]
cmp esi, eax
jne 0x10031b40
mov edi, dword [eax + 4]
cmp byte [edi + 0x15], 0
mov esi, edi
jne 0x10031bcc
mov ecx, dword [esi + 8]
push ecx
mov ecx, 0x10061bd0
call fcn.10005cc0
mov esi, dword [esi]
push edi
call fcn.10032d80
add esp, 4
cmp byte [esi + 0x15], 0
mov edi, esi
je 0x10031ba6
mov eax, dword [0x10061bd4]
mov dword [eax + 4], eax
mov eax, dword [0x10061bd4]
mov dword [eax], eax
mov eax, dword [0x10061bd4]
pop edi
mov dword [eax + 8], eax
mov dword [0x10061bd8], 0
pop esi
ret

Function at 0x10032040
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileType]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea esp, [esp]
push 0x10054c4c
call esi
push 0
push 0
call edi
push 0
push 0x10054c50
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
call fcn.100320b0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push 0x4e20
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10032060
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10032730
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x1005d500]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.10037e20
push 0x24
lea ecx, [ebp - 0x404]
push 0x100535c8
push ecx
call fcn.10037f30
add esp, 0x18
xor eax, eax
mov edx, eax
and edx, 0x8000000f
jns 0x10032784
dec edx
or edx, 0xfffffff0
inc edx
mov cl, byte [ebp + eax - 0x404]
sub cl, al
xor cl, byte [edx + 0x10053650]
inc eax
mov byte [ebp + eax - 0x405], cl
cmp eax, 0x24
jl 0x10032775
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
push edi
push 0
push 0
push str.udhk
call ebx
push 0
push 0
push 0
push str.efbg
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push 0
push 0x10054c74
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
mov edx, dword [esi + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push edx
call edi
lea eax, [ebp - 0x404]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x1003285b
lea ebx, [ebx]
mov ecx, dword [esi + 0xc]
push 0x1388
push ecx
call edi
test eax, eax
je 0x10032865
push 0
push 0
push str.udhk
call ebx
push 0
push 0
push 0
push str.efbg
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push 0
push 0x10054c74
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
mov edx, dword [esi + 0x18]
push 0x64
push edx
call edi
lea eax, [ebp - 0x404]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [esi + 0x14], eax
test eax, eax
je 0x10032800
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10034d1a
mov esp, ebp
pop ebp
ret

Function at 0x10032880
Capabilities:
Get file attributes
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov dword [ebp - 8], 0
push esi
nop
push 0
push 0
push 0x10054c78
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
push 0
push 0
push 0
push 0x10054c7c
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push str.plhc
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [edi]
mov ecx, dword [edi + 4]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
xor ebx, ebx
test eax, eax
jle 0x1003291b
mov dword [ebp - 4], ebx
add esi, dword [ebp - 4]
cmp dword [esi + 0x14], 0x10
jb 0x100328ed
mov esi, dword [esi]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x1003293e
mov esi, dword [edi]
mov ecx, dword [edi + 4]
add dword [ebp - 4], 0x1c
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
cmp ebx, eax
jl 0x100328e2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, 1
jl 0x10032890
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10033fe7
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x100603b8], 0
push esi
push edi
jne 0x10033f5d
call fcn.10033ec9
test eax, eax
je 0x10033fa2
mov eax, dword [0x100603b8]
cmp eax, 1
jne 0x10033f7e
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10033fa2
jmp 0x10033fe4
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x10033fe4
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10033fa6
xor eax, eax
jmp 0x10033fe4
mov eax, dword [esi]
push dword [0x100603b8]
call edi
mov edi, eax
test edi, edi
je 0x10033fc8
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x10033fe4
lea edi, [esi + 0xff0]
push esi
push dword [0x100603b8]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x10033fce
mov eax, esi
pop edi
pop esi
ret
jmp 0x10033f49

Function at 0x10034d1a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1005d500]
jne 0x10034d24
repz ret
jmp fcn.1003a973

Function at 0x10036e5c
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 0x10036e83
call fcn.1003a805
mov dword [eax], esi
call fcn.1003a7f2
push 0x16
pop esi
mov dword [eax], esi
call fcn.1003b02c
mov eax, esi
jmp 0x10036ed8
test dword [ebp + 0xc], 0xfffffff9
jne 0x10036e69
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10036eb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1003a818
pop ecx
call fcn.1003a7f2
mov eax, dword [eax]
jmp 0x10036ed8
test al, 0x10
jne 0x10036ed6
test al, 1
je 0x10036ed6
test byte [ebp + 0xc], 2
je 0x10036ed6
call fcn.1003a805
mov dword [eax], 5
call fcn.1003a7f2
mov dword [eax], 0xd
jmp 0x10036ea7
xor eax, eax
pop esi
pop ebp
ret
Function at 0x100471de
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1005d500]
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.10040e98
and dword [ebp - 0x14], 0
cmp dword [0x10061378], 0
mov dword [ebp - 0x18], eax
jne 0x10047291
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10047339
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10047339
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10061378], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1006137c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10061380], eax
call edi
push eax
call esi
mov dword [0x10061388], eax
test eax, eax
je 0x10047291
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10061384], eax
mov eax, dword [0x10061384]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x100472ea
cmp dword [0x10061388], ecx
je 0x100472ea
push eax
call esi
push dword [0x10061388]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x100472ea
test ebx, ebx
je 0x100472ea
call edi
test eax, eax
je 0x100472e1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x100472e1
test byte [ebp - 8], 1
jne 0x100472ea
or dword [ebp + 0x10], 0x200000
jmp 0x1004731d
mov eax, dword [0x1006137c]
cmp eax, dword [ebp - 0x18]
je 0x1004731d
push eax
call esi
test eax, eax
je 0x1004731d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1004731d
mov eax, dword [0x10061380]
cmp eax, dword [ebp - 0x18]
je 0x1004731d
push eax
call esi
test eax, eax
je 0x1004731d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10061378]
call esi
test eax, eax
je 0x10047339
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1004733b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10034d1a
leave
ret

Function at 0x433002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4014c6
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], 1
call sub.KERNEL32.DLL_GetCommandLineA
mov esi, eax
push esi
call sub.CRTDLL.DLL_strlen
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, 2
push eax
call sub.CRTDLL.DLL_malloc
pop ecx
inc eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov byte [eax - 1], 0
mov edx, dword [ebp - 0xc]
inc edx
push edx
push esi
push dword [ebp - 0x10]
call sub.CRTDLL.DLL_memcpy
add esp, 0xc
mov ecx, dword [ebp - 4]
shl ecx, 2
push ecx
call sub.CRTDLL.DLL_malloc
pop ecx
mov edx, dword [ebp + 8]
mov dword [edx], eax
push pe_nt_image_headers32
call sub.CRTDLL.DLL_malloc
pop ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [edx], eax
push pe_nt_image_headers32
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push dword [ecx]
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
jmp 0x40161a
lea esi, [ebx - 1]
xor edx, edx
mov eax, edx
mov dword [ebp - 8], edx
sar eax, 1
inc esi
mov cl, byte [esi]
sub cl, 1
jb 0x4015a6
sub cl, 8
je 0x401581
sub cl, 0x17
je 0x401581
sub cl, 2
je 0x401587
cmp byte [esi], 0
jge 0x40155b
inc esi
mov eax, 2
jmp 0x40155b
test edx, edx
jne 0x40155b
jmp 0x4015ac
inc dword [ebp - 8]
cmp byte [esi - 1], 0x5c
jne 0x40159a
test eax, eax
jne 0x40159a
mov byte [esi - 1], 0
jmp 0x40155b
mov byte [esi], 0
cmp edx, 1
sbb edx, edx
neg edx
jmp 0x40155b
mov esi, dword [ebp - 0x10]
add esi, dword [ebp - 0xc]
test edi, edi
jne 0x4015b4
mov ebx, esi
jmp 0x401609
cmp edi, dword [ebp - 4]
jne 0x4015da
mov eax, dword [ebp - 4]
add eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
shl edx, 2
push edx
mov ecx, dword [ebp + 8]
push dword [ecx]
call sub.CRTDLL.DLL_realloc
add esp, 8
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, esi
sub eax, ebx
inc eax
sub eax, dword [ebp - 8]
push eax
call sub.CRTDLL.DLL_malloc
pop ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [edx + edi*4], eax
cmp esi, ebx
je 0x401606
mov cl, byte [ebx]
sub cl, 1
jb 0x401601
mov dl, byte [ebx]
mov byte [eax], dl
inc eax
inc ebx
cmp esi, ebx
jne 0x4015f5
mov byte [eax], 0
cmp byte [ebx], 0
je 0x401619
inc ebx
mov al, byte [ebx]
sub al, 9
je 0x40160e
sub al, 0x17
je 0x40160e
inc edi
cmp byte [ebx], 0
jne 0x401551
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret