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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x101203c]
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
cmp ebx, esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x154], esi
je 0x100c75f
mov byte [ebx], 0
cmp edi, esi
je 0x100c767
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ecx
push 0x1005388
push 0x1002474
lea eax, [ebp - 0x148]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
lea eax, [ebp - 0x14c]
push eax
xor edi, edi
inc edi
push edi
push esi
lea eax, [ebp - 0x148]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100c84b
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x15c]
push eax
push esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x10053e4
push dword [ebp - 0x14c]
mov dword [ebp - 0x150], 4
call esi
test eax, eax
jne 0x100c83f
cmp dword [ebp - 0x15c], edi
jne 0x100c83f
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0x100239c
push dword [ebp - 0x14c]
mov dword [ebp - 0x150], 0x40
call esi
test eax, eax
jne 0x100c83f
cmp dword [ebp - 0x158], eax
je 0x100c827
push dword [ebp - 0x158]
lea eax, [ebp - 0x44]
push eax
call fcn.0100c560
test ebx, ebx
je 0x100c839
push dword [ebp + 0x14]
lea eax, [ebp - 0x44]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [ebp - 0x154], edi
push dword [ebp - 0x14c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x154]
pop edi
pop esi
pop ebx
call fcn.0100d038
leave
ret 0x10
Function at 0x100c865
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x101203c]
and dword [ebp - 0x10c], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
mov dword [ebp - 0x124], eax
mov byte [esi], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x100c8b2
mov dword [ebp - 0x10c], 0x80004005
jmp 0x100c9c6
mov eax, dword [0x1016cb0]
mov ecx, dword [eax]
push edi
push ebx
push eax
call dword [ecx + 0xc]
mov edi, eax
test edi, edi
mov dword [ebp - 0x110], edi
jne 0x100c8da
mov dword [ebp - 0x10c], 0x8007000e
jmp 0x100c9ab
push dword [ebp - 0x110]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
push ebx
rep stosb byte es:[edi], al
push dword [ebp - 0x118]
push dword [ebp - 0x124]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x100c917
mov dword [ebp - 0x10c], 0x80004005
jmp 0x100c9ab
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x120]
push eax
push 0x1005c08
push dword [ebp - 0x110]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x100c942
cmp dword [ebp - 0x114], 4
jae 0x100c908
mov eax, dword [ebp - 0x120]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push 0x1005be0
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x110]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x100c99b
cmp dword [ebp - 0x114], eax
jne 0x100c908
push dword [ebp + 0x10]
push dword [ebp - 0x11c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp - 0x110], 0
pop edi
je 0x100c9c6
mov eax, dword [0x1016cb0]
push dword [ebp - 0x110]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
pop esi
pop ebx
call fcn.0100d038
leave
ret 0xc
Function at 0x100ca7c
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x101203c]
mov dword [ebp - 4], eax
mov eax, dword [0x1012034]
push ebx
xor ebx, ebx
cmp eax, 2
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
jne 0x100cba8
cmp dword [0x1016bf8], eax
je 0x100cacb
xor eax, eax
inc eax
mov dword [0x1012034], eax
jmp 0x100cba8
lea eax, [ebp - 0x14]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100cba8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x100cb15
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100cb15
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
call fcn.010068d5
cmp dword [ebp - 0x10], ebx
je 0x100cb88
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push 2
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x100cb88
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x100cb88
mov eax, dword [ebp - 0x10]
xor esi, esi
cmp dword [eax], ebx
jbe 0x100cb7f
push dword [ebp - 0x20]
push dword [eax + esi*8 + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x100cb74
mov eax, dword [ebp - 0x10]
inc esi
cmp esi, dword [eax]
jb 0x100cb59
jmp 0x100cb7f
xor eax, eax
inc eax
mov dword [0x1012034], eax
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], ebx
pop esi
je 0x100cba5
mov eax, dword [0x1016cb0]
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0100d038
leave
ret

Function at 0x100cbb8
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [0x1016ca8], 0xffffffff
mov eax, dword [0x101203c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
je 0x100cc46
cmp dword [ebp + 0xc], 0
je 0x100cbf7
mov byte [ebp - 0x104], 0xd
mov byte [ebp - 0x103], 0xa
mov dword [ebp - 0x108], 2
jmp 0x100cbfe
and dword [ebp - 0x108], 0
mov ecx, dword [ebp - 0x108]
mov edx, 0x100
sub edx, ecx
push edx
push eax
lea eax, [ebp + ecx - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x104]
push eax
push dword [0x1016ca8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
call fcn.0100d038
leave
ret 8
Function at 0x100cce1
Capabilities:
Create process on windows
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x101203c]
push esi
push 1
push 0x1005d74
mov dword [ebp - 4], eax
call fcn.0100cbb8
lea eax, [ebp - 0x338]
push eax
push 1
xor esi, esi
push esi
push 0x1001f18
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100ce54
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x334]
push eax
push esi
push 0x1002104
push dword [ebp - 0x338]
mov dword [ebp - 0x33c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100ce48
cmp dword [ebp - 0x334], 2
push edi
jne 0x100cd94
push 0x41
pop ecx
lea edi, [ebp - 0x108]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x108]
jmp 0x100cd9a
lea eax, [ebp - 0x20c]
cmp dword [ebp + 8], esi
mov ecx, 0x1005690
jne 0x100cda9
mov ecx, 0x1005680
push dword [0x1005d38]
push eax
push ecx
lea eax, [ebp - 0x330]
push 0x124
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x390]
rep stosd dword es:[edi], eax
push esi
lea eax, [ebp - 0x330]
push eax
mov dword [ebp - 0x390], 0x44
call fcn.0100cbb8
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x390]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x330]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x100ce48
push 0xffffffffffffffff
push dword [ebp - 0x34c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x334]
push eax
push dword [ebp - 0x34c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x348]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x34c]
call esi
push dword [ebp - 0x338]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0100d038
leave
ret 4
Function at 0x100ce66
Capabilities:
Get common file path
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x101203c]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, eax
lea ebx, [ebp + esi - 0x108]
push ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x5c
je 0x100ceaf
mov byte [ebx], 0x5c
inc esi
sub edi, esi
push edi
push 0x1005758
lea eax, [ebp + esi - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor esi, esi
push esi
push 0x8000080
push 4
push esi
push esi
push 0xc0000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x1016ca8], eax
je 0x100cf86
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x100cf00
xor eax, eax
cmp eax, 0x19000
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jb 0x100cf24
push esi
push esi
push esi
push dword [0x1016ca8]
call edi
push dword [0x1016ca8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 2
push esi
push esi
push dword [0x1016ca8]
call edi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x10e]
push eax
movzx eax, word [ebp - 0x110]
push eax
movzx eax, word [ebp - 0x118]
push eax
movzx eax, word [ebp - 0x112]
push eax
movzx eax, word [ebp - 0x116]
push eax
push 0x1005d88
push 0x100
mov esi, 0x10164c8
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x20
push 1
push esi
call fcn.0100cbb8
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100d038
leave
ret
Function at 0x100d17f
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x1005de8
call fcn.0100e040
mov edi, 0x94
mov eax, edi
call fcn.0100d3f0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x1016ddc], ecx
mov eax, dword [esi + 4]
mov dword [0x1016de8], eax
mov edx, dword [esi + 8]
mov dword [0x1016dec], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1016de0], esi
cmp ecx, 2
je 0x100d1df
or esi, 0x8000
mov dword [0x1016de0], esi
shl eax, 8
add eax, edx
mov dword [0x1016de4], eax
cmp word [0x1000000], 0x5a4d
jne 0x100d21b
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x100d21b
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x100d234
cmp ecx, 0x20b
je 0x100d221
and dword [ebp - 0x1c], 0
jmp 0x100d248
cmp dword [eax + 0x84], 0xe
jbe 0x100d21b
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x100d242
cmp dword [eax + 0x74], 0xe
jbe 0x100d21b
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.0100dfe4
pop ecx
test eax, eax
jne 0x100d275
cmp dword [0x1016dcc], 1
jne 0x100d262
call fcn.0100d7c0
push 0x1c
call fcn.0100d5d3
push 0xff
call fcn.0100d432
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.0100de14
test eax, eax
jge 0x100d28a
push 0x1b
call fcn.0100d150
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10173f4], eax
call fcn.0100dce7
mov dword [0x1016dc4], eax
call fcn.0100dc3e
test eax, eax
jge 0x100d2b0
push 8
call fcn.0100d150
pop ecx
call fcn.0100d9e4
test eax, eax
jge 0x100d2c1
push 9
call fcn.0100d150
pop ecx
call fcn.0100d48c
mov dword [ebp - 0x28], eax
test eax, eax
je 0x100d2d4
push eax
call fcn.0100d150
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0100d976
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x100d2f6
movzx eax, word [ebp - 0x40]
jmp 0x100d2f9
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.010079f8
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x100d31a
push esi
call fcn.0100d56c
call fcn.0100d5a4
jmp 0x100d34c
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call fcn.0100e07b
ret
Function at 0x100d5d3
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x101203c]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1012050]
je 0x100d5fd
inc eax
cmp eax, 0x12
jb 0x100d5ee
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1012050]
mov dword [ebp - 0x110], esi
jne 0x100d7a8
mov eax, dword [0x1016dcc]
cmp eax, 1
je 0x100d776
test eax, eax
jne 0x100d633
cmp dword [0x1012044], 1
je 0x100d776
cmp ecx, 0xfc
je 0x100d7a8
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100d66e
push 5
pop ecx
mov esi, 0x100615c
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x10c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100d679
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x100d6b1
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100d691
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1006158
push ebx
call fcn.0100e380
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100d6b6
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x1012054]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100d6d0
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.0100d3f0
mov edx, esp
push 6
pop ecx
mov esi, 0x100613c
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100d6fc
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100d708
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100d721
mov eax, dword [ebp - 0x110]
mov esi, 0x1006138
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x1012054]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100d73f
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100d74b
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1006110
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0100e271
add esp, 0xc
jmp 0x100d7a8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x100d7a8
mov esi, dword [esi + 0x1012054]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x100d78d
push 0
sub ecx, edx
lea edx, [ebp - 0x114]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x120]
mov ecx, dword [ebp - 4]
call fcn.0100d038
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100dce7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1016f30]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x100dd33
call esi
mov edi, eax
cmp edi, ebx
je 0x100dd19
mov dword [0x1016f30], 1
jmp 0x100dd38
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100dd2e
push 2
pop eax
mov dword [0x1016f30], eax
jmp 0x100dd33
mov eax, dword [0x1016f30]
cmp eax, 1
jne 0x100ddb0
cmp edi, ebx
jne 0x100dd44
call esi
mov edi, eax
cmp edi, ebx
je 0x100ddb9
cmp word [edi], bx
mov eax, edi
je 0x100dd59
inc eax
inc eax
cmp word [eax], bx
jne 0x100dd4b
inc eax
inc eax
cmp word [eax], bx
jne 0x100dd4b
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
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x100dda7
push eax
call fcn.0100e9ac
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x100dda7
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 0x100dda4
push dword [ebp - 4]
call fcn.0100e8e7
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x100de08
cmp eax, 2
je 0x100ddbd
cmp eax, ebx
je 0x100ddbd
xor eax, eax
jmp 0x100de0a
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x100ddb9
cmp byte [esi], bl
je 0x100ddda
inc eax
cmp byte [eax], bl
jne 0x100ddd0
inc eax
cmp byte [eax], bl
jne 0x100ddd0
sub eax, esi
inc eax
mov edi, eax
push edi
call fcn.0100e9ac
cmp eax, ebx
pop ecx
je 0x100de01
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 0x100e271
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 [0x1016f34], ebx
push esi
push edi
jne 0x100e2f3
push 0x10061d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100e32e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10061cc
push edi
call esi
test eax, eax
mov dword [0x1016f34], eax
je 0x100e32e
push 0x10061bc
push edi
call esi
push 0x10061a8
push edi
mov dword [0x1016f38], eax
call esi
cmp dword [0x1016ddc], 2
mov dword [0x1016f3c], eax
jne 0x100e2f3
push 0x100618c
push edi
call esi
test eax, eax
mov dword [0x1016f44], eax
je 0x100e2f3
push 0x1006174
push edi
call esi
mov dword [0x1016f40], eax
mov eax, dword [0x1016f40]
test eax, eax
je 0x100e338
call eax
test eax, eax
je 0x100e31f
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1016f44]
test eax, eax
je 0x100e31f
test byte [ebp - 8], 1
jne 0x100e338
cmp dword [0x1016de8], 4
jb 0x100e332
or byte [ebp + 0x12], 0x20
jmp 0x100e357
xor eax, eax
jmp 0x100e367
or byte [ebp + 0x12], 4
jmp 0x100e357
mov eax, dword [0x1016f38]
test eax, eax
je 0x100e357
call eax
mov ebx, eax
test ebx, ebx
je 0x100e357
mov eax, dword [0x1016f3c]
test eax, eax
je 0x100e357
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1016f34]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100f356
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 0x100f387
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 0x100f38e
cmp ebx, dword [ebp + 8]
jae 0x100f38e
xor eax, eax
jmp 0x100f57e
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x100f39f
xor eax, eax
inc eax
jmp 0x100f57d
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x100f3b5
cmp ecx, edx
jae 0x100f4fa
cmp dword [eax + 4], 0
je 0x100f3be
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x100f3a6
cmp dword [ebp + 8], 0
je 0x100f3e0
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x100f4fa
cmp eax, esi
jae 0x100f4fa
mov eax, dword [0x1016f50]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x100f405
cmp dword [esi*4 + 0x1016f58], edi
je 0x100f4fe
inc esi
cmp esi, eax
jl 0x100f3f3
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100f57a
cmp dword [ebp - 8], 0x1000000
jne 0x100f57a
test byte [ebp - 0xc], 0xcc
je 0x100f483
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x100f57a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100f57a
cmp word [eax + 0x18], 0x10b
jne 0x100f57a
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x100f57a
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x100f483
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x100f483
test byte [ecx + 0x27], 0x80
jne 0x100f4fa
push 1
push 0x1016f98
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x100f397
mov ecx, dword [0x1016f50]
test ecx, ecx
mov edx, ecx
jle 0x100f4b7
lea eax, [ecx*4 + 0x1016f54]
cmp dword [eax], edi
je 0x100f4b7
dec edx
sub eax, 4
test edx, edx
jg 0x100f4ab
test edx, edx
jne 0x100f4e8
push 0xf
pop ebx
cmp ecx, ebx
jg 0x100f4c4
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x100f4dc
lea eax, [edx*4 + 0x1016f58]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x100f4ca
cmp ecx, 0x10
jge 0x100f4e8
inc ecx
mov dword [0x1016f50], ecx
push 0
push 0x1016f98
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x100f397
xor eax, eax
jmp 0x100f57d
test esi, esi
jle 0x100f397
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x1016f98
call ebx
test eax, eax
jne 0x100f397
cmp dword [esi*4 + 0x1016f58], edi
je 0x100f554
mov eax, dword [0x1016f50]
lea esi, [eax - 1]
test esi, esi
jl 0x100f542
cmp dword [esi*4 + 0x1016f58], edi
je 0x100f53e
dec esi
jns 0x100f532
test esi, esi
jge 0x100f552
cmp eax, 0x10
jge 0x100f54d
inc eax
mov dword [0x1016f50], eax
lea esi, [eax - 1]
jmp 0x100f554
je 0x100f56c
xor ecx, ecx
test esi, esi
jl 0x100f56c
lea eax, [ecx*4 + 0x1016f58]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x100f55a
push 0
push 0x1016f98
call ebx
jmp 0x100f397
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret