joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002253
Capabilities:
Connect socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100e094]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 4], 0xffffffff
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], ebx
jne 0x10022f5
cmp dword [edi + 0x10], ebx
jne 0x1002294
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [edi + 0x10], eax
jne 0x1002294
mov eax, 0x8007000e
jmp 0x10022ff
push 3
push 1
push 0x20
call dword [sym.imp.WS2_32.dll_socket]
mov edx, eax
cmp edx, 0xffffffff
mov dword [edi + 4], edx
je 0x10022df
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x22], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1e], eax
mov word [ebp - 0x24], 0x20
lea edi, [ebp - 0x1a]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x1e
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x24]
push eax
push edx
movsd dword es:[edi], dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10022fc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, ebx
jle 0x10022ff
and eax, 0xffff
or eax, 0x80070000
jmp 0x10022ff
mov eax, 0x8000ffff
jmp 0x10022ff
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010079ac
leave
ret 0xc
Function at 0x10031fd
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100e094]
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
js 0x10032e4
push ebx
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
shl eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
mov ebx, 0x10015b0
push ebx
push 0x1001538
mov edi, 0x80000000
push edi
call esi
push eax
call fcn.01002c87
test eax, eax
jl 0x10032e1
push 0x6b
lea eax, [ebp - 0x20c]
push eax
push 0x1001524
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.010031cf
add esp, 0x14
test eax, eax
jl 0x10032e1
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
lea eax, [ebp - 0x414]
push eax
push 1
push ebx
push 0x10014b0
push edi
call esi
push eax
call fcn.01002c87
test eax, eax
jl 0x10032e1
push 0x4e
push 0x1001460
push 1
push ebx
push 0x10013d8
push edi
call esi
push eax
call fcn.01002c87
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.010079ac
leave
ret

Function at 0x10032f3
Capabilities:
Persist via app paths registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100e094]
push esi
mov dword [ebp - 4], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
js 0x1003382
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push 0x10015d0
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.010031cf
add esp, 0x10
test eax, eax
jl 0x1003382
push 0x4e
push 0x1001460
push 1
push 0x10015b4
lea eax, [ebp - 0x414]
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push eax
call fcn.01002c87
test eax, eax
jl 0x1003382
call fcn.010031fd
mov ecx, dword [ebp - 4]
pop esi
call fcn.010079ac
leave
ret
Function at 0x1003392
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x100e094]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x620]
push eax
push 0x100166c
push 1
push 0
push 0x10020d4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x10035ae
push ebx
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x61c]
push eax
call fcn.010030a7
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push eax
call ebx
test eax, eax
jne 0x1003402
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01002c87
mov esi, eax
test esi, esi
jl 0x1003576
push 0x901
lea eax, [ebp - 0x61c]
push eax
push 0x100165c
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.010031cf
mov esi, eax
add esp, 0x14
test esi, esi
jl 0x1003576
mov eax, dword [ebp - 0x620]
mov ecx, dword [eax]
lea edx, [ebp - 0x414]
push edx
push eax
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jl 0x1003576
push edi
lea eax, [ebp - 0x20c]
push eax
push 0
call ebx
test eax, eax
jne 0x1003470
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01002c87
mov esi, eax
test esi, esi
jl 0x1003576
mov eax, dword [ebp - 0x620]
mov ecx, dword [eax]
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [ecx + 0x50]
mov esi, eax
test esi, esi
jl 0x1003576
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x620]
mov ecx, dword [eax]
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [ecx + 0x24]
mov esi, eax
test esi, esi
jl 0x1003576
lea eax, [ebp - 0x20c]
push eax
xor ebx, ebx
push ebx
push ebx
push 9
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
cmp esi, ebx
jl 0x1003576
push edi
lea eax, [ebp - 0x414]
push eax
push 0x8ff
call fcn.010030a7
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, eax
neg esi
sbb esi, esi
mov ebx, 0x7fffbffb
and esi, ebx
mov edi, 0x80004005
add esi, edi
js 0x1003576
push 0x1001650
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
mov esi, eax
neg esi
sbb esi, esi
and esi, ebx
add esi, edi
js 0x1003576
mov eax, dword [ebp - 0x620]
mov ecx, dword [eax]
lea edx, [ebp - 0x624]
push edx
push 0x1001640
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x1003576
mov eax, dword [ebp - 0x624]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x624]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x620]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
pop edi
pop ebx
jl 0x10035ae
push 0x927
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHELL32.dll_SHSetLocalizedName]
mov esi, eax
test esi, esi
jl 0x10035ae
call fcn.010032f3
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
call fcn.010079ac
leave
ret
Function at 0x1005cf4
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
push ebx
stosd dword es:[edi], eax
push 1
push ebx
mov esi, ecx
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x1005e6f
push ebx
push 0x40000000
push 3
push ebx
push 1
push 0x80000000
lea eax, [esi + 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x1005e4d
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1005e42
cmp dword [ebp - 0x10], ebx
jne 0x1005e3b
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 8], edi
je 0x1005e32
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1005e1a
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
jne 0x1005e05
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x674]
push 0xffffffffffffffff
mov dword [ebp - 0x18], eax
push ebx
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, ebx
jne 0x1005df5
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1005e03
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
jmp 0x1005e42
cmp eax, 1
jne 0x1005e03
mov dword [ebp - 4], 0x800704c7
jmp 0x1005e22
call edi
cmp eax, ebx
jg 0x1005e0e
mov dword [ebp - 4], eax
jmp 0x1005e22
and eax, 0xffff
or eax, 0x80070000
jmp 0x1005e09
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebp - 8], ebx
cmp dword [ebp - 8], ebx
je 0x1005e42
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1005e42
mov dword [ebp - 4], 0x8007000e
jmp 0x1005e42
mov dword [ebp - 4], 0x80070008
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1005e64
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1005e61
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1005e76
mov dword [ebp - 4], 0x8007000e
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1005e85
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
xor eax, eax
cmp dword [ebp + 8], edi
push edi
setne al
push edi
mov esi, ecx
inc eax
push eax
push edi
push 5
push 0x40000000
lea eax, [esi + 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1005ef4
push edi
lea eax, [ebp + 8]
push eax
push dword [esi + 0x664]
push dword [esi + 0x660]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1005eeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1005ee9
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1005f0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1005f08
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x1007af3
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x10017d0
call fcn.01008f2c
mov edi, 0x94
mov eax, edi
call fcn.010080f0
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 [0x100e724], ecx
mov eax, dword [esi + 4]
mov dword [0x100e730], eax
mov edx, dword [esi + 8]
mov dword [0x100e734], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x100e728], esi
cmp ecx, 2
je 0x1007b53
or esi, 0x8000
mov dword [0x100e728], esi
shl eax, 8
add eax, edx
mov dword [0x100e72c], eax
cmp word [0x1000000], 0x5a4d
jne 0x1007b8f
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x1007b8f
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x1007ba8
cmp ecx, 0x20b
je 0x1007b95
and dword [ebp - 0x1c], 0
jmp 0x1007bbc
cmp dword [eax + 0x84], 0xe
jbe 0x1007b8f
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x1007bb6
cmp dword [eax + 0x74], 0xe
jbe 0x1007b8f
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.01008ecf
pop ecx
test eax, eax
jne 0x1007be9
cmp dword [0x100e714], 1
jne 0x1007bd6
call fcn.010086ab
push 0x1c
call fcn.010084be
push 0xff
call fcn.0100831d
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.01008cff
test eax, eax
jge 0x1007bfe
push 0x1b
call fcn.01007ac4
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100fcd4], eax
call fcn.01008bd2
mov dword [0x100e70c], eax
call fcn.01008b29
test eax, eax
jge 0x1007c24
push 8
call fcn.01007ac4
pop ecx
call fcn.010088cf
test eax, eax
jge 0x1007c35
push 9
call fcn.01007ac4
pop ecx
call fcn.01008377
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1007c48
push eax
call fcn.01007ac4
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.01008861
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1007c6a
movzx eax, word [ebp - 0x40]
jmp 0x1007c6d
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.01003b64
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x1007c8e
push esi
call fcn.01008457
call fcn.0100848f
jmp 0x1007cc0
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call fcn.01008f67
ret
Function at 0x10084be
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x100e094]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x100e0a0]
je 0x10084e8
inc eax
cmp eax, 0x12
jb 0x10084d9
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x100e0a0]
mov dword [ebp - 0x110], esi
jne 0x1008693
mov eax, dword [0x100e714]
cmp eax, 1
je 0x1008661
test eax, eax
jne 0x100851e
cmp dword [0x100e09c], 1
je 0x1008661
cmp ecx, 0xfc
je 0x1008693
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 0x1008559
push 5
pop ecx
mov esi, 0x1001b44
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 0x1008564
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x100859c
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100857c
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1001b40
push ebx
call fcn.01009f70
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10085a1
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x100e0a4]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10085bb
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.010080f0
mov edx, esp
push 6
pop ecx
mov esi, 0x1001b24
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 0x10085e7
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10085f3
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 0x100860c
mov eax, dword [ebp - 0x110]
mov esi, 0x1001b20
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x100e0a4]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100862a
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1008636
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001af8
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01009e69
add esp, 0xc
jmp 0x1008693
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1008693
mov esi, dword [esi + 0x100e0a4]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x1008678
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.010079ac
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1008bd2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100e878]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x1008c1e
call esi
mov edi, eax
cmp edi, ebx
je 0x1008c04
mov dword [0x100e878], 1
jmp 0x1008c23
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1008c19
push 2
pop eax
mov dword [0x100e878], eax
jmp 0x1008c1e
mov eax, dword [0x100e878]
cmp eax, 1
jne 0x1008c9b
cmp edi, ebx
jne 0x1008c2f
call esi
mov edi, eax
cmp edi, ebx
je 0x1008ca4
cmp word [edi], bx
mov eax, edi
je 0x1008c44
inc eax
inc eax
cmp word [eax], bx
jne 0x1008c36
inc eax
inc eax
cmp word [eax], bx
jne 0x1008c36
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 0x1008c92
push eax
call fcn.0100a59c
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x1008c92
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 0x1008c8f
push dword [ebp - 4]
call fcn.0100a4d7
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1008cf3
cmp eax, 2
je 0x1008ca8
cmp eax, ebx
je 0x1008ca8
xor eax, eax
jmp 0x1008cf5
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x1008ca4
cmp byte [esi], bl
je 0x1008cc5
inc eax
cmp byte [eax], bl
jne 0x1008cbb
inc eax
cmp byte [eax], bl
jne 0x1008cbb
sub eax, esi
inc eax
mov edi, eax
push edi
call fcn.0100a59c
cmp eax, ebx
pop ecx
je 0x1008cec
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 0x1009e69
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 [0x100e87c], ebx
push esi
push edi
jne 0x1009eeb
push 0x1001bc0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1009f26
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001bb4
push edi
call esi
test eax, eax
mov dword [0x100e87c], eax
je 0x1009f26
push 0x1001ba4
push edi
call esi
push 0x1001b90
push edi
mov dword [0x100e880], eax
call esi
cmp dword [0x100e724], 2
mov dword [0x100e884], eax
jne 0x1009eeb
push 0x1001b74
push edi
call esi
test eax, eax
mov dword [0x100e88c], eax
je 0x1009eeb
push 0x1001b5c
push edi
call esi
mov dword [0x100e888], eax
mov eax, dword [0x100e888]
test eax, eax
je 0x1009f30
call eax
test eax, eax
je 0x1009f17
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100e88c]
test eax, eax
je 0x1009f17
test byte [ebp - 8], 1
jne 0x1009f30
cmp dword [0x100e730], 4
jb 0x1009f2a
or byte [ebp + 0x12], 0x20
jmp 0x1009f4f
xor eax, eax
jmp 0x1009f5f
or byte [ebp + 0x12], 4
jmp 0x1009f4f
mov eax, dword [0x100e880]
test eax, eax
je 0x1009f4f
call eax
mov ebx, eax
test ebx, ebx
je 0x1009f4f
mov eax, dword [0x100e884]
test eax, eax
je 0x1009f4f
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100e87c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100af46
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 0x100af77
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 0x100af7e
cmp ebx, dword [ebp + 8]
jae 0x100af7e
xor eax, eax
jmp 0x100b16e
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x100af8f
xor eax, eax
inc eax
jmp 0x100b16d
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x100afa5
cmp ecx, edx
jae 0x100b0ea
cmp dword [eax + 4], 0
je 0x100afae
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x100af96
cmp dword [ebp + 8], 0
je 0x100afd0
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x100b0ea
cmp eax, esi
jae 0x100b0ea
mov eax, dword [0x100e898]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x100aff5
cmp dword [esi*4 + 0x100e8a0], edi
je 0x100b0ee
inc esi
cmp esi, eax
jl 0x100afe3
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100b16a
cmp dword [ebp - 8], 0x1000000
jne 0x100b16a
test byte [ebp - 0xc], 0xcc
je 0x100b073
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x100b16a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100b16a
cmp word [eax + 0x18], 0x10b
jne 0x100b16a
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x100b16a
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x100b073
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x100b073
test byte [ecx + 0x27], 0x80
jne 0x100b0ea
push 1
push 0x100e8e0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x100af87
mov ecx, dword [0x100e898]
test ecx, ecx
mov edx, ecx
jle 0x100b0a7
lea eax, [ecx*4 + 0x100e89c]
cmp dword [eax], edi
je 0x100b0a7
dec edx
sub eax, 4
test edx, edx
jg 0x100b09b
test edx, edx
jne 0x100b0d8
push 0xf
pop ebx
cmp ecx, ebx
jg 0x100b0b4
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x100b0cc
lea eax, [edx*4 + 0x100e8a0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x100b0ba
cmp ecx, 0x10
jge 0x100b0d8
inc ecx
mov dword [0x100e898], ecx
push 0
push 0x100e8e0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x100af87
xor eax, eax
jmp 0x100b16d
test esi, esi
jle 0x100af87
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x100e8e0
call ebx
test eax, eax
jne 0x100af87
cmp dword [esi*4 + 0x100e8a0], edi
je 0x100b144
mov eax, dword [0x100e898]
lea esi, [eax - 1]
test esi, esi
jl 0x100b132
cmp dword [esi*4 + 0x100e8a0], edi
je 0x100b12e
dec esi
jns 0x100b122
test esi, esi
jge 0x100b142
cmp eax, 0x10
jge 0x100b13d
inc eax
mov dword [0x100e898], eax
lea esi, [eax - 1]
jmp 0x100b144
je 0x100b15c
xor ecx, ecx
test esi, esi
jl 0x100b15c
lea eax, [ecx*4 + 0x100e8a0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x100b14a
push 0
push 0x100e8e0
call ebx
jmp 0x100af87
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret