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

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x30]
push edi
push esi
call sym.fxh.exe__sys_error_none_4
mov edi, dword [esp + 0x30]
test edi, edi
je 0x4200e1
push ebx
mov ebx, dword [esp + 0x30]
push ebp
mov ebp, dword [ebx + 0x918]
test ebp, ebp
jne 0x41ff93
push 1
call fcn.00409fbc
push eax
push 0x36
push 1
push str.INTERNAL_ERROR:_Data_pointer_NIL_in_FILE_READ_INETSTR.
call fcn.0040a251
push 0x42e6b4
call fcn.004011e0
add esp, 0x18
call sym.fxh.exe__sys_bomb_0
push 0x4308bc
push 0
push 1
push dword [0x4308b8]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call sub.KERNEL32.dll_CreateEventA
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x40]
push eax
push edi
push dword [esp + 0x3c]
push dword [ebx + 0x920]
call sub.KERNEL32.dll_WriteFile
test al, al
jne 0x4200a8
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e5
jne 0x420075
movss xmm0, dword [ebp + 4]
or eax, 0xffffffff
comiss xmm0, dword [0x426648]
jbe 0x42003f
movsd xmm1, qword [0x421230]
sub esp, 8
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x426620]
maxsd xmm1, xmm0
addsd xmm1, qword [0x421220]
movsd qword [esp + 0x18], xmm1
fld qword [esp + 0x18]
fstp qword [esp]
call fcn.0040b690
fstp qword [esp + 0x18]
cvttsd2si eax, qword [esp + 0x18]
add esp, 8
push eax
push dword [esp + 0x2c]
call sub.KERNEL32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x42008b
cmp eax, 0xffffffff
je 0x420070
push 1
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x20]
push eax
push dword [ebx + 0x920]
call sub.KERNEL32.dll_GetOverlappedResult
test al, al
jne 0x4200a8
call sub.KERNEL32.dll_GetLastError
push dword [esp + 0x28]
mov dword [esi + 0xc], eax
call fcn.00407568
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x1c
ret 0x10
push esi
push 0x20
push 0xfffffffffffffffd
call sym.fxh.exe__sys_stat_set_12
push dword [esp + 0x28]
call fcn.00407568
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x1c
ret 0x10
cmp dword [esp + 0x3c], edi
je 0x4200d6
push esi
push 9
push 0xfffffffffffffffd
call sym.fxh.exe__sys_stat_set_12
push esi
lea eax, [ebx + 0x50c]
push eax
call sym.fxh.exe__sys_stat_parm_vstr_8
push esi
push edi
call sym.fxh.exe__sys_stat_parm_int_8
push esi
push dword [esp + 0x40]
call sym.fxh.exe__sys_stat_parm_int_8
push dword [esp + 0x28]
call fcn.00407568
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x1c
ret 0x10
Function at 0x420150
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x400
push ebx
mov ebx, dword [esp + 0x40c]
push esi
mov esi, dword [esp + 0x414]
push edi
mov edi, dword [esp + 0x410]
push esi
push ebx
push edi
call sym.fxh.exe__string_t_inetadr_12
push esi
call sym.fxh.exe__sys_error_4
test al, al
je 0x4201ec
push ebp
push esi
call sym.fxh.exe__sys_error_none_4
call sym.fxh.exe__sys_sys_netstart_0
movsx ebp, word [edi + 2]
cmp dword [0x42e630], ebp
cmovl ebp, dword [0x42e630]
cmp ebp, 1
jl 0x4201b4
lea eax, [edi + 4]
push ebp
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004075e0
add esp, 0xc
mov al, byte [0x4308ac]
mov byte [esp + ebp + 0x10], al
lea eax, [esp + 0x10]
push eax
call sub.WS2_32.dll_gethostbyname
pop ebp
test eax, eax
jne 0x4201f8
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 0xc], eax
cmp eax, 0x2af9
jne 0x4201ec
push esi
push 0xf
push 0xfffffffffffffffd
call sym.fxh.exe__sys_stat_set_12
push esi
push edi
call sym.fxh.exe__sys_stat_parm_vstr_8
pop edi
pop esi
pop ebx
add esp, 0x400
ret 0xc
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4201db
mov eax, dword [eax]
test eax, eax
je 0x4201db
mov eax, dword [eax]
push 4
push ebx
mov dword [ebx], eax
call sym.fxh.exe__sys_order_flip_8
pop edi
pop esi
pop ebx
add esp, 0x400
ret 0xc

Function at 0x420580
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x2008
call fcn.00406c20
push esi
mov esi, dword [esp + 0x2018]
mov eax, 0x2000
push edi
push esi
mov word [esp + 0x10], ax
call sym.fxh.exe__sys_error_none_4
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x2018]
call sym.fxh.exe__string_copy_8
movzx eax, word [0x42e6e4]
push eax
push 0x42e6e0
lea eax, [esp + 0x14]
push eax
call sym.fxh.exe__string_appendn_12
lea eax, [esp + 0xc]
push eax
call sym.fxh.exe__string_terminate_null_4
push dword [0x4308d0]
lea eax, [esp + 0x14]
push 0x8000080
push 3
push dword [0x4308cc]
push 1
push connect
push eax
call sub.KERNEL32.dll_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x420613
call sub.KERNEL32.dll_GetLastError
pop edi
mov dword [esi + 0xc], eax
pop esi
add esp, 0x2008
ret 0xc
push dword [0x4308d4]
movsx eax, word [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push eax
lea eax, [esp + 0x1c]
push eax
push edi
call sub.KERNEL32.dll_ReadFile
test al, al
jne 0x42064c
call sub.KERNEL32.dll_GetLastError
push edi
mov dword [esi + 0xc], eax
call fcn.00407568
pop edi
pop esi
add esp, 0x2008
ret 0xc
movsx edx, word [esp + 0xc]
mov ecx, dword [esp + 8]
cmp edx, ecx
movzx eax, word [esp + 0xc]
movzx esi, cx
cmovb esi, eax
push edi
mov word [esp + 0x12], si
call fcn.00407568
mov edx, dword [esp + 0x2018]
mov cx, word [esp + 0xe]
movzx eax, word [edx]
cmp ax, cx
cwde
jl 0x420685
movsx eax, cx
movzx eax, ax
mov ecx, 1
movsx esi, ax
mov word [edx + 2], ax
cmp esi, ecx
jl 0x4206bf
mov al, byte [esp + ecx + 0xf]
cmp al, 0x1f
jbe 0x4206b8
cmp al, 0x7f
je 0x4206b8
mov byte [ecx + edx + 3], al
inc ecx
cmp ecx, esi
jle 0x420698
pop edi
pop esi
add esp, 0x2008
ret 0xc
lea eax, [ecx - 1]
mov word [edx + 2], ax
pop edi
pop esi
add esp, 0x2008
ret 0xc
Function at 0x4206d0
Capabilities:
Clear file content
Delete file
Write file on windows

Disassembly:
mov eax, 0x2510
call fcn.00406c20
mov eax, 0x400
mov word [esp + 0x108], ax
mov eax, 0x100
push esi
push edi
mov edi, dword [esp + 0x2528]
mov word [esp + 0xc], ax
mov eax, 0x2000
push edi
mov word [esp + 0x518], ax
call sym.fxh.exe__sys_error_none_4
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x114]
push eax
push dword [esp + 0x2524]
call sym.fxh.exe__string_pathname_split_12
lea eax, [esp + 0x110]
push eax
push eax
call sym.fxh.exe__string_treename_8
lea eax, [esp + 0x514]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x118]
push eax
call sym.fxh.exe__string_pathname_join_12
test byte [esp + 0x2524], 1
mov esi, 1
je 0x420796
lea eax, [esp + 0x514]
mov esi, 2
push eax
call sym.fxh.exe__string_terminate_null_4
lea eax, [esp + 0x518]
push eax
call sub.KERNEL32.dll_DeleteFileA
test al, al
jne 0x420796
call sub.KERNEL32.dll_GetLastError
push edi
mov dword [edi + 0xc], eax
call sym.fxh.exe__file_not_found_4
test al, al
je 0x42082b
movzx eax, word [0x42e6d4]
push eax
push 0x42e6d0
lea eax, [esp + 0x51c]
push eax
call sym.fxh.exe__string_appendn_12
lea eax, [esp + 0x514]
push eax
call sym.fxh.exe__string_terminate_null_4
push dword [0x4308c4]
lea eax, [esp + 0x51c]
push 0x8000080
push esi
push dword [0x4308c0]
push 1
push 0x40000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x420823
push dword [0x4308c8]
mov eax, dword [esp + 0x2524]
lea edx, [esp + 0xc]
push edx
movsx ecx, word [eax + 2]
add eax, 4
push ecx
push eax
push esi
call sub.KERNEL32.dll_WriteFile
test al, al
je 0x420836
push esi
call sub.KERNEL32.dll_SetEndOfFile
test al, al
je 0x420836
push esi
call fcn.00407568
test al, al
jne 0x42082b
call sub.KERNEL32.dll_GetLastError
mov dword [edi + 0xc], eax
pop edi
pop esi
add esp, 0x2510
ret 0x10
call sub.KERNEL32.dll_GetLastError
push esi
mov dword [edi + 0xc], eax
call fcn.00407568
lea eax, [esp + 0x518]
push eax
call sub.KERNEL32.dll_DeleteFileA
pop edi
pop esi
add esp, 0x2510
ret 0x10

Function at 0x420860
Capabilities:
Delete file

Disassembly:
mov eax, 0x250c
call fcn.00406c20
mov eax, 0x400
mov word [esp + 0x104], ax
mov eax, 0x100
push esi
mov esi, dword [esp + 0x2518]
mov word [esp + 4], ax
mov eax, 0x2000
push esi
mov word [esp + 0x510], ax
call sym.fxh.exe__sys_error_none_4
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x10c]
push eax
push dword [esp + 0x251c]
call sym.fxh.exe__string_pathname_split_12
lea eax, [esp + 0x108]
push eax
push eax
call sym.fxh.exe__string_treename_8
lea eax, [esp + 0x50c]
push eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x110]
push eax
call sym.fxh.exe__string_pathname_join_12
movzx eax, word [0x42e6dc]
push eax
push 0x42e6d8
lea eax, [esp + 0x514]
push eax
call sym.fxh.exe__string_appendn_12
lea eax, [esp + 0x50c]
push eax
call sym.fxh.exe__string_terminate_null_4
lea eax, [esp + 0x510]
push eax
call sub.KERNEL32.dll_DeleteFileA
test al, al
jne 0x42091d
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0xc], eax
pop esi
add esp, 0x250c
ret 8
Function at 0x401996
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
sete dl
cmp dword [ebp + 8], 0
sete al
mov ecx, 0
or dl, al
jne 0x401ada
lea ecx, [edi*4 + 0xb]
mov edx, 0x2aaaaaab
mov eax, ecx
imul edx
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
lea edx, [edx*4 + 1]
cmp edx, dword [ebp + 0x14]
jle 0x401a3d
mov dword [esp], 0x6f
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
mov ecx, 0
jmp 0x401ada
movzx eax, byte [ecx]
and eax, 3
shl eax, 4
movzx eax, byte [eax + section.3j29daql]
mov byte [ebx + 1], al
mov byte [ebx + 2], 0x3d
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
movzx eax, byte [ecx + 1]
and eax, 0xf
movzx eax, byte [eax*4 + section.3j29daql]
mov byte [ebx + 2], al
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
mov esi, 0
mov ecx, dword [ebp + 8]
cmp esi, edi
jge 0x401ad2
movzx eax, byte [ecx]
shr al, 2
movzx eax, al
movzx eax, byte [eax + section.3j29daql]
mov byte [ebx], al
mov eax, edi
sub eax, esi
cmp eax, 1
je 0x4019fc
movzx edx, byte [ecx]
and edx, 3
shl edx, 4
movzx eax, byte [ecx + 1]
shr al, 4
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.3j29daql]
mov byte [ebx + 1], al
mov eax, edi
sub eax, esi
cmp eax, 2
je 0x401a1f
movzx edx, byte [ecx + 1]
and edx, 0xf
shl edx, 2
movzx eax, byte [ecx + 2]
shr al, 6
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.3j29daql]
mov byte [ebx + 2], al
movzx eax, byte [ecx + 2]
and eax, 0x3f
movzx eax, byte [eax + section.3j29daql]
mov byte [ebx + 3], al
add esi, 3
add ecx, 3
add ebx, 4
cmp esi, edi
jl 0x401a4d
mov byte [ebx], 0
mov ecx, 1
mov eax, ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401b7e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, 0
mov dword [esp], 0
call sub.msvcrt.dll_malloc
mov esi, eax
mov dword [esp + 4], 0x40e000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov edi, eax
mov eax, 0
test edi, edi
je 0x401c23
jmp 0x401bc1
mov eax, 0
jmp 0x401c23
test byte [edi + 0xc], 0x10
jne 0x401c00
inc ebx
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_realloc
mov esi, eax
test eax, eax
je 0x401bba
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 1
lea eax, [eax + ebx - 1]
mov dword [esp], eax
call sub.msvcrt.dll_fread
test byte [edi + 0xc], 0x10
je 0x401bc7
lea eax, [ebx - 1]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00401b44
mov ebx, eax
mov dword [esp], esi
call sub.msvcrt.dll_free
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10002180
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101146c0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1015d2f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
mov ebx, str.UIxFramework
mov dword [ebp - 0x14], edi
mov dword [0x10164ee0], eax
call fcn.10003980
mov esi, dword [0x10164ee8]
cmp esi, edi
je 0x100021f8
cmp dword [esi + 0x14], 8
jb 0x100021e0
mov eax, dword [esi]
push eax
call fcn.10004661
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
push esi
mov word [esi], cx
call fcn.10004661
add esp, 4
push 0x2c
mov dword [0x10164ee8], edi
call fcn.10004632
add esp, 4
cmp eax, edi
je 0x10002228
mov dword [eax + 0x20], 7
mov dword [eax + 0x1c], edi
xor edx, edx
mov word [eax + 0xc], dx
mov dword [eax + 0x28], edi
mov dword [eax], edi
mov dword [eax + 8], edi
mov esi, eax
jmp 0x1000222a
xor esi, esi
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x100016d0
push edi
push edi
mov dword [0x10164ed8], esi
mov dword [ebp + 8], edi
call fcn.100f316c
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
mov dword [esi + 4], ecx
mov dword [0x10164edc], 0x100016b0
mov eax, dword [ebp - 0x14]
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 0x100029e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100029fb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10002a32
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x10002a2e
jmp 0x10002a20
cmp esi, eax
jae 0x10002a32
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10002a20
cmp esi, eax
jb 0x10002a39
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10003140
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10114590
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x1015d2f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
call fcn.100033c0
mov dword [ebp - 4], 0xffffffff
mov byte [ebp - 0x11], 0
test al, al
je 0x10003246
push 0x3c
lea ecx, [ebp - 0x70]
push edi
push ecx
call fcn.100f4c00
mov eax, dword [esi + 0x14]
add esp, 0xc
mov dword [ebp - 0x70], 0x3c
mov dword [ebp - 0x6c], 0x440
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], str.RunAs
cmp eax, 8
jb 0x100031d5
mov edx, dword [esi]
mov dword [ebp - 0x60], edx
jmp 0x100031d8
mov dword [ebp - 0x60], esi
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 8
jb 0x100031e3
mov ecx, dword [ecx]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x54], edi
cmp eax, 8
jb 0x100031f0
mov esi, dword [esi]
push esi
push str.Elevate_Launch__s
push 0xb
push 2
xor ecx, ecx
xor eax, eax
call fcn.10003a60
add esp, 0x10
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x10003225
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov byte [ebp - 0x11], 1
jmp 0x1000333d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ShellExecuteEx_ErrorCode_d
push 0x18
push 3
xor ecx, ecx
xor eax, eax
call fcn.10003a60
add esp, 0x10
jmp 0x1000333d
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov edx, dword [esi + 0x10]
lea edi, [edx + ecx + 2]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000466c
add esp, 4
cmp dword [esi + 0x14], 8
mov ebx, eax
jb 0x1000327a
mov eax, dword [esi]
jmp 0x1000327c
mov eax, esi
push eax
push edi
push ebx
call fcn.100f372e
push 0x1013fc00
push edi
push ebx
call fcn.100f3791
mov eax, dword [ebp + 8]
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x1000329e
mov eax, dword [eax]
push eax
push edi
push ebx
call fcn.100f3791
push 0x44
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.100f4c00
xor eax, eax
add esp, 0x18
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x78], 0x44
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
jb 0x100032d3
mov esi, dword [esi]
push esi
push str.Launch__s
push 0xb
push 2
xor ecx, ecx
xor eax, eax
call fcn.10003a60
add esp, 0x10
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x78]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10003318
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov byte [ebp - 0x11], 1
jmp 0x10003334
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcess_ErrorCode_d
push 0x18
push 3
xor ecx, ecx
xor eax, eax
call fcn.10003a60
add esp, 0x10
push ebx
call fcn.10004661
add esp, 4
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100036c0
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10154b60
push 0x100f6380
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x1015d2f0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x22c], 1
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0x230]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x1000378c
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x228]
push eax
push 5
mov ecx, dword [ebp - 0x230]
push ecx
push esi
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x1000378c
mov edx, dword [ebp - 0x228]
push edx
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x224]
push ecx
push 1
lea edx, [ebp - 0x220]
push edx
push esi
call dword [sym.imp.NETAPI32.dll_NetUserGetInfo]
test eax, eax
jne 0x1000378c
mov eax, dword [ebp - 0x224]
cmp dword [eax + 0xc], 2
je 0x1000378c
mov dword [ebp - 0x22c], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.100037bf
cmp dword [ebp - 0x22c], esi
setne al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100f2782
mov esp, ebp
pop ebp
ret

Function at 0x1000fdff
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 0x1000fe46
call fcn.1000624d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1000fe46
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x1000fe62
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.1000f8ff
mov esi, eax
test edi, edi
je 0x1000fe60
test ebx, ebx
je 0x1000fe60
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10010241
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x1010e8b6
call fcn.100f4701
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x10010266
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x100102b8
call fcn.100054f8
push eax
lea ecx, [ebp - 0x10]
call fcn.100029b0
mov ecx, dword [esi + 0x6c]
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.100f480b
push eax
call fcn.10002a90
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.100030c0
mov eax, esi
call fcn.100f47d9
ret 8
Function at 0x10012fc8
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.10012c6c
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x10013012
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10004894
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10004853
jmp 0x1001301d
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.1001034c
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10013023
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.1000ff0b
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x10013060
call fcn.10012c6c
mov dword [esi + 0xc], 1
jmp 0x10013065
call fcn.10012c6c
cmp dword [esi], 0
je 0x100130ae
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x10013086
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10004894
jmp 0x10013098
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.10002e80
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10004853
jmp 0x100130d2
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x100130d2
push dword [esi]
push dword [ebp + 8]
call fcn.1001034c
pop esi
pop ebp
ret 0xc

Function at 0x100190ae
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.100546ef
call fcn.10005c6a
cmp dword [eax + 0x14], 0
jne 0x100190cb
mov ecx, esi
pop esi
jmp fcn.10018bb3
pop esi
ret

Function at 0x1001c804
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.100652db
call fcn.10005c6a
cmp dword [eax + 0x14], 0
jne 0x1001c821
mov ecx, esi
pop esi
jmp fcn.1001c1d7
pop esi
ret

Function at 0x10029a1d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.1000624d
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10029a56
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.1002965a
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8