joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401992
Capabilities:
Check if file exists
Terminate process
Write file on windows

Disassembly:
push ebx
push pe_nt_image_headers32
push 2
push ebx
push ebx
push 0x40000000
push 0x403fa2
call dword [sym.imp.kernel32.dll_CreateFileA]
inc eax
jne 0x4019bc
push 0x10
push ebx
push str.Cannot_create_mtldr_file_
jmp 0x401055
dec eax
xchg esi, eax
push ebx
push 0x4062b8
push 0xcf0
push 0x4030ae
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
push 0x403ea2
push 0x403ea2
call dword [sym.imp.user32.dll_CharToOemA]
mov edi, 0x403ea5
push edi
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
push eax
push ebx
push 0x4062b8
push eax
push edi
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
pop ecx
ret

Function at 0x401a20
Capabilities:
Check if file exists
Get disk information via ioctl
Get file attributes
Terminate process

Disassembly:
cmp dword [0x402b80], 0
jne 0x401a82
push str.advapi32.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [0x402b80], eax
mov esi, eax
test esi, esi
je 0x401ad4
push str.OpenProcessToken
push esi
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x4062ac], eax
test eax, eax
je 0x401ad4
push str.LookupPrivilegeValueA
push esi
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x4062b0], eax
test eax, eax
je 0x401ad4
push str.AdjustTokenPrivileges
push esi
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x4062b4], eax
test eax, eax
je 0x401ad4
push ebx
push esp
push 0x28
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [0x4062ac]
test eax, eax
pop esi
je 0x401ad4
push 2
push ebx
push ebx
mov eax, esp
push 1
push eax
push edi
push ebx
call dword [0x4062b0]
test eax, eax
je 0x401aca
mov eax, esp
push ebx
push ebx
push ebx
push eax
push ebx
push esi
call dword [0x4062b4]
test eax, eax
je 0x401aca
add esp, 0x10
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
ret
add esp, 0x10
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x10
push ebx
push str.Cannot_adjust_backup_and_restore_privileges
jmp 0x401055
Function at 0x401f70
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x401fd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x405050]
test esi, esi
jle 0x4020bd
mov edi, dword [0x405054]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x402004
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x4020b6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x401ff0
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x4020fa
lea ebx, [esi + esi*2]
mov esi, dword [0x405054]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x405054]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4020da
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x4020af
sub eax, 0x40
and eax, 0xffffffbf
je 0x4020af
mov eax, dword [esp + 0x20]
add ebx, dword [0x405054]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x4020c4
add dword [0x405050], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x40200e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x405054]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
Function at 0x4025c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x405408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x405400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x402615
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40260e
test esi, esi
je 0x40260e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4025f0
mov dword [esp], 0x405408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402830
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x402868
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40285e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40286a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402850
xor eax, eax
pop ebx
pop esi
ret
Function at 0x45ca00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x435015
lea edi, [esi - 0x34015]
push edi
jmp 0x45ca1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45ca21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45ca10
mov eax, 1
add ebx, ebx
jne 0x45ca33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45ca28
jne 0x45ca44
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45ca28
xor ecx, ecx
sub eax, 3
jb 0x45ca58
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45caca
mov ebp, eax
add ebx, ebx
jne 0x45ca63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45ca70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45ca94
inc ecx
add ebx, ebx
jne 0x45ca80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45ca75
jne 0x45ca91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45ca75
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45cab4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45caa5
jmp 0x45ca16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45cab4
add edi, ecx
jmp 0x45ca16
pop esi
mov edi, esi
mov ecx, 0x17
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45cad2
cmp byte [edi], 0xe
jne 0x45cad2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x45cad7
lea edi, [esi + 0x5a000]
mov eax, dword [edi]
or eax, eax
je 0x45cb46
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5c244]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5c318]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45cb04
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5c320]
or eax, eax
je 0x45cb40
mov dword [ebx], eax
add ebx, 4
jmp 0x45cb21
call dword [esi + 0x5c31c]
mov ebp, dword [esi + 0x5c324]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x45cb7a
sub esp, 0xffffff80
jmp 0x433fa0

Function at 0x401440
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0xbbeaf81f
xor ebx, 0xbfeaf81f
jmp 0x4014f0
mov edx, 0xa919783e
xor edx, 0xa919783a
mov ecx, 0x25135daf
xor ecx, 0x25136daf
mov eax, 0x500
ror eax, 0x1c
push edx
push ecx
push eax
mov edx, dword [ebp - 0xb4]
rol edx, 4
rol edx, 0xa
mov dword [ebp - 8], edx
push ebx
call fcn.00401644
push esi
pop ecx
mov ebx, eax
test ebx, ebx
je 0x4014f0
sub ebx, 0x86b78ac7
mov dword [ebp - 0x10], ebx
ret
Function at 0x4db521
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor eax, 0x37
invalid
aaa
invalid
in eax, dx
inc esi
ret 0xd2ac
wait
inc ebp
loop 0x4db4aa
cld
mov al, 0xc2
push ss
scasd eax, dword es:[edi]
jbe 0x4db463
sub al, 0x50
mov ecx, 0x8e711ee0
adc byte [esi], ah
mov ch, 0x77
loopne 0x4db4f0
mov al, 0x8f
sahf
xor bh, bl
add dh, bh
fadd qword [esi - 0x29531075]
mov ebp, edi
lodsb al, byte [esi]
salc
xor esi, dword [esi + 0x1f4426b3]
aam 0x89
dec esi
rol byte [esi], 0xd2
dec eax
rcl byte [ebp + 0xa]
jecxz 0x4db512
mov eax, dword [0xe14f6de5]
add ecx, dword [edx + 0x7c]
loop 0x4db53c
bound eax, qword [ebp + 0x31]
cdq
and byte [esi - 0x38fbc6bd], ah
inc ebx
cmp dword [edi + eax*8], eax
and eax, 0xa8ba56c2
dec esp
jg 0x4db525
push eax
push ss
inc ebx
jae 0x4db4de
out 0x61, eax
loop 0x4db4bd

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402200
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
push edi
push str.SETUPAPI
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 4], edi
je 0x40235f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetupGetFileCompressionInfoA
push edi
call esi
push str.SetupDecompressOrCopyFileA
push edi
mov dword [0x405a6c], eax
call esi
cmp dword [0x405a6c], ebx
mov dword [0x405a70], eax
je 0x40234c
cmp eax, ebx
je 0x40234c
push str.MyFree
push edi
call esi
push ebx
mov dword [0x405a74], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [ebp + 8]
push 0x405940
push esi
mov dword [ebp - 8], eax
call fcn.00402b00
pop ecx
mov edx, eax
mov al, byte [0x405a78]
pop ecx
neg edx
push 0x4a
mov byte [ebp - 0x140], al
sbb edx, edx
pop ecx
xor eax, eax
lea edi, [ebp - 0x13f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
neg edx
neg edx
stosb byte es:[edi], al
sbb edx, edx
mov dword [ebp - 0xc], esi
lea eax, [ebp - 0x140]
mov esi, 0x12a
and edx, 2
push eax
push esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, esi
jae 0x402332
cmp byte [ebp - 0x140], bl
je 0x402332
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x141], 0x5c
lea eax, [ebp + eax - 0x141]
je 0x4022f8
inc eax
mov byte [eax], 0x5c
mov byte [eax + 1], bl
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x140]
push eax
push 0x402369
push str.PART
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov ecx, dword [ebp - 0x14]
xor eax, eax
cmp dword [ebp - 0x10], ebx
setne al
lea eax, [eax + ecx*2]
mov eax, dword [eax*4 + 0x40430c]
cmp eax, 4
mov dword [ebp - 0x14], eax
jne 0x4022fb
push dword [ebp - 4]
mov dword [0x405a6c], ebx
mov dword [0x405a70], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x10]
jmp 0x402362
push edi
mov dword [0x405a6c], ebx
mov dword [0x405a70], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 8
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4026fa
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push 1
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, eax
cmp ebx, edi
jne 0x40271c
xor eax, eax
jmp 0x40277f
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
lea edi, [esi + 4]
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x10]
push 4
push eax
push 0x402786
push 0
push 0
call fcn.00402c87
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x40275b
and dword [edi], eax
xor esi, esi
jmp 0x402776
mov ecx, dword [ebp + 0x10]
mov eax, dword [edi]
mov dword [ecx], eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x402c87
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x402e64
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 8]
push ebx
push eax
xor ebx, ebx
push 0x20019
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402e89
xor eax, eax
jmp 0x402ee6
push esi
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 4]
push ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
or edi, 0xffffffff
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x402ed4
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x18]
jge 0x402ed4
lea eax, [ebp + 0xc]
inc dword [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, ebx
je 0x402ed4
mov eax, dword [ebp + 0x14]
mov byte [eax], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, ebx
pop edi
pop esi
sete al
pop ebx
leave
ret
Function at 0x402fb0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
jne 0x403003
lea eax, [ebp + 0xc]
push eax
push 0x2001f
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
je 0x402fe5
xor ecx, ecx
cmp eax, 2
sete cl
mov eax, ecx
jmp 0x403065
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, edi
je 0x402ffe
cmp eax, 2
je 0x402ffe
xor esi, esi
jmp 0x40304c
push 1
pop esi
jmp 0x40304c
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x403028
xor eax, eax
jmp 0x403065
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x14]
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp + 0x18], edi
je 0x40305a
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
ret

Function at 0x4030e4
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x4030f7
or dword [eax], 0xffffffff
push edi
push 0x8000080
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403189
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
jbe 0x403182
cmp dword [ebp + 8], edi
jne 0x403182
mov eax, dword [ebp + 0x10]
add eax, esi
push eax
call fcn.004029b6
cmp eax, edi
pop ecx
mov dword [ebp - 4], eax
je 0x403182
lea ecx, [ebp + 0x10]
push edi
push ecx
push esi
push eax
push ebx
mov dword [ebp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403179
cmp dword [ebp + 0x10], esi
jne 0x403179
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x40316d
mov dword [eax], ebx
jmp 0x403174
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x403190
push dword [ebp - 4]
call fcn.004029c1
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001060
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
jne 0x1000106d
xor eax, eax
pop ebx
ret
mov edx, dword [esp + 0xc]
push esi
mov ecx, edx
push edi
mov esi, ecx
xor eax, eax
mov edi, ebx
push edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
push ebx
and ecx, 3
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str._tyblock.dat
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
ret

Function at 0x100027c0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push ebx
xor ebx, ebx
test eax, eax
je 0x10002893
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x10002893
push ebp
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push ecx
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1000288e
lea eax, [esp + 0xc]
push esi
push eax
push ebp
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10002886
cmp esi, 0xa00000
jae 0x10002886
test esi, esi
jbe 0x10002886
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10002886
mov ecx, esi
push edi
mov edx, ecx
xor eax, eax
mov edi, ebx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
pop edi
je 0x1000287a
cmp dword [esp + 0x10], esi
jne 0x1000287a
mov ecx, dword [esp + 0x14]
push ebp
mov dword [ecx], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebx
pop ebp
pop ebx
ret
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor ebx, ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebx
pop ebp
pop ebx
ret
mov dword [eax], 0
xor eax, eax
pop ebx
ret

Function at 0x100028a0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
push edi
je 0x10002908
mov ebx, dword [esp + 0x14]
cmp ebx, ebp
je 0x10002908
mov edi, dword [esp + 0x18]
cmp edi, ebp
je 0x10002908
push esi
push ebp
push 0x80
push 3
push ebp
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10002901
lea eax, [esp + 0x14]
push ebp
push eax
push edi
push ebx
push esi
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp edi, dword [esp + 0x14]
jne 0x100028fa
mov ebp, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebp
pop edi
pop ebp
pop ebx
ret
pop edi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x10003560
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret 4

Function at 0x10004220
Capabilities:
Enumerate pe sections

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
xor ecx, ecx
push ebx
mov ax, word [edx + 0x14]
mov cx, word [edx + 6]
push esi
xor esi, esi
test ecx, ecx
push edi
lea eax, [eax + edx + 0x18]
jbe 0x10004259
mov edi, dword [esp + 0x18]
mov edx, dword [eax + 0xc]
cmp edi, edx
jb 0x10004251
mov ebx, dword [eax + 0x10]
add ebx, edx
cmp edi, ebx
jb 0x1000425b
add eax, 0x28
inc esi
cmp esi, ecx
jb 0x10004241
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x18123813
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x18123819
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x181237f4
and eax, 0xffff
push eax
jmp 0x181237f8
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.181231a8
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x181239d2
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x181237d9
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x1812377a

Function at 0x181238eb
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x181238ba
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x181238d8
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x18123936
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1812391d
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x18123926
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x18123930
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x18123912
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1812389c
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x18123983
invalid
dec eax
je 0x1812397a
sub eax, 3
je 0x18123971
mov dword [ebp - 4], 0x40
jmp 0x181239a0
mov dword [ebp - 4], 4
jmp 0x18123986
mov dword [ebp - 4], 0x20
jmp 0x18123986
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x181239d2
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x18123952
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.181231e3
pop ecx
dec edx
or al, 0x54
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp fcn.181239de
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax