joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100500c
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100604c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
je 0x1005190
cmp word [esi], bx
je 0x1005190
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.01004e94
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x1005179
push edi
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x1c], ebx
call fcn.01004e76
cmp eax, ebx
jl 0x1005114
cmp dword [ebp - 0x1c], 1
jne 0x10050e3
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1005080
mov ecx, dword [ebp - 0x14]
sub eax, edx
sar eax, 1
cmp dword [ebp - 0xc], ebx
lea esi, [ecx + eax*2]
je 0x10050aa
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x5c
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
mov esi, eax
cmp esi, ebx
pop ecx
push dword [ebp - 8]
je 0x100514c
mov word [esi], bx
call fcn.010054b9
test eax, eax
jne 0x10050da
push ebx
push dword [ebp - 8]
call edi
mov word [esi], 0x5c
inc esi
inc esi
jmp 0x10050b0
mov esi, dword [ebp - 0x14]
movzx eax, word [esi]
cmp ax, 0x61
jb 0x10050f5
cmp ax, 0x7a
jbe 0x1005101
cmp ax, 0x41
jb 0x10050aa
cmp ax, 0x5a
ja 0x10050aa
cmp word [esi + 2], 0x3a
jne 0x10050aa
cmp word [esi + 4], 0x5c
jne 0x10050aa
add esi, 8
jmp 0x10050aa
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x10028e8
push 1
mov dword [ebp - 0x10], eax
call fcn.0100547a
add esp, 0x10
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
jmp 0x1005182
call fcn.010054b9
xor esi, esi
inc esi
cmp eax, esi
je 0x1005174
push ebx
push dword [ebp - 8]
call edi
cmp eax, esi
je 0x1005174
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x20]
push 0x1002888
push esi
jmp 0x100512d
mov dword [ebp - 0x18], esi
jmp 0x1005138
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x18]
jmp 0x100519a
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0100428c
leave
ret 4
Function at 0x10054b9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x100551f
cmp word [eax], bx
je 0x100551f
push esi
push ebx
push eax
call fcn.01004e94
mov esi, eax
cmp esi, ebx
je 0x1005519
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10054f6
test al, 0x10
mov dword [ebp - 4], 1
jne 0x10054f9
mov dword [ebp - 4], ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, dword [ebp - 4]
pop esi
jmp 0x1005529
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
leave
ret 4
Function at 0x428669
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4388a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4286de
push 0x228
lea eax, [ebp - 0x22c]
push edi
push eax
mov dword [ebp - 0x230], 0x22c
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4286d6
lea eax, [ebp - 0x230]
push eax
push esi
inc edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4286bf
cmp edi, 0x3c
jg 0x4286de
push 1
call dword [sym.imp.MSVCR100.dll_exit]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00432c34
leave
ret

Function at 0x42f867
Capabilities:
Identify system language via api
Terminate process

Disassembly:
push 0xad8
mov eax, 0x433ad2
call fcn.00432c79
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount64]
call esi
mov edi, 0x12c
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, ebx
sub eax, edi
mov edi, dword [sym.imp.MSVCR100.dll_printf_s]
cdq
mov ebx, edx
mov esi, eax
push ebx
push esi
push str.v4:_d_n
call edi
add esp, 0xc
xor esi, ebx
push 0x434630
sub esi, ebx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
pop ecx
push 0x8007
call esi
mov ebx, 0x400
push ebx
call esi
mov edi, dword [sym.imp.MSVCR100.dll_printf]
push eax
push str.the_first_dwCode:0x_x_n
call edi
pop ecx
pop ecx
push 0
call esi
mov esi, eax
push esi
push str.the_second_dwCode:0x_x_n
call edi
pop ecx
pop ecx
push 0x434630
call edi
pop ecx
call fcn.00428669
call fcn.004286ec
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 0x927c0
jb 0x432bb5
and dword [ebp - 4], 0
mov dword [ebp - 0xad4], 0x5e
push 0x4348d8
lea eax, [ebp - 0xad4]
push eax
call sub.MSVCR100.dll__CxxThrowException
mov dword [ebp - 0x10], esp
push 0x861
mov dword [ebp - 0xad0], 0x2e647474
mov dword [ebp - 0xacc], 0x657865
mov dword [ebp - 0x34], 0x2f2f3a43
mov dword [ebp - 0x30], 0x72657355
mov dword [ebp - 0x2c], 0x502f2f73
mov dword [ebp - 0x28], 0x696c6275
mov dword [ebp - 0x24], 0x442f2f63
mov dword [ebp - 0x20], 0x6d75636f
mov dword [ebp - 0x1c], 0x73746e65
mov word [ebp - 0x18], 0x2f2f
mov byte [ebp - 0x16], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 2
mov dword [ebp - 0xad8], 0x167c
push 0x4348d8
lea eax, [ebp - 0xad8]
jmp 0x42f926
push 1
call dword [sym.imp.MSVCR100.dll_exit]
int3
Function at 0x42f92c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xad8
mov eax, 0x433ad2
call fcn.00432c79
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount64]
call esi
mov edi, 0x12c
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, ebx
sub eax, edi
mov edi, dword [sym.imp.MSVCR100.dll_printf_s]
cdq
mov ebx, edx
mov esi, eax
push ebx
push esi
push str.v4:_d_n
call edi
add esp, 0xc
xor esi, ebx
push 0x434630
sub esi, ebx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
pop ecx
push 0x8007
call esi
mov ebx, 0x400
push ebx
call esi
mov edi, dword [sym.imp.MSVCR100.dll_printf]
push eax
push str.the_first_dwCode:0x_x_n
call edi
pop ecx
pop ecx
push 0
call esi
mov esi, eax
push esi
push str.the_second_dwCode:0x_x_n
call edi
pop ecx
pop ecx
push 0x434630
call edi
pop ecx
call fcn.00428669
call fcn.004286ec
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 0x927c0
jb 0x432bb5
and dword [ebp - 4], 0
mov dword [ebp - 0xad4], 0x5e
push 0x4348d8
lea eax, [ebp - 0xad4]
push eax
call sub.MSVCR100.dll__CxxThrowException
mov dword [ebp - 0x10], esp
push 0x861
mov dword [ebp - 0xad0], 0x2e647474
mov dword [ebp - 0xacc], 0x657865
mov dword [ebp - 0x34], 0x2f2f3a43
mov dword [ebp - 0x30], 0x72657355
mov dword [ebp - 0x2c], 0x502f2f73
mov dword [ebp - 0x28], 0x696c6275
mov dword [ebp - 0x24], 0x442f2f63
mov dword [ebp - 0x20], 0x6d75636f
mov dword [ebp - 0x1c], 0x73746e65
mov word [ebp - 0x18], 0x2f2f
mov byte [ebp - 0x16], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 2
mov dword [ebp - 0xad8], 0x167c
push 0x4348d8
lea eax, [ebp - 0xad8]
jmp 0x42f926
push 1
call dword [sym.imp.MSVCR100.dll_exit]
int3

Function at 0x432c34
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4388a0]
jne 0x432c3e
repz ret
jmp fcn.00433228
Function at 0x101655c
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x103f89c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0xa8
lea eax, [ebp - 0xae]
push ebx
push eax
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb8], ebx
mov word [ebp - 0xb0], bx
call fcn.01017f90
add esp, 0xc
cmp esi, ebx
mov dword [ebp - 0xbc], ebx
jne 0x10165c1
xor eax, eax
jmp 0x10166ee
cmp edi, ebx
mov dword [esi], ebx
je 0x10165c9
mov dword [edi], ebx
push ebx
push 0x55
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_LCIDToLocaleName]
test eax, eax
je 0x10166e8
lea eax, [ebp - 0xb0]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10165f4
sub eax, edx
sar eax, 1
mov edi, eax
lea eax, [ebp - 0xb4]
push eax
push ebx
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xb0]
push eax
push 8
call dword [sym.imp.ntdll.dll_RtlGetSystemPreferredUILanguages]
test eax, eax
jl 0x10166e8
cmp dword [ebp - 0xb8], ebx
jne 0x101663c
mov dword [ebp - 0xb4], 1
mov eax, dword fs:[0x18]
mov ecx, dword [ebp - 0xb4]
mov eax, dword [eax + 0x30]
lea ecx, [edi + ecx + 1]
add ecx, ecx
push ecx
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
cmp esi, ebx
je 0x10166e8
lea eax, [edi + edi + 2]
push eax
lea eax, [ebp - 0xb0]
push eax
push esi
call fcn.01017c20
add esp, 0xc
cmp dword [ebp - 0xb8], ebx
je 0x10166aa
lea eax, [ebp - 0xb4]
push eax
lea eax, [esi + edi*2 + 2]
push eax
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xb0]
push eax
push 8
call dword [sym.imp.ntdll.dll_RtlGetSystemPreferredUILanguages]
test eax, eax
jl 0x10166d4
mov eax, dword [ebp - 0xc4]
mov dword [eax], esi
mov eax, dword [ebp - 0xc0]
cmp eax, ebx
je 0x10166c8
mov ecx, dword [ebp - 0xb4]
lea ecx, [edi + ecx + 1]
mov dword [eax], ecx
mov dword [ebp - 0xbc], 1
jmp 0x10166e8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 0xbc]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01017c0a
leave
ret 8
Function at 0x101671f
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
jne 0x101673a
xor eax, eax
jmp 0x10167b2
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x1016745
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
cmp eax, ebx
push esi
push edi
jne 0x10167b7
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemPreferredUILanguages]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push 8
call edi
test eax, eax
je 0x10167ae
mov eax, dword fs:[0x18]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 0x30]
add ecx, ecx
push ecx
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
cmp esi, ebx
je 0x10167ae
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 8
call edi
test eax, eax
jne 0x1016823
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10167ba
sub eax, edx
sar eax, 1
add eax, 2
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 0x30]
add ecx, ecx
push ecx
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
cmp esi, ebx
je 0x10167ae
mov eax, dword [ebp - 4]
lea eax, [eax + eax - 2]
push eax
push dword [ebp + 0xc]
mov edi, esi
push esi
call fcn.01017c20
add esp, 0xc
cmp word [esi], bx
je 0x1016823
push 0x2c
push edi
call fcn.0101800f
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x1016823
mov word [edi], bx
inc edi
inc edi
cmp word [edi], bx
jne 0x1016809
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x1016834
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor ebx, ebx
inc ebx
jmp 0x10167ae
Function at 0x1018e86
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x103f8b8]
je 0x1018eac
inc esi
cmp esi, 0x17
mov dword [ebp - 4], esi
jb 0x1018e9a
cmp esi, 0x17
jae 0x1019006
push 3
call fcn.0101cf23
cmp eax, 1
pop ecx
je 0x1018fd0
push 3
call fcn.0101cf23
test eax, eax
pop ecx
jne 0x1018edf
cmp dword [0x103f898], 1
je 0x1018fd0
cmp edi, 0xfc
je 0x1019006
push 0x100fb7c
mov edi, 0x314
push edi
mov esi, 0x10418e8
push esi
call fcn.0101ceb6
add esp, 0xc
test eax, eax
je 0x1018f15
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0101b1d7
add esp, 0x14
mov byte [0x1041a05], bl
push 0x104
mov ebx, 0x1041901
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1018f58
push 0x100fb64
push 0x2fb
push ebx
call fcn.0101ceb6
add esp, 0xc
test eax, eax
je 0x1018f58
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0101b1d7
add esp, 0x14
push ebx
push edi
push esi
call fcn.0101ce3d
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x1018f76
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0101b1d7
add esp, 0x14
push 0x100fb60
push edi
push esi
call fcn.0101ce3d
add esp, 0xc
test eax, eax
je 0x1018f96
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0101b1d7
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x103f8bc]
push edi
push esi
call fcn.0101ce3d
add esp, 0xc
test eax, eax
je 0x1018fbb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0101b1d7
add esp, 0x14
push 0x12010
push 0x100fb38
push esi
call fcn.0101cc98
add esp, 0xc
jmp 0x1019006
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x1019006
cmp edi, 0xffffffff
je 0x1019006
mov edx, dword [esi*8 + 0x103f8bc]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1018fef
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101958a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1041e0c]
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp eax, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 4], ebx
jne 0x10195d9
call edi
mov esi, eax
cmp esi, ebx
je 0x10195bf
mov dword [0x1041e0c], 1
jmp 0x10195de
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x10195d4
push 2
pop eax
mov dword [0x1041e0c], eax
jmp 0x10195d9
mov eax, dword [0x1041e0c]
cmp eax, 1
jne 0x1019639
cmp esi, ebx
jne 0x10195f1
call edi
mov esi, eax
cmp esi, ebx
jne 0x10195f1
xor eax, eax
jmp 0x1019708
cmp word [esi], bx
mov eax, esi
je 0x1019606
inc eax
inc eax
cmp word [eax], bx
jne 0x10195f8
inc eax
inc eax
cmp word [eax], bx
jne 0x10195f8
sub eax, esi
inc eax
inc eax
push eax
mov dword [ebp - 4], eax
call fcn.0101d1a4
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x101962a
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x1019708
push dword [ebp - 4]
push esi
push edi
call fcn.01017c20
add esp, 0xc
jmp 0x101961c
cmp eax, 2
je 0x1019642
cmp eax, ebx
jne 0x10195ea
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x10195ea
cmp byte [esi], bl
je 0x1019683
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x10195ea
add dword [ebp - 4], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x101966f
sub eax, edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x1019655
mov esi, dword [ebp - 8]
inc dword [ebp - 4]
push 2
push dword [ebp - 4]
call fcn.0101d10a
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], edi
jne 0x10196a7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x10195ea
mov eax, dword [ebp - 8]
cmp byte [eax], bl
je 0x10196f9
mov ecx, dword [ebp - 4]
mov eax, edi
sub eax, dword [ebp - 0xc]
sar eax, 1
sub ecx, eax
push ecx
push edi
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x101970d
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10196d1
sub eax, ecx
lea esi, [esi + eax + 1]
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x10196e3
sub eax, ecx
sar eax, 1
cmp byte [esi], bl
lea edi, [edi + eax*2 + 2]
jne 0x10196ae
push dword [ebp - 8]
mov word [edi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0xc]
call fcn.0101b331
pop ecx
push dword [ebp - 8]
jmp 0x101969c
Function at 0x1019720
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1041e10]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x1019764
call esi
test eax, eax
je 0x1019749
mov dword [0x1041e10], 1
jmp 0x1019769
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1019760
mov dword [0x1041e10], 2
jmp 0x1019772
xor eax, eax
jmp 0x10197c8
cmp eax, 1
jne 0x101976d
call esi
jmp 0x10197c8
cmp eax, 2
jne 0x1019760
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 1
push 0
mov dword [ebp - 8], eax
call esi
mov edi, eax
test edi, edi
je 0x10197c5
push 2
push edi
call fcn.0101d10a
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x10197c5
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push 1
push 0
call esi
test eax, eax
je 0x10197bc
mov eax, dword [ebp - 4]
jmp 0x10197c7
push dword [ebp - 4]
call fcn.0101b331
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x101c810
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x101c823
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x101c81f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x101c850
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x101c88f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x101c885
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x101c891
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x101c875
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x101cc98
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.01019a7a
xor ebx, ebx
cmp dword [0x1042300], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x101cd6f
push 0x100fd9c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x101ccda
xor eax, eax
jmp 0x101ce33
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100fd90
push edi
call esi
cmp eax, ebx
je 0x101ccd3
push eax
call fcn.01019a0f
mov dword [esp], 0x100fd80
push edi
mov dword [0x1042300], eax
call esi
push eax
call fcn.01019a0f
mov dword [esp], 0x100fd6c
push edi
mov dword [0x1042304], eax
call esi
push eax
call fcn.01019a0f
mov dword [0x1042308], eax
lea eax, [ebp - 8]
push eax
call fcn.01018bfa
test eax, eax
pop ecx
pop ecx
je 0x101cd3d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0101b1d7
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x101cd6f
push 0x100fd50
push edi
call esi
push eax
call fcn.01019a0f
cmp eax, ebx
pop ecx
mov dword [0x1042310], eax
je 0x101cd6f
push 0x100fd38
push edi
call esi
push eax
call fcn.01019a0f
pop ecx
mov dword [0x104230c], eax
mov eax, dword [0x104230c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x101cde8
cmp dword [0x1042310], esi
je 0x101cde8
push eax
call fcn.01019a88
pop ecx
call eax
cmp eax, ebx
je 0x101cdb5
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1042310]
call fcn.01019a88
pop ecx
call eax
test eax, eax
je 0x101cdb5
test byte [ebp - 0x18], 1
jne 0x101cde8
lea eax, [ebp - 0xc]
push eax
call fcn.01018c3b
test eax, eax
pop ecx
je 0x101cdd0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0101b1d7
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x101cddf
or dword [ebp + 0x10], 0x200000
jmp 0x101ce19
or dword [ebp + 0x10], 0x40000
jmp 0x101ce19
mov eax, dword [0x1042304]
cmp eax, esi
je 0x101ce19
push eax
call fcn.01019a88
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x101ce19
mov eax, dword [0x1042308]
cmp eax, esi
je 0x101ce19
push dword [ebp - 4]
push eax
call fcn.01019a88
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1042300]
call fcn.01019a88
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x102103a
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x103f89c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
mov dword [ebp - 0xc], edi
call fcn.01018bfa
test eax, eax
pop ecx
je 0x102106f
push edi
push edi
push edi
push edi
push edi
call fcn.0101b1d7
add esp, 0x14
push 4
pop eax
call fcn.01021f10
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x102117d
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec esi
neg esi
sbb esi, esi
and esi, 0x103
inc esi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], edi
jne 0x10210f6
push 0x100fd1c
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x10210f6
push 0x10106dc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x10210f6
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], edi
call eax
cmp eax, 1
jne 0x10210f6
mov eax, dword [ebp - 0x10]
cmp eax, edi
jbe 0x10210f6
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea edi, [ebx - 1]
push edi
push dword [ebp - 8]
call fcn.010192ca
add esp, 0xc
test eax, eax
jl 0x102117d
not edi
and dword [ebp - 8], edi
je 0x1021128
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.010192ca
add esp, 0xc
test eax, eax
jl 0x102117d
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x1021133
mov dword [ebp - 8], eax
lea edi, [ebx - 1]
not edi
and edi, dword [ebp - 0x14]
sub edi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x1021147
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp edi, ebx
jb 0x102117d
push 4
push 0x1000
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x102117d
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x102117d
xor eax, eax
inc eax
jmp 0x102117f
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01017c0a
leave
ret