joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000dda0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x10
mov eax, dword [0x10059bb0]
imul eax, dword [0x10059bb4]
push ebx
push ebp
push esi
inc eax
xor esi, esi
push eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
call dword [sym.imp.MSVCR90.dll_malloc]
mov ebx, eax
mov eax, dword [0x10059b7c]
add esp, 4
mov byte [eax], 0
xor ebp, ebp
cmp dword [0x10059bb0], esi
jle 0x1000def3
push edi
mov ecx, dword [0x10059bb4]
push ecx
push ebx
call fcn.1002f970
add esp, 8
test eax, eax
je 0x1000decb
cmp dword [0x10059ba8], 6
jne 0x1000de2a
mov edx, dword [0x10059b98]
push edx
push ebx
call fcn.1000d1c0
add esp, 8
test eax, eax
jne 0x1000de2a
mov byte [ebx], al
mov eax, dword [esp + 0x14]
inc eax
dec ebp
cmp eax, 0x14
mov dword [esp + 0x14], eax
jg 0x1000ded5
mov eax, dword [0x10059b84]
mov ecx, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000de51
test dl, dl
je 0x1000de4d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000de51
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000de31
xor eax, eax
jmp 0x1000de56
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000de5d
dec ebp
jmp 0x1000debc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000de62
sub eax, edx
add esi, eax
cmp esi, dword [0x10059b80]
mov dword [esp + 0x18], esi
jg 0x1000deea
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000de80
sub eax, edx
je 0x1000debc
mov eax, ebx
mov edx, ebx
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000de90
mov edi, dword [0x10059b7c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1000dea0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
inc ebp
cmp ebp, dword [0x10059bb0]
jl 0x1000dde0
jmp 0x1000def2
mov dword [esp + 0x10], 0xffffff9c
jmp 0x1000def2
push str.SAFETY_COUNT_exceeded_in_readStringRecords_n
mov dword [esp + 0x14], 0xffffff9c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1000def2
mov dword [esp + 0x10], 0xffffffa2
pop edi
mov dword [0x10059bb0], esi
test ebx, ebx
je 0x1000df07
push ebx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x1000f0d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
cmp dword [0x10059da4], 1
push ebx
push esi
push edi
jne 0x1000f0fc
mov eax, dword [0x10059ac0]
mov dword [0x10059da4], 0
mov dword [0x10059ac4], eax
mov ebx, dword [ebp + 8]
cmp ebx, 8
jl 0x1000f10d
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x70]
push ebx
push ecx
call fcn.100095f0
mov ecx, 0x17
mov esi, eax
lea edi, [esp + 0x18]
add esp, 8
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x10], 2
je 0x1000f104
mov esi, eax
mov ecx, 0x17
lea edi, [esp + 0x10]
mov eax, 1
rep movsd dword es:[edi], dword [esi]
mov dword [0x10059ac4], 0x10059bd8
cmp dword [esp + 0x10], eax
jne 0x1000f17a
cmp dword [esp + 0x40], eax
jne 0x1000f160
cmp dword [esp + 0x18], 0x65
jb 0x1000f17a
jmp 0x1000f167
cmp dword [esp + 0x18], 0x65
jbe 0x1000f17a
push str._n_nptrMeterData_too_small_n_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esp + 0x1c], 0
mov esi, 0x10
cmp ebx, 0xa
jne 0x1000f18a
add dword [0x10059ac4], esi
mov edx, dword [0x10059ac4]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], edx
call fcn.1000eae0
add esp, 4
test eax, eax
je 0x1000f1cb
cmp eax, 0xffffffa2
je 0x1000f104
cmp eax, 0xffffff9d
je 0x1000f104
xor ecx, ecx
cmp eax, 0xffffffa7
setne cl
add ecx, 0xfffffffe
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 9
jne 0x1000f209
mov edx, dword [0x10059bd8]
mov eax, dword [0x10059bdc]
mov ecx, dword [0x10059be0]
mov dword [0x10059c40], edx
mov edx, dword [0x10059be4]
mov dword [0x10059c44], eax
mov eax, dword [esp + 0x48]
mov dword [0x10059c48], ecx
mov dword [0x10059c4c], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 0xa
jne 0x1000f214
sub dword [0x10059ac4], esi
mov eax, dword [esp + 0x48]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000f220
Capabilities:
Print debug messages

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
sub esp, 0x118
mov ecx, 0x46
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.1000dae0
add esp, 0x118
test eax, eax
jne 0x1000f252
mov eax, 0xffffff9c
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
lea ebx, [eax + 4]
sub esp, 0x1c
mov edi, esp
mov ecx, 7
mov esi, ebx
push 4
mov dword [esp + 0x30], ebx
rep movsd dword es:[edi], dword [esi]
call fcn.1002f730
add esp, 0x20
cmp dword [ebx], 0
je 0x1000f2c4
mov edi, dword [esp + 0x1c]
xor esi, esi
test edi, edi
jle 0x1000f2c4
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [esp + 0x10]
lea ebx, [ebx]
call fcn.1002f490
test eax, eax
je 0x1000f2b7
mov eax, dword [esp + 0x18]
push eax
call fcn.1000ee00
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1000f2c8
push 0x1e
call ebp
inc esi
cmp esi, edi
jl 0x1000f290
jmp 0x1000f2c8
push str.ID_port_invalid_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1000f2c8
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x10]
sub esp, 0x1c
mov edi, esp
mov ecx, 7
push 3
rep movsd dword es:[edi], dword [esi]
call fcn.1002f730
add esp, 0x20
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x10012700
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10040608
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x10059794]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esp + 0x30], 0xffffffff
jne 0x10012769
cmp dword [esp + 0x34], 0xffffffff
jne 0x10012769
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call sub.mfc90.dll_Ordinal_1536
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], eax
add eax, 5
add ecx, 5
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 8], vtable.CMenu.0
mov dword [esp + 0xc], 0
push 0xa4
push 4
push 0xa4
mov dword [esp + 0x34], 0
call sub.mfc90.dll_Ordinal_1108
push eax
call dword [sym.imp.USER32.dll_LoadMenuA]
push eax
lea ecx, [esp + 0xc]
call sub.mfc90.dll_Ordinal_1361
mov eax, dword [esp + 0xc]
push 0
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call sub.mfc90.dll_Ordinal_2591
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push 0
push esi
push ecx
push edx
push 2
mov ecx, eax
call sub.mfc90.dll_Ordinal_6646
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 8], vtable.CMenu.0
call sub.mfc90.dll_Ordinal_2130
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 8

Function at 0x10012f00
Capabilities:
Hide graphical window

Disassembly:
push esi
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0xe8]
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
test eax, eax
je 0x10012f96
lea ecx, [esi + 0x74]
call sub.mfc90.dll_Ordinal_6584
push 0
push 0x486
mov ecx, esi
call sub.mfc90.dll_Ordinal_2899
mov ecx, eax
call sub.mfc90.dll_Ordinal_6584
push 5
push 0x480
mov ecx, esi
call sub.mfc90.dll_Ordinal_2899
mov ecx, eax
call sub.mfc90.dll_Ordinal_6584
mov ecx, dword [esi + 0x72990]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
lea ecx, [esi + 0x729bc]
call sub.mfc90.dll_Ordinal_6584
push 5
lea ecx, [esi + 0x218]
call sub.mfc90.dll_Ordinal_6584
push 5
lea ecx, [esi + 0x3bc]
call sub.mfc90.dll_Ordinal_6584
push 5
lea ecx, [esi + 0x410]
call sub.mfc90.dll_Ordinal_6584
pop esi
ret
push 0x480
mov ecx, esi
call sub.mfc90.dll_Ordinal_2899
mov ecx, eax
call sub.mfc90.dll_Ordinal_6584
mov edx, dword [esi + 0x72990]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea ecx, [esi + 0x729bc]
call sub.mfc90.dll_Ordinal_6584
push 0
lea ecx, [esi + 0x218]
call sub.mfc90.dll_Ordinal_6584
push 0
lea ecx, [esi + 0x3bc]
call sub.mfc90.dll_Ordinal_6584
push 0
lea ecx, [esi + 0x410]
call sub.mfc90.dll_Ordinal_6584
push 5
lea ecx, [esi + 0x74]
call sub.mfc90.dll_Ordinal_6584
push 5
push 0x486
mov ecx, esi
call sub.mfc90.dll_Ordinal_2899
mov ecx, eax
call sub.mfc90.dll_Ordinal_6584
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esi + 0x20]
push 0x105
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_RedrawWindow]
pop esi
ret
Function at 0x10013890
Capabilities:
Check for unmoving mouse cursor

Disassembly:
sub esp, 8
mov eax, 1
push esi
mov esi, ecx
test byte [0x10059db4], al
jne 0x100138a9
or dword [0x10059db4], eax
cmp dword [esp + 0x10], 0x111
jne 0x1001399c
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetCursorPos]
push edi
mov edi, dword [esp + 0x1c]
shr edi, 0x10
mov eax, 0xf80
cmp di, ax
jne 0x100138e8
lea ecx, [esp + 0xc]
push ecx
call ebp
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
push eax
mov ecx, esi
call fcn.10012700
mov ecx, 0xf72
cmp di, cx
jne 0x1001390d
push 0x10059dac
call ebp
mov edx, dword [0x10059db0]
mov eax, dword [0x10059dac]
push edx
push eax
mov ecx, esi
call fcn.10013060
mov ecx, 0xf83
cmp di, cx
jne 0x10013944
cmp dword [esi + 0x73708], 0
je 0x10013944
mov edx, dword [esi + 0x7370c]
mov eax, dword [edx + 0x144]
push 0
lea ecx, [esi + 0x7370c]
push 0
push 0
call eax
mov dword [esi + 0x73708], 0
mov ecx, 0xf81
cmp di, cx
jne 0x1001399a
cmp dword [esi + 0x73708], 0
je 0x1001399a
lea edx, [esp + 0xc]
push edx
call ebp
mov eax, dword [esp + 0xc]
cmp eax, dword [0x10059dac]
jne 0x10013976
mov ecx, dword [esp + 0x10]
cmp ecx, dword [0x10059db0]
je 0x1001399a
mov edx, dword [esi + 0x7370c]
mov eax, dword [edx + 0x144]
push 0
lea ecx, [esi + 0x7370c]
push 0
push 0
call eax
mov dword [esi + 0x73708], 0
pop edi
pop ebp
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
mov ecx, esi
call sub.mfc90.dll_Ordinal_6780
pop esi
add esp, 8
ret 0xc
Function at 0x1002f610
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x108
mov eax, dword [0x10059794]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push edi
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x1005942c], 3
mov edi, eax
je 0x1002f6ca
mov ecx, dword [0x10059404]
push 0x1005a0f4
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x1002f70b
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.____________________________________________________n
call esi
push edi
mov edi, dword [sym.imp.MSVCR90.dll_sprintf]
lea ecx, [esp + 0x10]
push str.GetLastError_reports_error_number:__d_n
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0xc]
push edx
call esi
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0x10]
push str.ClearCommError_flags___x_n
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0xc]
push edx
call esi
push str.____________________________________________________n
call esi
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1003dc2c
add esp, 0x108
ret
cmp edi, 0x48f
jne 0x1002f70b
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.____________________________________________________n
mov dword [0x10059438], 0xe
call esi
push edi
lea edx, [esp + 0x10]
push str.GetLastError_reports_DEVICE_GONE:__d_n
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0xc]
push eax
call esi
push str.____________________________________________________n
call esi
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.1003dc2c
add esp, 0x108
ret

Function at 0x1002f9d0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x10059404]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x1002f9eb
push 0xa
push eax
call dword [sym.imp.KERNEL32.dll_PurgeComm]
xor eax, eax
pop esi
ret
mov edx, dword [esp + 8]
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1002fa16
mov dword [0x10059438], 0x11
call fcn.1002f610
xor eax, eax
pop esi
ret
mov eax, dword [esp + 0xc]
mov dword [0x10059438], 4
cmp eax, esi
jae 0x1002fa42
mov dword [0x10059438], 8
test eax, eax
jne 0x1002fa40
mov dword [0x10059438], 0xb
xor eax, eax
pop esi
ret
Function at 0x1002fad0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
push esi
xor esi, esi
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [esp + 0x28]
mov ebx, eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [0x10059404]
push edx
push eax
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1002fb77
mov dword [esp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1002fb77
mov ecx, dword [0x10059404]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push esi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push ecx
call edi
test eax, eax
jne 0x1002fb76
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
inc esi
cmp esi, 0xa
jg 0x1002fb73
push 0xe
call ebp
mov ecx, dword [0x10059404]
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push ecx
call edi
test eax, eax
je 0x1002fb50
xor esi, esi
pop ebp
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 8]
cmp eax, esi
pop esi
pop ebx
ja 0x1002fbb8
mov dword [0x10059438], 0x11
call fcn.1002f610
mov edx, dword [0x10059404]
push edx
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov eax, dword [0x10059404]
push 0xa
push eax
call dword [sym.imp.KERNEL32.dll_PurgeComm]
xor eax, eax
add esp, 0x18
ret
cmp eax, dword [esp + 0x20]
jae 0x1002fbce
mov dword [0x10059438], 0xb
xor eax, eax
add esp, 0x18
ret
mov dword [0x10059438], 4
mov eax, 1
add esp, 0x18
ret

Function at 0x1002fbf0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [0x10059794]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
push esi
push 0x200
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x14], 0
call fcn.1002f4c0
mov esi, dword [esp + 0x14]
add esp, 0x10
test esi, esi
jle 0x1002fcab
mov edx, dword [0x10059404]
push 0
lea eax, [esp + 0xc]
push eax
push esi
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1002fc5e
mov dword [0x10059438], 0x12
jmp 0x1002fcb5
cmp dword [esp + 8], esi
jae 0x1002fc86
mov dword [0x10059438], 0xb
xor eax, eax
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.1003dc2c
add esp, 0x20c
ret
mov dword [0x10059438], 4
mov eax, 1
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.1003dc2c
add esp, 0x20c
ret
mov dword [0x10059438], 8
call fcn.1002f610
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.1003dc2c
add esp, 0x20c
ret
Function at 0x1002fda0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
push ebp
push esi
xor esi, esi
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [esp + 0x28]
mov ebp, eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [0x10059404]
push edx
push eax
push ecx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1002fe45
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1002fe45
mov ecx, dword [0x10059404]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push esi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x1c], esi
call edi
test eax, eax
jne 0x1002fe44
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
inc esi
cmp esi, 0xa
jg 0x1002fe43
push 0xe
call ebx
mov ecx, dword [0x10059404]
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push ecx
call edi
test eax, eax
je 0x1002fe20
pop ebx
pop edi
push ebp
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [esp + 8], 0
pop esi
pop ebp
ja 0x1002fe77
mov dword [0x10059438], 0x12
call fcn.1002f610
mov edx, dword [0x10059404]
push edx
call dword [sym.imp.KERNEL32.dll_CancelIo]
xor eax, eax
add esp, 0x18
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x20]
cmp dword [esp], eax
jae 0x1002fe96
mov dword [0x10059438], 0xb
xor eax, eax
add esp, 0x18
ret
mov dword [0x10059438], 4
mov eax, 1
add esp, 0x18
ret

Function at 0x100304b0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x10059794]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, dword [esp + 0x220]
push ebp
mov ebp, dword [esp + 0x22c]
push esi
mov esi, dword [esp + 0x22c]
push edi
mov edi, dword [esp + 0x228]
push edi
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x204
jbe 0x10030501
xor eax, eax
jmp 0x10030592
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test ebx, ebx
je 0x1003052b
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x10049c98
lea ecx, [esp + 0x20]
push ecx
call edi
push ebx
lea edx, [esp + 0x20]
push edx
call edi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0xf003f
push 0
push 0x10047bfd
push 0
lea edx, [esp + 0x38]
push edx
push Ordinal_4
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1003058e
test esi, esi
je 0x1003057b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
mov eax, dword [esp + 0x18]
push esi
push 1
push 0
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10030583
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003dc2c
add esp, 0x214
ret
Function at 0x100305b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100453c6
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x10059794]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0
call dword [sym.imp.mfc90.dll_Ordinal_310]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_316]
push 0
mov bl, 2
push 0x2e
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], bl
call dword [sym.imp.mfc90.dll_Ordinal_2480]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1003064d
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret
push esi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_4392]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call dword [sym.imp.mfc90.dll_Ordinal_601]
push 0x1004cb78
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_945]
inc esi
push esi
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_4506]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 4
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_817]
push 0
push 0x2e
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_2480]
cmp eax, 0xffffffff
je 0x1003061b
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_4392]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 5
call dword [sym.imp.mfc90.dll_Ordinal_941]
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x100309a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x10045448
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x10059794]
xor eax, esp
mov dword [esp + 0x21c], eax
push esi
push edi
mov eax, dword [0x10059794]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x23c]
mov edi, dword [esp + 0x240]
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_316]
lea eax, [esp + 0xc]
push eax
push edi
mov dword [esp + 0x23c], 0
call fcn.100305b0
add esp, 8
test eax, eax
je 0x10030b9c
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov esi, eax
test esi, esi
jge 0x10030a35
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, esi
jmp 0x10030bab
mov edx, dword [esp + 0x18]
push 0x101
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.100302f0
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push str.CLSID_
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_310]
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x238], 1
call dword [sym.imp.mfc90.dll_Ordinal_945]
push 0
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
push 0x1004cba4
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call fcn.100304b0
add esp, 0x10
lea ecx, [esp + 0x10]
test eax, eax
je 0x10030b96
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
mov dword [esp + 0x2c], 0x100
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
push Ordinal_4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10030b92
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x12c]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10030b92
cmp dword [esp + 0x1c], 1
jne 0x10030b92
push esi
lea eax, [esp + 0x12c]
push eax
push esi
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call fcn.100304b0
add esp, 0x10
test eax, eax
je 0x10030b92
push esi
lea ecx, [esp + 0x28]
push ecx
push 0x1004cb9c
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call fcn.100304b0
add esp, 0x10
test eax, eax
je 0x10030b92
push esi
push edi
push 0x1004cb94
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call fcn.100304b0
add esp, 0x10
test eax, eax
je 0x10030b92
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
xor eax, eax
jmp 0x10030bab
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, 0x8000ffff
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.1003dc2c
add esp, 0x22c
ret