joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100102c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x40
mov al, 0x41
push ebx
mov byte [esp + 0x15], al
mov byte [esp + 0x19], al
mov al, 0x5c
mov bl, 0x44
mov byte [esp + 0x1c], al
mov byte [esp + 0x28], al
mov byte [esp + 0x2f], al
mov byte [esp + 0x40], al
mov dl, 0x45
mov eax, 4
mov cl, 0x52
mov byte [esp + 0x17], bl
mov byte [esp + 0x1b], dl
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], dl
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov byte [esp + 0x16], cl
mov byte [esp + 0x1a], cl
mov bl, 0x53
mov byte [esp + 0x21], cl
mov dl, 0x49
mov byte [esp + 0x3f], cl
lea eax, [esp + 4]
lea ecx, [esp + 0x14]
mov byte [esp + 0x1f], bl
mov byte [esp + 0x22], dl
mov byte [esp + 0x25], dl
mov byte [esp + 0x29], bl
push eax
mov bl, 0x73
mov dl, 0x65
push ecx
push 0x80000002
mov byte [esp + 0x20], 0x48
mov byte [esp + 0x24], 0x77
mov byte [esp + 0x2c], 0x43
mov byte [esp + 0x2f], 0x50
mov byte [esp + 0x30], 0x54
mov byte [esp + 0x32], 0x6f
mov byte [esp + 0x33], 0x4e
mov byte [esp + 0x36], 0x79
mov byte [esp + 0x37], bl
mov byte [esp + 0x38], 0x74
mov byte [esp + 0x39], dl
mov byte [esp + 0x3a], 0x6d
mov byte [esp + 0x3c], 0x43
mov byte [esp + 0x3d], dl
mov byte [esp + 0x3e], 0x4e
mov byte [esp + 0x3f], 0x74
mov byte [esp + 0x40], 0x72
mov byte [esp + 0x41], 0x61
mov byte [esp + 0x42], 0x6c
mov byte [esp + 0x43], 0x50
mov byte [esp + 0x44], 0x72
mov byte [esp + 0x45], 0x6f
mov byte [esp + 0x46], 0x63
mov byte [esp + 0x47], dl
mov byte [esp + 0x48], bl
mov byte [esp + 0x49], bl
mov byte [esp + 0x4a], 0x6f
mov byte [esp + 0x4d], 0x30
mov byte [esp + 0x4e], 0
call dword [fcn.10004174]
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 8]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0x10002824
push edx
call dword [fcn.10004178]
mov eax, dword [esp + 4]
push eax
call dword [fcn.100041e4]
mov eax, dword [esp + 0x10]
pop ebx
add esp, 0x40
ret
Function at 0x10010b10
Capabilities:
Acquire debug privileges
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push esi
xor esi, esi
push 0x10002a00
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
jne 0x10010b3e
xor eax, eax
jmp 0x10010cfd
push ebx
push edi
push 0x100029e0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x3c], eax
push ecx
push eax
call fcn.10019f2e
push 0x30
xor eax, eax
pop ebx
lea edi, [ebp - 0xa8]
push 0x11
mov word [ebp - 0x38], 0x57
pop ecx
mov word [ebp - 0x36], 0x69
push 0x44
mov word [ebp - 0x34], 0x6e
rep stosd dword es:[edi], eax
pop eax
mov word [ebp - 0x32], 0x53
mov dword [ebp - 0xa8], eax
mov word [ebp - 0x26], ax
lea eax, [ebp - 0x38]
mov word [ebp - 0x30], 0x74
push eax
push 0x100015a4
push dword [ebp - 0xa0]
mov word [ebp - 0x2e], 0x61
mov word [ebp - 0x2c], bx
mov word [ebp - 0x2a], 0x5c
mov word [ebp - 0x28], 0x5c
mov word [ebp - 0x24], 0x65
mov word [ebp - 0x22], 0x66
mov word [ebp - 0x20], 0x61
mov word [ebp - 0x1e], 0x75
mov word [ebp - 0x1c], 0x6c
mov word [ebp - 0x1a], 0x74
mov word [ebp - 0x18], si
call dword [fcn.100042fc]
xor eax, eax
lea edi, [ebp - 0x64]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push 0x201eb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [fcn.10004194]
test eax, eax
je 0x10010ccb
lea eax, [ebp - 0x44]
push eax
push 0x100024ec
push esi
call dword [fcn.10004198]
test eax, eax
je 0x10010ccb
mov eax, dword [ebp - 0x44]
xor edi, edi
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 4]
inc edi
push eax
push edi
push edi
push esi
push 0x2000000
push dword [ebp - 0xc]
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x48], 2
call dword [0x10004168]
test eax, eax
je 0x10010ccb
lea eax, [ebp - 0x3c]
push 4
push eax
push 0xc
push dword [ebp - 4]
call dword [0x1000416c]
test eax, eax
je 0x10010ccb
push esi
push esi
lea eax, [ebp - 0x54]
push 0x10
push eax
push esi
push dword [ebp - 4]
call dword [fcn.1000419c]
test eax, eax
je 0x10010ccb
push edi
lea eax, [ebp - 0x14]
push dword [ebp - 4]
mov dword [ebp - 0x14], esi
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x10010ca4
mov ebx, 0x430
jmp 0x10010ca7
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xa8]
push eax
push esi
push dword [ebp - 0x14]
push ebx
push esi
push esi
push esi
push dword [ebp + 8]
push esi
push dword [ebp - 4]
call dword [0x10004170]
test eax, eax
jne 0x10010cd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x10010ce4
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 4], esi
je 0x10010cee
push dword [ebp - 4]
call edi
cmp dword [ebp - 0xc], esi
je 0x10010cf8
push dword [ebp - 0xc]
call edi
mov eax, dword [ebp - 8]
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x10010e20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x10010e3e
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10010e3e
test al, 0x10
jne 0x10010e3e
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x10010e41
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
xor ebx, ebx
push edi
push ebx
push ebx
push 3
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10010e71
xor al, al
jmp 0x10010f09
push esi
push 2
push ebx
push 0xfffffffffffffff4
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 4]
push eax
mov esi, dword [fcn.100042fc]
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
lea eax, [ebp - 0x210]
push 0x10002a50
push eax
call esi
lea eax, [ebp - 0x210]
sub eax, 0x12
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x410]
push 0x100015a4
push eax
call esi
add esp, 0x30
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea eax, [ebp - 0x410]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
pop edi
pop ebx
leave
ret
Function at 0x10011a72
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
dec eax
je 0x10011a8a
dec eax
je 0x10011af9
jmp 0x10011aff
and word [ebp - 0x208], 0
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0x104
push eax
push ebx
mov dword [0x1001e884], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.MSVCRT.dll__wcsupr]
push 0x10002ca4
call esi
mov edi, eax
lea eax, [ebp - 0x208]
push eax
call esi
push edi
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 0x10
test eax, eax
pop edi
pop esi
jbe 0x10011af9
xor eax, eax
push eax
push eax
push eax
push 0x1001181b
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1001e86c], ebx
xor eax, eax
pop ebx
inc eax
leave
ret 0xc

Function at 0x10011b7a
Capabilities:
Check os version

Disassembly:
mov eax, 0x1001a678
call fcn.10019a64
sub esp, 0x524
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
nop
add eax, 0
sub eax, 0
add eax, 0
sub eax, 0
mov eax, dword [ebp + 0xc]
mov edi, 0x208
push edi
mov esi, 0x1001e890
push dword [eax]
push esi
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
push 0x10011d2f
push esi
call dword [0x10004164]
xor ebx, ebx
mov dword [0x1001e888], eax
cmp eax, ebx
je 0x10011cd8
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 1
push ebx
push 2
call fcn.10011ce7
push ebx
push ebx
push 4
call fcn.10011ce7
add esp, 0x18
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x124], 6
jae 0x10011c89
lea eax, [ebp - 0x14]
push 0x1001a838
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call sub.MSVCRT.dll__CxxThrowException
xor ebx, ebx
push ebx
push ebx
push ebx
push 0x1001e890
push fcn.100112fc
push ebx
push ebx
call fcn.10012690
mov esi, dword [ebp + 0xc]
add esp, 0x1c
mov edi, eax
push ebx
push ebx
push ebx
push esi
call dword [fcn.10004304]
test eax, eax
je 0x10011c62
cmp dword [esi + 4], 0x12
je 0x10011c71
push esi
call dword [0x10004324]
push esi
call dword [0x10004334]
mov eax, dword [0x1001ea98]
cmp eax, 3
je 0x10011c71
cmp eax, 1
jne 0x10011c40
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x10011c87
ret
push esi
mov esi, dword [fcn.100042fc]
push 0x100015a4
push dword [0x1001e870]
call esi
add esp, 0xc
lea eax, [ebp - 0x530]
push edi
push eax
push dword [0x1001e86c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x530]
push eax
lea eax, [ebp - 0x328]
push 0x10002b7c
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x328]
push eax
call fcn.10010b10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x100121c0
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, ecx
push 1
push 0x100024ec
mov dword [esp + 0x14], edi
call fcn.10012450
mov ebx, dword [esp + 0x20]
add esp, 8
xor esi, esi
test ebx, ebx
jbe 0x10012217
push ebp
mov ebp, dword [esp + 0x18]
mov eax, dword [esi + ebp]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, ebx
jb 0x100121e8
mov edi, dword [esp + 0x10]
pop ebp
push 0
push 0x100024ec
call fcn.10012450
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.10012160
mov ecx, edi
call fcn.10012190
pop edi
pop esi
pop ebx
pop ecx
ret 8
Function at 0x10012250
Capabilities:
Acquire debug privileges
Enumerate processes

Disassembly:
sub esp, 0x444
push esi
push edi
xor esi, esi
mov ecx, 0x8a
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], esi
mov word [esp + 0x244], si
rep stosd dword es:[edi], eax
mov ecx, 0x81
lea edi, [esp + 0x246]
rep stosd dword es:[edi], eax
push 1
push 0x100024ec
mov dword [esp + 0x10], esi
stosw word es:[edi], ax
call fcn.10012450
add esp, 8
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
jne 0x100122b4
pop edi
xor eax, eax
pop esi
add esp, 0x444
ret
push ebx
push ebp
push 0x400
push 0x40
mov dword [esp + 0x28], 0x22c
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
lea eax, [esp + 0x20]
push eax
push edi
mov byte [ebx], 0x7d
mov ebp, 1
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1001240e
mov ecx, dword [esp + 0x28]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x14], esi
je 0x100123f7
cmp eax, 4
je 0x100123f7
cmp eax, 8
je 0x100123f7
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push 4
push eax
push esi
call fcn.10019f72
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x24c]
push 0x208
push ecx
push edx
push esi
call fcn.10019f60
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esp + 0x44]
push eax
call edi
lea ecx, [esp + 0x24c]
mov esi, eax
push ecx
call edi
add esi, eax
push ebx
lea esi, [esi + esi + 8]
add esi, ebp
call dword [sym.imp.KERNEL32.dll_LocalSize]
cmp eax, esi
jae 0x10012380
push 0x42
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebx, eax
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x44]
mov dword [ebx + ebp], edx
push eax
add ebp, 4
call edi
lea ecx, [eax + eax + 2]
lea esi, [esp + 0x44]
mov edx, ecx
lea edi, [ebx + ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x44]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
lea ecx, [esp + 0x24c]
lea ebp, [ebp + eax*2 + 2]
push ecx
call esi
lea ecx, [eax + eax + 2]
lea esi, [esp + 0x24c]
mov edx, ecx
lea edi, [ebx + ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x24c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [esp + 0x18]
lea ebp, [ebp + eax*2 + 2]
lea ecx, [esp + 0x20]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x100122e8
mov esi, dword [esp + 0x14]
push 0x42
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
push 0
push 0x100024ec
mov ebx, eax
call fcn.10012450
add esp, 8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov eax, ebx
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x444
ret
Function at 0x10012690
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dl, byte [esp + 0x2c]
push esi
push 0
push 0
push 0
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1c], dl
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 4]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push 0x10012610
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov edx, dword [esp + 0x28]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x10012710
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x40
mov eax, 0x65
push ebx
mov word [esp + 0x2a], ax
mov word [esp + 0x30], ax
mov eax, 0x6c
push ebp
mov word [esp + 0x36], ax
mov word [esp + 0x40], ax
mov word [esp + 0x42], ax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea eax, [esp + 0x30]
push edi
push eax
mov word [esp + 0x38], 0x6b
mov word [esp + 0x3c], 0x72
mov word [esp + 0x3e], 0x6e
mov word [esp + 0x44], 0x33
mov word [esp + 0x46], 0x32
mov word [esp + 0x48], 0x2e
mov word [esp + 0x4a], 0x64
mov word [esp + 0x50], 0
call esi
lea ecx, [esp + 0x24]
lea edx, [esp + 0x34]
mov bl, 0x73
push ecx
push edx
mov dword [esp + 0x18], eax
mov byte [esp + 0x2c], 0x50
mov byte [esp + 0x2d], 0x72
mov byte [esp + 0x2e], 0x6f
mov byte [esp + 0x2f], 0x63
mov byte [esp + 0x30], 0x65
mov byte [esp + 0x31], bl
mov byte [esp + 0x32], bl
mov byte [esp + 0x33], 0x33
mov byte [esp + 0x34], 0x32
mov byte [esp + 0x35], 0x46
mov byte [esp + 0x36], 0x69
mov byte [esp + 0x37], 0x72
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], 0x74
mov byte [esp + 0x3a], 0x57
mov byte [esp + 0x3b], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov ebp, eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x34]
push eax
push ecx
mov byte [esp + 0x1c], 0x50
mov byte [esp + 0x1d], 0x72
mov byte [esp + 0x1e], 0x6f
mov byte [esp + 0x1f], 0x63
mov byte [esp + 0x20], 0x65
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], 0x33
mov byte [esp + 0x24], 0x32
mov byte [esp + 0x25], 0x4e
mov byte [esp + 0x26], 0x65
mov byte [esp + 0x27], 0x78
mov byte [esp + 0x28], 0x74
mov byte [esp + 0x29], 0x57
mov byte [esp + 0x2a], 0
call esi
push eax
call edi
push 0
push 2
mov ebx, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x22c
mov edi, eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
push esi
push edi
mov dword [esi], 0x22c
call ebp
test eax, eax
je 0x10012889
mov edx, dword [esp + 0x54]
lea eax, [esi + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10012889
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
push esi
push edi
call ebx
test eax, eax
je 0x100128ac
lea ebp, [esi + 0x24]
mov ecx, dword [esp + 0x54]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1001287e
push esi
push edi
call ebx
test eax, eax
jne 0x10012894
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x10012ac0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x814
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push ebp
push ebp
mov esi, 1
push ebp
push 0x100027bc
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], esi
call dword [fcn.10004344]
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x20], edi
jne 0x10012b03
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x814
ret
mov eax, dword [esp + 0x828]
push ebp
push 0x80000000
push ebp
push ebp
push eax
push edi
call dword [fcn.1000434c]
mov ebx, eax
cmp ebx, ebp
jne 0x10012b2d
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x814
ret
mov ecx, dword [esp + 0x82c]
push ebp
push ebp
push 2
push ebp
push ebp
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x10012bbf
mov ebp, dword [fcn.1000433c]
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x28]
push 0x800
push eax
push ebx
call ebp
test esi, esi
je 0x10012b81
cmp word [esp + 0x24], 0x5a4d
jne 0x10012ba8
mov edx, dword [esp + 0x10]
xor esi, esi
lea ecx, [esp + 0x1c]
push esi
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
test eax, eax
ja 0x10012b55
jmp 0x10012bb0
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
mov esi, dword [0x10004350]
push ebx
call esi
push edi
call esi
mov eax, dword [esp + 0x14]
pop edi
test eax, eax
pop esi
pop ebp
setne al
pop ebx
add esp, 0x814
ret
Function at 0x44df49
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x44df62
call fcn.00415a0e
mov esi, dword [eax + 0xc]
push 0x58a8f4
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x44dfb8
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x44dfb7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x44df98
xor esi, esi
jmp 0x44dfae
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.0044dfc0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4e361b
Capabilities:
Get file system object information

Disassembly:
push 0x4cc
mov eax, 0x57bd8c
call fcn.00545ef4
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.004174b6
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x5bac20
call fcn.00426546
cmp eax, 0xffffffff
jne 0x4e36e6
push 0
push 0x58a8b0
lea ecx, [ebp - 0x4d0]
call fcn.00426546
cmp eax, 0xffffffff
jne 0x4e36e6
push 0
push 0x5badb4
lea ecx, [ebp - 0x4d0]
call fcn.00426546
cmp eax, 0xffffffff
jne 0x4e36e6
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.004174b6
mov edi, eax
pop ecx
mov dword [ebp - 0x4d4], edi
lea ecx, [edi + 0x10]
mov dword [ebp - 0x4d8], ecx
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea eax, [ebp - 0x218]
push eax
push 0x104
push edx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4e36c3
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call fcn.00545d9c
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x4d4]
mov edi, eax
call fcn.00415c54
jmp 0x4e371e
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.00416a80
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00415c54
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4e370c
mov edi, dword [ebp - 0x4cc]
jmp 0x4e371e
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call fcn.00545d9c
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.00415c54
mov eax, edi
call fcn.00545e9e
ret

Function at 0x564cad
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00564970

Function at 0x564cb8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00564af1

Function at 0x569182
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00568e42
Function at 0x401980
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406438
push 0x4055b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40a678], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40a674], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40a670], ecx
shr eax, 0x10
mov dword [0x40a66c], eax
call fcn.00403f80
test eax, eax
jne 0x4019ea
push 0x1c
call fcn.004020b0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00402350
call fcn.00404bb0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40aa30], eax
call fcn.00401f50
mov dword [0x40a654], eax
test eax, eax
je 0x401a1d
mov eax, dword [0x40aa30]
test eax, eax
jne 0x401a27
push 0xffffffffffffffff
call fcn.00401b20
add esp, 4
call fcn.004018e0
call fcn.00404eb0
call fcn.00404e70
mov esi, dword [0x40aa30]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x401b06
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x401a6e
test al, al
je 0x401a6e
and eax, 0xff
push eax
call fcn.00403fc0
add esp, 4
test eax, eax
je 0x401a48
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401a48
cmp byte [esi], 0x22
jne 0x401a77
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x401a87
cmp al, 0x20
ja 0x401a87
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401a77
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x401aa8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x401aad
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00401b20
jmp 0x401aeb
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x401a77
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401b06