joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1016838
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push edi
push 2
xor edi, edi
push edi
mov ebx, ecx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, edi
jl 0x1016939
push esi
push edi
push edi
push 1
push 0x64
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleUpdateRegistryFromResourceD]
mov esi, 0x20006
push esi
push 0x1002fc0
push 0x80000000
lea ecx, [ebp - 4]
mov dword [ebp - 4], edi
call fcn.0101492f
cmp eax, edi
je 0x101688c
mov edi, eax
jmp 0x101692e
push esi
push 0x1002f70
push dword [ebp - 4]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], edi
call fcn.0101492f
cmp eax, edi
je 0x10168a8
mov edi, eax
jmp 0x1016926
push edi
push dword [ebp + 8]
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleRegisterServer]
mov esi, 0x80000002
push esi
mov ecx, ebx
call fcn.01014e46
cmp eax, edi
jl 0x10168a4
lea eax, [ebp - 8]
push eax
push 0x1001df0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x10168df
mov edi, 0x80004005
jmp 0x1016926
lea eax, [ebp - 0x20c]
push 0x1002f20
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 0xc
shl eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0xc]
call fcn.01014918
lea ecx, [ebp - 4]
call fcn.01014918
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x101aa43
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x5c], edi
jne 0x101aa9c
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x60], eax
je 0x101aa8e
push edi
push edi
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x64], eax
je 0x101aa8e
lea eax, [esp + 0xc]
push eax
push edi
push esi
push 0x101a9d5
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, edi
mov dword [esi + 0x5c], eax
jne 0x101aa9c
mov ecx, esi
call fcn.01018063
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x5c]
jmp 0x101aa97

Function at 0x101b672
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x10034e8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101b6be
lea eax, [ebp - 8]
push eax
push 0x10289dc
push 0
push 0
push 0x10034d0
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x101b6c0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push 0x1003564
call fcn.01014e03
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x1003450
push 0x65
push 0x64
push dword [esp + 0x28]
mov ebp, 0x1027b60
push 0x1027800
mov ecx, ebp
mov ebx, eax
call fcn.01015522
push ebx
mov ecx, ebp
call fcn.0101583b
mov dword [esp + 0x1c], eax
call fcn.0101b672
mov esi, 0x100355c
lea edi, [esp + 0x10]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x10]
push eax
push ebx
movsw word es:[edi], word [esi]
call fcn.0101b598
mov esi, eax
test esi, esi
je 0x101b769
mov edi, dword [sym.imp.KERNEL32.dll_CompareStringW]
mov ebx, 0x409
push 0xffffffffffffffff
push 0x1003544
push 0xffffffffffffffff
push esi
push 1
push ebx
call edi
cmp eax, 2
je 0x101b78e
push 0xffffffffffffffff
push 0x1003530
push 0xffffffffffffffff
push esi
push 1
push ebx
call edi
cmp eax, 2
je 0x101b797
lea eax, [esp + 0x10]
push eax
push esi
call fcn.0101b598
mov esi, eax
test esi, esi
jne 0x101b730
push 0x56
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x101b77c
cmp dword [esp + 0x1c], 0
je 0x101b783
mov ecx, ebp
call fcn.01016e30
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x10
mov ecx, ebp
call fcn.010154df
jmp 0x101b785
push 0
push 1
mov ecx, ebp
call fcn.01016838
jmp 0x101b785
Function at 0x101b7bd
Capabilities:
Get common file path

Disassembly:
push 1
push 1
push 5
call fcn.0101b5df
test eax, eax
je 0x101b7d2
jmp dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push esi
push edi
push 0
push 0
call ebp
mov esi, eax
test esi, esi
jne 0x101b7ef
xor eax, eax
jmp 0x101b871
push dword [esp + 0x14]
mov ebx, dword [sym.imp.msvcrt.dll_wcslen]
call ebx
add eax, esi
lea eax, [eax + eax + 4]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x101b7e8
push dword [esp + 0x14]
call ebx
pop ecx
lea eax, [eax + esi + 2]
push eax
push edi
call ebp
test eax, eax
jne 0x101b825
push edi
jmp 0x101b857
lea esi, [edi + eax*2]
cmp word [esi - 2], 0x5c
je 0x101b83c
mov word [esi], 0x5c
lea esi, [edi + eax*2 + 2]
and word [esi], 0
push dword [esp + 0x14]
push dword [esp + 0x18]
call ebx
pop ecx
inc eax
push eax
push esi
call fcn.01015b5b
cmp eax, 0x8007007a
push edi
jne 0x101b860
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
xor eax, eax
jmp 0x101b870
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push edi
mov esi, eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, esi
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x101cbd4
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1003838
call fcn.0101d0d0
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x101cc0f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101cc0f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x101cc27
cmp eax, 0x20b
je 0x101cc14
mov dword [ebp - 0x1c], edi
jmp 0x101cc3b
cmp dword [ecx + 0x84], 0xe
jbe 0x101cc0f
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x101cc35
cmp dword [ecx + 0x74], 0xe
jbe 0x101cc0f
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1028a58], 0xffffffff
or dword [0x1028a5c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1028a50]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1028a4c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1028a54], eax
call fcn.0101b7a4
cmp dword [0x1027900], edi
jne 0x101cc98
push fcn.0101b7a4
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0101d0be
push 0x10013e8
push 0x10013e4
call sub.msvcrt.dll__initterm
mov eax, dword [0x1028a48]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1028a44]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x10013e0
push 0x10013b4
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x101ccfe
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x101cdb8
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x101cd4c
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x101cd1a
cmp ax, 0x22
jne 0x101cd07
cmp word [esi], 0x22
jne 0x101cd25
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x101cd33
cmp ax, 0x20
jbe 0x101cd20
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x101cd59
movzx eax, word [ebp - 0x48]
jmp 0x101cd5c
cmp word [esi], 0x20
jbe 0x101cd25
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x101cd4c
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], edi
jne 0x101cd7d
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x101cdb2
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0101d109
ret
Function at 0x101d71a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 1
xor edi, edi
push edi
push str.SystemCurrentControlSetControlTabletPCLinearityData
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x101d757
lea eax, [ebp - 4]
push eax
push 1
push edi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101d80f
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
je 0x101d806
mov ebx, dword [ebp + 0x10]
push ebx
push edi
push edi
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101d806
mov eax, dword [ebx]
cmp eax, 0x28
jb 0x101d806
cmp eax, 0xffff
ja 0x101d806
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
cmp eax, edi
je 0x101d7a4
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [esi], edi
push dword [ebx]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
cmp edx, edi
pop ecx
mov dword [esi], edx
jne 0x101d7c4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004005
jmp 0x101d811
mov ecx, dword [ebx]
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
push ebx
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push dword [esi]
xor edi, edi
push edi
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101d806
mov eax, dword [esi]
mov ecx, dword [eax]
cmp ecx, dword [ebx]
jne 0x101d7fd
cmp dword [eax + 4], 2
je 0x101d806
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [esi], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x101d818
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 1
xor ebp, ebp
push ebp
push str.Control_PanelTabletPCPenTiltDataPortrait
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101d8da
mov ebx, dword [esp + 0x18]
push ebx
push ebp
push ebp
push ebp
push 0x1003104
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101d8d0
mov eax, dword [ebx]
cmp eax, 0x28
jb 0x101d8d0
cmp eax, 0xffff
ja 0x101d8d0
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
cmp eax, ebp
je 0x101d87b
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [esi], ebp
push dword [ebx]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
cmp edi, ebp
pop ecx
mov dword [esi], edi
je 0x101d94a
mov ecx, dword [ebx]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
push ebx
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push dword [esi]
push ebp
push ebp
push 0x1003104
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101d8d0
mov eax, dword [esi]
mov ecx, dword [eax]
cmp ecx, dword [ebx]
jne 0x101d8c7
cmp dword [eax + 4], 2
je 0x101d8d0
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [esi], ebp
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
push 1
push ebp
push str.Control_PanelTabletPCPenTiltDataLandscape
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101d9a6
mov ebx, dword [esp + 0x20]
push ebx
push ebp
push ebp
push ebp
push 0x1003104
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101d99c
mov eax, dword [ebx]
cmp eax, 0x28
jb 0x101d99c
cmp eax, 0xffff
ja 0x101d99c
mov esi, dword [esp + 0x24]
mov eax, dword [esi]
cmp eax, ebp
je 0x101d93a
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [esi], ebp
push dword [ebx]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
cmp edi, ebp
pop ecx
mov dword [esi], edi
jne 0x101d95b
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004005
jmp 0x101d9a8
mov ecx, dword [ebx]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
push ebx
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push dword [esi]
push ebp
push ebp
push 0x1003104
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101d99c
mov eax, dword [esi]
mov ecx, dword [eax]
cmp ecx, dword [ebx]
jne 0x101d993
cmp dword [eax + 4], 2
je 0x101d99c
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [esi], ebp
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
Function at 0x1001542
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1001cd0
call fcn.010016d4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1003398
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10012fd
cmp eax, esi
jne 0x10012f0
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1001300
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10012d7
xor esi, esi
inc esi
mov eax, dword [0x1003394]
cmp eax, esi
jne 0x1001313
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001342
mov eax, dword [0x1003394]
test eax, eax
jne 0x100133c
mov dword [0x1003394], esi
push 0x10010f4
push 0x10010e8
call fcn.01001239
pop ecx
pop ecx
test eax, eax
je 0x1001342
jmp 0x1001466
mov dword [0x100303c], esi
mov eax, dword [0x1003394]
cmp eax, esi
jne 0x1001366
push 0x10010e4
push 0x10010dc
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1003394], 2
cmp dword [ebp - 0x20], ebx
jne 0x1001373
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100339c], ebx
je 0x1001394
push 0x100339c
call fcn.01001649
pop ecx
test eax, eax
je 0x1001394
push ebx
push 2
push ebx
call dword [0x100339c]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1001466
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x10013fe
cmp cx, bx
je 0x10013b9
cmp dword [ebp - 0x1c], ebx
jne 0x10013fe
movzx ecx, word [eax]
cmp cx, bx
je 0x10013ce
cmp cx, 0x20
ja 0x10013ce
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x10013b9
test byte [ebp - 0x40], 1
je 0x10013da
movzx ecx, word [ebp - 0x3c]
jmp 0x10013dd
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1003038], eax
cmp dword [0x100302c], ebx
jne 0x1001443
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x100140f
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x10013a3
cmp dword [0x100303c], ebx
jne 0x1001451
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1003038]
jmp 0x1001472
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01001719
ret
call fcn.01001821
jmp 0x100129a
Function at 0x401916
Capabilities:
Get system information on windows

Disassembly:
push 0x2c
mov eax, 0x42dcc0
call fcn.0042c6c5
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.004015b8
push eax
mov ecx, edi
call fcn.00401c55
xor ebx, ebx
lea esi, [edi + 0x18]
mov dword [ebp - 4], ebx
push 0x18
mov dword [ebp - 0x14], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.00412e0c
pop ecx
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov byte [ebp - 4], 1
call fcn.004015b8
push eax
lea ecx, [edi + 0x20]
call fcn.00401c55
mov byte [ebp - 4], 2
lea eax, [ebp - 0x38]
push eax
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x1c]
lea ecx, [edi + 0x20]
push str.uploadExeName
mov dword [edi + 8], eax
call fcn.00401b10
mov eax, edi
call fcn.0042c693
ret

Function at 0x401a53
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov eax, esi
xor edx, edx
push edi
div dword [ebx + 8]
mov eax, dword [ebp + 0xc]
mov edi, edx
add eax, edi
sub esi, edi
push eax
push esi
push 0
push 6
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
lea ecx, [ebx + 0x18]
lea eax, [ebp - 4]
add edi, esi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 4], edi
push eax
call fcn.00401f98
mov ecx, dword [eax]
mov eax, edi
pop edi
mov dword [ecx + 0x14], esi
pop esi
pop ebx
leave
ret 8

Function at 0x4025f7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40264d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40264d
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x40263f
cmp esi, ecx
jae 0x40264d
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x40262d
cmp esi, ecx
jae 0x40264d
cmp word [esi], 0
je 0x40264d
mov eax, esi
jmp 0x40264f
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x402e3e
Capabilities:
Read .ini file

Disassembly:
push 0x814
mov eax, 0x42de4b
call fcn.0042c6f8
mov ebx, edx
mov eax, ecx
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x81c], eax
mov edi, dword [ebp + 8]
xor ecx, ecx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x820], eax
lea eax, [ebp - 0x810]
push 0x800
push ecx
push eax
mov dword [ebp - 0x818], ecx
call fcn.00414d30
add esp, 0xc
lea eax, [ebp - 0x810]
push ebx
push 0x400
push eax
push 0x436670
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [ebp - 0x814]
lea eax, [ebp - 0x810]
push eax
mov ecx, esi
call fcn.00403e7d
and dword [ebp - 4], 0
mov ecx, esi
push 0x4367d8
push 0x4367dc
mov dword [ebp - 0x818], 1
call fcn.00403b95
mov eax, esi
call fcn.0042c6a7
ret
Function at 0x4030ba
Capabilities:
Create directory
Get file attributes

Disassembly:
push 8
mov eax, 0x42df6b
call fcn.0042c6c5
and dword [ebp - 4], 0
call fcn.004015b8
push eax
lea ecx, [ebp - 0x10]
call fcn.00401c55
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jle 0x4030f5
push 0x3a
push eax
call fcn.00414615
pop ecx
pop ecx
test eax, eax
jne 0x4030fa
or eax, 0xffffffff
jmp 0x4030ff
sub eax, dword [ebp + 8]
sar eax, 1
test eax, eax
lea edi, [eax + 2]
cmovs edi, eax
push edi
push 0x5c
lea ecx, [ebp + 8]
call fcn.00403b61
mov edi, eax
test edi, edi
jns 0x403126
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403de0
jmp 0x40314e
push edi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.00403a8a
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00403de0
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401592
mov esi, dword [ebp - 0x10]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40316b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40317e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x40317e
cmp edi, 0xffffffff
je 0x403180
inc edi
jmp 0x403107
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.00401592
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401592
mov eax, ebx
call fcn.0042c693
ret
Function at 0x403247
Capabilities:
Reference wmi statements

Disassembly:
push 0x24
mov eax, 0x42e010
call fcn.0042c6c5
mov edi, ecx
mov dword [ebp - 0x30], edi
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x24], 1
call fcn.004037bb
mov ebx, dword [ebp - 0x18]
test eax, eax
js 0x403421
test ebx, ebx
je 0x403421
push str.SELECT__FROM_Win32_VideoController
lea ecx, [ebp - 0x18]
call fcn.004027ae
mov esi, eax
push 0x436834
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 1
call fcn.004027ae
mov byte [ebp - 4], 2
mov ecx, dword [esi]
test ecx, ecx
je 0x4032c1
mov ecx, dword [ecx]
jmp 0x4032c3
xor ecx, ecx
mov eax, dword [eax]
test eax, eax
je 0x4032cd
mov eax, dword [eax]
jmp 0x4032cf
xor eax, eax
mov esi, dword [ebx]
lea edx, [ebp - 0x14]
push edx
push 0
push 0x30
push ecx
mov ecx, dword [esi + 0x50]
push eax
push ebx
call dword [0x4302b8]
call dword [esi + 0x50]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00402809
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00402809
test esi, esi
js 0x403421
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x403438
and dword [ebp - 0x10], 0
and dword [ebp - 0x1c], 0
mov esi, dword [ecx]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 1
push 0xbb8
push ecx
mov ecx, dword [esi + 0x10]
call dword [0x4302b8]
call dword [esi + 0x10]
test eax, eax
js 0x403421
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x403421
cmp dword [ebp - 0x1c], 0
je 0x403421
push 0x436838
lea ecx, [ebp - 0x20]
call fcn.00403914
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov dword [esp], str.DriverVersion
call fcn.00403914
pop ecx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4302b8]
call esi
and dword [ebp - 0x10], 0
lea edx, [ebp - 0x20]
push 0x436860
lea ecx, [ebp - 0x2c]
call fcn.004039c4
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.00403a35
pop ecx
pop ecx
mov byte [ebp - 4], 6
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
je 0x4033db
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00401ccd
add eax, 0x10
mov dword [esi], eax
add dword [edi + 4], 4
jmp 0x4033e4
push eax
push esi
mov ecx, edi
call fcn.004041ea
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00401592
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00401592
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401592
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00401592
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x403319
jmp 0x403424
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x403438
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4302b8]
call esi
test ebx, ebx
je 0x403452
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4302b8]
call esi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
call fcn.0042c693
ret