joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6814a570
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.6815ab80
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.6815ab80
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x6814a5d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x6826e054]
test esi, esi
jle 0x6814a6f0
mov eax, dword [0x6826e058]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x6814a604
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6814a687
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6814a5f0
mov dword [esp], ebx
call fcn.6814ad30
mov edi, eax
test eax, eax
je 0x6814a717
mov eax, dword [0x6826e058]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6814ae70
mov edx, dword [0x6826e058]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6814a6f7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6814a680
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x6814a690
add dword [0x6826e054], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x6826e058]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6814a680
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6814a570
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x6814a60e
mov eax, dword [0x6826e058]
mov eax, dword [eax + ebx + 0xc]
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 fcn.6814a570
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6814a570
lea esi, [esi]
nop
Function at 0x6814a9b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6826e064
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6826e05c]
sub esp, 4
test ebx, ebx
je 0x6814aa05
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
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 0x6814a9fe
test esi, esi
je 0x6814a9fe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6814a9e0
mov dword [esp], 0x6826e064
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6814ad30
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x68140000], 0x5a4d
jne 0x6814ad55
mov ecx, dword [0x6814003c]
cmp dword [ecx + 0x68140000], 0x4550
lea edx, [ecx + 0x68140000]
je 0x6814ad60
ret
cmp word [ecx + 0x68140018], 0x10b
jne 0x6814ad55
push esi
movzx eax, word [ecx + 0x68140014]
push ebx
movzx esi, word [ecx + 0x68140006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x68140000
test esi, esi
je 0x6814ada8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6814ad9e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6814adaa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x6814ad90
xor eax, eax
pop ebx
pop esi
ret

Function at 0x6814b320
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [0x6826e060]
test eax, eax
jne 0x6814aa30
ret
push ebx
sub esp, 0x18
mov dword [esp + 4], 0xc
mov dword [esp], 1
call sub.msvcrt.dll_calloc
mov ebx, eax
test eax, eax
je 0x6814aa90
mov eax, dword [esp + 0x20]
mov dword [esp], 0x6826e064
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x6826e05c]
mov dword [0x6826e05c], ebx
sub esp, 4
mov dword [ebx + 8], eax
mov dword [esp], 0x6826e064
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
sub esp, 4
add esp, 0x18
pop ebx
ret
or eax, 0xffffffff
jmp 0x6814aa8b
push esi
push ebx
sub esp, 4
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x6814b350
mov dword [esi], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
add esp, 4
pop ebx
pop esi
jmp 0x6815ad80
add esp, 4
pop ebx
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 8]
test eax, eax
jne 0x6815ad90
xor eax, eax
ret
jmp 0x6814aa20

Function at 0x6814b390
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x6814b3d0
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x6814b3f8
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x6815b0d0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0x5c
mov eax, dword [esp + 0x60]
mov dword [esp + 0x1c], eax
mov eax, dword [0x6826e02c]
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp], 1
mov eax, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
call eax
sub esp, 4
test eax, eax
sete al
test al, al
je 0x6815b138
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.681a9c00
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2b]
mov dword [esp + 4], edx
mov dword [esp], 0x68228432
mov ecx, eax
call fcn.681e6e20
sub esp, 8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.681a9c30
jmp 0x6815b2a8
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_OpenClipboard]
call eax
sub esp, 4
test eax, eax
sete al
test al, al
je 0x6815b18a
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.681a9c00
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2b]
mov dword [esp + 4], edx
mov dword [esp], 0x68228432
mov ecx, eax
call fcn.681e6e20
sub esp, 8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.681a9c30
jmp 0x6815b2a8
mov dword [esp], 1
mov eax, dword [sym.imp.USER32.dll_GetClipboardData]
call eax
sub esp, 4
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x2c], 0
jne 0x6815b1e5
mov eax, dword [sym.imp.USER32.dll_CloseClipboard]
call eax
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.681a9c00
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2b]
mov dword [esp + 4], edx
mov dword [esp], 0x68228432
mov ecx, eax
call fcn.681e6e20
sub esp, 8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.681a9c30
jmp 0x6815b2a8
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GlobalLock]
call eax
sub esp, 4
mov dword [esp + 0x30], eax
cmp dword [esp + 0x30], 0
jne 0x6815b23d
mov eax, dword [sym.imp.USER32.dll_CloseClipboard]
call eax
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.681a9c00
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2b]
mov dword [esp + 4], edx
mov dword [esp], 0x68228432
mov ecx, eax
call fcn.681e6e20
sub esp, 8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.681a9c30
jmp 0x6815b2a8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.681a9c00
lea eax, [esp + 0x34]
lea edx, [esp + 0x2b]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x30]
mov dword [esp], edx
mov ecx, eax
call fcn.681e6e20
sub esp, 8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.681a9c30
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call eax
sub esp, 4
mov eax, dword [sym.imp.USER32.dll_CloseClipboard]
call eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x34]
mov dword [esp], edx
mov ecx, eax
call fcn.681e6d50
sub esp, 4
lea eax, [esp + 0x34]
mov ecx, eax
call fcn.681e7940
mov eax, dword [esp + 0x4c]
sub eax, dword [0x6826e02c]
je 0x6815b2b9
call fcn.681415c0
mov eax, dword [esp + 0x1c]
add esp, 0x5c
ret
Function at 0x6815f890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80]
mov esi, 0x68229e11
push ebx
sub esp, 0x9c
mov eax, dword [str.not_enough_space_for_format_expansion__Please_submit_full_bug_report_at_https:__gcc.gnu.org_bugs__:_n]
mov dword [ebp - 0x81], eax
mov eax, dword [0x68229e75]
mov dword [ebp - 0x1c], eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
lea eax, [edx + 0x84]
and eax, 0xfffffff0
call fcn.6814b010
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
mov dword [ebp - 0x8c], edx
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x8c]
mov byte [ebx + edx + 0x68], 0
mov dword [esp], ebx
call fcn.6821eaf0
nop
nop
nop
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x6822726c], 0
jne 0x6815f9b6
mov byte [0x6822726c], 1
call fcn.6821ced0
test eax, eax
je 0x6815f984
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call fcn.6814a220
mov dword [esp], 2
mov esi, dword [fcn.6815ab80]
mov edi, eax
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp], 2
test edx, edx
je 0x6815f974
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x6822a555
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x6821f370
jmp 0x6821f368
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x6815f93a
mov dword [esp], 2
call dword [0x68226178]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sub.msvcrt.dll_fwrite
jmp 0x6821f363
mov dword [esp], 2
call dword [0x68226178]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x6822a504
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
call sub.msvcrt.dll_abort
mov dword [esp], edi
call fcn.6815a428
call fcn.6821d2a0
call fcn.6821cdb0
call fcn.6821cf20
jmp 0x6821f363
Function at 0x68170ed4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
sub esp, 0x68
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], eax
mov eax, edx
mov byte [esp + 0x10], al
mov eax, dword [0x6826e02c]
mov dword [esp + 0x5c], eax
xor eax, eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.682187f0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x44]
mov ecx, eax
call fcn.681e71e0
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x14]
je 0x68170f78
mov eax, dword [esp + 0x18]
movzx eax, byte [eax]
movsx edx, al
mov eax, dword [esp + 0x28]
mov dword [esp], edx
mov ecx, eax
call fcn.6816a40c
sub esp, 4
movsx edx, al
mov eax, dword [esp + 0x28]
mov dword [esp + 4], 0
mov dword [esp], edx
mov ecx, eax
call fcn.6816a2f0
sub esp, 8
movsx edx, al
lea eax, [esp + 0x44]
mov dword [esp], edx
mov ecx, eax
call fcn.681e7d60
sub esp, 4
add dword [esp + 0x18], 1
jmp 0x68170f1c
mov dword [esp + 0x2c], str.dwsmaklthrtter
mov dword [esp + 0x24], 0x68232ec0
mov dword [esp + 0x30], 0x68232f38
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x30]
je 0x68171080
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
mov dword [esp + 4], eax
lea eax, [esp + 0x44]
mov dword [esp], eax
call fcn.68219374
test al, al
je 0x68171076
cmp byte [esp + 0x10], 0
je 0x68171041
lea eax, [esp + 0x40]
mov dword [esp + 4], 0
mov dword [esp], 0
mov ecx, eax
call fcn.681eb830
sub esp, 8
lea eax, [esp + 0x38]
mov dword [esp + 4], 0
mov dword [esp], 3
mov ecx, eax
call fcn.681eb830
sub esp, 8
mov eax, dword [esp + 0x34]
add eax, 4
mov edx, dword [esp + 0x38]
mov dword [esp], edx
mov ecx, eax
call fcn.68170d40
sub esp, 4
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esp], edx
mov ecx, eax
call fcn.68170e18
sub esp, 4
test al, al
je 0x68171041
mov eax, 1
jmp 0x68171046
mov eax, 0
test al, al
je 0x6817106d
lea eax, [esp + 0x40]
mov dword [esp + 4], 0
mov dword [esp], 4
mov ecx, eax
call fcn.681eb830
sub esp, 8
mov ebx, dword [esp + 0x40]
jmp 0x681710a1
mov eax, dword [esp + 0x34]
mov ebx, dword [eax + 4]
jmp 0x681710a1
add dword [esp + 0x24], 8
jmp 0x68170f90
lea eax, [esp + 0x40]
mov dword [esp + 4], 0
mov dword [esp], 0
mov ecx, eax
call fcn.681eb830
sub esp, 8
mov ebx, dword [esp + 0x40]
lea eax, [esp + 0x44]
mov ecx, eax
call fcn.681e7940
mov eax, ebx
mov ebx, dword [esp + 0x5c]
sub ebx, dword [0x6826e02c]
je 0x681710bf
call fcn.681415c0
add esp, 0x68
pop ebx
ret 0xc
Function at 0x68171240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [0x6826e02c]
mov dword [esp + 0x5c], eax
xor eax, eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.682187f0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x44]
mov ecx, eax
call fcn.681e71e0
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x10]
je 0x681712cd
mov eax, dword [esp + 0x14]
movzx eax, byte [eax]
movsx edx, al
mov eax, dword [esp + 0x34]
mov dword [esp + 4], 0
mov dword [esp], edx
mov ecx, eax
call fcn.6816a2f0
sub esp, 8
movsx edx, al
lea eax, [esp + 0x44]
mov dword [esp], edx
mov ecx, eax
call fcn.681e7d60
sub esp, 4
add dword [esp + 0x14], 1
jmp 0x68171285
mov dword [esp + 0x38], 0x68227280
mov dword [esp + 0x30], 0x68227280
mov dword [esp + 0x3c], 0x68227480
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x3c]
je 0x6817137b
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
mov dword [esp + 4], eax
lea eax, [esp + 0x44]
mov dword [esp], eax
call fcn.68219374
test al, al
je 0x68171371
lea eax, [esp + 0x2f]
mov ecx, eax
call fcn.681a9c00
mov eax, dword [esp + 0x40]
sub eax, 0x68227280
sar eax, 2
movsx edx, al
mov eax, dword [esp + 0x34]
mov dword [esp], edx
mov ecx, eax
call fcn.6816a220
sub esp, 4
movsx edx, al
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x2f]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], 1
mov ecx, eax
call fcn.681e7140
sub esp, 0xc
lea eax, [esp + 0x2f]
mov ecx, eax
call fcn.681a9c30
jmp 0x68171386
add dword [esp + 0x30], 4
jmp 0x681712e5
mov eax, dword [esp + 0x1c]
mov ecx, eax
call fcn.681e71e0
lea eax, [esp + 0x44]
mov ecx, eax
call fcn.681e7940
mov eax, dword [esp + 0x5c]
sub eax, dword [0x6826e02c]
je 0x681713a2
call fcn.681415c0
mov eax, dword [esp + 0x1c]
add esp, 0x6c
ret 0xc
Function at 0x41535c
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x415427
jmp 0x41541b
cmp dword [esi + 0x10], 0x1000
jne 0x415407
test byte [esi + 0x15], 1
jne 0x415407
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4153b8
cmp ebp, 2
je 0x4153b8
cmp ebp, 0x10
je 0x4153b8
cmp ebp, 0x20
jne 0x4153d4
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4153d4
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4153e5
mov eax, dword [esi]
add eax, ebx
call fcn.00415354
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4153d8
cmp byte [esp + 4], 0
je 0x415407
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x415427
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x41538d
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4042b0
Capabilities:
Compute adler32 checksum

Disassembly:
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push edi
mov edi, ecx
shr edi, 0x10
and ecx, 0xffff
cmp ebx, 1
jne 0x4042fb
mov eax, dword [esp + 0x10]
movzx edx, byte [eax]
add ecx, edx
cmp ecx, 0xfff1
jb 0x4042e1
sub ecx, 0xfff1
add edi, ecx
cmp edi, 0xfff1
jb 0x4042f1
sub edi, 0xfff1
mov eax, edi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
ret
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x40430d
pop esi
pop edi
mov eax, 1
pop ebx
ret
cmp ebx, 0x10
jae 0x404351
test ebx, ebx
je 0x404327
movzx eax, byte [esi]
add ecx, eax
sub ebx, 1
add esi, 1
add edi, ecx
test ebx, ebx
jne 0x404316
cmp ecx, 0xfff1
jb 0x404335
sub ecx, 0xfff1
mov eax, 0x80078071
mul edi
shr edx, 0xf
mov eax, edx
shl eax, 4
sub eax, edx
add eax, edi
pop esi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
ret
cmp ebx, 0x15b0
jb 0x404439
mov eax, 0x5e6ea9af
mul ebx
push ebp
mov ebp, edx
shr ebp, 0xb
lea ebx, [ebx]
sub ebx, 0x15b0
mov eax, 0x15b
jmp 0x404380
movzx edx, byte [esi]
add ecx, edx
movzx edx, byte [esi + 1]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 2]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 3]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 4]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 5]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 6]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 7]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 8]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 9]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xa]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xb]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xc]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xd]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xe]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xf]
add edi, ecx
add ecx, edx
add edi, ecx
add esi, 0x10
sub eax, 1
jne 0x404380
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
sub ebp, 1
jne 0x404370
pop ebp
test ebx, ebx
je 0x404517
cmp ebx, 0x10
jb 0x4044de
mov eax, ebx
shr eax, 4
nop
movzx edx, byte [esi]
add ecx, edx
movzx edx, byte [esi + 1]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 2]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 3]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 4]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 5]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 6]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 7]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 8]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 9]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xa]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xb]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xc]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xd]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xe]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xf]
add edi, ecx
add ecx, edx
sub ebx, 0x10
add edi, ecx
add esi, 0x10
sub eax, 1
jne 0x404450
test ebx, ebx
je 0x4044f3
movzx eax, byte [esi]
add ecx, eax
sub ebx, 1
add esi, 1
add edi, ecx
invalid
Function at 0x401bf0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x401c20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x3c]
add edx, dword [ebp + 8]
mov dword [ebp - 0x2c], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + ecx + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1c]
add edx, dword [ebp + 8]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x20]
add ecx, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x24]
add eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 0xc]
and ecx, 0xffff0000
je 0x401d3b
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 0x18]
jae 0x401d39
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + ecx*4]
add eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [ebp - 1], cl
mov edx, dword [ebp - 0x14]
cmp cl, byte [edx]
jne 0x401cee
cmp byte [ebp - 1], 0
je 0x401ce5
mov eax, dword [ebp - 0x10]
mov cl, byte [eax + 1]
mov byte [ebp - 2], cl
mov edx, dword [ebp - 0x14]
cmp cl, byte [edx + 1]
jne 0x401cee
add dword [ebp - 0x10], 2
add dword [ebp - 0x14], 2
cmp byte [ebp - 2], 0
jne 0x401cb1
mov dword [ebp - 0x1c], 0
jmp 0x401cf6
sbb eax, eax
or eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x38], 0
jne 0x401d2b
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x3c]
movzx ecx, word [eax + edx*2]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
add edx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
je 0x401d2b
mov eax, dword [ebp - 0x18]
jmp 0x401d63
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x401c87
jmp 0x401d61
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
sub edx, dword [ecx + 0x10]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
je 0x401d61
mov eax, dword [ebp - 0x24]
add eax, dword [ebp + 8]
jmp 0x401d63
xor eax, eax
mov esp, ebp
pop ebp
ret