joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009585
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
xor ebx, ebx
and byte [ebp - 0x108], bl
push 0x3e
xor eax, eax
cmp dword [ebp + 8], ebx
pop ecx
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
stosb byte es:[edi], al
jne 0x10095bb
mov dword [0x101c058], ebx
cmp dword [ebp + 8], 4
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, 0x8000000
jne 0x10095f8
mov dword [0x101c058], 1
mov dword [0x101ece8], ebx
mov dword [0x101ecec], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x101ecf0], eax
mov dword [0x101ecf4], ebx
jmp 0x100974b
cmp dword [0x101c058], ebx
je 0x100974b
cmp dword [ebp + 8], ebx
jne 0x100960f
mov dword [0x101c058], ebx
cmp dword [0x101ecec], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x100963f
cmp dword [0x101ece8], 0
jne 0x100963f
mov dword [ebp - 0xc], 1
call ebx
mov ecx, dword [0x101ecf0]
mov dword [0x101ecf4], eax
sub eax, ecx
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0x12
jne 0x10096a9
cmp dword [0x101f9ac], 0
je 0x1009672
lea eax, [ebp - 0x108]
push 0x1001d10
push eax
call esi
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
push 6
push edi
call fcn.0100e994
jmp 0x100972d
cmp dword [0x101ece8], 0
je 0x100969a
lea eax, [ebp - 0x108]
push 0x1001cd0
push eax
call esi
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
push 6
push edi
call fcn.0100e994
mov dword [0x101ece8], 1
jmp 0x100972d
cmp dword [ebp + 8], 7
jne 0x100972d
cmp dword [0x101ecec], 0
jne 0x1009704
cmp dword [0x101f9b0], 0
je 0x1009723
cmp dword [0x101ece8], 1
jne 0x10096fd
call ebx
mov ecx, dword [0x101ecf4]
sub eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x3e8
push dword [ebp - 4]
lea eax, [ebp - 0x108]
ja 0x10096f0
push 0x1001c90
jmp 0x10096f5
push 0x1001c40
push eax
call esi
add esp, 0xc
jmp 0x1009714
push 0x1001c04
jmp 0x1009709
push 0x1001bc0
lea eax, [ebp - 0x108]
push eax
call esi
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
push 6
push edi
call fcn.0100e994
mov dword [0x101ecec], 1
cmp dword [ebp - 0xc], 1
jne 0x100974b
mov eax, dword [0x101ecd4]
test eax, eax
je 0x1009743
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [ebp - 8]
call fcn.01008b31
push dword [ebp - 4]
lea eax, [ebp - 0x108]
push dword [ebp - 8]
push dword [0x101ecec]
push dword [0x101ece8]
push dword [ebp + 8]
push 0x1001b60
push eax
call esi
add esp, 0x1c
lea eax, [ebp - 0x108]
push eax
push 6
push edi
call fcn.0100e994
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1009787
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
xor ebx, ebx
and byte [ebp - 0x108], bl
push 0x3e
xor eax, eax
cmp dword [ebp + 8], ebx
pop ecx
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
stosb byte es:[edi], al
jne 0x10097bd
mov dword [0x101c05c], ebx
cmp dword [ebp + 8], 4
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, 0x8000000
jne 0x10097fa
mov dword [0x101c05c], 1
mov dword [0x101ecf8], ebx
mov dword [0x101ecfc], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x101ed00], eax
mov dword [0x101ed04], ebx
jmp 0x100994d
cmp dword [0x101c05c], ebx
je 0x100994d
cmp dword [ebp + 8], ebx
jne 0x1009811
mov dword [0x101c05c], ebx
cmp dword [0x101ecfc], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x1009841
cmp dword [0x101ecf8], 0
jne 0x1009841
mov dword [ebp - 0xc], 1
call ebx
mov ecx, dword [0x101ed00]
mov dword [0x101ed04], eax
sub eax, ecx
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0x12
jne 0x10098ab
xor eax, eax
cmp dword [0x101f9ac], eax
je 0x1009866
lea eax, [ebp - 0x108]
push 0x1001f18
push eax
call esi
pop ecx
pop ecx
jmp 0x1009920
cmp dword [0x101ecf8], eax
jne 0x100987d
cmp dword [0x101ecfc], eax
je 0x100989c
push 0x1001ed0
jmp 0x1009882
push 0x1001e88
lea eax, [ebp - 0x108]
push eax
call esi
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
push 6
push edi
call fcn.0100e994
mov dword [0x101ecf8], 1
jmp 0x100992f
cmp dword [ebp + 8], 7
jne 0x1009920
cmp dword [0x101ecfc], 0
jne 0x1009906
cmp dword [0x101f9b0], 0
je 0x1009916
cmp dword [0x101ecf8], 1
jne 0x10098ff
call ebx
mov ecx, dword [0x101ed04]
sub eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x3e8
push dword [ebp - 4]
lea eax, [ebp - 0x108]
ja 0x10098f2
push 0x1001e28
jmp 0x10098f7
push 0x1001dd8
push eax
call esi
add esp, 0xc
jmp 0x1009916
push 0x1001d90
jmp 0x100990b
push 0x1001d48
lea eax, [ebp - 0x108]
push eax
call esi
pop ecx
pop ecx
mov dword [0x101ecfc], 1
lea eax, [ebp - 0x108]
push eax
push 6
push edi
call fcn.0100e994
cmp dword [ebp - 0xc], 1
jne 0x100994d
mov eax, dword [0x101ecd4]
test eax, eax
je 0x1009945
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [ebp - 8]
call fcn.01008bd0
push dword [ebp - 4]
lea eax, [ebp - 0x108]
push dword [ebp - 8]
push dword [0x101ecfc]
push dword [0x101ecf8]
push dword [ebp + 8]
push 0x1001b60
push eax
call esi
add esp, 0x1c
lea eax, [ebp - 0x108]
push eax
push 6
push edi
call fcn.0100e994
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100b33d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xa
mov eax, 0x1f4
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
push eax
push dword [0x101c060]
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], 0x64
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x100b2c2
push esi
push esi
call edi
mov dword [0x101ed10], eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push 0x100b1e2
push esi
push esi
call edi
push 0xfa0
push eax
mov dword [0x101ed0c], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100b3d5
push 0x100378c
push 6
push 0x4000000
call fcn.0100e994
push dword [0x101ed10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [0x101ed0c]
call esi
push dword [0x101ed18]
call esi
push dword [0x101ed14]
call esi
pop edi
pop esi
leave
ret 4
Function at 0x100b401
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
push ebx
push esi
push edi
push 0x3f
pop ecx
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x180], bl
lea edi, [ebp - 0x17f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 6
xor eax, eax
pop ecx
mov dword [ebp - 0x30], ebx
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
mov byte [ebp - 4], bl
lea edi, [ebp - 3]
stosw word es:[edi], ax
mov dword [ebp - 0x14], 0x4d4f43
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xa
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call fcn.01013ea0
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x80]
push 0x1003828
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x80]
push eax
push 1
mov esi, 0x8000000
push esi
call fcn.0100e994
push ebx
push 0x40000000
push 3
push ebx
push ebx
push 0xc0000000
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x101c060], eax
je 0x100b5f6
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCommState]
lea eax, [ebp - 0x30]
push eax
push dword [0x101c060]
mov dword [ebp - 0x2c], 0x4b00
mov byte [ebp - 0x1e], 8
mov byte [ebp - 0x1d], bl
mov byte [ebp - 0x1c], bl
call dword [sym.imp.KERNEL32.dll_SetCommState]
lea eax, [ebp - 0x180]
push eax
call fcn.0100b33d
push 0x1003820
push 6
push esi
call fcn.0100e994
lea eax, [ebp - 0x180]
push eax
push 6
push esi
call fcn.0100e994
push 0x100372c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x180]
push 0x100372c
push eax
call fcn.01013e60
add esp, 0xc
test eax, eax
je 0x100b5b7
push 0x100381c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x180]
push 0x100381c
push eax
call fcn.01013e60
add esp, 0xc
test eax, eax
je 0x100b5b7
push 0x1003814
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x180]
push 0x1003814
push eax
call fcn.01013e60
add esp, 0xc
test eax, eax
je 0x100b5b7
lea eax, [ebp - 0x180]
push eax
push 1
push esi
call fcn.0100e994
push ebx
lea eax, [ebp - 0x180]
push 0x1003808
push eax
mov dword [ebp - 8], ebx
call edi
add esp, 0xc
lea eax, [ebp - 0x180]
push eax
push 1
push esi
call fcn.0100e994
jmp 0x100b5e5
push 0x10037cc
push 1
push esi
call fcn.0100e994
push 1
lea eax, [ebp - 0x80]
push 0x10037b8
push eax
mov dword [ebp - 8], 1
call edi
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x101c060]
cmp eax, 0xffffffff
je 0x100b5f6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
lea eax, [ebp - 0x80]
push 0x10037a8
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100b61b
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
and byte [ebp - 0x160], 0
push ebx
push esi
push edi
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x15f]
rep stosd dword es:[edi], eax
xor esi, esi
stosw word es:[edi], ax
xor ebx, ebx
inc ebx
cmp dword [0x101c064], esi
stosb byte es:[edi], al
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
je 0x100b6e5
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [0x101c064], esi
call fcn.010127dc
cmp eax, esi
mov dword [0x101ed1c], eax
je 0x100b6ed
mov esi, dword [0x101fee4]
not esi
mov dword [ebp - 8], ebx
test ebx, esi
je 0x100b69b
push dword [ebp - 8]
call fcn.0100b401
test eax, eax
je 0x100b69b
or dword [0x101fedc], ebx
inc dword [ebp - 8]
shl ebx, 1
cmp dword [ebp - 8], 0xa
jle 0x100b685
mov ebx, dword [0x101fedc]
test ebx, ebx
je 0x100b71d
push ebx
lea eax, [ebp - 0x60]
push 0x1003860
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor esi, esi
inc esi
test bl, 1
je 0x100b6db
push esi
call fcn.0100b401
test eax, eax
jne 0x100b6f3
inc esi
shr ebx, 1
cmp esi, 0x20
jle 0x100b6cc
jmp 0x100b721
cmp dword [0x101ed1c], esi
jne 0x100b6a6
or dword [ebp - 4], 0xffffffff
jmp 0x100b721
push esi
lea eax, [ebp - 0x160]
push 0x1003848
push eax
mov dword [ebp - 4], esi
call edi
add esp, 0xc
lea eax, [ebp - 0x160]
push eax
push 6
push 0x800000
call fcn.0100e994
jmp 0x100b721
and dword [ebp - 4], 0
push dword [ebp - 4]
lea eax, [ebp - 0x60]
push 0x1003838
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100b744
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
xor eax, eax
push esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.01012bd0
mov ebx, dword [0x101fee4]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push ebx
lea eax, [ebp - 0x60]
push 0x1003860
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
call edi
test ebx, ebx
jne 0x100b796
or dword [ebp - 8], 0xffffffff
jmp 0x100b7c1
mov dword [ebp - 4], 1
test bl, 1
je 0x100b7ae
push dword [ebp - 4]
call fcn.0100b401
test eax, eax
jne 0x100b7bb
inc dword [ebp - 4]
shr ebx, 1
cmp dword [ebp - 4], 0x20
jle 0x100b79d
jmp 0x100b7c1
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push dword [ebp - 8]
lea eax, [ebp - 0x60]
push 0x1003838
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
call edi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100b817
Capabilities:
Accept command line arguments
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 0xf003f
xor esi, esi
push esi
push 0x100389c
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100b871
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call esi
push eax
xor esi, esi
inc esi
push esi
push 0
push 0x1003890
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x100b876
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x1003870
push closesocket
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
cmp edi, esi
jne 0x100b8ce
push 4
lea eax, [ebp + 8]
push eax
push 3
push esi
push 0x10038cc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x100b8d6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0xf003f
push esi
push 0x1003870
push closesocket
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
cmp edi, esi
jne 0x100b949
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push esi
push 0x10038cc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 8], 3
jne 0x100b92f
cmp dword [ebp - 0xc], 4
je 0x100b940
push 0x10038d4
push 6
push 0x1000000
call fcn.0100e994
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x100b951
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x1003918
push closesocket
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100b9aa
push 4
lea eax, [ebp - 8]
push eax
push 3
push 0
push 0x100390c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x100b9ac
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x1003918
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100b9ea
push 0x100390c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x100b9ec
Capabilities:
Delete registry key
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 4]
push eax
mov ebx, 0xf003f
push ebx
push 0
push 0x1003870
mov edi, closesocket
push edi
call esi
test eax, eax
jne 0x100ba3f
push 0x1003904
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x10038cc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 0x1003948
push edi
call esi
test eax, eax
jne 0x100ba69
push 0x1003890
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 0x100389c
push edi
call esi
test eax, eax
pop edi
pop esi
pop ebx
jne 0x100ba8d
push 0x1003890
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0100b9ac
leave
ret
Function at 0x100ba9d
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
push 0x40
xor eax, eax
xor ebx, ebx
pop ecx
mov byte [ebp - 0x214], bl
lea edi, [ebp - 0x213]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
pop ecx
xor eax, eax
mov byte [ebp - 0x110], bl
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x214]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x1003a24
lea eax, [ebp - 0x214]
push eax
call esi
push 0x1003a18
lea eax, [ebp - 0x214]
push eax
call esi
push ebx
push 0x8000000
push 3
push ebx
push 1
push closesocket
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x100bb76
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push 0x10039f4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
push 6
push 0x2000000
call fcn.0100e994
jmp 0x100bc8f
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
mov esi, 0x2000000
jne 0x100bbc1
mov edi, 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push 0x10039d0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
push 6
push esi
call fcn.0100e994
lea eax, [edi + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x100bbe1
push 0xe
pop edi
push 0x10039b4
jmp 0x100bc7e
push ebx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100bc52
push 0x1003998
push 6
push 0x1000000
call fcn.0100e994
mov edi, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, ebx
je 0x100bc28
mov cl, byte [edi + eax - 1]
cmp cl, 0xa
je 0x100bc22
cmp cl, 0xd
jne 0x100bc28
dec eax
mov byte [edi + eax], bl
jne 0x100bc14
push edi
lea eax, [ebp - 0x110]
push 0x100397c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 6
push esi
call fcn.0100e994
mov edi, dword [ebp - 0x10]
jmp 0x100bc86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push 0x100395c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
push 6
push esi
call fcn.0100e994
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100bca4
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
xor ebx, ebx
mov byte [ebp - 0x110], bl
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
pop ecx
xor eax, eax
mov byte [ebp - 0x210], bl
lea edi, [ebp - 0x20f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x110]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x1003a24
lea eax, [ebp - 0x110]
push eax
call esi
push 0x1003a88
lea eax, [ebp - 0x110]
push eax
call esi
push ebx
push 0x8000000
push 3
push ebx
push 1
push closesocket
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x100bd64
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
lea eax, [ebp - 0x110]
push eax
push 0x1003a68
push 6
call fcn.0100c07e
mov edi, dword [ebp - 0xc]
add esp, 0x10
jmp 0x100be51
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100bd95
mov esi, 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x110]
push eax
push 0x10039d0
push 6
call fcn.0100c07e
add esp, 0x10
lea eax, [esi + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
jne 0x100bdbd
push 0xe
pop ebx
push 0x1003a40
push 6
call fcn.0100c07e
pop ecx
pop ecx
jmp 0x100be48
push ebx
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100be29
push 0x1003998
push 6
call fcn.0100c07e
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, ebx
je 0x100bdfe
mov cl, byte [edi + eax - 1]
cmp cl, 0xa
je 0x100bdf8
cmp cl, 0xd
jne 0x100bdfe
dec eax
mov byte [edi + eax], bl
jne 0x100bdea
push edi
lea eax, [ebp - 0x210]
push 0x1003a28
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 6
push 0x8000000
call fcn.0100e994
jmp 0x100be48
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
lea eax, [ebp - 0x110]
push eax
push 0x100395c
push 6
call fcn.0100c07e
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x100bef0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
and byte [ebp - 0x100], 0
push edi
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
cmp eax, dword [0x101ef20]
pop edi
jb 0x100bf3e
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
leave
ret

Function at 0x100c07e
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push esi
push edi
mov esi, 0x1003ba8
lea edi, [ebp - 0x200]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x7d
xor eax, eax
pop ecx
lea edi, [ebp - 0x1f6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
cmp eax, dword [0x101c068]
ja 0x100c0f7
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x1003ba4
lea eax, [ebp - 0x200]
push eax
call esi
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x200]
push eax
call esi
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
leave
ret