joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497d44
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe84
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x17c], edx
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x174], edx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
lea eax, [ebp - 0x170]
mov edx, dword [0x4080a4]
call fcn.004054a4
xor eax, eax
push ebp
push 0x497fcb
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x497f8a
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x4a7cfc]
mov edx, dword [eax]
call dword [edx + 8]
lea edx, [ebp - 8]
mov eax, dword [0x4a5858]
mov eax, dword [eax]
call fcn.004a0cfc
xor edx, edx
push ebp
push 0x497f79
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x174]
mov ecx, 0x497fe4
mov edx, dword [ebp - 8]
call fcn.00404dd8
mov eax, dword [ebp - 0x174]
lea ecx, [ebp - 0x170]
xor edx, edx
call fcn.004097f8
test eax, eax
jne 0x497f60
xor eax, eax
push ebp
push 0x497f43
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x178]
mov ecx, dword [ebp - 0x164]
mov edx, dword [ebp - 8]
call fcn.00404dd8
mov eax, dword [ebp - 0x178]
call fcn.0049be88
test al, al
je 0x497f39
lea eax, [ebp - 0x17c]
mov ecx, dword [ebp - 0x164]
mov edx, dword [ebp - 8]
call fcn.00404dd8
mov eax, dword [ebp - 0x17c]
call fcn.00404f8c
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
test ebx, ebx
je 0x497f39
push 0x497fec
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0xc], eax
push 0x497ffc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x14], eax
push 0x498008
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x10], eax
push 0x498014
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x18], eax
push 0x498024
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
cmp dword [ebp - 0xc], 0
je 0x497f33
cmp dword [ebp - 0x14], 0
je 0x497f33
cmp dword [ebp - 0x10], 0
je 0x497f33
cmp dword [ebp - 0x18], 0
je 0x497f33
test edi, edi
je 0x497f33
mov dl, 1
mov eax, dword [0x49bc64]
call fcn.00403cac
mov esi, eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], ebx
lea eax, [esi + 0x1c]
mov edx, dword [ebp - 0x164]
mov ecx, 0xff
call fcn.00404d68
mov edx, esi
mov eax, dword [0x4a7cfc]
call fcn.004157e8
cmp byte [ebp - 1], 0
je 0x497f39
call edi
test al, al
jne 0x497f39
mov eax, dword [0x4a5b78]
mov eax, dword [eax]
call fcn.00404f8c
push eax
mov eax, dword [0x4a5654]
mov eax, dword [eax]
call fcn.00404f8c
push eax
call dword [ebp - 0x10]
jmp 0x497f39
push ebx
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x497f4d
lea eax, [ebp - 0x170]
call fcn.00409848
test eax, eax
je 0x497dec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497f80
lea eax, [ebp - 0x170]
call fcn.0040986c
ret
Function at 0x4985b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4985b8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f7c
xor eax, eax
push ebp
push 0x498771
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x49874c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x413818]
call fcn.00403cac
mov ebx, eax
mov edx, dword [ebp - 4]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea ecx, [ebp - 8]
xor edx, edx
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 8]
call fcn.0040924c
sub eax, 1
jb 0x49862f
je 0x498674
dec eax
je 0x4986b9
dec eax
je 0x4986fb
jmp 0x49873b
push 1
push 0
lea ecx, [ebp - 0xc]
mov edx, 2
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0xc]
call fcn.00404f8c
push eax
lea ecx, [ebp - 0x10]
mov edx, 1
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x10]
call fcn.00404f8c
push eax
push 0x498780
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x49873b
push 0
push 0
lea ecx, [ebp - 0x14]
mov edx, 2
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x14]
call fcn.00404f8c
push eax
lea ecx, [ebp - 0x18]
mov edx, 1
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x18]
call fcn.00404f8c
push eax
push 0x498780
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x49873b
push 3
push 0
lea ecx, [ebp - 0x1c]
mov edx, 2
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.00404f8c
push eax
lea ecx, [ebp - 0x20]
mov edx, 1
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x20]
call fcn.00404f8c
push eax
push 0x498780
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x49873b
push 6
push 0
lea ecx, [ebp - 0x24]
mov edx, 2
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x24]
call fcn.00404f8c
push eax
lea ecx, [ebp - 0x28]
mov edx, 1
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x28]
call fcn.00404f8c
push eax
push 0x498780
push 0
call sub.shell32.dll_ShellExecuteA
mov eax, ebx
call fcn.00403cdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x498756
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498778
lea eax, [ebp - 0x28]
mov edx, 0xa
call fcn.00404af0
ret

Function at 0x49bd94
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x49bdde
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov cl, 1
mov edx, 0x49bdfc
mov eax, dword [ebp - 8]
call fcn.0049bcd8
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49bde8
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x49d244
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49d2dc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x100]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
mov eax, ebx
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00404d3c
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebx]
call fcn.00404d8c
mov edx, eax
mov eax, dword [ebx]
mov ecx, 1
call fcn.00404fec
mov eax, dword [ebp - 0x104]
mov edx, 0x49d2f0
call fcn.00404ed8
je 0x49d2c3
mov eax, ebx
mov edx, 0x49d2f0
call fcn.00404d94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d2e3
lea eax, [ebp - 0x104]
call fcn.00404acc
ret
Function at 0x49d6f4
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
push ebp
push 0x49d807
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov byte [ebp - 1], 0
push eax
push edx
mov eax, dword [0x4a6664]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x49d7fd
push ebx
mov eax, dword [0x4a6664]
push eax
call sub.kernel32.dll_LoadResource
mov esi, eax
test esi, esi
je 0x49d7fd
push ebx
mov eax, dword [0x4a6664]
push eax
call sub.kernel32.dll_SizeofResource
mov ebx, eax
dec edi
je 0x49d75b
dec edi
je 0x49d7d8
jmp 0x49d7fd
push 0
push 0x20
push 2
push 0
push 3
push 0xc0000000
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.00404f8c
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x49d7fd
xor eax, eax
push ebp
push 0x49d7d1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
call sub.kernel32.dll_LockResource
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x49d7b1
cmp ebx, dword [ebp - 8]
je 0x49d7b5
xor eax, eax
jmp 0x49d7b7
mov al, 1
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d7fd
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov eax, dword [ebp + 8]
mov edx, ebx
call fcn.00405118
mov eax, dword [ebp + 8]
call fcn.00404fe4
push eax
push esi
call sub.kernel32.dll_LockResource
mov ecx, ebx
pop edx
call fcn.00402b40
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49d811
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x49d820
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov byte [ebp - 1], dl
mov edi, eax
mov esi, 3
mov ebx, 0x4a54bc
mov al, byte [ebx]
cmp al, 7
ja 0x49d843
and eax, 0x7f
bt dword [ebp - 1], eax
jae 0x49d860
push 0
push 0
push 0
xor eax, eax
mov al, byte [ebx + 1]
push eax
call sub.user32.dll_MapVirtualKeyA
push eax
mov al, byte [ebx + 1]
push eax
call sub.user32.dll_keybd_event
add ebx, 2
dec esi
jne 0x49d836
xor esi, esi
push 0
push esi
push 0
movzx eax, di
push eax
call sub.user32.dll_MapVirtualKeyA
push eax
mov ebx, edi
push ebx
call sub.user32.dll_keybd_event
or esi, 2
push 0
push esi
push 0
movzx eax, di
push eax
call sub.user32.dll_MapVirtualKeyA
push eax
push ebx
call sub.user32.dll_keybd_event
mov esi, 0xfffffffd
mov edi, 0x4a54c0
mov al, byte [edi]
cmp al, 7
ja 0x49d8ae
and eax, 0x7f
bt dword [ebp - 1], eax
jae 0x49d8ca
push 0
push 2
push 0
mov bl, byte [edi + 1]
xor eax, eax
mov al, bl
push eax
call sub.user32.dll_MapVirtualKeyA
push eax
push ebx
call sub.user32.dll_keybd_event
sub edi, 2
inc esi
jne 0x49d8a1
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x49db40
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
jmp 0x49db59
mov eax, dword [0x4a5978]
mov eax, dword [eax]
call fcn.00457244
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp esi, eax
ja 0x49db4d
pop esi
pop ebx
ret

Function at 0x49fd4c
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_GetPriorityClass
mov ebx, eax
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_GetThreadPriority
mov esi, eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_SetPriorityClass
push 0xf
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SetThreadPriority
push 0xa
call sub.kernel32.dll_Sleep
rdtsc
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push 0x1f4
call sub.kernel32.dll_Sleep
rdtsc
sub eax, dword [ebp - 4]
sbb edx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push esi
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SetThreadPriority
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_SetPriorityClass
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fdiv dword [0x49fdec]
fstp qword [ebp - 0x10]
wait
fld qword [ebp - 0x10]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49fdf0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor edx, edx
mov dword [ebp - 0x24], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49fe53
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x18]
shr eax, 0xa
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.004091cc
mov edx, dword [ebp - 0x24]
mov eax, ebx
mov ecx, 0x49fe68
call fcn.00404dd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49fe5a
lea eax, [ebp - 0x24]
call fcn.00404acc
ret

Function at 0x49fe6c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49ff04
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00404d3c
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebx]
call fcn.00404d8c
mov edx, eax
mov eax, dword [ebx]
mov ecx, 1
call fcn.00404fec
mov eax, dword [ebp - 0x104]
mov edx, 0x49ff18
call fcn.00404ed8
je 0x49feeb
mov eax, ebx
mov edx, 0x49ff18
call fcn.00404d94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ff0b
lea eax, [ebp - 0x104]
call fcn.00404acc
ret
Function at 0x4a0a64
Capabilities:
Copy file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd98
push ebx
xor ecx, ecx
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x264], ecx
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f7c
mov eax, dword [ebp - 8]
call fcn.00404f7c
xor eax, eax
push ebp
push 0x4a0cc3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x254]
call fcn.00409b78
mov edx, dword [ebp - 0x254]
lea eax, [ebp - 0x110]
mov ecx, 0xff
call fcn.00404d68
mov eax, dword [ebp - 4]
call fcn.00402a38
call fcn.004029fc
lea eax, [ebp - 0x250]
push eax
push 0x4a0cd4
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a0c50
mov eax, dword [ebp - 8]
call fcn.0040964c
test al, al
jne 0x4a0b1c
mov eax, dword [ebp - 8]
call fcn.00409670
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x224]
mov ecx, 0x104
call fcn.00404d3c
mov eax, dword [ebp - 0x10]
mov edx, 0x4a0ce0
call fcn.00404ed8
je 0x4a0c33
mov eax, dword [ebp - 0x10]
mov edx, 0x4a0cec
call fcn.00404ed8
je 0x4a0c33
cmp dword [ebp - 0x250], 0x10
jne 0x4a0c02
push dword [ebp - 8]
push 0x4a0cf8
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404e4c
mov eax, dword [ebp - 0xc]
call fcn.0040964c
test al, al
jne 0x4a0b8e
mov eax, dword [ebp - 0xc]
call fcn.00409670
mov eax, dword [ebp - 4]
call fcn.00404d8c
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x4a0bcb
push dword [ebp - 4]
push 0x4a0cf8
push dword [ebp - 0x10]
lea eax, [ebp - 0x258]
mov edx, 3
call fcn.00404e4c
mov eax, dword [ebp - 0x258]
mov edx, dword [ebp - 0xc]
call fcn.004a0a64
jmp 0x4a0c33
lea eax, [ebp - 0x25c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00404dd8
mov eax, dword [ebp - 0x25c]
push eax
lea eax, [ebp - 0x260]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00404dd8
mov eax, dword [ebp - 0x260]
pop edx
call fcn.004a0a64
jmp 0x4a0c33
push dword [ebp - 8]
push 0x4a0cf8
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404e4c
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
call fcn.00404f8c
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404f8c
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x250]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4a0b1c
jmp 0x4a0c75
lea eax, [ebp - 0x264]
lea edx, [ebp - 0x110]
call fcn.00404d30
mov eax, dword [ebp - 0x264]
call fcn.00402a38
call fcn.004029fc
xor ebx, ebx
jmp 0x4a0c98
lea eax, [ebp - 0x268]
lea edx, [ebp - 0x110]
call fcn.00404d30
mov eax, dword [ebp - 0x268]
call fcn.00402a38
call fcn.004029fc
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0cca
lea eax, [ebp - 0x268]
mov edx, 6
call fcn.00404af0
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404af0
ret
Function at 0x4a15a4
Capabilities:
Create process on windows
Create process suspended
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
xor eax, eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a17d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4a17e0
mov edx, 0x4a17ec
mov eax, 0x80000001
call fcn.00458b1c
lea edx, [ebp - 0x228]
xor eax, eax
call fcn.00402ccc
mov eax, dword [ebp - 0x228]
xor edx, edx
call fcn.0040976c
lea eax, [ebp - 0x22c]
call fcn.0049fe6c
mov edx, dword [ebp - 0x22c]
lea eax, [ebp - 4]
mov ecx, 0x4a1834
call fcn.00404dd8
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00403080
lea eax, [ebp - 0x1d0]
call fcn.00402e1c
call fcn.004029fc
mov edx, 0x4a184c
lea eax, [ebp - 0x1d0]
call fcn.004051a8
call fcn.0040379c
call fcn.004029fc
push 0x4a185c
lea edx, [ebp - 0x234]
xor eax, eax
call fcn.00402ccc
push dword [ebp - 0x234]
push 0x4a186c
lea eax, [ebp - 0x230]
mov edx, 3
call fcn.00404e4c
mov edx, dword [ebp - 0x230]
lea eax, [ebp - 0x1d0]
call fcn.004051a8
call fcn.0040379c
call fcn.004029fc
push 0x4a1878
lea edx, [ebp - 0x23c]
xor eax, eax
call fcn.00402ccc
push dword [ebp - 0x23c]
push 0x4a186c
push 0x4a188c
lea eax, [ebp - 0x238]
mov edx, 4
call fcn.00404e4c
mov edx, dword [ebp - 0x238]
lea eax, [ebp - 0x1d0]
call fcn.004051a8
call fcn.0040379c
call fcn.004029fc
mov edx, 0x4a18a0
lea eax, [ebp - 0x1d0]
call fcn.004051a8
call fcn.0040379c
call fcn.004029fc
mov edx, 0x4a18b0
lea eax, [ebp - 0x1d0]
call fcn.004051a8
call fcn.0040379c
call fcn.004029fc
lea eax, [ebp - 0x1d0]
call fcn.00403224
call fcn.004029fc
lea eax, [ebp - 0x224]
xor ecx, ecx
mov edx, 0x44
call fcn.00403414
mov dword [ebp - 0x1f8], 1
mov word [ebp - 0x1f4], 0
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push 0x40
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404f8c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4a17ac
mov eax, dword [ebp - 0x1dc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x1e0]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a17d9
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.00404af0
lea eax, [ebp - 4]
call fcn.00404acc
ret
Function at 0x405550
Capabilities:
Create process on windows
Set current directory

Disassembly:
sub esp, 0x25c
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], 0
mov byte [esp + 0x160], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x161]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x60]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x5c]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x4055b3
mov byte [eax], 0
add esi, 0x12c
lea edx, [esp + 0x5c]
push esi
push edx
lea eax, [esp + 0x168]
push str._s_s__t
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
add esp, 0x10
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x5c]
mov dword [esp + 8], 0x44
push ecx
mov dword [esp + 0x38], 1
mov word [esp + 0x3c], 0xa
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea edx, [esp + 0x4c]
lea eax, [esp + 8]
push edx
lea ecx, [esp + 0x60]
push eax
push ecx
push 0
push 0x230
push 0
push 0
lea edx, [esp + 0x17c]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
add esp, 0x25c
ret

Function at 0x405ce0
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
push esi
push edi
push 0
push 0
push 1
mov esi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push 0
push edx
mov edi, eax
mov eax, dword [esi + 0x68]
push 0x405dd0
push 0
push 0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push edi
mov dword [esi + 0x6c], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret
Function at 0x408590
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40c9f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov edx, dword [esp + 0x28]
push ebx
xor ebx, ebx
push esi
mov ecx, dword [edx]
mov eax, dword [edx + 4]
cmp ecx, eax
push edi
mov dword [esp + 0xc], ebx
jle 0x408602
mov esi, dword [esp + 0x30]
mov al, byte [esp + 0x30]
mov edi, 0x410774
or ecx, 0xffffffff
mov byte [esi], al
xor eax, eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x410774
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov esi, dword [edx + 0xc]
sub eax, ecx
inc eax
add esi, ecx
mov cl, byte [esp + 0x30]
push ebp
mov ebp, eax
mov byte [esp + 0x14], cl
push 1
push ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x408651
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov esi, dword [esp + 0x34]
mov al, byte [esp + 0x14]
mov dword [esp + 0x2c], ebx
mov byte [esi], al
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
mov ecx, esi
push edx
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov ecx, dword [esp + 0x18]
pop ebp
cmp ecx, ebx
je 0x4086b6
mov al, byte [ecx - 1]
cmp al, bl
je 0x4086ac
cmp al, 0xff
je 0x4086ac
dec al
pop edi
mov byte [ecx - 1], al
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x40ad00
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_3
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ad2b
xor eax, eax
pop esi
pop ecx
ret
push ebx
lea ecx, [esp + 0x10]
push edi
push ecx
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call sub.MFC42.DLL_operatornew
add esp, 4
lea edx, [esp + 0xc]
mov ebx, eax
mov dword [esp + 0xc], 0
push 0
push edx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x18]
push eax
push edi
push ebx
call fcn.0040bc20
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, 1
pop esi
pop ecx
ret