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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10290b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
mov ebx, 0x208
push ebx
lea eax, [ebp - 0x20c]
push edi
push eax
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
mov dword [esi], edi
call fcn.01009000
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10058f8
push 0x1001348
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.010057d6
test eax, eax
je 0x10058f8
push ebx
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.01009000
add esp, 0xc
cmp word [ebp - 0x20c], di
push 0x100133c
je 0x100590f
lea eax, [ebp - 0x20c]
push eax
jmp 0x1005914
push 0x100131c
call fcn.01015930
pop ecx
pop ecx
push 0x10012ec
call fcn.01015707
pop ecx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01008fe1
leave
ret
Function at 0x10068c5
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x10290b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push 0x1001bb8
push dword [esi + 0x1278]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
cmp eax, edi
je 0x100697a
lea ecx, [ebp - 0x220]
push ecx
mov ecx, dword [esi + 0x1068]
mov dword [ebp - 0x220], edi
push dword [ecx + 4]
call eax
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
pop ecx
je 0x100697a
lea eax, [ebp - 0x218]
push eax
push 0xf003f
push edi
add esi, 0x106c
push esi
push 0x80000001
mov dword [ebp - 0x218], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1006973
push 4
lea eax, [ebp - 0x21c]
push eax
push 4
push edi
push 0x1001bac
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1006a9a
lea eax, [ebp - 0x214]
push eax
push 0xf003f
push edi
lea eax, [esi + 0x106c]
push eax
push 0x80000001
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x224], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1006a61
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
push edi
mov ebx, 0x1001bac
push ebx
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
mov dword [ebp - 0x21c], eax
je 0x1006a0d
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x53c
push dword [esi + 0x1274]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x20c]
push eax
call fcn.01009b81
pop ecx
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0x12c
jg 0x1006a22
cmp dword [ebp - 0x210], 2
jge 0x1006a2c
mov dword [ebp - 0x210], 0xa
cmp dword [ebp - 0x21c], edi
je 0x1006a4d
push 4
lea eax, [ebp - 0x210]
push eax
push 4
push edi
push ebx
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x210]
jmp 0x1006a9a
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x53c
push dword [esi + 0x1274]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x20c]
push eax
call fcn.01009b81
cmp eax, 0x12c
pop ecx
jg 0x1006a97
cmp eax, 2
jge 0x1006a9a
push 0xa
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01008fe1
leave
ret

Function at 0x1006ef8
Capabilities:
Read .ini file

Disassembly:
xor eax, eax
lea edx, [ecx + 0xe54]
cmp word [edx], ax
je 0x1006f19
push edx
push eax
push 0x10020dc
add ecx, 0x83c
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
ret
Function at 0x1007073
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x10290b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x44
pop ebx
push ebx
lea eax, [ebp - 0x468]
push 0
push eax
call fcn.01009000
mov dword [ebp - 0x468], ebx
push 0x410
xor ebx, ebx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.01009000
push edi
push esi
push 0x10021bc
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.01005817
add esp, 0x2c
test eax, eax
je 0x10070e0
xor eax, eax
jmp 0x1007132
lea eax, [ebp - 0x414]
push eax
push 0x100218c
call fcn.010157ba
pop ecx
pop ecx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x468]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10070dc
push dword [ebp - 0x420]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x424]
call esi
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01008fe1
leave
ret 8

Function at 0x1007aba
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0
mov esi, ecx
push 0x104
lea edi, [esi + 0x106c]
push edi
lea eax, [ebp - 4]
push eax
lea ebx, [esi + 0x83c]
push ebx
lea eax, [esi + 0x42c]
push eax
lea eax, [esi + 0x634]
push eax
call fcn.0101a3d0
push edi
push 0x1002630
call fcn.010157ba
add esp, 0x24
cmp word [edi], 0
jne 0x1007b4e
mov ecx, esi
call fcn.0100705d
test eax, eax
jne 0x1007b4a
push 0x4c6
push dword [esi + 0x1274]
push dword [esi + 0x428]
call fcn.0100662c
add esp, 0xc
test eax, eax
jne 0x1007b4a
push eax
push 0x100152c
push 0x10025e8
push dword [esi + 0x428]
call fcn.01015a26
add esp, 0x10
xor eax, eax
jmp 0x1007b8e
lea eax, [esi + 0xe54]
push eax
push ebx
push edi
call fcn.01019c0f
add esp, 0xc
test eax, eax
je 0x1007b09
lea eax, [esi + 0xe54]
push eax
push 0
push 0x10025bc
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push 0x1002590
mov dword [esi + 0x1288], eax
call fcn.0101587a
pop ecx
xor eax, eax
pop ecx
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1007b98
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push dword [esi + 0x1288]
mov ecx, dword [esi + 0x1068]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.01006448
mov ecx, dword [esi + 0x1068]
mov dword [ebp - 0xc], eax
call fcn.01006517
test eax, eax
jne 0x1007c73
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
lea eax, [esi + 0x106c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1007c32
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x1002674
push dword [ebp - 4]
call edi
push 0x1002664
push dword [ebp - 4]
call edi
mov eax, dword [esi + 0x1068]
push 4
add eax, 0x18
push eax
push 4
push ebx
push 0x1002650
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [esi + 0x1068]
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], ebx
call fcn.01006529
cmp dword [ebp - 8], ebx
jle 0x1007c52
push 8
mov ecx, esi
call fcn.010072b8
cmp dword [ebp - 0xc], 1
je 0x1007c73
mov ecx, esi
call fcn.01006b35
test eax, eax
jne 0x1007c67
xor eax, eax
jmp 0x1007c76
mov eax, dword [esi + 0x1068]
cmp dword [eax + 0xc], 1
je 0x1007c63
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret
Function at 0x1008610
Capabilities:
Read .ini file

Disassembly:
push 0x20
mov eax, 0x10262b4
call fcn.010097c2
mov esi, ecx
mov dword [ebp - 0x28], esi
push 0x1002d94
call fcn.01015707
mov eax, dword [esi + 0x1068]
push dword [eax + 0x10]
push 0x1002d68
call fcn.0101587a
mov eax, dword [esi + 0x1068]
add esp, 0xc
cmp dword [eax + 0x10], 2
je 0x1008868
mov edx, dword [eax + 0x1c]
xor edi, edi
inc edi
push edx
mov ecx, esi
mov dword [ebp - 0x14], edi
call fcn.01006c3c
cmp eax, edi
je 0x1008670
cmp edx, 0xb
je 0x1008670
cmp edx, 0xe
jne 0x1008674
and dword [ebp - 0x14], 0
lea edi, [esi + 0x634]
push edi
mov ecx, esi
call fcn.01006cff
mov ebx, eax
lea eax, [esi + 0x42c]
push eax
push edi
mov ecx, esi
call fcn.01007dae
push dword [ebp - 0x14]
mov edi, eax
push 0x1002d40
call fcn.0101587a
push ebx
push 0x1002d0c
call fcn.0101587a
push edi
push 0x1002cdc
call fcn.0101587a
add esp, 0x18
cmp ebx, 1
je 0x100883e
xor ebx, ebx
cmp dword [ebp - 0x14], ebx
jne 0x1008840
cmp edi, ebx
jg 0x1008840
mov dword [ebp - 4], ebx
jne 0x10087b5
mov eax, dword [esi + 0x1068]
cmp dword [eax + 0x1c], 0xe
jne 0x100871d
lea eax, [esi + 0xe54]
push eax
push 3
push 0x1002cac
lea eax, [esi + 0x83c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, dword [esi + 4]
jae 0x100871d
mov dword [ebp - 0x18], ebx
push 0x1026b30
lea eax, [ebp - 0x18]
push eax
call fcn.010098b7
mov eax, dword [esi + 0x1068]
mov edx, dword [eax + 0x1c]
push edx
mov ecx, esi
call fcn.01006c3c
xor edi, edi
inc edi
cmp eax, edi
jne 0x1008765
cmp edx, edi
je 0x1008765
lea eax, [esi + 0xe54]
push eax
push 0xa
push 0x1002c90
lea eax, [esi + 0x83c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, dword [esi]
jae 0x1008765
mov dword [ebp - 0x1c], ebx
push 0x1026b30
lea eax, [ebp - 0x1c]
jmp 0x1008717
mov eax, dword [esi + 0x1068]
mov edx, dword [eax + 0x1c]
push edx
mov ecx, esi
call fcn.01006c3c
cmp eax, edi
je 0x1008783
cmp edx, 0xb
jne 0x100883a
lea eax, [esi + 0xe54]
push eax
push edi
push 0x1002c64
lea eax, [esi + 0x83c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, dword [esi]
jae 0x100883a
mov dword [ebp - 0x20], ebx
push 0x1026b30
lea eax, [ebp - 0x20]
jmp 0x1008717
lea eax, [esi + 0xe54]
push eax
push 0xa
push 0x1002c90
lea eax, [esi + 0x83c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, dword [esi]
jae 0x100883a
mov dword [ebp - 0x24], ebx
push 0x1026b30
lea eax, [ebp - 0x24]
jmp 0x1008717
inc dword [esi]
jmp 0x1008868
xor ebx, ebx
push 0x1002c00
call fcn.01015707
lea edi, [esi + 0x1284]
mov eax, dword [edi]
cmp eax, ebx
pop ecx
je 0x1008868
push eax
push dword [esi + 0x428]
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [edi], ebx
mov dword [esi], ebx
xor eax, eax
call fcn.01009876
ret
Function at 0x1008875
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x1002e54
mov edi, ecx
call fcn.01015707
mov dword [esp], 0x1002e1c
call fcn.01015707
pop ecx
push 0xffffffffffffffff
lea esi, [edi + 0x1280]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1002de4
call fcn.01015707
pop ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
lea eax, [edi + 0xe54]
push eax
push 0x3e8
push 0x1002dc4
lea eax, [edi + 0x83c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, eax
push ebx
call esi
mov ecx, edi
call fcn.0100812a
test eax, eax
je 0x1008930
push ebx
call esi
xor ebx, ebx
jmp 0x1008928
cmp dword [0x102a4b0], ebx
je 0x100890d
mov ecx, edi
call fcn.01008610
test eax, eax
jne 0x1008930
mov dword [0x102a4b0], ebx
mov ecx, edi
call fcn.010085c1
test eax, eax
jne 0x1008930
mov ecx, edi
call fcn.010068c5
imul eax, eax, 0x3e8
push eax
call esi
cmp dword [0x102a4ac], ebx
je 0x10088f4
mov ecx, edi
call fcn.01006830
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x1009c95
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 4], ebx
jne 0x1009cc6
call fcn.0100c5be
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.0100c567
add esp, 0x14
or eax, 0xffffffff
jmp 0x1009d42
push esi
call fcn.0100ad98
push 0x214
push 1
call fcn.0100e8ce
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x1009d2a
call fcn.0100af65
push dword [eax + 0x6c]
push esi
call fcn.0100ae2b
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x58], eax
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
pop ecx
pop ecx
mov dword [esi + 0x54], edi
jne 0x1009d07
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x1009c19
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
jne 0x1009d41
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push esi
call fcn.0100c616
cmp dword [ebp - 4], ebx
pop ecx
je 0x1009d3f
push dword [ebp - 4]
call fcn.0100c5ee
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret
Function at 0x100a104
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 + 0x10290c8]
je 0x100a12a
inc esi
cmp esi, 0x17
mov dword [ebp - 4], esi
jb 0x100a118
cmp esi, 0x17
jae 0x100a284
push 3
call fcn.0100f4d6
cmp eax, 1
pop ecx
je 0x100a24e
push 3
call fcn.0100f4d6
test eax, eax
pop ecx
jne 0x100a15d
cmp dword [0x10290b4], 1
je 0x100a24e
cmp edi, 0xfc
je 0x100a284
push 0x1003554
mov edi, 0x314
push edi
mov esi, 0x102a508
push esi
call fcn.0100f469
add esp, 0xc
test eax, eax
je 0x100a193
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0100c4bc
add esp, 0x14
mov byte [0x102a625], bl
push 0x104
mov ebx, 0x102a521
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100a1d6
push 0x100353c
push 0x2fb
push ebx
call fcn.0100f469
add esp, 0xc
test eax, eax
je 0x100a1d6
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0100c4bc
add esp, 0x14
push ebx
push edi
push esi
call fcn.0100f3f0
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x100a1f4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0100c4bc
add esp, 0x14
push 0x1003538
push edi
push esi
call fcn.0100f3f0
add esp, 0xc
test eax, eax
je 0x100a214
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0100c4bc
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x10290cc]
push edi
push esi
call fcn.0100f3f0
add esp, 0xc
test eax, eax
je 0x100a239
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0100c4bc
add esp, 0x14
push 0x12010
push 0x1003510
push esi
call fcn.0100f24b
add esp, 0xc
jmp 0x100a284
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x100a284
cmp edi, 0xffffffff
je 0x100a284
mov edx, dword [esi*8 + 0x10290cc]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100a26d
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 0x100a7f7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x102aa2c]
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 0x100a846
call edi
mov esi, eax
cmp esi, ebx
je 0x100a82c
mov dword [0x102aa2c], 1
jmp 0x100a84b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100a841
push 2
pop eax
mov dword [0x102aa2c], eax
jmp 0x100a846
mov eax, dword [0x102aa2c]
cmp eax, 1
jne 0x100a8a6
cmp esi, ebx
jne 0x100a85e
call edi
mov esi, eax
cmp esi, ebx
jne 0x100a85e
xor eax, eax
jmp 0x100a975
cmp word [esi], bx
mov eax, esi
je 0x100a873
inc eax
inc eax
cmp word [eax], bx
jne 0x100a865
inc eax
inc eax
cmp word [eax], bx
jne 0x100a865
sub eax, esi
inc eax
inc eax
push eax
mov dword [ebp - 4], eax
call fcn.0100e3d3
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x100a897
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x100a975
push dword [ebp - 4]
push esi
push edi
call fcn.0100f5a0
add esp, 0xc
jmp 0x100a889
cmp eax, 2
je 0x100a8af
cmp eax, ebx
jne 0x100a857
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x100a857
cmp byte [esi], bl
je 0x100a8f0
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x100a857
add dword [ebp - 4], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100a8dc
sub eax, edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x100a8c2
mov esi, dword [ebp - 8]
inc dword [ebp - 4]
push 2
push dword [ebp - 4]
call fcn.0100e8ce
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], edi
jne 0x100a914
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x100a857
mov eax, dword [ebp - 8]
cmp byte [eax], bl
je 0x100a966
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 0x100a97a
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x100a93e
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 0x100a950
sub eax, ecx
sar eax, 1
cmp byte [esi], bl
lea edi, [edi + eax*2 + 2]
jne 0x100a91b
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.0100c616
pop ecx
push dword [ebp - 8]
jmp 0x100a909
Function at 0x100a98d
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x102aa30]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x100a9d1
call esi
test eax, eax
je 0x100a9b6
mov dword [0x102aa30], 1
jmp 0x100a9d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100a9cd
mov dword [0x102aa30], 2
jmp 0x100a9df
xor eax, eax
jmp 0x100aa35
cmp eax, 1
jne 0x100a9da
call esi
jmp 0x100aa35
cmp eax, 2
jne 0x100a9cd
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 0x100aa32
push 2
push edi
call fcn.0100e8ce
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x100aa32
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push 1
push 0
call esi
test eax, eax
je 0x100aa29
mov eax, dword [ebp - 4]
jmp 0x100aa34
push dword [ebp - 4]
call fcn.0100c616
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x100ec10
Capabilities:
Parse pe header

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

Function at 0x100ec50
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 0x100ec8f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x100ec85
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x100ec91
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x100ec75
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100f24b
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.0100ace7
xor ebx, ebx
cmp dword [0x102af1c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x100f322
push 0x100376c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x100f28d
xor eax, eax
jmp 0x100f3e6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1003760
push edi
call esi
cmp eax, ebx
je 0x100f286
push eax
call fcn.0100ac7c
mov dword [esp], 0x1003750
push edi
mov dword [0x102af1c], eax
call esi
push eax
call fcn.0100ac7c
mov dword [esp], 0x100373c
push edi
mov dword [0x102af20], eax
call esi
push eax
call fcn.0100ac7c
mov dword [0x102af24], eax
lea eax, [ebp - 8]
push eax
call fcn.01009e87
test eax, eax
pop ecx
pop ecx
je 0x100f2f0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0100c4bc
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x100f322
push 0x1003720
push edi
call esi
push eax
call fcn.0100ac7c
cmp eax, ebx
pop ecx
mov dword [0x102af2c], eax
je 0x100f322
push 0x1003708
push edi
call esi
push eax
call fcn.0100ac7c
pop ecx
mov dword [0x102af28], eax
mov eax, dword [0x102af28]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x100f39b
cmp dword [0x102af2c], esi
je 0x100f39b
push eax
call fcn.0100acf5
pop ecx
call eax
cmp eax, ebx
je 0x100f368
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x102af2c]
call fcn.0100acf5
pop ecx
call eax
test eax, eax
je 0x100f368
test byte [ebp - 0x18], 1
jne 0x100f39b
lea eax, [ebp - 0xc]
push eax
call fcn.01009ec8
test eax, eax
pop ecx
je 0x100f383
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0100c4bc
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x100f392
or dword [ebp + 0x10], 0x200000
jmp 0x100f3cc
or dword [ebp + 0x10], 0x40000
jmp 0x100f3cc
mov eax, dword [0x102af20]
cmp eax, esi
je 0x100f3cc
push eax
call fcn.0100acf5
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100f3cc
mov eax, dword [0x102af24]
cmp eax, esi
je 0x100f3cc
push dword [ebp - 4]
push eax
call fcn.0100acf5
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 [0x102af1c]
call fcn.0100acf5
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10149dd
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x10290b8]
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.01009e87
test eax, eax
pop ecx
je 0x1014a12
push edi
push edi
push edi
push edi
push edi
call fcn.0100c4bc
add esp, 0x14
push 4
pop eax
call fcn.01014e50
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 0x1014b20
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 0x1014a99
push 0x10036ec
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x1014a99
push 0x1004840
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x1014a99
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], edi
call eax
cmp eax, 1
jne 0x1014a99
mov eax, dword [ebp - 0x10]
cmp eax, edi
jbe 0x1014a99
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea edi, [ebx - 1]
push edi
push dword [ebp - 8]
call fcn.010149b1
add esp, 0xc
test eax, eax
jl 0x1014b20
not edi
and dword [ebp - 8], edi
je 0x1014acb
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.010149b1
add esp, 0xc
test eax, eax
jl 0x1014b20
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x1014ad6
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 0x1014aea
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp edi, ebx
jb 0x1014b20
push 4
push 0x1000
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1014b20
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 0x1014b20
xor eax, eax
inc eax
jmp 0x1014b22
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01008fe1
leave
ret