joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101d1ef
Capabilities:
Set file attributes

Disassembly:
push 0xc
mov eax, 0x10552e7
call fcn.01022092
mov esi, ecx
mov ecx, dword [ebp + 0xc]
and dword [ebp - 4], 0
call fcn.01014eae
mov eax, dword [esi]
mov edi, 0x10057b4
push edi
push eax
call fcn.01022fbf
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
jne 0x101d257
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, dword [esi]
push edi
push esi
call fcn.01022fbf
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
jne 0x101d257
mov ecx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x101d250
call fcn.0101ab3d
xor eax, eax
jmp 0x101d2fb
mov eax, dword [ebp + 8]
add eax, 8
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x101d2e3
mov ebx, 0x1005890
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
add ecx, 8
call fcn.01014be7
push eax
lea ecx, [ebp - 0x14]
call fcn.0101acbb
mov edi, dword [ebp - 0x14]
push dword [edi + 0x10]
lea esi, [edi + 0xc]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
push ebx
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
jne 0x101d2a6
call fcn.01022e4b
add esp, 0xc
jmp 0x101d2ce
call fcn.01022e4b
push dword [esi]
push 0x10057a4
push dword [ebp - 0x10]
call fcn.01022e4b
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
add esp, 0x18
cmp dword [eax - 0xc], 0
jne 0x101d2ce
push esi
call fcn.01015d54
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.0101ab3d
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x18], 0
jne 0x101d26b
push dword [ebp - 0x10]
call fcn.01022dca
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp + 8]
call fcn.0101ab3d
xor eax, eax
inc eax
call fcn.0102217e
ret 8
Function at 0x1020091
Capabilities:
Write file on windows

Disassembly:
push 0x18
push 0x105bb38
call fcn.01022fdc
mov esi, ecx
mov dword [ebp - 0x28], esi
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], edi
cmp dword [esi], 0xffffffff
jne 0x10200b6
xor eax, eax
jmp 0x102011c
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
push 0x3e8
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, edi
je 0x10200e1
cmp eax, 0x80
je 0x10200e1
cmp eax, 0x102
jne 0x102010d
mov dword [ebp - 0x20], edi
jmp 0x10200e8
mov dword [ebp - 0x1c], 1
push 2
push edi
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.01020129
mov eax, dword [ebp - 0x20]
call fcn.01023021
ret 8

Function at 0x1020147
Capabilities:
Check mutex on windows
Get file size
Write file on windows

Disassembly:
push 0x30
push 0x105bb58
call fcn.01022fdc
mov edi, ecx
mov dword [ebp - 0x28], edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
cmp dword [edi], 0xffffffff
je 0x1020170
xor eax, eax
inc eax
jmp 0x1020239
lea ecx, [ebp - 0x40]
call fcn.0104ef10
cmp eax, ebx
je 0x1020183
xor eax, eax
jmp 0x1020239
push 0x1006488
push ebx
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 4], eax
lea esi, [ebp - 0x40]
cmp eax, ebx
jne 0x10201a4
call fcn.01051d3f
jmp 0x102017c
call fcn.01051d3f
push ebx
mov esi, 0x80
push esi
push 4
push ebx
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x10201d3
mov ecx, edi
call fcn.01020062
jmp 0x102017c
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x10201fb
cmp eax, esi
je 0x10201fb
cmp eax, 0x102
jne 0x102022a
mov dword [ebp - 0x1c], 1
jmp 0x102022a
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
jne 0x1020227
push ebx
lea eax, [ebp - 0x24]
push eax
push 2
push 0x10064cc
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x1c], eax
jmp 0x102022a
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.01020246
mov eax, dword [ebp - 0x1c]
call fcn.01023021
ret 4
Function at 0x102025a
Capabilities:
Manipulate console buffer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
mov word [ebp - 4], di
mov word [ebp - 2], di
call fcn.0103507a
cmp eax, 2
je 0x10203d2
push ebx
push 0x10064e0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
je 0x10203d1
push 0x10064d0
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x10203ca
push 0xffffffffffffffff
call eax
test eax, eax
je 0x10203ca
push esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, 0xffffffff
mov dword [0x1064830], eax
je 0x10203c3
push 0x106482c
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x10203c3
mov eax, dword [0x106482c]
or eax, 3
push eax
push dword [0x1064830]
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
test eax, eax
je 0x10203c3
lea eax, [ebp - 0x30]
push eax
push dword [0x1064830]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x10203c3
mov si, word [ebp - 0x2c]
movsx eax, si
mov ecx, eax
shl ecx, 2
cmp ecx, eax
mov word [0x1064828], si
mov word [0x106482a], 1
jb 0x10203c3
push ecx
call fcn.010216b0
cmp eax, edi
pop ecx
mov dword [0x1064834], eax
je 0x1020381
mov ecx, dword [ebp - 0x2a]
mov word [ebp - 0x16], cx
inc ecx
mov word [ebp - 0x12], cx
lea ecx, [ebp - 0x18]
push ecx
mov word [ebp - 8], di
mov word [ebp - 6], di
push dword [ebp - 8]
mov word [ebp - 0x18], di
push dword [0x1064828]
mov word [ebp - 0x14], si
push eax
push dword [0x1064830]
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputW]
mov ax, word [ebp - 0x2a]
mov word [ebp - 2], ax
lea eax, [ebp - 0x10]
push eax
movsx eax, word [ebp - 0x2c]
mov word [ebp - 4], di
push dword [ebp - 4]
push eax
push 0x20
push dword [0x1064830]
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
test eax, eax
je 0x10203c3
push dword [ebp - 4]
push dword [0x1064830]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov dword [ebp - 0xc], 1
jmp 0x10203c9
call dword [sym.imp.KERNEL32.dll_FreeConsole]
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
mov eax, dword [ebp - 0xc]
pop edi
leave
ret
Function at 0x10203dd
Capabilities:
Manipulate console buffer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
xor esi, esi
cmp dword [0x1064834], esi
je 0x1020482
lea eax, [ebp - 0x24]
push eax
push dword [0x1064830]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x1020470
mov cx, word [ebp - 0x1e]
mov dx, word [0x106482a]
mov eax, dword [0x1064828]
add dx, cx
mov word [ebp - 0xa], cx
lea ecx, [ebp - 0xc]
push ecx
mov word [ebp - 4], si
mov word [ebp - 2], si
push dword [ebp - 4]
mov word [ebp - 0xc], si
push eax
push dword [0x1064834]
mov word [ebp - 8], ax
push dword [0x1064830]
mov word [ebp - 6], dx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputW]
test eax, eax
je 0x1020470
mov eax, dword [ebp - 8]
inc eax
mov word [ebp - 4], ax
mov ax, word [ebp - 6]
mov word [ebp - 2], ax
push dword [ebp - 4]
push dword [0x1064830]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push dword [0x1064834]
call fcn.010215c9
pop ecx
mov dword [0x1064834], esi
push dword [0x106482c]
push dword [0x1064830]
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
or dword [0x1064830], 0xffffffff
call dword [sym.imp.KERNEL32.dll_FreeConsole]
pop esi
leave
ret

Function at 0x1020550
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1020571
xor eax, eax
jmp 0x1020646
push edi
mov edi, dword [esi + 4]
push eax
jmp 0x1020602
push dword [esi]
lea eax, [ebp - 1]
push 1
push 1
push eax
call fcn.010234ac
add esp, 0x10
cmp eax, 1
jne 0x102062d
cmp byte [ebp - 1], 0x2c
je 0x1020610
cmp byte [ebp - 1], 0xa
je 0x1020610
inc dword [ebp - 8]
mov eax, dword [esi + 8]
cmp dword [ebp - 8], eax
jbe 0x10205e9
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x10205c7
push 0x106
mov dword [esi + 8], 0x104
call fcn.010216b0
jmp 0x10205da
add eax, 0x104
mov dword [esi + 8], eax
add eax, 2
push eax
push ecx
call fcn.010221bf
pop ecx
test eax, eax
pop ecx
je 0x1020619
mov ecx, dword [ebp - 8]
mov dword [esi + 4], eax
lea edi, [eax + ecx - 1]
mov al, byte [ebp - 1]
mov byte [edi], al
cmp byte [ebp - 1], 0x20
je 0x10205ff
cmp dword [ebp - 0xc], 0
mov ebx, edi
jne 0x10205ff
mov dword [ebp - 0xc], edi
push dword [esi]
inc edi
call fcn.010231d1
test eax, eax
pop ecx
je 0x102057b
cmp dword [esi], 0
jne 0x102063a
xor eax, eax
jmp 0x1020645
mov eax, dword [esi + 4]
test eax, eax
je 0x1020615
push eax
call fcn.010215c9
and dword [esi + 4], 0
pop ecx
jmp 0x1020615
push dword [esi]
call fcn.01022dca
and dword [esi], 0
pop ecx
jmp 0x1020615
mov eax, dword [ebp - 0xc]
inc ebx
mov byte [ebx], 0
mov byte [ebx + 1], 0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1020e02
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1063194]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.01020d43
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.01021bf0
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x1020e75
cmp dword [ebp - 0x94], 5
jb 0x1020e96
jmp 0x1020e92
cmp dword [ebp - 0x88], 1
jne 0x1020e96
cmp dword [ebp - 0x94], 4
ja 0x1020e92
jne 0x1020e96
cmp dword [ebp - 0x90], 0
jbe 0x1020e96
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1006514
call fcn.01020bda
test eax, eax
jge 0x1020eb7
mov byte [0x1064624], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0102177f
leave
ret
Function at 0x10236d7
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x1063194]
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.010239fd
test eax, eax
pop ecx
je 0x102370c
push edi
push edi
push edi
push edi
push edi
call fcn.0102501d
add esp, 0x14
push 4
pop eax
call fcn.0102b340
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 0x102381a
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 0x1023793
push 0x10065dc
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x1023793
push 0x10065c4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x1023793
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], edi
call eax
cmp eax, 1
jne 0x1023793
mov eax, dword [ebp - 0x10]
cmp eax, edi
jbe 0x1023793
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea edi, [ebx - 1]
push edi
push dword [ebp - 8]
call fcn.010236ab
add esp, 0xc
test eax, eax
jl 0x102381a
not edi
and dword [ebp - 8], edi
je 0x10237c5
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.010236ab
add esp, 0xc
test eax, eax
jl 0x102381a
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x10237d0
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 0x10237e4
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp edi, ebx
jb 0x102381a
push 4
push 0x1000
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x102381a
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 0x102381a
xor eax, eax
inc eax
jmp 0x102381c
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0102177f
leave
ret
Function at 0x1023c7a
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 + 0x10631a8]
je 0x1023ca0
inc esi
cmp esi, 0x17
mov dword [ebp - 4], esi
jb 0x1023c8e
cmp esi, 0x17
jae 0x1023dfa
push 3
call fcn.0102b96c
cmp eax, 1
pop ecx
je 0x1023dc4
push 3
call fcn.0102b96c
test eax, eax
pop ecx
jne 0x1023cd3
cmp dword [0x1063190], 1
je 0x1023dc4
cmp edi, 0xfc
je 0x1023dfa
push 0x1006bb4
mov edi, 0x314
push edi
mov esi, 0x1064b68
push esi
call fcn.0102b8ff
add esp, 0xc
test eax, eax
je 0x1023d09
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0102501d
add esp, 0x14
mov byte [0x1064c85], bl
push 0x104
mov ebx, 0x1064b81
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1023d4c
push 0x1006b9c
push 0x2fb
push ebx
call fcn.0102b8ff
add esp, 0xc
test eax, eax
je 0x1023d4c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0102501d
add esp, 0x14
push ebx
push edi
push esi
call fcn.0102b886
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x1023d6a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0102501d
add esp, 0x14
push 0x1006b98
push edi
push esi
call fcn.0102b886
add esp, 0xc
test eax, eax
je 0x1023d8a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0102501d
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x10631ac]
push edi
push esi
call fcn.0102b886
add esp, 0xc
test eax, eax
je 0x1023daf
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0102501d
add esp, 0x14
push 0x12010
push 0x1006b70
push esi
call fcn.0102b6e1
add esp, 0xc
jmp 0x1023dfa
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x1023dfa
cmp edi, 0xffffffff
je 0x1023dfa
mov edx, dword [esi*8 + 0x10631ac]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1023de3
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 0x102436d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x106508c]
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 0x10243bc
call edi
mov esi, eax
cmp esi, ebx
je 0x10243a2
mov dword [0x106508c], 1
jmp 0x10243c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x10243b7
push 2
pop eax
mov dword [0x106508c], eax
jmp 0x10243bc
mov eax, dword [0x106508c]
cmp eax, 1
jne 0x102441c
cmp esi, ebx
jne 0x10243d4
call edi
mov esi, eax
cmp esi, ebx
jne 0x10243d4
xor eax, eax
jmp 0x10244eb
cmp word [esi], bx
mov eax, esi
je 0x10243e9
inc eax
inc eax
cmp word [eax], bx
jne 0x10243db
inc eax
inc eax
cmp word [eax], bx
jne 0x10243db
sub eax, esi
inc eax
inc eax
push eax
mov dword [ebp - 4], eax
call fcn.010216b0
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x102440d
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x10244eb
push dword [ebp - 4]
push esi
push edi
call fcn.01022800
add esp, 0xc
jmp 0x10243ff
cmp eax, 2
je 0x1024425
cmp eax, ebx
jne 0x10243cd
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x10243cd
cmp byte [esi], bl
je 0x1024466
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x10243cd
add dword [ebp - 4], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1024452
sub eax, edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x1024438
mov esi, dword [ebp - 8]
inc dword [ebp - 4]
push 2
push dword [ebp - 4]
call fcn.01023665
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], edi
jne 0x102448a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x10243cd
mov eax, dword [ebp - 8]
cmp byte [eax], bl
je 0x10244dc
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 0x10244f0
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10244b4
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 0x10244c6
sub eax, ecx
sar eax, 1
cmp byte [esi], bl
lea edi, [edi + eax*2 + 2]
jne 0x1024491
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.010215c9
pop ecx
push dword [ebp - 8]
jmp 0x102447f
Function at 0x1024503
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1065090]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x1024547
call esi
test eax, eax
je 0x102452c
mov dword [0x1065090], 1
jmp 0x102454c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1024543
mov dword [0x1065090], 2
jmp 0x1024555
xor eax, eax
jmp 0x10245ab
cmp eax, 1
jne 0x1024550
call esi
jmp 0x10245ab
cmp eax, 2
jne 0x1024543
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 0x10245a8
push 2
push edi
call fcn.01023665
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x10245a8
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push 1
push 0
call esi
test eax, eax
je 0x102459f
mov eax, dword [ebp - 4]
jmp 0x10245aa
push dword [ebp - 4]
call fcn.010215c9
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x102aa80
Capabilities:
Parse pe header

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

Function at 0x102aac0
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 0x102aaff
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x102aaf5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x102ab01
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x102aae5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x102b6e1
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.0102485d
xor ebx, ebx
cmp dword [0x1065598], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x102b7b8
push 0x1006df8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x102b723
xor eax, eax
jmp 0x102b87c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1006dec
push edi
call esi
cmp eax, ebx
je 0x102b71c
push eax
call fcn.010247f2
mov dword [esp], 0x1006ddc
push edi
mov dword [0x1065598], eax
call esi
push eax
call fcn.010247f2
mov dword [esp], 0x1006dc8
push edi
mov dword [0x106559c], eax
call esi
push eax
call fcn.010247f2
mov dword [0x10655a0], eax
lea eax, [ebp - 8]
push eax
call fcn.010239fd
test eax, eax
pop ecx
pop ecx
je 0x102b786
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0102501d
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x102b7b8
push 0x1006dac
push edi
call esi
push eax
call fcn.010247f2
cmp eax, ebx
pop ecx
mov dword [0x10655a8], eax
je 0x102b7b8
push 0x1006d94
push edi
call esi
push eax
call fcn.010247f2
pop ecx
mov dword [0x10655a4], eax
mov eax, dword [0x10655a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x102b831
cmp dword [0x10655a8], esi
je 0x102b831
push eax
call fcn.0102486b
pop ecx
call eax
cmp eax, ebx
je 0x102b7fe
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x10655a8]
call fcn.0102486b
pop ecx
call eax
test eax, eax
je 0x102b7fe
test byte [ebp - 0x18], 1
jne 0x102b831
lea eax, [ebp - 0xc]
push eax
call fcn.01023a3e
test eax, eax
pop ecx
je 0x102b819
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0102501d
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x102b828
or dword [ebp + 0x10], 0x200000
jmp 0x102b862
or dword [ebp + 0x10], 0x40000
jmp 0x102b862
mov eax, dword [0x106559c]
cmp eax, esi
je 0x102b862
push eax
call fcn.0102486b
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x102b862
mov eax, dword [0x10655a0]
cmp eax, esi
je 0x102b862
push dword [ebp - 4]
push eax
call fcn.0102486b
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 [0x1065598]
call fcn.0102486b
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret