joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f724
Capabilities:
Get thread local storage value

Disassembly:
push 8
mov eax, 0x434d77
call fcn.00431b80
mov edi, ecx
mov dword [ebp - 0x10], edi
push 1
push 0x14
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_951]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42f74d
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_56]
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0042f607
push eax
call fcn.0042f5c8
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.0042f486
push ecx
push 0x30303030
push eax
push ebx
mov ecx, edi
call fcn.00405452
mov dword [ebp - 4], 1
lea ecx, [ebp + 8]
mov edx, dword [ebp + 8]
mov dword [edi], 0x43ba78
call fcn.0042f18d
mov byte [ebp - 4], 2
mov esi, dword [ebp + 8]
test esi, esi
je 0x42f7a6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov ebx, eax
mov byte [ebp - 4], 1
test esi, esi
je 0x42f7b4
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov dword [edi + 0x10], ebx
cmp byte [0x44d4cc], 0
push dword [0x44d4c8]
je 0x42f7ce
call dword [sym.imp.KERNEL32.dll_FlsGetValue]
jmp 0x42f7d4
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x42f7de
push edi
call fcn.004052b5
mov eax, edi
call fcn.00431b54
ret 4

Function at 0x42fcee
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x4414e0
call fcn.0043083c
push 1
call fcn.0042fd71
pop ecx
test al, al
jne 0x42fba5
push 7
call fcn.004305fe
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0042fd3c
mov byte [ebp - 0x24], al
mov eax, dword [0x44ea94]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x42fb9e
test eax, eax
jne 0x42fc0f
mov dword [0x44ea94], ecx
push 0x4352f4
push 0x4352dc
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x42fbf2
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x42fce8
push 0x4352d8
push 0x4352ac
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x44ea94], 2
jmp 0x42fc14
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0042fede
pop ecx
call fcn.004305f2
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x42fc44
push esi
call fcn.0042fe54
pop ecx
test al, al
je 0x42fc44
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00430836
call esi
call fcn.004305f8
mov esi, eax
cmp dword [esi], edi
je 0x42fc62
push esi
call fcn.0042fe54
pop ecx
test al, al
je 0x42fc62
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.00430714
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00430747
test al, al
jne 0x42fc8d
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x42fc96
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.0042fefb
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x42fce8
call fcn.00430881
ret
call fcn.0042fa2c
jmp 0x42fb86
Function at 0x10008150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10008169
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100081a4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x100081a0
lea ebx, [ebx]
cmp esi, eax
jae 0x100081a4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10008190
cmp esi, eax
jb 0x100081aa
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x10008ce0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push edi
push str.Wlanapi.dll
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
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 [esi + 0x44], ebx
call ebp
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
je 0x10008deb
push str.WlanOpenHandle
push eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi]
push str.WlanCloseHandle
push eax
call edi
mov ecx, dword [esi]
push str.WlanEnumInterfaces
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi]
push str.WlanQueryInterface
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi]
push str.WlanConnect
push eax
call edi
mov ecx, dword [esi]
push str.WlanDisconnect
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi]
push str.WlanScan
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi]
push str.WlanRegisterNotification
push eax
call edi
mov ecx, dword [esi]
push str.WlanSaveTemporaryProfile
push ecx
mov dword [esi + 0x20], eax
call edi
mov edx, dword [esi]
push str.WlanGetAvailableNetworkList
push edx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x28], eax
mov eax, dword [esi]
push str.WlanGetProfile
push eax
call edi
mov ecx, dword [esi]
push str.WlanGetNetworkBssList
push ecx
mov dword [esi + 0x2c], eax
call edi
mov edx, dword [esi]
push str.WlanFreeMemory
push edx
mov dword [esi + 0x30], eax
call edi
mov dword [esi + 0x34], eax
mov eax, dword [esi]
push str.WlanGetProfileList
push eax
call edi
mov dword [esi + 0x38], eax
push str.Iphlpapi.dll
call ebp
cmp eax, ebx
mov dword [esi + 0x3c], eax
je 0x10008e12
push str.GetAdaptersAddresses
push eax
call edi
mov ecx, dword [esi + 0x3c]
push str.NotifyAddrChange
push ecx
mov dword [esi + 0x40], eax
call edi
mov dword [esi + 0x44], eax
pop edi
pop ebp
mov eax, esi
pop ebx
ret
Function at 0x10008fc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100eb118
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x244c
call fcn.100c8100
mov eax, dword [0x10144930]
xor eax, esp
mov dword [esp + 0x2448], eax
push ebx
push esi
push edi
mov eax, dword [0x10144930]
xor eax, esp
push eax
lea eax, [esp + 0x2460]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + 8]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x14], eax
jne 0x1000901f
push str.Script_Manager_is_invalid.._Init_Model_Data_fail__
jmp 0x10009168
cmp dword [esi], ebx
jne 0x1000902c
cmp dword [esi + 4], ebx
je 0x10009163
push 0x2000
lea eax, [esp + 0x458]
push ebx
push eax
mov dword [esp + 0x1c], ebx
call fcn.100c7d20
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x1000
lea edx, [esp + 0x45c]
mov ecx, esi
call fcn.10046910
test eax, eax
jne 0x10009175
xor edi, edi
cmp dword [esp + 0x10], ebx
jbe 0x10009175
push 0x200
lea edx, [esp + 0x58]
push ebx
push edx
call fcn.100c7d20
push 0x200
lea eax, [esp + 0x264]
push ebx
push eax
call fcn.100c7d20
push 0x100
lea ecx, [esp + 0x270]
push ecx
push edi
lea edx, [esp + 0x78]
lea ecx, [esp + 0x478]
call fcn.10045ad0
add esp, 0x24
test eax, eax
jne 0x10009154
lea edx, [esp + 0x34]
push edx
lea edx, [esp + 0x258]
call fcn.1000cbb0
mov dword [esp + 0x2468], ebx
lea edx, [esp + 0x54]
lea eax, [esp + 0x18]
call fcn.10007120
mov byte [esp + 0x2468], 1
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
add ecx, 0x24
call fcn.1000b620
mov esi, eax
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x3c]
mov ecx, esi
call fcn.10006dc0
mov ecx, dword [esp + 0x50]
mov dword [esi + 0x1c], ecx
mov byte [esp + 0x2468], bl
cmp dword [esp + 0x30], 8
jb 0x1000912e
mov edx, dword [esp + 0x1c]
push edx
call fcn.100b61c1
add esp, 4
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
mov dword [esp + 0x2468], 0xffffffff
lea eax, [esp + 0x34]
push eax
call fcn.100091a0
add edi, 1
cmp edi, dword [esp + 0x10]
jb 0x10009072
jmp 0x10009175
push str.Setup_XML_Script_is_invalid___Init_Model_Data_fail__
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
mov ecx, dword [esp + 0x2460]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2448]
xor ecx, esp
call fcn.100c59be
mov esp, ebp
pop ebp
ret 4
Function at 0x1000a550
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x100ebec8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebp
push esi
push edi
mov eax, dword [0x10144930]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [ebx]
lea edx, [eax + 0x200]
mov eax, edx
lea esi, [eax + 2]
xor ebp, ebp
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x1000a585
sub eax, esi
sar eax, 1
je 0x1000a62b
mov eax, edx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], bp
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x1000a5b0
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x1c]
call fcn.10006d20
mov dword [esp + 0x38], ebp
mov edi, dword [ebx]
mov eax, esi
push eax
lea ecx, [ebx + 0x18]
add edi, 0xa00
call fcn.10007160
mov ecx, edi
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bp
jne 0x1000a5e6
sub ecx, esi
sar ecx, 1
push ecx
push edi
mov esi, eax
call fcn.10006d20
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x1000a61a
mov ecx, dword [esp + 0x18]
push ecx
call fcn.100b61c1
add esp, 4
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], bp
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x2c
ret
Function at 0x10012580
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x100e66fb
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10144930]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100e38c7
mov dword [esp + 0x14], 0
push 4
call fcn.100b6196
mov edi, eax
add esp, 4
test edi, edi
je 0x100125e1
call fcn.100e3215
mov dword [edi], eax
call fcn.100e3049
mov ecx, eax
call fcn.10014e10
jmp 0x100125e3
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x10013fd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100ead18
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x10144930]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 0
lea ecx, [esp + 0x14]
call fcn.100e3765
mov dword [esp + 0x28], 0
mov edi, dword [0x10149fc4]
mov esi, 0x1015301c
mov dword [esp + 0xc], edi
call fcn.10014e80
mov esi, eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
cmp esi, dword [eax + 0xc]
jae 0x1001404b
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + esi*4]
test ecx, ecx
jne 0x1001404f
cmp byte [eax + 0x14], 0
je 0x1001404f
call fcn.100e3049
cmp esi, dword [eax + 0xc]
jae 0x10014055
mov edx, dword [eax + 8]
mov esi, dword [edx + esi*4]
jmp 0x10014051
xor ecx, ecx
jmp 0x10014033
mov esi, ecx
test esi, esi
jne 0x100140a2
test edi, edi
je 0x1001405d
mov esi, edi
jmp 0x100140a2
lea edi, [esp + 0xc]
call fcn.100144c0
cmp eax, 0xffffffff
jne 0x10014088
push str.bad_cast
lea ecx, [esp + 0x18]
call fcn.100c5b59
push 0x1012adf0
lea eax, [esp + 0x18]
push eax
call fcn.100c80ad
mov esi, dword [esp + 0xc]
mov ecx, esi
mov dword [0x10149fc4], esi
call fcn.10014e10
push esi
call fcn.100e3117
add esp, 4
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.100e3786
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret

Function at 0x10014f10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100ead18
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x10144930]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 0
lea ecx, [esp + 0x14]
call fcn.100e3765
mov dword [esp + 0x28], 0
mov edi, dword [0x10149fc0]
mov esi, 0x10149d28
mov dword [esp + 0xc], edi
call fcn.10014e80
mov esi, eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
cmp esi, dword [eax + 0xc]
jae 0x10014f8b
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + esi*4]
test ecx, ecx
jne 0x10014f8f
cmp byte [eax + 0x14], 0
je 0x10014f8f
call fcn.100e3049
cmp esi, dword [eax + 0xc]
jae 0x10014f95
mov edx, dword [eax + 8]
mov esi, dword [edx + esi*4]
jmp 0x10014f91
xor ecx, ecx
jmp 0x10014f73
mov esi, ecx
test esi, esi
jne 0x10014fe2
test edi, edi
je 0x10014f9d
mov esi, edi
jmp 0x10014fe2
lea edi, [esp + 0xc]
call fcn.10015010
cmp eax, 0xffffffff
jne 0x10014fc8
push str.bad_cast
lea ecx, [esp + 0x18]
call fcn.100c5b59
push 0x1012adf0
lea eax, [esp + 0x18]
push eax
call fcn.100c80ad
mov esi, dword [esp + 0xc]
mov ecx, esi
mov dword [0x10149fc0], esi
call fcn.10014e10
push esi
call fcn.100e3117
add esp, 4
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.100e3786
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
Function at 0x10017490
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e6570
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x10144930]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x10017649
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x100174e7
sub eax, edx
sar eax, 1
je 0x10017649
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
push esi
xor bl, bl
mov cl, byte [ebp + 0xc]
call fcn.10017710
mov dword [ebp - 0x14], eax
cmp eax, esi
jne 0x10017638
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x10017630
push eax
call fcn.100b61c6
add esp, 4
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
jne 0x1001754c
mov dword [ebp - 0x24], 0x7a
push 0x1012ac78
lea edx, [ebp - 0x24]
push edx
call fcn.100c80ad
mov eax, dword [ebp - 0x18]
push eax
push 0
push esi
call fcn.100c7d20
add esp, 0xc
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x18]
push edx
push esi
mov bl, 1
mov cl, byte [ebp + 0xc]
call fcn.10017710
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x1001761f
cmp dword [ebp - 0x18], eax
je 0x10017617
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, 0xffffffff
jne 0x100175d9
push ebx
push str.Create_File_Fail__
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
push 0x1012ac78
lea eax, [ebp - 0x28]
push eax
call fcn.100c80ad
push 0
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10017604
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x100176ad
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x100176ad
mov eax, 0xd
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], eax
push 0x1012ac78
lea eax, [ebp - 0x30]
push eax
call fcn.100c80ad
mov eax, 0xd
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x34], eax
push 0x1012ac78
lea ecx, [ebp - 0x34]
push ecx
call fcn.100c80ad
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100176c4
push eax
call fcn.100b61c1
add esp, 4
cmp edi, 0xffffffff
je 0x100176d0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
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 0xc
Function at 0x10019420
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.100c8100
push 0xffffffffffffffff
push 0x100e9a20
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x10144930]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x14], 0xd
mov dword [ebp - 4], 0
push str.Load_Current_Status_from_Device___
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
test ebx, ebx
jne 0x1001948a
mov ebx, dword [esi]
push 0x800
push 0
lea eax, [ebp]
push eax
call fcn.100c7d20
add esp, 0xc
lea ecx, [ebp]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, 0x1010c308
lea edx, [ebp]
call fcn.10046140
push 0x800
push 0
lea edx, [ebp + 0x800]
push edx
call fcn.100c7d20
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp]
push eax
push str._sINIT__d__d.xml
lea edx, [ebp + 0x800]
call fcn.10005c50
add esp, 0x10
push 0x2710
push 0xf0
lea ecx, [ebp + 0x800]
push ecx
mov ecx, esi
call fcn.10017490
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x1001953a
push str.Get_Init_Data_from_Device_fail___
mov ecx, edi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov dword [ebp - 0x1c], edi
push 0x1012ac78
lea edx, [ebp - 0x1c]
push edx
call fcn.100c80ad
push str.InstallingWSPCurrent
lea eax, [ebp + 0x800]
push eax
push esi
mov edx, ebx
mov ecx, str.PRINTERSETTINGSINFO_INFORMATION
call fcn.1001ac60
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x10019581
push str.XML_Data_to_Regisry_fail___
mov ecx, esi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov dword [ebp - 0x18], esi
push 0x1012ac78
lea ecx, [ebp - 0x18]
push ecx
call fcn.100c80ad
mov dword [ebp - 0x14], 0
push str.Load_Current_Status_from_Device___Success
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp + 0x800]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100195b0
sub eax, edx
sar eax, 1
je 0x100195cc
lea ecx, [ebp + 0x800]
call fcn.10049df0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.100c59be
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
Function at 0x1001d350
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp method.CDialog.virtual_312
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x100be7c7
cmp dword [edi + 0x54], 0
jne 0x100be7c7
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.100bf0c6
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.100be76e
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8
Function at 0x1001e8e0
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x1804]
mov eax, 0x1804
call fcn.100c8100
push 0xffffffffffffffff
push 0x100eba10
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x10144930]
xor eax, ebp
mov dword [ebp + 0x1800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x180c]
mov dword [ebp - 0x18], eax
mov esi, edx
mov dword [ebp - 0x1c], ecx
mov edi, dword [ebp + 0x1810]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x1001eab0
cmp eax, ebx
je 0x1001eab0
mov eax, str.WSP_FOUND_MODEL_LIST
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001e954
sub eax, edx
sar eax, 1
je 0x1001eab0
test esi, esi
je 0x1001eab0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001e976
sub eax, edx
sar eax, 1
je 0x1001eab0
push 0x800
push 0
lea edx, [ebp + 0x800]
push edx
call fcn.100c7d20
push 0x800
push 0
lea eax, [ebp]
push eax
call fcn.100c7d20
push 0x800
push 0
lea ecx, [ebp + 0x1000]
push ecx
call fcn.100c7d20
push esi
push str.WSP_FOUND_MODEL_LIST
push str.STATIC_CONTROLS__s_IMAGE_LIST__s
lea edx, [ebp + 0x800]
call fcn.10005c50
add esp, 0x30
push 0x400
lea edx, [ebp + 0x800]
push edx
push edi
lea edx, [ebp]
mov ecx, str.name
call fcn.1004e2f0
test eax, eax
jne 0x1001ea87
push eax
push 0x400
lea eax, [ebp + 0x1000]
push eax
lea ecx, [ebp]
push ecx
mov ecx, edi
call fcn.10047910
test eax, eax
je 0x1001ea30
lea edx, [ebp]
push edx
push 0x400
lea eax, [ebp + 0x1000]
push eax
call fcn.100c6466
add esp, 0xc
lea ecx, [ebp + 0x1000]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001ea51
lea ecx, [ebp + 0x1000]
mov edx, dword [ebp - 0x18]
call fcn.10051a40
jmp 0x1001ea6b
call fcn.100bf0c6
mov eax, dword [eax + 8]
lea edx, [ebp + 0x1000]
push edx
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.10051be0
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x1001eaa7
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x1001eaa7
call fcn.100bf0c6
push esi
mov edx, dword [ebp - 0x18]
push edx
jmp 0x1001ea98
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x1001eaa7
call fcn.100bf0c6
push esi
mov ecx, dword [ebp - 0x18]
push ecx
mov eax, dword [eax + 8]
mov ecx, eax
call fcn.10051be0
mov ebx, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x1001ead9
mov eax, 0x57
jmp 0x1001eadb
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1800]
xor ecx, ebp
call fcn.100c59be
add ebp, 0x1804
mov esp, ebp
pop ebp
ret 8
Function at 0x10026cd0
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x100ee398
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x10144930]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push eax
push 0xfbc
push esi
call fcn.100508c0
mov dword [esp + 0x10], 0
lea ecx, [esi + 0x120fc]
push ecx
mov dword [esi], vtable.CWSPCompleteDlg.0
call fcn.1001d670
mov byte [esp + 0x10], 1
lea edx, [esi + 0x12150]
push edx
push 0x202
mov dword [esi + 0x120f8], 0
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov dword [esi + 0x122e0], eax
mov dword [esp + 0x10], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 8