joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5075e5
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
push esi
push edi
call fcn.0050746b
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x40
xor eax, eax
cmp dword [ebp - 4], ebx
pop ecx
lea edi, [ebp - 0x158]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x158]
jne 0x507627
push 0x100
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
jmp 0x507633
push eax
push 0x100
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
xor eax, eax
cmp byte [ebp - 0x158], bl
je 0x50766b
inc eax
cmp byte [ebp + eax - 0x158], bl
jne 0x50763d
cmp eax, ebx
je 0x50766b
mov cl, byte [ebp + eax - 0x159]
cmp cl, 0x5c
je 0x50766b
cmp cl, 0x2f
je 0x50766b
mov byte [ebp + eax - 0x158], 0x5c
mov byte [ebp + eax - 0x157], bl
lea eax, [ebp - 0x158]
push 0x502b18
push eax
call esi
lea eax, [ebp - 0x158]
push 0x501830
push eax
call esi
lea eax, [ebp - 0x158]
push 0x5025ac
push eax
call esi
push ebx
push 0x80
push 2
push ebx
push 3
lea eax, [ebp - 0x158]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5076c8
inc dword [ebp - 4]
cmp dword [ebp - 4], 2
jl 0x507601
jmp 0x50772b
push edi
call fcn.0050737c
pop ecx
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x258]
push 0x502b10
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x44
lea eax, [ebp - 0x48]
pop esi
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x58]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x1c], 0x81
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
lea eax, [ebp - 0x258]
push ebx
push eax
push ebx
mov word [ebp - 0x18], bx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x10007c1f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x10007c2e
pop dword [ebp - 0x38]
mov eax, 0xb6703583
add eax, 0x599046ab
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xf4eec340
add dword [ebp - 0x48], 0x5963820b
mov dword [ebp - 0x44], 0xd81d00c9
add dword [ebp - 0x44], 0x5a164b7c
mov dword [ebp - 0x40], 0x1085d1f3
add dword [ebp - 0x40], 0x3bc6723b
mov dword [ebp - 0x3c], 0xa3dcd898
sub dword [ebp - 0x3c], 0xa3dcd898
lea eax, [ebp - 0x48]
push eax
mov eax, 0xf3fd6cf8
sub eax, 0xe3fceca4
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x9e27bfe
add dword [ebp - 0x48], 0x6a8fed58
mov dword [ebp - 0x44], 0x66c2cd42
add dword [ebp - 0x44], 0xdaa99433
mov dword [ebp - 0x40], 0x40b6ecad
add dword [ebp - 0x40], 0x22b87fbf
mov dword [ebp - 0x3c], 0xf125343c
sub dword [ebp - 0x3c], 0xf125343c
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3323e
push 0
call eax
mov ecx, 0xcd7ed59
add ecx, 0xf3284c8b
mov edi, eax
mov esi, 0x1000fa00
add esi, dword [ebp - 0x38]
mov ebx, 0xa388c7e1
add ebx, 0xacedc568
xor dword [ebp - 0x18], 0xed6f6b6c
mov edx, dword [esi]
xor dword [ebp - 0xc], edx
xor edx, ebx
xor dword [ebp - 0x1c], 0x8b8c01b
mov dword [edi], edx
sub dword [ebp - 0xc], ebx
add edi, 0xe34e7219
add edi, 0x1cb18deb
add esi, 4
loop 0x10007d45
add eax, 0x8539006c
add eax, 0x7ac7d9f7
mov ebx, eax
add eax, 0x59c0586b
add eax, 0xa63fa79a
mov ecx, 0x7f47db03
sub ecx, 0x6f47db03
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040cac0
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040cac0
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040cac0
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040cac0
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040cac0
mov dword [0x41203c], eax
call fcn.0040cac0
test eax, eax
jge 0x402550
push 8
call fcn.0040cac0
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040cac0
pop ecx
push 1
call fcn.0040cac0
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040cac0
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040cac0
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040cac0
jmp 0x402495

Function at 0x40cac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40cacf
pop dword [ebp - 0x40]
mov eax, 0x40cacf
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x3ebee
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x5e0c
xor edi, edi
add edi, eax
mov ebx, 0x89780304
add ebx, 0x76c938c0
add ebx, dword [ebp - 0x40]
mov edx, 0x590b45ac
mov esi, dword [ebx]
sub dword [ebp - 0x30], 0x5f676fea
sub esi, edx
xor dword [ebp - 0x1c], edx
mov dword [edi], esi
xor dword [ebp - 0x18], esi
add edi, 4
add ebx, 0x38b3a1d2
sub ebx, 0x38b3a1ce
loop 0x40cb1a
add eax, 0x23ea18c4
sub eax, 0x23e8adc1
mov ebx, eax
add eax, 0x2e8705f6
add eax, 0xd178fa0f
mov ecx, 0xce525df2
add ecx, 0x31eda20e
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x40d5e3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40d614
call fcn.00403737
mov dword [eax], esi
call fcn.00403724
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040cac0
add esp, 0x14
push 0x16
pop eax
jmp 0x40d669
test dword [ebp + 0xc], 0xfffffff9
jne 0x40d5f0
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40d641
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.0040cac0
pop ecx
call fcn.00403724
mov eax, dword [eax]
jmp 0x40d669
test al, 0x10
jne 0x40d667
test al, 1
je 0x40d667
test byte [ebp + 0xc], 2
je 0x40d667
call fcn.00403737
mov dword [eax], 5
call fcn.00403724
mov dword [eax], 0xd
jmp 0x40d638
xor eax, eax
pop esi
pop ebp
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40701c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x407028
push 0x407024
push 0x407020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x407028]
push dword [0x407024]
push dword [0x407020]
mov dword [0x407014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x84], 0
call fcn.004019f0
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, edi
or al, 0x40
push eax
lea eax, [0x404731]
lea edx, [fcn.00401a74]
sub eax, edx
push eax
push fcn.00401a74
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x40132d
push edi
call fcn.004018e0
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.0040192f
mov eax, edi
add eax, 0x1e200
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov esi, dword [ebp - 0x88]
mov ecx, edi
sar esi, cl
push esi
lea esi, [0x4070e4]
mov ebx, edi
dec ebx
and esi, ebx
push esi
call fcn.00401a74
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4019f0
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push edi
and dword [ebp - 0x120], 0
xor edi, edi
push 0
push 0
call sub.USER32.DLL_GetWindowLongA
push 0
push 0
call sub.USER32.DLL_GetDlgItem
push 0
push 0
push 0
push 0
call sub.USER32.DLL_GetDlgItemInt
mov dword [ebp - 0x11c], 0x14
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringW
movzx eax, word [ebp - 0x118]
mov edi, eax
sub edi, 0x41
mov eax, edi
pop edi
leave
ret
Function at 0x100032e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov cl, byte [eax]
mov byte [ebp - 2], cl
add dword [ebp - 8], 1
cmp byte [ebp - 2], 0
jne 0x10003302
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx], 0
je 0x10003348
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.1006d365
add esp, 4
mov edx, dword [ebp - 0xc]
mov dword [edx], 0
mov eax, dword [ebp - 0x24]
add eax, 1
push eax
call fcn.1006d8b7
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x14]
mov dl, byte [ecx]
mov byte [ebp - 1], dl
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp - 1]
mov byte [eax], cl
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
cmp byte [ebp - 1], 0
jne 0x10003376
mov esp, ebp
pop ebp
ret 4
Function at 0x1000d640
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x100f53b0]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x100f53b4]
mov dword [ebp - 0x14], ecx
mov edx, dword [0x100f53b8]
mov dword [ebp - 0x10], edx
mov eax, dword [0x100f53bc]
mov dword [ebp - 0xc], eax
mov cx, word [0x100f53c0]
mov word [ebp - 8], cx
xor edx, edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x58], 0x1000d770
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x38], ecx
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x100f53c4
lea ecx, [ebp - 0x18]
push ecx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000d70f
push 0x1001a000
push 0x100f53d8
push 0x100e9980
call fcn.10019ce0
add esp, 8
mov ecx, eax
call fcn.10016aa0
xor eax, eax
jmp 0x1000d766
push 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x1000d75c
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x1000d732
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1001cee0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008621e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov dword [ebp - 0x10], ecx
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x10]
call fcn.1001e310
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.1001e660
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.10002f30
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x34], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x35], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x36
call fcn.10002f30
mov ecx, dword [ebp - 0x10]
add ecx, 0x37
call fcn.1001e580
mov byte [ebp - 4], 3
push 0
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
push ecx
lea ecx, [ebp - 0x18]
call fcn.1001e360
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
call fcn.10021730
add esp, 0x10
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.1001f080
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.10022020
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10079d5c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10079bcd

Function at 0x1007af5e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100f10f8
push 0x100f10f0
push 0x100ef614
push 0x1e
call fcn.1007adcb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1007af92
push dword [ebp + 8]
mov ecx, esi
call dword [0x100edb4c]
call esi
jmp 0x1007af98
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1007afdc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100f1108
push 0x100f1100
push 0x100ef638
push 0x20
call fcn.1007adcb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1007b013
push dword [ebp + 8]
mov ecx, esi
call dword [0x100edb4c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1007b873
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1006e3d0
mov eax, dword [0x10089018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10076912
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1007b8b5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1007ba11
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100856c0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100ea218]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1007d193
mov ecx, dword [esi*4 + 0x100ea218]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1007ba0a
cmp eax, dword [edi + ecx + 0x24]
jne 0x1007ba0a
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1007ba0a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1007d193
add esp, 0x14
test edx, edx
jl 0x1007ba0a
jg 0x1007b980
test eax, eax
jb 0x1007ba0a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1007ba0a
jl 0x1007b99a
cmp dword [ebp - 0x1008], eax
ja 0x1007ba0a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1007b9b8
test ebx, ebx
je 0x1007b9f1
cmp ecx, edi
jae 0x1007b9f1
mov al, byte [ecx]
cmp al, 0xd
jne 0x1007b9d2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1007b9de
cmp byte [ecx + 1], 0xa
jne 0x1007b9de
inc ecx
jmp 0x1007b9de
movzx eax, al
movsx eax, byte [eax + 0x10089290]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1007b9b8
cmp edx, ebx
jne 0x1007b9b8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1007ba0f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1006dc46
leave
ret
Function at 0x1007c631
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100ea218]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1007c671
cmp byte [ebx], 0xa
jne 0x1007c671
or byte [eax + edi + 0x28], 4
jmp 0x1007c676
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1007c774
mov al, byte [edx]
cmp al, 0x1a
je 0x1007c756
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1007c6a5
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1007c6ca
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1007c6d4
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x1007c687
jmp 0x1007c774
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1007c751
cmp dword [ebp - 0xc], 0
je 0x1007c751
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100ea218]
test byte [eax + edi + 0x28], 0x48
je 0x1007c72b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1007c716
mov byte [esi], dl
jmp 0x1007c727
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100ea218]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1007c774
cmp byte [ebp - 1], 0xa
jne 0x1007c73a
cmp esi, ebx
jne 0x1007c73a
mov byte [esi], 0xa
jmp 0x1007c773
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1007d1b1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1007c774
mov byte [esi], 0xd
jmp 0x1007c773
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100ea218]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1007c770
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1007c774
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1007c77d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x100ea218]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1007c7c0
cmp word [esi], dx
jne 0x1007c7c0
or byte [edi + eax + 0x28], 4
jmp 0x1007c7c5
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x1007c918
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x1007c8f8
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1007c807
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1007c83d
cmp eax, edx
jae 0x1007c849
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x1007c7df
jmp 0x1007c918
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1007c8f4
cmp dword [ebp - 0x14], 0
je 0x1007c8f4
mov eax, dword [ebx*4 + 0x100ea218]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1007c8cc
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x1007c895
mov word [esi], cx
jmp 0x1007c8c8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100ea218]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x100ea218]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100ea218]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x1007c918
pop ebx
cmp word [ebp - 4], bx
jne 0x1007c8dd
cmp esi, dword [ebp + 0xc]
jne 0x1007c8dd
mov word [esi], bx
jmp 0x1007c915
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1007d1b1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1007c918
push 0xd
jmp 0x1007c911
mov ecx, dword [ebx*4 + 0x100ea218]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1007c90f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1007c918
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1007f636
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1007f6d3
push ebx
push esi
call fcn.1007f5ff
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1007994b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1007f680
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1007f6d2
push edi
push eax
call fcn.100798fd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1007f6a0
call fcn.10079674
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1007f6d1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1007994b
add esp, 0x20
test eax, eax
jne 0x1007f6bf
push edi
call fcn.10079674
jmp 0x1007f6c7
push ebx
call fcn.10079674
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10085630
Capabilities:
Parse pe header

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