joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c746
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebp, ecx
test esi, esi
jg 0x40c766
jl 0x40c75d
test ebx, ebx
jne 0x40c766
xor eax, eax
xor edx, edx
jmp 0x40c829
cmp dword [ebp + 0x38], 0
je 0x40c77c
push esi
push ebx
push dword [esp + 0x18]
call fcn.0040604f
jmp 0x40c829
mov eax, dword [ebp + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x40c7c0
mov eax, dword [ebp + 0x2c]
cmp dword [eax], 0
jbe 0x40c7c0
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [esp + 0x14]
cmovb esi, dword [eax]
push esi
push ecx
push edi
call fcn.00404dea
mov eax, dword [ebp + 0x2c]
add edi, esi
mov dword [esp + 0x20], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebp + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x40c7c8
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x4c], 0
je 0x40c81f
mov ecx, ebp
call fcn.0040b893
mov ecx, dword [esp + 0x14]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x40c80a
push dword [ebp + 0x4c]
push eax
push 1
push ecx
call fcn.00431b97
mov ecx, dword [esp + 0x24]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [esp + 0x14], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x40c81f
jmp 0x40c7db
test edx, edx
je 0x40c81f
push dword [ebp + 0x4c]
push edi
push 1
push ecx
call fcn.00431b97
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x44d960
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44d98d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44d98d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x100573a
Capabilities:
Delete file
Enumerate files on windows
Read .ini file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x100e088]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x670], edi
mov dword [ebp - 0x66c], edi
je 0x10058be
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call ebx
cmp eax, 4
jle 0x10058be
push esi
push edi
push 0x10014e4
push 0x10014d0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x10058c8
push 0x41
pop ecx
lea edi, [ebp - 0x20c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x10058b0
mov eax, dword [ebp - 0x66c]
and word [eax], 0
push esi
call ebx
push 4
push 0x1001670
push 4
lea esi, [esi + eax*2 - 8]
push esi
push 1
push 0x800
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x10058c8
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x418]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x1001664
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
mov esi, 0x94
mov ecx, esi
lea edi, [ebp - 0x668]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
test ebx, ebx
je 0x10058c8
lea eax, [ebp - 0x63c]
push eax
push dword [ebp - 0x66c]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x80
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov ecx, esi
lea edi, [ebp - 0x668]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x668]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1005857
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10058c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x670], eax
jmp 0x10058c8
mov dword [ebp - 0x670], 0x57
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x670]
pop edi
pop esi
pop ebx
call fcn.01006345
leave
ret
Function at 0x1005a3e
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push edi
lea eax, [ebp - 8]
push eax
xor edi, edi
push edi
push 0x10019a0
mov ebx, 0x80000002
push ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call esi
cmp eax, edi
je 0x1005a74
cmp eax, 0xea
jne 0x1005aa8
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x1005aa8
add eax, 0xd
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x1005aa8
lea ecx, [ebp - 8]
push ecx
push eax
push 0x10019a0
push ebx
call esi
test eax, eax
push dword [ebp - 4]
je 0x1005ad1
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 0x1001984
push eax
mov dword [ebp - 4], eax
push 0x1001918
call fcn.010038d5
mov esi, dword [ebp + 8]
pop ecx
pop ecx
push esi
call fcn.0100508e
test eax, eax
pop ecx
je 0x1005ad8
push 1
push edi
push esi
jmp 0x1005ae1
push 0x10018d8
jmp 0x1005ab6
cmp word [esi], di
jne 0x1005ae6
push 1
push edi
push edi
push dword [ebp - 4]
jmp 0x1005b0e
push esi
call fcn.01005106
cmp eax, edi
pop ecx
jne 0x1005af7
push 1
push edi
push edi
jmp 0x1005b0d
mov word [esi + eax*2], di
inc eax
cmp word [esi + eax*2], 0x20
je 0x1005afb
push 1
lea eax, [esi + eax*2]
push edi
mov dword [ebp - 0xc], eax
push eax
push esi
push 0x10018cc
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jae 0x1005b5b
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x1005b2b
mov eax, 0x10018c8
push eax
push esi
push 0x1001868
call fcn.010038d5
add esp, 0xc
push 0x10
push 0x1f4
call fcn.010051cd
pop ecx
push eax
push 0x1fc
call fcn.010051cd
pop ecx
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1005ec9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x100e088]
push esi
push 0x40
mov dword [ebp - 4], eax
call fcn.0100667d
xor esi, esi
cmp eax, esi
pop ecx
je 0x1005efa
mov ecx, eax
call fcn.01004cd7
mov dword [ebp - 0x108], eax
jmp 0x1005f00
mov dword [ebp - 0x108], esi
cmp dword [ebp - 0x108], esi
jne 0x1005f10
push 8
pop eax
jmp 0x1005fbd
push edi
lea eax, [ebp - 0x10c]
push eax
push 0x1001b00
push 0x80000002
mov dword [ebp - 0x110], 0xfe
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x10c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x104]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor edi, edi
cmp esi, edi
jne 0x1005f99
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x114]
push eax
push edi
push 0x1001c28
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, edi
jne 0x1005f99
mov ecx, dword [ebp - 0x108]
lea eax, [ebp - 0x104]
push eax
push edi
call fcn.01004e87
cmp dword [ebp - 0x10c], edi
pop edi
je 0x1005fae
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x108]
push 1
call fcn.01003b5a
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
call fcn.01006345
leave
ret
Function at 0x100648c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x1001e00
call fcn.01007d0c
mov edi, 0x94
mov eax, edi
call fcn.01007e70
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 [0x1010598], ecx
mov eax, dword [esi + 4]
mov dword [0x10105a4], eax
mov edx, dword [esi + 8]
mov dword [0x10105a8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x101059c], esi
cmp ecx, 2
je 0x10064ec
or esi, 0x8000
mov dword [0x101059c], esi
shl eax, 8
add eax, edx
mov dword [0x10105a0], eax
cmp word [0x1000000], 0x5a4d
jne 0x1006528
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x1006528
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x1006541
cmp ecx, 0x20b
je 0x100652e
and dword [ebp - 0x1c], 0
jmp 0x1006555
cmp dword [eax + 0x84], 0xe
jbe 0x1006528
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x100654f
cmp dword [eax + 0x74], 0xe
jbe 0x1006528
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.01007caf
pop ecx
test eax, eax
jne 0x1006582
cmp dword [0x101057c], 1
jne 0x100656f
call fcn.0100748b
push 0x1c
call fcn.0100729e
push 0xff
call fcn.010070fd
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.01007adf
test eax, eax
jge 0x1006597
push 0x1b
call fcn.0100645d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1011c54], eax
call fcn.010079b2
mov dword [0x1010574], eax
call fcn.01007909
test eax, eax
jge 0x10065bd
push 8
call fcn.0100645d
pop ecx
call fcn.010076af
test eax, eax
jge 0x10065ce
push 9
call fcn.0100645d
pop ecx
call fcn.01007157
mov dword [ebp - 0x28], eax
test eax, eax
je 0x10065e1
push eax
call fcn.0100645d
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.01007641
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1006603
movzx eax, word [ebp - 0x40]
jmp 0x1006606
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.01005fcd
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x1006627
push esi
call fcn.01007237
call fcn.0100726f
jmp 0x1006659
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call fcn.01007d47
ret
Function at 0x100729e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x100e088]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x100e220]
je 0x10072c8
inc eax
cmp eax, 0x12
jb 0x10072b9
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x100e220]
mov dword [ebp - 0x110], esi
jne 0x1007473
mov eax, dword [0x101057c]
cmp eax, 1
je 0x1007441
test eax, eax
jne 0x10072fe
cmp dword [0x100e090], 1
je 0x1007441
cmp ecx, 0xfc
je 0x1007473
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 0x1007339
push 5
pop ecx
mov esi, 0x1002354
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 0x1007344
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x100737c
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100735c
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1002350
push ebx
call fcn.01009110
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1007381
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x100e224]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100739b
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01007e70
mov edx, esp
push 6
pop ecx
mov esi, 0x1002334
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 0x10073c7
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10073d3
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 0x10073ec
mov eax, dword [ebp - 0x110]
mov esi, 0x1002330
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x100e224]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100740a
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1007416
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1002308
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01009dff
add esp, 0xc
jmp 0x1007473
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1007473
mov esi, dword [esi + 0x100e224]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x1007458
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.01006345
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10079b2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10106f0]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x10079fe
call esi
mov edi, eax
cmp edi, ebx
je 0x10079e4
mov dword [0x10106f0], 1
jmp 0x1007a03
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x10079f9
push 2
pop eax
mov dword [0x10106f0], eax
jmp 0x10079fe
mov eax, dword [0x10106f0]
cmp eax, 1
jne 0x1007a7b
cmp edi, ebx
jne 0x1007a0f
call esi
mov edi, eax
cmp edi, ebx
je 0x1007a84
cmp word [edi], bx
mov eax, edi
je 0x1007a24
inc eax
inc eax
cmp word [eax], bx
jne 0x1007a16
inc eax
inc eax
cmp word [eax], bx
jne 0x1007a16
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 0x1007a72
push eax
call fcn.010080ad
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x1007a72
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 0x1007a6f
push dword [ebp - 4]
call fcn.01007fe8
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1007ad3
cmp eax, 2
je 0x1007a88
cmp eax, ebx
je 0x1007a88
xor eax, eax
jmp 0x1007ad5
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x1007a84
cmp byte [esi], bl
je 0x1007aa5
inc eax
cmp byte [eax], bl
jne 0x1007a9b
inc eax
cmp byte [eax], bl
jne 0x1007a9b
sub eax, esi
inc eax
mov edi, eax
push edi
call fcn.010080ad
cmp eax, ebx
pop ecx
je 0x1007acc
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 0x1009dff
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 [0x101076c], ebx
push esi
push edi
jne 0x1009e81
push 0x1003630
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1009ebc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1003624
push edi
call esi
test eax, eax
mov dword [0x101076c], eax
je 0x1009ebc
push 0x1003614
push edi
call esi
push 0x1003600
push edi
mov dword [0x1010770], eax
call esi
cmp dword [0x1010598], 2
mov dword [0x1010774], eax
jne 0x1009e81
push 0x10035e4
push edi
call esi
test eax, eax
mov dword [0x101077c], eax
je 0x1009e81
push 0x10035cc
push edi
call esi
mov dword [0x1010778], eax
mov eax, dword [0x1010778]
test eax, eax
je 0x1009ec6
call eax
test eax, eax
je 0x1009ead
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x101077c]
test eax, eax
je 0x1009ead
test byte [ebp - 8], 1
jne 0x1009ec6
cmp dword [0x10105a4], 4
jb 0x1009ec0
or byte [ebp + 0x12], 0x20
jmp 0x1009ee5
xor eax, eax
jmp 0x1009ef5
or byte [ebp + 0x12], 4
jmp 0x1009ee5
mov eax, dword [0x1010770]
test eax, eax
je 0x1009ee5
call eax
mov ebx, eax
test ebx, ebx
je 0x1009ee5
mov eax, dword [0x1010774]
test eax, eax
je 0x1009ee5
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x101076c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100acf2
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 0x100ad23
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 0x100ad2a
cmp ebx, dword [ebp + 8]
jae 0x100ad2a
xor eax, eax
jmp 0x100af1a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x100ad3b
xor eax, eax
inc eax
jmp 0x100af19
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x100ad51
cmp ecx, edx
jae 0x100ae96
cmp dword [eax + 4], 0
je 0x100ad5a
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x100ad42
cmp dword [ebp + 8], 0
je 0x100ad7c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x100ae96
cmp eax, esi
jae 0x100ae96
mov eax, dword [0x1010788]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x100ada1
cmp dword [esi*4 + 0x1010790], edi
je 0x100ae9a
inc esi
cmp esi, eax
jl 0x100ad8f
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100af16
cmp dword [ebp - 8], 0x1000000
jne 0x100af16
test byte [ebp - 0xc], 0xcc
je 0x100ae1f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x100af16
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100af16
cmp word [eax + 0x18], 0x10b
jne 0x100af16
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x100af16
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x100ae1f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x100ae1f
test byte [ecx + 0x27], 0x80
jne 0x100ae96
push 1
push 0x10107d0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x100ad33
mov ecx, dword [0x1010788]
test ecx, ecx
mov edx, ecx
jle 0x100ae53
lea eax, [ecx*4 + 0x101078c]
cmp dword [eax], edi
je 0x100ae53
dec edx
sub eax, 4
test edx, edx
jg 0x100ae47
test edx, edx
jne 0x100ae84
push 0xf
pop ebx
cmp ecx, ebx
jg 0x100ae60
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x100ae78
lea eax, [edx*4 + 0x1010790]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x100ae66
cmp ecx, 0x10
jge 0x100ae84
inc ecx
mov dword [0x1010788], ecx
push 0
push 0x10107d0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x100ad33
xor eax, eax
jmp 0x100af19
test esi, esi
jle 0x100ad33
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x10107d0
call ebx
test eax, eax
jne 0x100ad33
cmp dword [esi*4 + 0x1010790], edi
je 0x100aef0
mov eax, dword [0x1010788]
lea esi, [eax - 1]
test esi, esi
jl 0x100aede
cmp dword [esi*4 + 0x1010790], edi
je 0x100aeda
dec esi
jns 0x100aece
test esi, esi
jge 0x100aeee
cmp eax, 0x10
jge 0x100aee9
inc eax
mov dword [0x1010788], eax
lea esi, [eax - 1]
jmp 0x100aef0
je 0x100af08
xor ecx, ecx
test esi, esi
jl 0x100af08
lea eax, [ecx*4 + 0x1010790]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x100aef6
push 0
push 0x10107d0
call ebx
jmp 0x100ad33
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100af23
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 [0x1011b2c]
mov eax, dword [0x100e088]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], edi
jae 0x100b109
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x1011b40]
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 0x100b109
and dword [ebp - 0x414], 0
and dword [ebp - 0x420], 0
cmp dword [ebp + 0x10], 0
jne 0x100af94
xor eax, eax
jmp 0x100b11d
test al, 0x20
je 0x100afa7
push 2
push 0
push 0
push ecx
call fcn.0100bda0
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x100b067
and dword [ebp - 0x40c], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x410], edi
jbe 0x100b0e3
mov ecx, dword [ebp - 0x410]
xor edi, edi
sub ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x100b016
mov edx, dword [ebp - 0x410]
inc dword [ebp - 0x410]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x100b004
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 0x100afe0
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 0x100b095
mov eax, dword [ebp - 0x418]
add dword [ebp - 0x414], eax
cmp eax, edi
jl 0x100b0a1
mov eax, dword [ebp - 0x410]
sub eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0x10]
jb 0x100afcc
jmp 0x100b0a1
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 0x100b095
mov eax, dword [ebp - 0x418]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x414], eax
jmp 0x100b0a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x100b101
cmp dword [ebp - 0x40c], eax
je 0x100b0dd
push 5
pop eax
cmp dword [ebp - 0x40c], eax
jne 0x100b0cf
mov dword [0x101058c], 9
mov dword [0x1010590], eax
jmp 0x100b11a
push dword [ebp - 0x40c]
call fcn.0100bc6a
pop ecx
jmp 0x100b11a
mov edi, dword [ebp - 0x41c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x100b0f5
cmp byte [edi], 0x1a
je 0x100af8d
mov dword [0x101058c], 0x1c
jmp 0x100b113
sub eax, dword [ebp - 0x420]
jmp 0x100b11d
mov dword [0x101058c], 9
and dword [0x1010590], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01006345
leave
ret