joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411482
Capabilities:
Set thread local storage value
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
mov word [ebp - 0x24], 0x16
movzx ecx, word [ebp - 0x24]
test ecx, ecx
je 0x4114e4
push 0
call dword [sym.imp.USER32.dll_IsWindowUnicode]
mov edx, dword [ebp - 0x10]
push edx
call fcn.0041129d
add esp, 4
call fcn.0041136c
mov eax, dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x28]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x96
call fcn.00411549
add esp, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov byte [ecx], 0
cmp dword [ebp - 8], 0
je 0x41152a
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.00411544
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4115a0
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x416120
call fcn.004125bc
mov edi, 0x94
mov eax, edi
call fcn.00412610
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 [0x450e64], ecx
mov eax, dword [esi + 4]
mov dword [0x450e70], eax
mov edx, dword [esi + 8]
mov dword [0x450e74], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x450e68], esi
cmp ecx, 2
je 0x411600
or esi, 0x8000
mov dword [0x450e68], esi
shl eax, 8
add eax, edx
mov dword [0x450e6c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41163b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41163b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x411653
cmp eax, 0x20b
je 0x411640
mov dword [ebp - 0x1c], esi
jmp 0x411667
cmp dword [ecx + 0x84], 0xe
jbe 0x41163b
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x411661
cmp dword [ecx + 0x74], 0xe
jbe 0x41163b
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00412568
pop ecx
test eax, eax
jne 0x41167b
push 0x1c
call fcn.0041157c
pop ecx
call fcn.004124df
test eax, eax
jne 0x41168c
push 0x10
call fcn.0041157c
pop ecx
call fcn.004123c8
mov dword [ebp - 4], esi
call fcn.004121ca
test eax, eax
jge 0x4116a5
push 0x1b
call fcn.00411557
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x451634], eax
call fcn.004120a8
mov dword [0x450e54], eax
call fcn.00412006
test eax, eax
jge 0x4116cb
push 8
call fcn.00411557
pop ecx
call fcn.00411dd3
test eax, eax
jge 0x4116dc
push 9
call fcn.00411557
pop ecx
call fcn.004118de
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4116ef
push eax
call fcn.00411557
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00411d6a
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x411710
movzx eax, word [ebp - 0x34]
jmp 0x411713
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00411482
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x411731
push edi
call fcn.00411a16
call fcn.00411a38
jmp 0x411763
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004125f7
ret
Function at 0x4133e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x451118], ebx
push esi
push edi
jne 0x413460
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41349b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x451118], eax
je 0x41349b
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x45111c], eax
call esi
cmp dword [0x450e64], 2
mov dword [0x451120], eax
jne 0x413460
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x451128], eax
je 0x413460
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x451124], eax
mov eax, dword [0x451124]
test eax, eax
je 0x4134a5
call eax
test eax, eax
je 0x41348c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x451128]
test eax, eax
je 0x41348c
test byte [ebp - 8], 1
jne 0x4134a5
cmp dword [0x450e70], 4
jb 0x41349f
or byte [ebp + 0x12], 0x20
jmp 0x4134c4
xor eax, eax
jmp 0x4134d4
or byte [ebp + 0x12], 4
jmp 0x4134c4
mov eax, dword [0x45111c]
test eax, eax
je 0x4134c4
call eax
mov ebx, eax
test ebx, ebx
je 0x4134c4
mov eax, dword [0x451120]
test eax, eax
je 0x4134c4
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x451118]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x415936
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00412610
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4159cb
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x450e64]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4159cb
cmp eax, 1
je 0x4159e3
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4159cb
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4159a0
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4159c7
xor eax, eax
inc eax
jmp 0x4159ff
cmp esi, ebx
jae 0x4159cf
xor eax, eax
jmp 0x4159ff
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x450e64]
jmp 0x4159e5
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
or esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
push edx
pop edi
rep stosb byte es:[edi], al
pop edi
push edx
pop eax
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
push esi
pop eax
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
push esi
pop eax
sub eax, edi
push eax
pop esi
or eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4487e0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
mov edi, ecx
call dword [sym.imp.PAL.dll_PalTaskGetTaskData]
push dword [eax + 0x2578]
mov ecx, dword [eax + 0x25a8]
push dword [eax + 0x2574]
lea esi, [eax + 0x338]
add ecx, 0x1024
push ecx
call fcn.0047a5c0
push 0x1000
lea eax, [esi + 0x2288]
push eax
mov eax, dword [esi + 0x2270]
add eax, 8
push eax
call fcn.0047a5c0
add esp, 0x1c
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44886f
push edi
push str.save_error___s_
push 0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push dword [esi + 0x2274]
push dword [esi + 0x2270]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x2274]
je 0x4488bd
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x40030
push 0x4d60e0
push 0x4c2ce8
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45ceb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4d3008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
mov esi, edx
mov edi, ecx
call dword [sym.imp.PAL.dll_PalTaskGetTaskData]
add esp, 4
cmp dword [eax + 0x330], 0
je 0x45cf3f
sub esi, 0
je 0x45cf4f
sub esi, 1
jne 0x45cf3f
push ebx
push edi
lea eax, [ebp - 0x24]
push str._s.mix
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.PAL.dll_PalFileCreate]
mov ebx, eax
add esp, 0x14
cmp ebx, 0xffffffff
je 0x45cf3e
xor edi, edi
nop
push 0
lea eax, [ebp - 0x34]
push eax
push 0x20
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x34], 0x20
jne 0x45cf37
add esi, 0x20
cmp esi, dword [ebp - 0x28]
jae 0x45cf37
inc edi
cmp edi, 8
jl 0x45cf10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047044a
mov esp, ebp
pop ebp
ret
push edi
push str.voice_file_read_:__s
push 0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
call fcn.0047044a
mov esp, ebp
pop ebp
ret
Function at 0x463b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
push 0xa
push ecx
push esi
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x463c0e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x463c0e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 0x104
ja 0x463c0e
push 0x104
push 0
push dword [ebp - 4]
call fcn.00472500
add esp, 0xc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0047a5c0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4016f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0
push eax
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Best_Application
push str.Clariot
push 0
mov dword [0x405101], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x401737
pop esi
pop ebp
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
pop ebp
ret

Function at 0x401f47
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x405364]
test eax, eax
je 0x401f60
call eax
test eax, eax
jne 0x401f60
push 0xfffffffffffffffe
jmp 0x401f7a
push 1
push 0x405010
push 0x405008
call fcn.00401b41
add esp, 0xc
test eax, eax
je 0x401f80
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push 0
push 0x405004
push section..data
call fcn.00401b41
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
jne 0x401fa6
mov esi, 0x404c1e
mov cl, 0x20
jmp 0x401faf
cmp al, 0x20
ja 0x401fb9
inc esi
mov al, byte [esi]
test al, al
jne 0x401faa
cmp al, 0x20
jbe 0x401fd0
mov al, byte [esi]
cmp al, 0x22
jne 0x401fc2
xor cl, 0x20
inc esi
mov al, byte [esi]
cmp al, cl
ja 0x401fbb
jmp 0x401fd0
cmp al, cl
ja 0x401fd6
inc esi
mov al, byte [esi]
test al, al
jne 0x401fcb
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test eax, 0xa0d0a0d
sub eax, 0x54524357
sub eax, 0xa0d0a0d
test byte [ebp - 0x18], 1
je 0x401fff
movzx eax, word [ebp - 0x14]
jmp 0x402002
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00402037
pop ecx
pop esi
leave
ret

Function at 0x402037
Capabilities:
Terminate process

Disassembly:
call fcn.00402081
push 0
push 0x405018
push 0x405014
call fcn.00401b41
push 0
push 0x405020
push 0x40501c
call fcn.00401b41
add esp, 0x18
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
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 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], 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 0x1000585e
Capabilities:
Check if file exists

Disassembly:
push 0x21c
mov eax, 0x1000f326
call fcn.1000f060
mov eax, dword [ebp + 8]
xor edi, edi
push ecx
push ecx
push ecx
mov edx, 0x104
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x218]
mov dword [eax], edi
mov dword [eax + 4], edi
call fcn.1000391e
push 0x10001bb8
lea ecx, [ebp - 0x218]
call fcn.10003874
lea eax, [ebp - 0x218]
push eax
push edi
push 0x1f0003
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov esi, eax
mov dword [ebp - 0x220], esi
test esi, esi
mov dword [ebp - 4], edi
setne byte [ebp - 0x219]
test esi, esi
jne 0x100058e8
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x1000592c
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.10004b87
mov edi, eax
jmp 0x10005912
lea edx, [ebp - 0x224]
mov dword [ebp - 0x224], edi
mov ecx, esi
call fcn.10005744
mov ebx, eax
test ebx, ebx
jns 0x1000591a
push ebx
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xcf
call fcn.10004b6a
mov edi, ebx
mov esi, dword [ebp - 0x220]
jmp 0x1000592c
mov ecx, dword [ebp - 0x228]
mov eax, dword [ebp - 0x224]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x219], 0
je 0x10005946
push esi
mov dword [ebp - 4], 0xa
call fcn.1000552a
mov eax, edi
call fcn.1000f00f
ret 8
Function at 0x10006986
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x10]
test esi, esi
je 0x10006b4a
mov ax, word [edi + 2]
xor ecx, ecx
mov word [ebp - 0x20], ax
add esi, 0xa
mov al, byte [edi + 4]
mov bh, cl
mov byte [ebp - 0x1e], al
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov word [ebp - 0x18], ax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov byte [ebp - 1], bh
jmp 0x100069f3
push dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push dword [ebp + 8]
call fcn.1000617c
test eax, eax
js 0x10006ad0
lea eax, [ebp - 0x20]
mov ecx, edi
je 0x10006aa7
push dword [ebp - 8]
push eax
call fcn.100068f1
mov esi, eax
push dword [edi + 0x14]
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea ecx, [ebp - 0x20]
call fcn.100062dd
mov bl, al
test bl, bl
jne 0x100069c7
mov esi, dword [ebp - 8]
mov dword [edi + 0x14], esi
xor edx, edx
test bh, bh
jne 0x10006a38
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
and dword [ebp - 0x14], edx
mov word [ebp - 0x18], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], eax
call fcn.100061ef
mov edx, eax
mov ax, word [edi + 6]
lea ecx, [ebp - 0x34]
and dword [ebp - 0x28], 0
mov word [ebp - 0x34], ax
mov al, byte [edi + 8]
mov byte [ebp - 0x32], al
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov word [ebp - 0x2c], ax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
call fcn.100061ef
mov ebx, dword [edi + 0x18]
add eax, edx
mov dword [ebp - 0xc], eax
mov edx, ebx
mov eax, dword [edi + 0x14]
sub edx, eax
cmp eax, ebx
sbb ecx, ecx
and ecx, edx
mov edx, dword [ebp - 0xc]
cmp ecx, edx
jb 0x10006b4a
sub ebx, edx
lea ecx, [edx + esi]
sub ebx, esi
sub eax, esi
je 0x10006b01
test ecx, ecx
jne 0x10006ae0
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
mov dword [eax], 0x16
call sub.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo
jmp 0x10006b01
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 8]
push eax
call fcn.100067c0
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x10006ac9
mov al, 1
jmp 0x10006b4c
mov bh, 1
mov byte [ebp - 1], bh
jmp 0x10006ad3
mov dword [ebp - 8], esi
test bl, bl
jne 0x10006a11
jmp 0x10006a0e
test esi, esi
je 0x10006a94
cmp ebx, eax
jae 0x10006af6
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
mov dword [eax], 0x22
jmp 0x10006aa0
push eax
push esi
push ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
add esp, 0xc
mov eax, dword [edi + 0x14]
add eax, dword [ebp - 0xc]
cmp byte [ebp - 1], 0
mov dword [edi + 0x14], eax
jne 0x10006b1f
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.10006219
jmp 0x10006b32
cmp byte [ebp - 0x1e], 0
je 0x10006b32
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
inc eax
push eax
call fcn.100061a9
push dword [edi + 0x14]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x34]
call fcn.10006219
mov byte [edi + 0x20], 1
jmp 0x10006ac2
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1000e3d1
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x1000e40e
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x1000e407
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x1000e413
add edx, 0x28
cmp edx, esi
jne 0x1000e3f8
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x1000e410

Function at 0x1001735a
Capabilities:
Encode data using xor

Disassembly:
call 0x100172d3
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x10017303
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x1001731f
xor edx, 0
jmp 0x1001732a
xor edx, edx
jmp 0x10017341
jmp 0x1001734d
xor eax, eax
push 0x8427d7c0
call 0x1001735a
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x10017396
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x1001736f
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x100173ad
add eax, 0
jno 0x100173b2
add esi, 0
ret 0x10