joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44cfd0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48a0f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0047b697
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00480e0a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00482362
test eax, eax
je 0x44d0ec
mov ecx, dword [esp + 0x3c]
call fcn.00480e37
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44d0b0
push edi
mov ecx, esi
call fcn.0047e3fa
mov ecx, esi
call fcn.0044d250
cmp dword [esp + 0x38], 1
jne 0x44d0e5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0047e564
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44fb20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44fb53
push esi
call fcn.00452c10
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44fb4c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44fbd9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44fbc2
mov eax, dword [esi + 8]
test eax, eax
je 0x44fb77
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44fbbe
cmp eax, 2
je 0x44fbc2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44fb6a
cmp eax, 3
je 0x44fb9d
cmp eax, 1
jne 0x44fb6a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44fb6a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44fb6a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044fc00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44fbe8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044fc00
add esp, 4
pop esi
ret

Function at 0x45bd50
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x45bdf3
test eax, eax
jbe 0x45bdf3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x45bdf3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45bd9e
xor esi, esi
jmp 0x45bda4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45bdcf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004123a0
add esi, eax
push esi
mov ebx, esi
call fcn.004123a0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x45bdb0
pop ebp
test edi, edi
pop edi
jne 0x45bdf3
test ebx, ebx
je 0x45bdf3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0046a9e0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x45bf35
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45c04d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45c04d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0047bae9
mov esi, eax
test esi, esi
je 0x45c04d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45c04d
mov ecx, esi
call fcn.0045bea0
cmp edi, eax
jge 0x45c04d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x45bfd3
mov dword [esp + 0x34], 1
jmp 0x45c02e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45c04d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0045b440
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x47c48d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47c4c5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047a51a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047a4f2
jmp 0x47c4d1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47db7e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47dbc0
call fcn.0048386e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47dbc0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47dbb7
xor eax, eax
jmp 0x47dbc8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047dbce
pop edi
pop esi
pop ebx
ret 4
Function at 0x483d9e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x483dcc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x483dea
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00483d04
jmp 0x483dea
mov eax, dword [esi + 0x14]
test eax, eax
je 0x483dea
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00483d04
test edi, edi
mov eax, edi
jne 0x483dd4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10036f3
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x100c004]
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x808], edi
mov byte [ebp - 0x404], 0
je 0x100385c
cmp dword [esi + 4], 0
jne 0x1003732
xor eax, eax
inc eax
jmp 0x100385e
mov eax, dword [esi + 8]
test eax, eax
je 0x100384b
cmp byte [eax], 0
je 0x100384b
push 0x10011f0
push eax
call fcn.010056da
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x1003786
test edi, edi
je 0x100385c
push dword [0x100ca68]
call fcn.010058f4
push eax
push dword [0x100cfe8]
push 0x1001388
push edi
call fcn.01005363
add esp, 0x14
jmp 0x100385c
mov edi, 0x400
jmp 0x10037e4
lea eax, [ebp - 0x804]
push eax
call fcn.01003ad6
cmp byte [eax], 0
je 0x10037e4
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.01003115
cmp eax, 1
jne 0x10037e4
mov edx, dword [ebp - 0x80c]
push edx
push esi
call fcn.01003255
push dword [edx + 0x10]
push dword [edx + 0xc]
push dword [edx + 8]
push dword [edx]
push 0x1001370
push 2
call fcn.010035e7
add esp, 0x18
push ebx
lea eax, [ebp - 0x804]
push edi
push eax
call fcn.010059c6
add esp, 0xc
test eax, eax
jne 0x100378d
push ebx
call fcn.010054a6
cmp dword [esi + 0xc], 0
pop ecx
je 0x1003818
cmp byte [ebp - 0x404], 0
jne 0x1003821
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp byte [ebp - 0x404], 0
je 0x100383e
lea eax, [ebp - 0x404]
push eax
push dword [esi + 8]
push 0x1001344
push dword [ebp - 0x808]
call fcn.01005363
add esp, 0x10
xor eax, eax
cmp byte [ebp - 0x404], al
sete al
jmp 0x100385e
test edi, edi
je 0x100385c
push 0x1001330
push edi
call fcn.01005363
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01005002
leave
ret 8
Function at 0x1003e65
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1b8
mov eax, dword [0x100c004]
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x1a0]
push eax
mov dword [ebp - 0x1a0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1003efd
xor eax, eax
inc eax
cmp dword [ebp - 0x190], eax
jne 0x1004008
cmp dword [ebp - 0x19c], 4
jne 0x1004008
cmp dword [ebp - 0x198], 0
jne 0x1004008
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x1ac]
push eax
push 0x1001954
push 0x80000001
call esi
test eax, eax
jne 0x1003efd
lea eax, [ebp - 0x1b0]
push eax
push 0x1001924
push 0x80000002
call esi
test eax, eax
je 0x1003f04
push dword [ebp - 0x1ac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1004008
push ebx
push edi
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x10c]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x1b8]
push eax
push 0
mov esi, 0x1001918
push esi
push dword [ebp - 0x1ac]
mov dword [ebp - 0x1a4], 0x105
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov byte [ebp - 8], 0
jne 0x1003f7d
push dword [ebp - 0x1a4]
lea eax, [ebp - 0x10c]
push eax
xor edi, edi
inc edi
push edi
push 0
push esi
push dword [ebp - 0x1b0]
call ebx
test eax, eax
jne 0x1003f7d
mov dword [ebp - 0x1b4], edi
jmp 0x1003f84
and dword [ebp - 0x1b4], 0
xor eax, eax
lea edi, [ebp - 0x1a8]
stosw word es:[edi], ax
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x1b8]
push eax
xor edi, edi
push edi
mov esi, 0x1001908
push esi
push dword [ebp - 0x1ac]
mov dword [ebp - 0x1a4], 2
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
jne 0x1003fdf
push dword [ebp - 0x1a4]
lea eax, [ebp - 0x1a8]
push eax
push 1
push edi
push esi
push dword [ebp - 0x1b0]
call ebx
cmp dword [ebp - 0x1b4], edi
je 0x1003fee
cmp eax, edi
jne 0x1003fee
xor edi, edi
inc edi
push dword [ebp - 0x1ac]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x1b0]
call esi
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.01005002
leave
ret
Function at 0x1004496
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x100c004]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp esi, ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x310], eax
je 0x1004583
push 0x104
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x1004521
cmp edi, ebx
je 0x1004583
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 0x100
mov esi, eax
lea eax, [ebp - 0x208]
push eax
push ebx
push esi
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea eax, [ebp - 0x208]
push eax
push esi
push 0x1001ac8
push dword [ebp + 0x14]
push edi
call fcn.01005a80
add esp, 0x14
jmp 0x1004583
lea eax, [ebp - 0x30c]
push eax
push 0x1001ab4
lea eax, [ebp - 0x108]
push 0x103
push eax
mov byte [ebp - 5], 0
call fcn.01005a80
lea eax, [ebp - 0x108]
push 0x10011c4
push eax
call fcn.010056da
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x1004587
test edi, edi
je 0x1004583
push dword [0x100ca68]
call fcn.010058f4
push eax
push dword [ebp - 0x310]
push 0x1001a90
push dword [ebp + 0x14]
push edi
call fcn.01005a80
add esp, 0x18
xor eax, eax
jmp 0x10045f5
mov esi, dword [esi + 0x20]
jmp 0x10045c9
push dword [esi + 4]
call fcn.01005b2b
mov eax, dword [esi + 0x10]
test eax, eax
pop ecx
pop ecx
je 0x10045b9
cmp byte [eax], 0
je 0x10045b9
push ebx
push 0x1001a8c
call fcn.01005b2b
push ebx
push dword [esi + 0x10]
call fcn.01005b2b
add esp, 0x10
push ebx
push 0x1001198
call fcn.01005b2b
mov esi, dword [esi + 0x14]
pop ecx
pop ecx
test esi, esi
push ebx
jne 0x100458c
call fcn.010054a6
mov edx, dword [ebp - 0x310]
test edx, edx
pop ecx
je 0x10045f2
lea eax, [ebp - 0x108]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10045e8
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01005002
leave
ret 0x10
Function at 0x1005002
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100c004]
jne 0x1005013
test ecx, 0xffff0000
jne 0x1005013
ret
jmp fcn.0100501d

Function at 0x1005192
Capabilities:
Accept command line arguments

Disassembly:
push 0x60
push 0x1002008
call fcn.0100656c
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 4], 0xffffffff
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 0x1005353
mov dword [esi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
test eax, eax
jne 0x10051ee
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1005353
mov eax, dword [esi + 0x10]
mov dword [0x100ca74], eax
mov eax, dword [esi + 4]
mov dword [0x100ca80], eax
mov eax, dword [esi + 8]
mov dword [0x100ca84], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x100ca78], eax
xor ebx, ebx
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x100ca74], 2
je 0x100522f
or byte [0x100ca79], 0x80
mov eax, dword [0x100ca80]
shl eax, 8
add eax, dword [0x100ca84]
mov dword [0x100ca7c], eax
call fcn.01005131
mov dword [ebp - 0x1c], eax
push ebx
call fcn.01006510
pop ecx
test eax, eax
jne 0x1005276
cmp dword [0x100ca64], 1
jne 0x1005263
call fcn.01005ce2
push 0x1c
call fcn.01005b7c
push 0xff
call fcn.01005506
pop ecx
pop ecx
mov dword [ebp - 4], 1
call fcn.01006329
test eax, eax
jge 0x100528e
push 0x1b
call fcn.01005102
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100e3b4], eax
call fcn.010061fc
mov dword [0x100ca5c], eax
call fcn.01006154
test eax, eax
jge 0x10052b4
push 8
call fcn.01005102
pop ecx
call fcn.01005efc
test eax, eax
jge 0x10052c5
push 9
call fcn.01005102
pop ecx
call fcn.01005560
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x10052d8
push eax
call fcn.01005102
pop ecx
call fcn.01005e98
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x10052ec
movzx eax, word [ebp - 0x40]
jmp 0x10052ef
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push ebx
push 0x1000000
call fcn.01004a1d
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x100530e
push esi
call fcn.01005640
call fcn.01005678
jmp 0x1005340
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x1005358
mov eax, 0xff
call fcn.010065a7
ret
Function at 0x1005b7c
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 + 0x100c010]
je 0x1005b9e
inc esi
cmp esi, 0x13
mov dword [ebp - 4], esi
jb 0x1005b8c
cmp esi, 0x13
je 0x1005cda
mov eax, dword [0x100ca64]
cmp eax, 1
push ebx
je 0x1005ca9
test eax, eax
jne 0x1005bc7
cmp dword [0x100c00c], 1
je 0x1005ca9
cmp ecx, 0xfc
je 0x1005cd9
push edi
push 6
pop ecx
mov esi, 0x10023a8
mov edi, 0x100cae0
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x100cafa
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x100cbfe], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1005c15
push 5
pop ecx
mov esi, 0x1002390
mov edi, 0x100cafa
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 0x1005c1a
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1005c4d
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005c2e
sub eax, edx
push 3
lea eax, [eax + 0x100cabf]
push 0x100238c
push eax
call fcn.01008a00
add esp, 0xc
mov edx, 0x100cae0
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1005c55
mov eax, dword [ebp - 4]
mov eax, dword [eax*8 + 0x100c014]
mov esi, 0x1002388
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 0x1005c71
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1005c7d
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1002360
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.010088fb
add esp, 0xc
pop edi
jmp 0x1005cd9
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1005cd9
mov edx, dword [esi*8 + 0x100c014]
mov ecx, edx
lea esi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x1005cc1
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 0x10061fc
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100cf08]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x1006248
call esi
mov edi, eax
cmp edi, ebx
je 0x100622e
mov dword [0x100cf08], 1
jmp 0x100624d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1006243
push 2
pop eax
mov dword [0x100cf08], eax
jmp 0x1006248
mov eax, dword [0x100cf08]
cmp eax, 1
jne 0x10062c5
cmp edi, ebx
jne 0x1006259
call esi
mov edi, eax
cmp edi, ebx
je 0x10062ce
cmp word [edi], bx
mov eax, edi
je 0x100626e
inc eax
inc eax
cmp word [eax], bx
jne 0x1006260
inc eax
inc eax
cmp word [eax], bx
jne 0x1006260
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 0x10062bc
call fcn.01008f8d
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10062bc
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 0x10062b9
push dword [ebp - 4]
call fcn.010053c2
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x100631d
cmp eax, 2
je 0x10062d2
cmp eax, ebx
je 0x10062d2
xor eax, eax
jmp 0x100631f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x10062ce
cmp byte [esi], bl
je 0x10062ef
inc eax
cmp byte [eax], bl
jne 0x10062e5
inc eax
cmp byte [eax], bl
jne 0x10062e5
sub eax, esi
inc eax
mov edi, eax
mov ecx, edi
call fcn.01008f8d
cmp eax, ebx
je 0x1006316
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 0x10080e7
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x100e288]
mov eax, dword [0x100c004]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], edi
jae 0x10082cd
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x100e2a0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x424], ebx
je 0x10082cd
and dword [ebp - 0x414], 0
and dword [ebp - 0x420], 0
cmp dword [ebp + 0x10], 0
jne 0x1008158
xor eax, eax
jmp 0x10082e1
test al, 0x20
je 0x100816b
push 2
push 0
push 0
push ecx
call fcn.01009e74
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x100822b
and dword [ebp - 0x40c], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x410], edi
jbe 0x10082a7
mov ecx, dword [ebp - 0x410]
xor edi, edi
sub ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x10081da
mov edx, dword [ebp - 0x410]
inc dword [ebp - 0x410]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x10081c8
inc dword [ebp - 0x420]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x424]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x10081a4
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x418]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1008259
mov eax, dword [ebp - 0x418]
add dword [ebp - 0x414], eax
cmp eax, edi
jl 0x1008265
mov eax, dword [ebp - 0x410]
sub eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0x10]
jb 0x1008190
jmp 0x1008265
push 0
lea ecx, [ebp - 0x418]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1008259
mov eax, dword [ebp - 0x418]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x414], eax
jmp 0x1008265
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x10082c5
cmp dword [ebp - 0x40c], eax
je 0x10082a1
push 5
pop eax
cmp dword [ebp - 0x40c], eax
jne 0x1008293
mov dword [0x100ca68], 9
mov dword [0x100ca6c], eax
jmp 0x10082de
push dword [ebp - 0x40c]
call fcn.01009922
pop ecx
jmp 0x10082de
mov edi, dword [ebp - 0x41c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x10082b9
cmp byte [edi], 0x1a
je 0x1008151
mov dword [0x100ca68], 0x1c
jmp 0x10082d7
sub eax, dword [ebp - 0x420]
jmp 0x10082e1
mov dword [0x100ca68], 9
and dword [0x100ca6c], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01005002
leave
ret