joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002770
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10010048
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x10015180]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
xor ebp, ebp
cmp edi, ebp
mov dword [esp + 0x3c], eax
mov esi, ecx
je 0x1000290d
mov ebx, dword [esp + 0x54]
cmp ebx, ebp
je 0x1000290d
push edi
mov dword [ebx], ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
shl eax, 1
cmp eax, 0x64
jge 0x100027c6
mov eax, 0x3e8
push eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x100027e0
mov byte [eax], 0
cmp eax, ebp
mov dword [esp + 0x48], ebp
jne 0x100027f9
push ebp
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, 0x8007000e
jmp 0x10002912
mov dword [esi], edi
cmp byte [edi], 0
mov dword [esp + 0x50], ebp
je 0x10002853
mov ebp, dword [sym.imp.USER32.dll_CharNextA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edi, dword [esi]
cmp byte [edi], 0x25
push edi
jne 0x10002824
call ebp
mov edi, eax
mov dword [esi], edi
cmp byte [edi], 0x25
jne 0x1000286b
push edi
call ebp
sub eax, edi
push eax
lea ecx, [esp + 0x14]
push edi
call fcn.100014d0
test eax, eax
je 0x100028f4
mov eax, dword [esi]
push eax
call ebp
mov ecx, eax
mov dword [esi], eax
cmp byte [ecx], 0
jne 0x10002810
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x18]
xor ebp, ebp
mov edx, ebp
push edx
mov dword [esp + 0x1c], ebp
mov dword [ebx], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x50]
jmp 0x10002912
push 0x25
push edi
call fcn.10001670
mov edi, eax
add esp, 8
test edi, edi
je 0x100028db
mov ecx, dword [esi]
sub eax, ecx
cmp eax, 0x1f
jg 0x100028c2
inc eax
push eax
push ecx
lea eax, [esp + 0x24]
push eax
call ebx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 4]
call fcn.10002730
test eax, eax
je 0x100028db
push eax
lea ecx, [esp + 0x14]
call fcn.100025d0
test eax, eax
je 0x100028f4
cmp dword [esi], edi
je 0x1000283b
mov edx, dword [esi]
push edx
call ebp
cmp eax, edi
mov dword [esi], eax
jne 0x100028b2
jmp 0x1000283b
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x54], 0x80004005
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x50]
jmp 0x10002912
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x54], 0x80020009
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x50]
jmp 0x10002912
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x54], 0x8007000e
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x50]
jmp 0x10002912
mov eax, 0x80004003
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x30]
pop ebx
call fcn.100076be
add esp, 0x3c
ret 8
Function at 0x100056f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
mov eax, dword [0x10015180]
push ebx
push esi
xor ebx, ebx
push 0x100116d8
mov dword [esp + 0x118], eax
mov dword [esp + 0x10], ebx
mov byte [esp + 0x14], bl
mov byte [esp + 0xf], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x1000575b
push 0x100116c4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1000574e
mov edx, dword [esp + 0x120]
lea ecx, [esp + 0x10]
push ecx
push ebx
push ebx
push edx
push ebx
call eax
test eax, eax
jl 0x1000574e
mov byte [esp + 0xb], 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [esp + 0xb], bl
jne 0x1000576b
push 0x104
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [esp + 0x11c]
lea eax, [esp + 0x10]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10005786
sub eax, edx
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.100040e0
mov ecx, dword [esp + 0x114]
mov eax, esi
pop esi
pop ebx
call fcn.100076be
add esp, 0x110
ret
Function at 0x100057c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x1001028e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
mov eax, dword [0x10015180]
push ebx
mov dword [esp + 0xac], eax
push esi
xor eax, eax
push edi
mov ecx, 0x11
lea edi, [esp + 0x54]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
xor ebx, ebx
mov dword [esp + 0x14], eax
mov esi, 0xf
mov dword [esp + 0x54], 0x44
mov dword [esp + 0x18], eax
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
lea ecx, [esp + 0x38]
push 0x25
push ecx
mov dword [esp + 0xc8], ebx
call fcn.100056f0
push 0x100116fc
push eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0xd4], 1
call fcn.10005640
add esp, 0x14
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0xcc], 2
call fcn.10003df0
mov eax, dword [esp + 0x34]
mov edi, 0x10
cmp eax, edi
jb 0x1000588b
mov eax, dword [esp + 0x20]
push eax
call fcn.10007ec1
add esp, 4
cmp dword [esp + 0x50], edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
mov byte [esp + 0xc0], bl
jb 0x100058b1
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.10007ec1
add esp, 4
cmp byte [esp + 0xcc], bl
lea ecx, [esp + 0x98]
je 0x100058ca
push 5
push 0x100116f4
jmp 0x100058d1
push 8
push 0x100116e8
call fcn.10003fd0
mov edx, dword [esp + 0xc8]
push 0xffffffffffffffff
push ebx
push edx
lea ecx, [esp + 0xa4]
call fcn.10003ee0
push 1
push 0x100116e4
lea ecx, [esp + 0xa0]
call fcn.10003fd0
cmp dword [esp + 0xb0], edi
mov eax, dword [esp + 0x9c]
jae 0x10005917
lea eax, [esp + 0x9c]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x58]
push edx
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esp + 0xc]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
cmp dword [esp + 0xb0], edi
pop edi
pop esi
pop ebx
jb 0x10005973
mov eax, dword [esp + 0x90]
push eax
call fcn.10007ec1
add esp, 4
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xa8]
call fcn.100076be
add esp, 0xb8
ret
Function at 0x10006dfa
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x10015180]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.10006dca
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.10008670
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x10006e5c
cmp dword [ebp - 0x1c], 5
jb 0x10006e74
jmp 0x10006e70
cmp dword [ebp - 0x10], 1
jne 0x10006e74
cmp dword [ebp - 0x1c], 4
ja 0x10006e70
jne 0x10006e74
cmp dword [ebp - 0x18], 0
jbe 0x10006e74
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x100119ec
call fcn.10001280
test eax, eax
jge 0x10006e95
mov byte [0x10015d34], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.100076be
add ebp, 0x78
leave
ret

Function at 0x10007363
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.10007650
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100073fe
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x10015f98]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x100073fe
cmp eax, 1
je 0x1000741f
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100073fe
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x100073cb
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x100073fa
xor eax, eax
inc eax
jmp 0x1000743e
cmp edi, eax
jae 0x10007402
xor eax, eax
jmp 0x1000743e
cmp eax, esi
jae 0x10007409
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10015f98]
jmp 0x10007422
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100083d4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x100084c4
mov eax, 0x94
call fcn.10007650
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10008539
mov ecx, dword [esi + 0x10]
mov dword [0x10015f98], ecx
mov eax, dword [esi + 4]
mov dword [0x10015fa4], eax
mov edx, dword [esi + 8]
mov dword [0x10015fa8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x10015f9c], esi
je 0x1000843f
or esi, 0x8000
mov dword [0x10015f9c], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x10015fa0], eax
call fcn.100099c0
test eax, eax
pop ecx
je 0x10008539
call fcn.10009733
test eax, eax
jne 0x1000846c
call fcn.10009a11
jmp 0x10008539
call fcn.1000d511
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10017680], eax
call fcn.1000d3ef
mov dword [0x10015e10], eax
call fcn.1000ced0
test eax, eax
jl 0x100084bd
call fcn.1000d34d
test eax, eax
jl 0x100084b8
call fcn.1000d11a
test eax, eax
jl 0x100084b8
push 0
call fcn.1000a60d
test eax, eax
pop ecx
jne 0x100084b8
inc dword [0x10015e0c]
jmp 0x1000854a
call fcn.1000d0ce
call fcn.1000951c
jmp 0x10008462
test eax, eax
jne 0x100084f4
cmp dword [0x10015e0c], eax
jle 0x10008539
dec dword [0x10015e0c]
cmp dword [0x10015fd4], eax
jne 0x100084e3
call fcn.1000a74b
call fcn.1000d0ce
call fcn.1000951c
call fcn.10009a11
jmp 0x1000854a
cmp eax, 2
jne 0x1000853d
push 0x8c
push 1
call fcn.1000ce15
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10008539
push esi
push dword [0x100152a8]
call dword [fcn.10015e34]
test eax, eax
push esi
je 0x10008533
call fcn.10009539
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1000854a
call fcn.100072f2
pop ecx
xor eax, eax
jmp 0x1000854d
cmp eax, 3
jne 0x1000854a
push 0
call fcn.10009704
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x1000a677
Capabilities:
Terminate process

Disassembly:
push 8
push 0x10011c18
call fcn.100086d0
push 8
call fcn.10009975
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x10015fd8], esi
jne 0x1000a6ab
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x10015fd4], esi
mov al, byte [ebp + 0x10]
mov byte [0x10015fd0], al
cmp dword [ebp + 0xc], edi
jne 0x1000a6f5
cmp dword [0x10017408], edi
je 0x1000a6e5
mov eax, dword [0x10017404]
sub eax, 4
mov dword [0x10017404], eax
cmp eax, dword [0x10017408]
jb 0x1000a6e5
mov eax, dword [eax]
cmp eax, edi
je 0x1000a6c6
call eax
jmp 0x1000a6c6
push 0x10015038
mov eax, 0x10015030
call fcn.1000a5f5
pop ecx
push 0x10015044
mov eax, 0x1001503c
call fcn.1000a5f5
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x1000a726
cmp dword [ebp + 0x10], edi
jne 0x1000a734
mov dword [0x10015fd8], esi
push dword [ebp + 8]
call fcn.1000a5b3
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x1000a733
push 8
call fcn.100098c0
pop ecx
ret
call fcn.1000870b
ret
Function at 0x1000d718
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x10015180]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x100154a8]
je 0x1000d74d
inc eax
cmp eax, 0x13
jb 0x1000d73e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x100154a8]
jne 0x1000d873
mov eax, dword [0x10015e18]
cmp eax, 1
je 0x1000d84b
cmp eax, edx
jne 0x1000d77d
cmp dword [0x10015e1c], 1
je 0x1000d84b
cmp ecx, 0xfc
je 0x1000d873
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000d7b3
lea eax, [ebp - 0x80]
push 0x10011c60
push eax
call fcn.1000d8d0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.10008740
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000d7e7
mov eax, edi
push eax
call fcn.10008740
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x10011c5c
push edi
call fcn.1000e180
add esp, 0x10
push edi
call fcn.10008740
push dword [esi + 0x100154ac]
mov ebx, eax
call fcn.10008740
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10007650
mov ebx, esp
push 0x100122f8
push ebx
call fcn.1000d8d0
push edi
push ebx
call fcn.1000d8e0
push 0x10011c58
push ebx
call fcn.1000d8e0
push dword [esi + 0x100154ac]
push ebx
call fcn.1000d8e0
push 0x12010
push 0x10011c24
push ebx
call fcn.1000e07a
add esp, 0x2c
jmp 0x1000d873
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x100154ac]
push dword [esi]
call fcn.10008740
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.100076be
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x1000e07a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1001617c], ebx
push esi
push edi
jne 0x1000e0fa
push 0x10012560
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1000e135
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10012554
push edi
call esi
test eax, eax
mov dword [0x1001617c], eax
je 0x1000e135
push 0x10012544
push edi
call esi
push 0x10012530
push edi
mov dword [0x10016180], eax
call esi
cmp dword [0x10015f98], 2
mov dword [0x10016184], eax
jne 0x1000e0fa
push 0x10012514
push edi
call esi
test eax, eax
mov dword [0x1001618c], eax
je 0x1000e0fa
push 0x100124fc
push edi
call esi
mov dword [0x10016188], eax
mov eax, dword [0x10016188]
test eax, eax
je 0x1000e13f
call eax
test eax, eax
je 0x1000e126
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1001618c]
test eax, eax
je 0x1000e126
test byte [ebp - 8], 1
jne 0x1000e13f
cmp dword [0x10015fa4], 4
jb 0x1000e139
or byte [ebp + 0x12], 0x20
jmp 0x1000e15e
xor eax, eax
jmp 0x1000e16e
or byte [ebp + 0x12], 4
jmp 0x1000e15e
mov eax, dword [0x10016180]
test eax, eax
je 0x1000e15e
call eax
mov ebx, eax
test ebx, ebx
je 0x1000e15e
mov eax, dword [0x10016184]
test eax, eax
je 0x1000e15e
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1001617c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000e753
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x10015180]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x1000e784
xor eax, eax
jmp 0x1000e90d
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x10017300]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1000e7c0
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.1000f7df
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1000e89b
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x1000e8d9
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x1000e824
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1000e815
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x1000e7f5
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000e864
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x1000e86d
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x1000e7e6
jmp 0x1000e86f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x1000e908
cmp dword [ebp - 0x6c], edi
je 0x1000e8d9
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x1000e8ce
call fcn.1000dff5
mov dword [eax], 9
call fcn.1000dffe
mov dword [eax], esi
jmp 0x1000e903
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000e8c3
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x1000e86f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x1000e86f
push dword [ebp - 0x6c]
call fcn.1000e007
pop ecx
jmp 0x1000e903
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1000e8f1
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x1000e8f1
xor eax, eax
jmp 0x1000e90b
call fcn.1000dff5
mov dword [eax], 0x1c
call fcn.1000dffe
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x1000e90b
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.100076be
add ebp, 0x3a0
leave
ret
Function at 0x1000f3ce
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x1000f5a2
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x10017300]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x1000f5a2
test cl, 0x48
je 0x1000f439
cmp byte [eax + 5], 0xa
je 0x1000f439
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000f48b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x1000f473
call fcn.1000dff5
mov dword [eax], 9
call fcn.1000dffe
mov dword [eax], esi
jmp 0x1000f483
cmp eax, 0x6d
je 0x1000f5a2
push eax
call fcn.1000e007
pop ecx
or eax, 0xffffffff
jmp 0x1000f5a4
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x1000f59d
test eax, eax
je 0x1000f4b2
cmp byte [ebx], 0xa
jne 0x1000f4b2
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x1000f4bb
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x1000f597
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x1000f587
cmp al, 0xd
je 0x1000f4ed
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x1000f579
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x1000f507
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x1000f502
add dword [ebp + 0x10], 2
jmp 0x1000f55b
mov dword [ebp + 0x10], eax
jmp 0x1000f575
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000f52f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1000f575
cmp dword [ebp - 0xc], 0
je 0x1000f575
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x1000f550
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x1000f55b
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x1000f578
cmp ebx, dword [ebp + 0xc]
jne 0x1000f560
cmp byte [ebp - 1], 0xa
jne 0x1000f560
mov byte [ebx], 0xa
jmp 0x1000f578
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1000e634
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x1000f579
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x1000f4d1
jmp 0x1000f597
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x1000f597
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x1000f5a4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405b00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405b15
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405b54
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x405b50
lea ebx, [ebx]
cmp esi, edx
jae 0x405b54
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x405b40
cmp esi, edx
jb 0x405b59
xor eax, eax
pop esi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret