joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a30
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x403a30
sub esp, 0x510
mov eax, dword [0x43b10c]
xor eax, esp
mov dword [esp + 0x50c], eax
push 0x400
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x104
call fcn.00407af0
add esp, 0xc
cmp dword [0x43ce7c], 1
jne 0x403a8b
mov eax, 1
mov ecx, dword [esp + 0x50c]
xor ecx, esp
call fcn.00407adf
add esp, 0x510
ret
push esi
push edi
push str.X64_Plant
push 0x43cf88
call fcn.00401041
mov ecx, 0x10
mov esi, str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall_
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov eax, 0x43cc98
add esp, 8
movsb byte es:[edi], byte [esi]
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403ab7
lea edi, [esp + 0x10]
sub eax, edx
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x403ad0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push str.Delect_Uninstall_Register_Path___s
push 0x43cf88
call fcn.00401041
add esp, 0xc
lea edx, [esp + 8]
push edx
push 1
push 0
lea eax, [esp + 0x1c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403b49
push str.No_Uninstall_Register
push 0x43cf88
call fcn.00401041
add esp, 8
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x50c]
xor ecx, esp
call fcn.00407adf
add esp, 0x510
ret
push str.Have_Uninstall_Register
push 0x43cf88
call fcn.00401041
mov eax, dword [esp + 0x10]
add esp, 8
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x414]
push edx
push 0
push 0
push str.ProductGuid
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x403bb8
push str.No_Product_GUID_Key
push 0x43cf88
call fcn.00401041
add esp, 8
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x50c]
xor ecx, esp
call fcn.00407adf
add esp, 0x510
ret
push str.Have_Product_GUID_Key
push 0x43cf88
call fcn.00401041
mov ecx, dword [esp + 0x51c]
add esp, 8
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00407adf
add esp, 0x510
ret
Function at 0x403c60
Capabilities:
Delete registry key
Read .ini file

Disassembly:
jmp 0x403c60
sub esp, 0x508
mov eax, dword [0x43b10c]
xor eax, esp
mov dword [esp + 0x504], eax
push esi
push edi
push 0x43ce80
push 0x104
lea eax, [esp + 0x10]
push eax
push str.69B83310_5AC2_11D8_ADAF_00065B37CF9A
push str.PROPERTY_GUID
push str.DrvUninstall
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, 0xb
mov esi, str.SystemCurrentControlSetControlMediaSets_
lea edi, [esp + 0x10c]
lea eax, [esp + 8]
rep movsd dword es:[edi], dword [esi]
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403cb3
lea edi, [esp + 0x10c]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x403cc8
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10c]
push ecx
push str.Delect_Property_Register_Path___s
push 0x43cf88
call fcn.00401041
add esp, 0xc
lea edx, [esp + 0x10c]
push edx
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
test eax, eax
pop edi
pop esi
je 0x403d48
push str.Delect_Property_Register_fail__
push 0x43cf88
call fcn.00401041
add esp, 8
mov ecx, 0x43cf88
call fcn.00401037
xor eax, eax
mov ecx, dword [esp + 0x504]
xor ecx, esp
call fcn.00407adf
add esp, 0x508
ret
mov ecx, dword [esp + 0x504]
xor ecx, esp
mov eax, 1
call fcn.00407adf
add esp, 0x508
ret

Function at 0x403db0
Capabilities:
Delete registry key

Disassembly:
jmp 0x403db0
sub esp, 0x108
mov eax, dword [0x43b10c]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push edi
push str.Enter_RemoveDevice__
push 0x43cf88
mov dword [esp + 0x10], 0
call fcn.00401041
push esi
call fcn.004079c2
push eax
call fcn.0040818d
mov dx, word [0x435d9c]
mov ecx, dword [str.Enum_]
mov word [esp + 0x20], dx
add esp, 0x10
mov dword [esp + 0xc], ecx
mov edx, eax
jmp 0x403e10
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403e10
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x403e22
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push str.EnumUSBVID_0000PID_0000
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x80000002
call esi
lea eax, [esp + 0xc]
push eax
push 0x80000002
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 8]
push ecx
push 0xf003f
push 0
lea edx, [esp + 0x18]
push edx
push 0x80000002
call edi
test eax, eax
jne 0x403e88
lea eax, [esp + 0xc]
push eax
push 0x80000002
call esi
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
lea edx, [esp + 8]
push edx
push 0xf003f
push 0
lea eax, [esp + 0x18]
push eax
push 0x80000002
call edi
mov ecx, dword [esp + 8]
push ecx
mov edi, eax
call esi
mov ecx, dword [esp + 0x10c]
xor eax, eax
test edi, edi
pop edi
setne al
pop esi
xor ecx, esp
call fcn.00407adf
add esp, 0x108
ret
Function at 0x405cf0
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
jmp 0x405cf0
push ebp
lea ebp, [esp - 0x294]
sub esp, 0x314
mov eax, dword [0x43b10c]
xor eax, ebp
mov dword [ebp + 0x290], eax
push ebx
push esi
push edi
lea eax, [ebp + 0x18c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, str.UninVmsep.bat
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405d27
lea edi, [ebp + 0x18c]
sub eax, edx
add edi, 0xffffffff
jmp 0x405d40
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x405d40
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x104
lea ecx, [ebp + 0x88]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
mov cl, byte [ebp + eax + 0x88]
mov byte [ebp + eax - 0x7c], cl
add eax, 1
test cl, cl
jne 0x405d70
lea edx, [ebp - 0x7c]
push 0x5c
push edx
call fcn.004088c0
add esp, 8
test eax, eax
je 0x405d97
mov byte [eax], 0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp + 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405e7c
mov eax, str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_nrmdir___s__r_ndel___s_
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405dd0
sub eax, edx
mov edi, eax
lea eax, [ebp + 0x88]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405de6
sub eax, edx
mov edx, eax
lea eax, [ebp + 0x18c]
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405e00
sub eax, esi
lea eax, [eax + edx*2 + 0x14]
add eax, edi
call fcn.004088f0
mov esi, esp
lea ecx, [ebp + 0x18c]
push ecx
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp + 0x88]
push eax
mov ecx, eax
push ecx
push str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_nrmdir___s__r_ndel___s_
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, esi
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405e41
push 0
sub eax, edx
lea edx, [ebp - 0x80]
push edx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
lea eax, [ebp + 0x18c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x290]
xor ecx, ebp
call fcn.00407adf
add ebp, 0x294
mov esp, ebp
pop ebp
ret
Function at 0x407adf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43b10c]
jne 0x407ae9
repz ret
jmp fcn.0040cecf

Function at 0x4183ea
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040a8b9
xor ebx, ebx
cmp dword [0x43dad8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4184bf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41842a
xor eax, eax
jmp 0x418583
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x418423
push eax
call fcn.0040a856
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43dad8], eax
call esi
push eax
call fcn.0040a856
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43dadc], eax
call esi
push eax
call fcn.0040a856
mov dword [0x43dae0], eax
lea eax, [ebp - 8]
push eax
call fcn.0040d18a
test eax, eax
pop ecx
pop ecx
je 0x41848d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040aed5
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4184bf
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040a856
cmp eax, ebx
pop ecx
mov dword [0x43dae8], eax
je 0x4184bf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040a856
pop ecx
mov dword [0x43dae4], eax
mov eax, dword [0x43dae4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x418538
cmp dword [0x43dae8], esi
je 0x418538
push eax
call fcn.0040a8c2
pop ecx
call eax
cmp eax, ebx
je 0x418505
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x43dae8]
call fcn.0040a8c2
pop ecx
call eax
test eax, eax
je 0x418505
test byte [ebp - 0x18], 1
jne 0x418538
lea eax, [ebp - 0xc]
push eax
call fcn.0040d239
test eax, eax
pop ecx
je 0x418520
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040aed5
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41852f
or dword [ebp + 0x10], 0x200000
jmp 0x418569
or dword [ebp + 0x10], 0x40000
jmp 0x418569
mov eax, dword [0x43dadc]
cmp eax, esi
je 0x418569
push eax
call fcn.0040a8c2
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x418569
mov eax, dword [0x43dae0]
cmp eax, esi
je 0x418569
push dword [ebp - 4]
push eax
call fcn.0040a8c2
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 [0x43dad8]
call fcn.0040a8c2
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001da5
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1008004]
push edi
push 0x25
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x98]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
pop edi
jne 0x1001dfd
cmp dword [ebp - 0x94], 5
jne 0x1001dfd
cmp dword [ebp - 0x90], 0
jne 0x1001dfd
mov al, 1
jmp 0x1001dff
xor al, al
mov ecx, dword [ebp - 4]
call fcn.01002272
leave
ret

Function at 0x1002272
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1008004]
jne 0x1002283
test ecx, 0xffff0000
jne 0x1002283
ret
jmp fcn.0100228d

Function at 0x1002402
Capabilities:
Accept command line arguments

Disassembly:
push 0x18
push 0x10012c8
call fcn.01003274
mov ebx, 0x94
push ebx
push 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1002443
mov dword [esi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
test eax, eax
jne 0x100244d
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0xff
jmp 0x100259a
mov eax, dword [esi + 0x10]
mov dword [0x10089bc], eax
mov eax, dword [esi + 4]
mov dword [0x10089c8], eax
mov eax, dword [esi + 8]
mov dword [0x10089cc], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x10089c0], eax
xor ebx, ebx
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x10089bc], 2
je 0x100248e
or byte [0x10089c1], 0x80
mov eax, dword [0x10089c8]
shl eax, 8
add eax, dword [0x10089cc]
mov dword [0x10089c4], eax
call fcn.010023a1
mov dword [ebp - 0x1c], eax
push ebx
call fcn.01003218
pop ecx
test eax, eax
jne 0x10024d5
cmp dword [0x10089ac], 2
je 0x10024c2
call fcn.01002a4e
push 0x1c
call fcn.010028e8
push 0xff
call fcn.01002747
pop ecx
pop ecx
mov dword [ebp - 4], ebx
call fcn.01003031
test eax, eax
jge 0x10024e9
push 0x1b
call fcn.01002372
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100a274], eax
call fcn.01002f04
mov dword [0x10089a4], eax
call fcn.01002e5c
test eax, eax
jge 0x100250f
push 8
call fcn.01002372
pop ecx
call fcn.01002c04
test eax, eax
jge 0x1002520
push 9
call fcn.01002372
pop ecx
call fcn.010027a1
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x1002533
push eax
call fcn.01002372
pop ecx
mov eax, dword [0x10089dc]
mov dword [0x10089e0], eax
push eax
push dword [0x10089d4]
push dword [0x10089d0]
call fcn.01001fd2
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1002562
push esi
call fcn.01002881
call fcn.010028b9
jmp 0x1002594
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010032af
ret
Function at 0x10028e8
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp ecx, dword [esi*8 + 0x1008010]
je 0x100290a
inc esi
cmp esi, 0x13
mov dword [ebp - 4], esi
jb 0x10028f8
cmp esi, 0x13
je 0x1002a46
mov eax, dword [0x10089ac]
cmp eax, 1
push ebx
je 0x1002a15
test eax, eax
jne 0x1002933
cmp dword [0x100800c], 1
je 0x1002a15
cmp ecx, 0xfc
je 0x1002a45
push edi
push 6
pop ecx
mov esi, 0x1001658
mov edi, 0x1008a00
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x1008a1a
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x1008b1e], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1002981
push 5
pop ecx
mov esi, 0x1001640
mov edi, 0x1008a1a
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002986
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x10029b9
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100299a
sub eax, edx
push 3
lea eax, [eax + 0x10089df]
push 0x100163c
push eax
call fcn.01004700
add esp, 0xc
mov edx, 0x1008a00
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10029c1
mov eax, dword [ebp - 4]
mov eax, dword [eax*8 + 0x1008014]
mov esi, 0x1001638
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10029dd
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10029e9
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001610
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.010045ff
add esp, 0xc
pop edi
jmp 0x1002a45
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1002a45
mov edx, dword [esi*8 + 0x1008014]
mov ecx, edx
lea esi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x1002a2d
push 0
sub ecx, esi
lea esi, [ebp - 8]
push esi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x1002f04
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1008e28]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x1002f50
call esi
mov edi, eax
cmp edi, ebx
je 0x1002f36
mov dword [0x1008e28], 1
jmp 0x1002f55
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1002f4b
push 2
pop eax
mov dword [0x1008e28], eax
jmp 0x1002f50
mov eax, dword [0x1008e28]
cmp eax, 1
jne 0x1002fcd
cmp edi, ebx
jne 0x1002f61
call esi
mov edi, eax
cmp edi, ebx
je 0x1002fd6
cmp word [edi], bx
mov eax, edi
je 0x1002f76
inc eax
inc eax
cmp word [eax], bx
jne 0x1002f68
inc eax
inc eax
cmp word [eax], bx
jne 0x1002f68
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
mov ecx, eax
cmp ecx, ebx
mov dword [ebp - 8], ecx
je 0x1002fc4
call fcn.01004829
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1002fc4
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x1002fc1
push dword [ebp - 4]
call fcn.01003516
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1003025
cmp eax, 2
je 0x1002fda
cmp eax, ebx
je 0x1002fda
xor eax, eax
jmp 0x1003027
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x1002fd6
cmp byte [esi], bl
je 0x1002ff7
inc eax
cmp byte [eax], bl
jne 0x1002fed
inc eax
cmp byte [eax], bl
jne 0x1002fed
sub eax, esi
inc eax
mov edi, eax
mov ecx, edi
call fcn.01004829
cmp eax, ebx
je 0x100301e
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10045ff
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1008e54], ebx
push esi
push edi
jne 0x1004681
push 0x1001760
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10046bc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001754
push edi
call esi
test eax, eax
mov dword [0x1008e54], eax
je 0x10046bc
push 0x1001744
push edi
call esi
push 0x1001730
push edi
mov dword [0x1008e58], eax
call esi
cmp dword [0x10089bc], 2
mov dword [0x1008e5c], eax
jne 0x1004681
push 0x1001714
push edi
call esi
test eax, eax
mov dword [0x1008e64], eax
je 0x1004681
push 0x10016fc
push edi
call esi
mov dword [0x1008e60], eax
mov eax, dword [0x1008e60]
test eax, eax
je 0x10046c6
call eax
test eax, eax
je 0x10046ad
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1008e64]
test eax, eax
je 0x10046ad
test byte [ebp - 8], 1
jne 0x10046c6
cmp dword [0x10089c8], 4
jb 0x10046c0
or byte [ebp + 0x12], 0x20
jmp 0x10046e5
xor eax, eax
jmp 0x10046f5
or byte [ebp + 0x12], 4
jmp 0x10046e5
mov eax, dword [0x1008e58]
test eax, eax
je 0x10046e5
call eax
mov ebx, eax
test ebx, ebx
je 0x10046e5
mov eax, dword [0x1008e5c]
test eax, eax
je 0x10046e5
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1008e54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1005652
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x1005683
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x100568a
cmp ebx, dword [ebp + 8]
jae 0x100568a
xor eax, eax
jmp 0x100587a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x100569b
xor eax, eax
inc eax
jmp 0x1005879
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x10056b1
cmp ecx, edx
jae 0x10057f6
cmp dword [eax + 4], 0
je 0x10056ba
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x10056a2
cmp dword [ebp + 8], 0
je 0x10056dc
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x10057f6
cmp eax, esi
jae 0x10057f6
mov eax, dword [0x1008e70]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x1005701
cmp dword [esi*4 + 0x1008e78], edi
je 0x10057fa
inc esi
cmp esi, eax
jl 0x10056ef
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1005876
cmp dword [ebp - 8], 0x1000000
jne 0x1005876
test byte [ebp - 0xc], 0xcc
je 0x100577f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x1005876
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1005876
cmp word [eax + 0x18], 0x10b
jne 0x1005876
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x1005876
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x100577f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x100577f
test byte [ecx + 0x27], 0x80
jne 0x10057f6
push 1
push 0x1008eb8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x1005693
mov ecx, dword [0x1008e70]
test ecx, ecx
mov edx, ecx
jle 0x10057b3
lea eax, [ecx*4 + 0x1008e74]
cmp dword [eax], edi
je 0x10057b3
dec edx
sub eax, 4
test edx, edx
jg 0x10057a7
test edx, edx
jne 0x10057e4
push 0xf
pop ebx
cmp ecx, ebx
jg 0x10057c0
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x10057d8
lea eax, [edx*4 + 0x1008e78]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x10057c6
cmp ecx, 0x10
jge 0x10057e4
inc ecx
mov dword [0x1008e70], ecx
push 0
push 0x1008eb8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x1005693
xor eax, eax
jmp 0x1005879
test esi, esi
jle 0x1005693
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x1008eb8
call ebx
test eax, eax
jne 0x1005693
cmp dword [esi*4 + 0x1008e78], edi
je 0x1005850
mov eax, dword [0x1008e70]
lea esi, [eax - 1]
test esi, esi
jl 0x100583e
cmp dword [esi*4 + 0x1008e78], edi
je 0x100583a
dec esi
jns 0x100582e
test esi, esi
jge 0x100584e
cmp eax, 0x10
jge 0x1005849
inc eax
mov dword [0x1008e70], eax
lea esi, [eax - 1]
jmp 0x1005850
je 0x1005868
xor ecx, ecx
test esi, esi
jl 0x1005868
lea eax, [ecx*4 + 0x1008e78]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x1005856
push 0
push 0x1008eb8
call ebx
jmp 0x1005693
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret