joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1025ab9
Capabilities:
Get file attributes

Disassembly:
call ebx
test eax, eax
mov eax, dword [ebp + 8]
js 0x1056580
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x1025afa
mov dword [edi], eax
jmp 0x1025af1
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x111b81c], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
je 0x1025b04
mov eax, dword [0x111b818]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x1056575
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x1025a99
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
call ebx
test eax, eax
js 0x1056555
mov dword [0x111b81c], 1
jmp 0x1025ad4
test eax, eax
mov dword [ebp - 4], eax
je 0x1025ae7
jmp 0x1025afb
push 0x1056598
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x105658c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x111b818], eax
jmp 0x1025b0e
push dword [ebp + 0x10]
push eax
call esi
jmp 0x1025b1a
push dword [eax + 8]
call dword [eax]
jmp 0x1025aac

Function at 0x102d6d6
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
push 1
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x102d727
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
push 0
shl eax, 8
push eax
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
test eax, eax
mov dword [esi + 4], eax
je 0x1062251
mov ecx, dword [0x11169c4]
cmp byte [ecx + 0x19], 5
jae 0x1062239
pop esi
leave
ret
push eax
push 0x106b3cc
push 0x10
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0106f624
jmp 0x102d727
mov eax, dword [0x11169c4]
cmp byte [eax + 0x19], 2
jb 0x102d727
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x11169c4]
push 0x106b3cc
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0106f624
jmp 0x102d727
Function at 0x102e325
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x111a324]
cmp eax, 0xffffffff
push ebx
push esi
push edi
je 0x1066ac8
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
cmp eax, ebx
je 0x102e355
inc dword [eax + 4]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push 0x1c
call fcn.01050226
mov esi, eax
cmp esi, ebx
je 0x1066acf
push esi
push dword [0x111a324]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [esi + 8]
push eax
push ebx
push 0x30
push 0x18
call fcn.01030932
mov edi, eax
cmp edi, ebx
jl 0x102e3f7
lea eax, [esi + 0xc]
push eax
call fcn.010359c8
mov edi, eax
cmp edi, ebx
jl 0x102e3f7
lea eax, [esi + 0x10]
push eax
push 8
call fcn.0102e409
mov edi, eax
cmp edi, ebx
jl 0x102e3f7
mov dword [esi + 4], 1
mov byte [esi + 0x14], bl
mov dword [esi + 0x18], ebx
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ecx, ecx
cmp dword [0x111c694], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
setne cl
push 2
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x14
mov dword [ebp - 8], ebx
add ecx, eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0xc], ecx
call dword [sym.imp.DUSER.dll_InitGadgets]
cmp eax, ebx
mov dword [esi], eax
jne 0x102e34e
jmp 0x1066ad9
cmp esi, ebx
jne 0x1066ae6
jmp 0x1066b1f
mov edi, 0x80004005
jmp 0x1066b1f
mov edi, 0x8007000e
jmp 0x102e3f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x102e3f7
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
je 0x1066af2
call fcn.010e76c2
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x1066aff
push eax
call fcn.0101b4b9
mov eax, dword [esi]
cmp eax, ebx
je 0x1066b0c
push eax
call dword [sym.imp.DUSER.dll_DeleteHandle]
push esi
call fcn.0103600d
push ebx
push dword [0x111a324]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, edi
jmp 0x102e350
Function at 0x103359b
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [0x11169c4]
cmp byte [esi + 0x19], 5
mov dword [ebp - 4], ecx
jae 0x1058fec
push dword [ebp + 8]
call fcn.01043486
test al, al
je 0x1059009
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1033615
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x105902a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push 0x43
push 0
push 0
add eax, 0x19
push 0
shl eax, 4
mov dword [eax + ecx], edi
push 0
push dword [sym.imp.MFC42u.dll_CWndconstCWnd::wndTop]
mov ecx, edi
call sub.MFC42u.dll_CWnd::SetWindowPos
push 5
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
leave
ret 0xc
cmp byte [esi + 0x19], 2
jae 0x1059035
jmp 0x103360f
push 0x10434e8
push 0x29
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.0106f4dc
mov esi, dword [0x11169c4]
jmp 0x10335b5
cmp byte [esi + 0x19], 2
jb 0x1033610
push 0x10434e8
push 0x2a
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.0106f4dc
jmp 0x1033610
mov esi, dword [0x11169c4]
jmp 0x1033615
push 0x10434e8
push 0x2b
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.0106f4dc
jmp 0x103360f

Function at 0x1033e17
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x10fcb8f
call fcn.01003440
sub esp, 0x24
mov al, byte [ebp + 8]
push esi
mov esi, ecx
and dword [esi + 4], 0
and dword [esi + 8], 0
and dword [esi + 0xc], 0
push edi
mov edi, 0x101f378
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x100a648
mov byte [esi + 0x10], al
call fcn.0100fa07
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x14]
call fcn.01033eb3
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
push edi
lea ecx, [ebp - 0x30]
call fcn.0100fa07
lea eax, [ebp - 0x30]
push eax
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.01033eb3
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
lea ecx, [esi + 0x4c]
call fcn.01045b9c
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1034cb0
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1034fb0
call fcn.0103fbfc
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp word [0x1000000], 0x5a4d
jne 0x1034e1a
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x1034e1a
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
jne 0x1061fa1
cmp dword [eax + 0x74], 0xe
jbe 0x1034e1a
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 2
pop esi
push esi
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or edi, 0xffffffff
mov dword [0x112c7c0], edi
mov dword [0x1116eac], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x111c49c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x111c498]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x112c7bc], eax
call fcn.0100a1e9
cmp dword [0x1119fa8], 0
je 0x1061fc7
call fcn.0104d89f
push 0x1034fac
push 0x1034fa8
call sub.msvcrt.dll__initterm
mov eax, dword [0x111c494]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x111c490]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x1034fa4
push 0x1034e34
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov eax, dword [eax]
test eax, eax
je 0x1061fd8
mov dword [ebp - 0x20], eax
cmp word [eax], 0x22
jne 0x1034e23
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x1034de4
cmp cx, 0x22
jne 0x1034dd1
cmp word [eax], 0x22
jne 0x1034def
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x1034dfd
cmp cx, 0x20
jbe 0x1034dea
test byte [ebp - 0x54], 1
je 0x1034e2f
movzx ecx, word [ebp - 0x50]
push ecx
push eax
push 0
push 0x1000000
call fcn.0102d72f
jmp 0x1061fec
and dword [ebp - 0x1c], 0
jmp 0x1034d14
cmp word [eax], 0x20
ja 0x1061fe2
jmp 0x1034def
push 0xa
pop ecx
jmp 0x1034e07
cmp ecx, 0x20b
jne 0x1034e1a
cmp dword [eax + 0x84], 0xe
jbe 0x1034e1a
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x1034d0e
push fcn.0100a1e9
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
jmp 0x1034d6c
mov dword [ebp - 4], edi
mov eax, 0xff
jmp 0x1062046
add eax, esi
mov dword [ebp - 0x20], eax
jmp 0x1034e23
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], 0
jne 0x1061ffe
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x1062044
mov eax, esi
call fcn.01028ce4
ret
Function at 0x1035cdc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x1116788]
push ebx
push esi
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
cmp eax, ecx
push edi
mov dword [esi + 0x43c], eax
mov word [esi + 0x2c], cx
mov word [esi + 0x234], cx
je 0x1067aea
mov eax, dword [ebp + 0x10]
push dword [ebp + 8]
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x58]
push 0x1035d9c
push eax
mov byte [esi + 0xc], 0
call dword [sym.imp.msvcrt.dll_swprintf]
mov eax, dword [esi + 0x43c]
mov edi, dword [eax]
add esp, 0xc
push 0x1035d8c
lea eax, [ebp - 0x58]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x1035d79
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1035d79
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push edi
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp - 0x5c]
mov ecx, esi
call fcn.01035da9
test eax, eax
jl 0x1035d7b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010032ea
leave
ret 0xc
lea eax, [esi + 0x440]
mov dword [eax], ecx
mov dword [esi + 0x43c], eax
jmp 0x1035d0f

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

Disassembly:
mov eax, 0x10edea5
call fcn.01003440
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
mov byte [ebp - 0xd], bl
je 0x103f8a7
mov eax, dword [0x11169c4]
cmp byte [eax + 0x19], 4
push esi
mov esi, 0x100bc90
jae 0x1056fc6
push edi
lea ecx, [ebp + 8]
call fcn.0103f8bf
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1056fda
mov byte [ebp - 0xd], 1
or dword [ebp - 4], 0xffffffff
cmp byte [ebp + 8], bl
jne 0x105700e
pop esi
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
push edi
push esi
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0106f503
jmp 0x103f879
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x103f899
mov ecx, dword [0x11169c4]
cmp byte [ecx + 0x19], 2
jb 0x103f899
push eax
push edi
push esi
push 0x11
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0106fe06
jmp 0x103f899
push ebx
call fcn.0103f8e2
jmp 0x103f8a6
Function at 0x103fd00
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp byte [0x111c038], bl
jne 0x103fda1
push esi
push edi
mov esi, 0x111b838
push esi
push ebx
push ebx
push 0x25
push ebx
mov word [0x111bc38], bx
mov word [0x111b838], bx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov eax, dword [0x11169c4]
cmp byte [eax + 0x19], 4
mov edi, 0x100bc90
jae 0x1056edc
push 0x103fdc0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x1056ef0
push 0x103fda4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1056f22
mov esi, 0x200
push esi
push 0x111bc38
call eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1056f67
mov eax, dword [0x11169c4]
cmp byte [eax + 0x19], 2
jae 0x1056f62
pop edi
pop esi
pop ebx
leave
ret
push esi
push edi
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0106f503
jmp 0x103fd4a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1056f00
call esi
jmp 0x1056f0c
call esi
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [0x11169c4]
cmp byte [ecx + 0x19], 2
jb 0x103fd9f
push eax
push edi
push 0xb
jmp 0x1056f52
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1056f32
call esi
jmp 0x1056f3e
call esi
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [0x11169c4]
cmp byte [ecx + 0x19], 2
jb 0x103fd9f
push eax
push edi
push 0xc
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0106f624
jmp 0x103fd9f
push edi
push 0xd
jmp 0x1056f8e
cmp dword [ebp - 4], esi
mov byte [0x111c039], 1
ja 0x1056f7c
cmp dword [ebp - 4], ebx
jne 0x103fd9f
mov eax, dword [0x11169c4]
cmp byte [eax + 0x19], 2
jb 0x103fd9f
push edi
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0106f4dc
jmp 0x103fd9f
Function at 0x10458d2
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
mov eax, 0x10f6091
call fcn.01003440
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [esi + 0x14]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x41
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call fcn.0103d281
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 7
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], 0x8000000f
mov dword [esi + 0x68], ebx
mov byte [esi + 0x6c], bl
call fcn.0104594f
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x104fcdc
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x111a324]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10663c5
mov eax, dword [eax + 0xc]
ret
ret
Function at 0x105041b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [0x111a324]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
call fcn.0101fac0
test eax, eax
je 0x1050451
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0xc]
mov word [eax + 2], 6
mov dword [eax + 0xc], ecx
mov dword [eax + 4], 1
pop ebp
ret 8

Function at 0x10516b5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [0x111a324]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
call fcn.0101fac0
test eax, eax
je 0x10516ef
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov word [eax + 2], 9
mov byte [eax + 8], 5
mov dword [eax + 0x10], ecx
mov dword [eax + 4], 1
pop ebp
ret 8

Function at 0x10520d8
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x110015a
call fcn.01003440
sub esp, 0x14
and dword [ebp - 0x10], 0
push esi
push edi
mov esi, ecx
push 0
lea ecx, [ebp - 0x20]
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_long_int_]
xor edi, edi
inc edi
push 0x1052150
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::SetFunctionName_unsigned_short_int_const__]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x110]
test eax, eax
jne 0x105e800
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_class_mmcerror::SC_const__]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 0
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [esi + 0x64]
call fcn.010c1cbf
jmp 0x105211e

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

Disassembly:
cmp dword [0x1130348], 0
push esi
jne 0x105521a
call fcn.01055248
test eax, eax
je 0x105523f
mov eax, dword [0x1130348]
cmp eax, 1
jne 0x1062186
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x105523f
pop esi
ret
xor eax, eax
pop esi
ret
push eax
call dword [0x1131cf8]
test eax, eax
jne 0x10621f0
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x105523f
mov eax, dword [esi]
push edi
push dword [0x1130348]
call dword [0x1131cf8]
mov edi, eax
test edi, edi
je 0x10621d1
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x10621ed
mov edi, esi
add esi, 0xff0
push edi
push dword [0x1130348]
call dword [0x1131cf4]
add edi, 0x10
cmp edi, esi
jb 0x10621d9
mov eax, edi
pop edi
pop esi
ret
Function at 0x105602a
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x1100c97
call fcn.01003440
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
push edi
mov ebx, ecx
call dword [sym.imp.ole32.dll_OleInitialize]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
lea eax, [esi + esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.0102727b
mov dword [ebp - 0x18], esp
inc esi
push esi
push dword [ebp - 0x18]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x101f378
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [ebp + 0x10]
test esi, esi
mov dword [ebp - 0x1c], edi
je 0x1056092
mov eax, dword [esi]
test eax, eax
jne 0x105f7b9
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor ecx, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x14], ecx
cmp eax, ecx
mov dword [ebp - 4], ecx
je 0x10560b2
cmp edi, ecx
jne 0x105f7c1
mov dword [ebp - 0x10], ecx
mov eax, dword [ebx + 4]
push ecx
push 0x104392c
push ecx
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x18]
call fcn.0105376f
test eax, eax
mov eax, dword [ebp - 0x10]
jl 0x105f800
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push 0x1056154
push eax
call dword [ecx]
test eax, eax
jl 0x105f7fd
push dword [ebp - 0x1c]
push 0xffffffffffffffeb
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
jne 0x105f827
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
mov eax, dword [ebp - 0x10]
test eax, eax
mov byte [ebp - 4], 0
je 0x105612f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x105f859
xor eax, eax
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
movzx edi, word [eax]
jmp 0x1056092
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, dword [esi]
push dword [ebp + 0x10]
mov ecx, edi
mov edi, eax
mov eax, ecx
inc esi
shr ecx, 2
inc esi
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x14]
push eax
push 1
push dword [ebp + 0x10]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
xor ecx, ecx
jmp 0x10560b2
mov eax, dword [ebp - 0x10]
test eax, eax
mov byte [ebp - 4], 0
je 0x105f80e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x105f81f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or eax, 0xffffffff
jmp 0x1056140
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xffffffffffffffec
push eax
call esi
mov edi, 0x10000
test edi, eax
je 0x1056115
push 0xffffffffffffffec
push dword [ebx + 4]
call esi
or eax, edi
push eax
push 0xffffffffffffffec
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp 0x1056115
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x105613e
Function at 0x106f8aa
Capabilities:
Accept command line arguments
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
xor ecx, ecx
cmp esi, ecx
mov dword [ebp - 4], 1
jne 0x106f8d0
mov dword [ebp - 4], 0x80004003
jmp 0x106fac0
cmp dword [ebp + 0xc], ecx
jne 0x106f8e1
mov dword [ebp - 4], 0x80070057
jmp 0x106fac0
mov word [esi], cx
cmp byte [edi + 0x6c], 0
mov eax, dword [edi + 0x14]
mov dword [ebp + 8], esi
je 0x106f8f3
mov eax, dword [edi + 0x5c]
cmp eax, ecx
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_wcslen]
je 0x106f94f
cmp word [eax], cx
je 0x106f94f
push eax
push 0x106fae4
push dword [ebp + 0xc]
push esi
call fcn.0106f824
add esp, 0x10
test eax, eax
mov dword [ebp - 4], eax
jge 0x106f945
mov eax, dword [0x11169c4]
cmp byte [eax + 0x19], 2
jb 0x106fabf
push dword [ebp - 4]
push 0x106955c
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0106f624
jmp 0x106fabf
push esi
call ebx
sub dword [ebp + 0xc], eax
pop ecx
lea esi, [esi + eax*2]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
jne 0x106f965
mov dword [ebp - 4], 0x8007000e
jmp 0x106fabf
xor dl, dl
mov cx, word [eax]
cmp cx, 0x20
je 0x106f988
cmp cx, 9
je 0x106f988
cmp cx, 0x22
jne 0x106f983
test dl, dl
sete dl
jmp 0x106f98c
test cx, cx
jmp 0x106f98a
test dl, dl
je 0x106f990
inc eax
inc eax
jmp 0x106f967
mov cx, word [eax]
cmp cx, 0x20
je 0x106f99f
cmp cx, 9
jne 0x106f9a3
inc eax
inc eax
jmp 0x106f990
cmp word [eax], 0
je 0x106f9e2
push eax
push dword [ebp + 0xc]
push esi
call fcn.01009f02
test eax, eax
mov dword [ebp - 4], eax
jge 0x106f9d8
mov eax, dword [0x11169c4]
cmp byte [eax + 0x19], 2
jb 0x106fabf
push dword [ebp - 4]
push 0x106955c
push 0xb
jmp 0x106f935
push esi
call ebx
sub dword [ebp + 0xc], eax
pop ecx
lea esi, [esi + eax*2]
mov eax, dword [edi + 0x24]
test eax, eax
jne 0x106f9ef
cmp dword [edi + 0x28], 1
je 0x106f9fa
cmp eax, 1
jne 0x106fa23
cmp dword [edi + 0x28], 0
jne 0x106fa23
mov eax, dword [0x11169c4]
cmp byte [eax + 0x19], 2
jb 0x106fa17
push 0x106955c
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0106f4dc
mov dword [ebp - 4], 0x80070057
jmp 0x106fabf
mov eax, dword [edi + 0x28]
cmp eax, 1
jne 0x106fa5a
push 0x106fad8
push dword [ebp + 0xc]
push esi
call fcn.0106f88b
test eax, eax
mov dword [ebp - 4], eax
jge 0x106fa8d
mov eax, dword [0x11169c4]
cmp byte [eax + 0x19], 2
jb 0x106fabf
push dword [ebp - 4]
push 0x106955c
push 0xd
jmp 0x106f935
test eax, eax
jne 0x106fa8d
push 0x106facc
push dword [ebp + 0xc]
push esi
call fcn.0106f88b
test eax, eax
mov dword [ebp - 4], eax
jge 0x106fa8d
mov eax, dword [0x11169c4]
cmp byte [eax + 0x19], 2
jb 0x106fabf
push dword [ebp - 4]
push 0x106955c
push 0xe
jmp 0x106f935
mov eax, dword [0x11169c4]
cmp byte [eax + 0x19], 4
jb 0x106faad
push dword [ebp + 8]
push 0x106955c
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0106f503
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
push 0x1069578
call esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8