joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x40560d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x40561c
pop dword [ebp - 8]
mov eax, 0x40561c
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xe228bb5e
add dword [ebp - 0x18], 0x6c2989ed
mov dword [ebp - 0x14], 0x1a7d8b25
add dword [ebp - 0x14], 0x17b5c120
mov dword [ebp - 0x10], 0xdccb4285
add dword [ebp - 0x10], 0x6f8101a9
mov dword [ebp - 0xc], 0xb376438e
sub dword [ebp - 0xc], 0xb376438e
lea eax, [ebp - 0x18]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x4ef2b0c1
add dword [ebp - 0x18], 0x257fb895
mov dword [ebp - 0x14], 0xa4a9c622
add dword [ebp - 0x14], 0x9cc29b53
mov dword [ebp - 0x10], 0xb634fd78
sub dword [ebp - 0x10], 0x52c5910c
mov dword [ebp - 0xc], 0x19451ae7
sub dword [ebp - 0xc], 0x19451ae7
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xe07a2f27
sub eax, 0xe0395edb
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x405fb
push 0
call eax
mov ecx, 0x873ac25f
sub ecx, 0x873a5ef4
xor esi, esi
add esi, eax
mov edx, 0x70c51ca7
sub edx, 0x70836ca7
add edx, dword [ebp - 8]
mov edi, 0x988765e8
add edi, 0x90b37e19
mov dword [ebp - 4], 0x8fdb8ffd
mov ebx, dword [edx]
xor dword [ebp - 4], edx
add ebx, edi
mov dword [esi], ebx
add esi, 0xa95cbc1a
add esi, 0x56a343ea
add edx, 4
loop 0x405736
add eax, 0x1dd20382
add eax, 0xe22f7cfd
xor ebx, ebx
add ebx, eax
add eax, 0x36d453ec
sub eax, 0x36d453e7
mov ecx, 0xfad80212
sub ecx, 0xfa980212
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x40a000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ebx, section..data
add byte [ebx], 8
mov eax, dword [ebx]
cmp al, 0
je 0x40a080
add ebx, 1
add byte [ebx], 4
mov eax, dword [ebx]
cmp al, 0
je 0x40a049
add ebx, 1
add byte [ebx], 2
add ebx, 1
add byte [ebx], 3
add ebx, 1
add byte [ebx], 3
add ebx, 1
add byte [ebx], 1
sub ebx, 4
sub byte [ebx], 1
mov eax, dword [ebx]
cmp al, 0
jne 0x40a025
add ebx, 1
add byte [ebx], 1
add ebx, 1
add byte [ebx], 1
add ebx, 1
sub byte [ebx], 1
add ebx, 2
add byte [ebx], 1
mov eax, dword [ebx]
cmp al, 0
je 0x40a074
sub ebx, 1
mov eax, dword [ebx]
cmp al, 0
jne 0x40a06b
sub ebx, 1
sub byte [ebx], 1
mov eax, dword [ebx]
cmp al, 0
jne 0x40a015
add ebx, 2
push ebx
mov eax, dword [ebx]
push eax
call dword [sym.imp.msvcrt.dll_putchar]
add esp, 4
pop ebx
add ebx, 1
sub byte [ebx], 3
push ebx
mov eax, dword [ebx]
push eax
call dword [sym.imp.msvcrt.dll_putchar]
add esp, 4
pop ebx
add byte [ebx], 7
push ebx
mov eax, dword [ebx]
push eax
call dword [sym.imp.msvcrt.dll_putchar]
add esp, 4
pop ebx
push ebx
mov eax, dword [ebx]
push eax
call dword [sym.imp.msvcrt.dll_putchar]
add esp, 4
pop ebx
add byte [ebx], 3
push ebx
mov eax, dword [ebx]
push eax
call dword [sym.imp.msvcrt.dll_putchar]
add esp, 4
pop ebx
add ebx, 2
push ebx
mov eax, dword [ebx]
push eax
call dword [sym.imp.msvcrt.dll_putchar]
add esp, 4
pop ebx
sub ebx, 1
sub byte [ebx], 1
push ebx
mov eax, dword [ebx]
push eax
call dword [sym.imp.msvcrt.dll_putchar]
add esp, 4
pop ebx
sub ebx, 1
push ebx
mov eax, dword [ebx]
push eax
call dword [sym.imp.msvcrt.dll_putchar]
add esp, 4
pop ebx
add byte [ebx], 3
push ebx
mov eax, dword [ebx]
push eax
call dword [sym.imp.msvcrt.dll_putchar]
add esp, 4
pop ebx
sub byte [ebx], 6
push ebx
mov eax, dword [ebx]
push eax
call dword [sym.imp.msvcrt.dll_putchar]
add esp, 4
pop ebx
sub byte [ebx], 8
push ebx
mov eax, dword [ebx]
push eax
call dword [sym.imp.msvcrt.dll_putchar]
add esp, 4
pop ebx
add ebx, 2
add byte [ebx], 1
push ebx
mov eax, dword [ebx]
push eax
call dword [sym.imp.msvcrt.dll_putchar]
add esp, 4
pop ebx
add ebx, 1
add byte [ebx], 2
push ebx
mov eax, dword [ebx]
push eax
call dword [sym.imp.msvcrt.dll_putchar]
add esp, 4
pop ebx
mov esp, ebp
pop ebp
call dword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x54963f
Capabilities:
Encode data using xor

Disassembly:
pop ebx
adc eax, 0xce5435ee
sal dword [eax], 1
adc dword [esi + 0x29cd8f2f], ebp
call 0x55410730
sbb al, 0x3f
invalid
Function at 0x6ed413d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x6ed41428
cmp byte [esi + ebx - 1], 0xa
je 0x6ed413fc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x6ed460a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x6ed41a80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xfc
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x6ed41c58
mov edi, dword [0x6ed460a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x6ed41b67
test byte [0x6ed42030], 8
jne 0x6ed41c00
lea ebx, [ebp - 0xe0]
mov edi, ebx
test byte [0x6ed42040], 8
jne 0x6ed41bc0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x6ed41b09
cmp esi, 3
jbe 0x6ed41b78
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x6ed41b1a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xfc
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x6ed44148]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x6ed41b09
mov dword [esp], 0x6ed42040
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x6ed41ae0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x6ed41ae0
mov dword [esp], 0x6ed42030
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x6ed41acb
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xe0]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x6ed41ad3
mov eax, 0xffffffff
jmp 0x6ed41b67

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x5dad44de
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0xb2b4d29
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x43b940
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2b000]
push edi
jmp 0x43b95a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43b961
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43b950
mov eax, 1
add ebx, ebx
jne 0x43b973
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43b968
jne 0x43b984
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43b968
xor ecx, ecx
sub eax, 3
jb 0x43b998
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43ba0a
mov ebp, eax
add ebx, ebx
jne 0x43b9a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43b9b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43b9d4
inc ecx
add ebx, ebx
jne 0x43b9c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43b9b5
jne 0x43b9d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43b9b5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43b9f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43b9e5
jmp 0x43b956
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43b9f4
add edi, ecx
jmp 0x43b956
pop esi
mov edi, esi
mov ecx, 0xa57
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43ba12
cmp byte [edi], 0x12
jne 0x43ba12
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 0x43ba17
lea edi, [esi + 0x39000]
mov eax, dword [edi]
or eax, eax
je 0x43ba8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x51288]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x51368]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43ba44
mov ecx, edi
jns 0x43ba73
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x51370]
or eax, eax
je 0x43ba89
mov dword [ebx], eax
add ebx, 4
jmp 0x43ba61
call dword [esi + 0x5136c]
mov ebp, dword [esi + 0x51374]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x43bac3
sub esp, 0xffffff80
jmp 0x41942f
Function at 0x10002200
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10002258
cmp byte [esi + ebx - 1], 0xa
je 0x1000222c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10003118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x4629c7
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x11c
cmp dword [esp + 0x128], 0
je 0x462b8c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x130]
xor ebp, ebp
push edi
mov dword [esp + 0x1c], ebp
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x462b88
mov edx, esi
mov eax, dword [edx]
mov ebx, dword [esp + 0x130]
add eax, ebx
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x10]
add eax, ebx
lea edi, [ecx + ebx]
mov dword [esp + 0x20], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x462a32
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov dword [esp + 0x10], eax
push 0x104
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.0045b142
add esp, 0xc
test ebx, ebx
je 0x462b32
mov eax, dword [esp + 0x18]
and dword [esp + 0x14], 0
mov eax, dword [eax]
test eax, eax
je 0x462b1b
mov esi, dword [esp + 0x10]
xor edi, edi
mov ebp, dword [esp + 0x130]
test eax, eax
jns 0x462a77
movzx ebx, ax
jmp 0x462a7c
lea ebx, [ebp + 2]
add ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x20]
mov dword [edi + ecx], eax
test eax, eax
jne 0x462af3
cmp dword [0x467eac], 1
jne 0x462af3
push 0x104
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0045b142
lea eax, [esp + 0x34]
push eax
call fcn.00462c74
lea eax, [esp + 0x38]
push 0x45a204
push eax
call fcn.0045b170
lea eax, [esp + 0x40]
push ebx
push eax
call fcn.0045b170
add esp, 0x20
lea eax, [esp + 0x24]
push 0
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0045b197
pop ecx
push eax
lea eax, [esp + 0x34]
push eax
push dword [0x467e58]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ecx
mov edi, ecx
mov dword [esp + 0x14], ecx
shl edi, 2
mov eax, dword [edi + eax]
test eax, eax
jne 0x462a70
mov esi, dword [esp + 0x134]
mov ebp, dword [esp + 0x1c]
inc ebp
imul edx, ebp, 0x14
mov dword [esp + 0x1c], ebp
add edx, esi
mov ecx, dword [edx + 0xc]
test ecx, ecx
jne 0x4629f9
jmp 0x462b88
lea eax, [esp + 0x28]
push eax
call fcn.00462c74
lea eax, [esp + 0x2c]
mov dword [esp], 0x45a1e8
push eax
call fcn.0045b170
lea eax, [esp + 0x30]
push edi
push eax
call fcn.0045b170
add esp, 0x10
cmp dword [0x467eac], 1
jne 0x462b88
push 0
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0045b197
pop ecx
push eax
lea eax, [esp + 0x34]
push eax
push dword [0x467e58]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
xor eax, eax
add esp, 0x11c
ret
Function at 0x462bc2
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push 0x208
lea eax, [ebp - 0x410]
push eax
call fcn.00462c40
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x467d24], eax
push 0
push 0
push 0
push 2
push 0
push dword [0x467d24]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x467d28], eax
push 0
push 0
push 0
push 4
push dword [0x467d28]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
add eax, dword [0x467eb4]
mov esp, ebp
pop ebp
ret
Function at 0x462ccc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [ebp + 0x14], 0
jne 0x462cdf
xor eax, eax
jmp 0x462e63
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
and dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
movzx eax, word [eax + 4]
cmp eax, 0x14c
jne 0x462d1d
mov eax, dword [ebp - 8]
add eax, 0xf8
mov dword [ebp - 0xc], eax
jmp 0x462d36
mov eax, dword [ebp - 8]
movzx eax, word [eax + 4]
cmp eax, 0x8664
jne 0x462d36
mov eax, dword [ebp - 8]
add eax, 0x108
mov dword [ebp - 0xc], eax
and dword [ebp - 0x10], 0
jmp 0x462d43
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x10], eax
je 0x462d7c
imul eax, dword [ebp - 0x10], 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x24]
push eax
push 0x40
imul eax, dword [ebp - 0x10], 0x28
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 8]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x462d3c
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x2c]
jae 0x462e1c
mov eax, dword [ebp + 0xc]
add eax, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0x30], eax
and dword [ebp - 4], 0
jmp 0x462dac
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x30]
je 0x462e0b
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
test eax, eax
jne 0x462dc4
jmp 0x462da5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
and eax, 0xfff
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
add ecx, eax
add ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
sar eax, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 3
je 0x462dfc
jmp 0x462e09
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
jmp 0x462da5
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 4]
mov dword [ebp + 0xc], ecx
jmp 0x462d7c
and dword [ebp - 0x14], 0
jmp 0x462e29
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x14], eax
je 0x462e61
imul eax, dword [ebp - 0x14], 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x38], edx
push 0
push dword [ebp - 0x24]
imul eax, dword [ebp - 0x14], 0x28
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 8]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x462e22
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x46300a
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x6c
mov eax, dword [esp + 0x70]
push ebx
push esi
push edi
mov esi, dword [eax]
xor edi, edi
call fcn.00462fcd
push esi
call fcn.004631bb
push dword [esp + 0x84]
mov esi, eax
call fcn.004631bb
push 0x58
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.0045b142
lea eax, [esp + 0x34]
push eax
push 5
push esi
call fcn.00462ee7
mov ebx, eax
add esp, 0x20
cmp ebx, 5
jb 0x4631a2
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push esi
call fcn.004631f0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4631a2
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [esp + 0x14], 0
mov ebp, eax
and dword [esp + 0x10], 0
lea eax, [esp + 0x14]
push eax
push 0x40
push ebx
push esi
push ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x463185
lea eax, [esp + 0x10]
push eax
push 0x40
push 0x6c
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x46316a
xor edx, edx
lea ecx, [edi + 0x2c]
test ebx, ebx
je 0x4630eb
mov ebp, esi
sub ebp, ecx
mov al, byte [ecx + ebp]
mov byte [ecx], al
mov byte [edi + edx + 0x4c], al
inc edx
inc ecx
cmp edx, ebx
jb 0x4630d5
mov ebp, dword [esp + 0x20]
lea ecx, [edi + 0x2c]
lea eax, [ebx + esi]
push eax
lea eax, [ecx + ebx]
push eax
call fcn.00462f88
mov edx, dword [esp + 0x20]
mov eax, edx
pop ecx
pop ecx
mov ecx, esi
sub eax, esi
sub ecx, edx
cmp edx, esi
cmovb eax, ecx
cmp eax, 0x7fff0000
jbe 0x463134
lea eax, [edi + 0xc]
push edx
push eax
call fcn.00462f88
pop ecx
sub eax, edi
pop ecx
sub eax, 0xc
push eax
lea eax, [edi + 0xc]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [edi + 0xc]
jmp 0x463136
mov eax, edx
push eax
push esi
call fcn.00462f88
mov eax, dword [esp + 0x20]
pop ecx
pop ecx
mov dword [edi + 8], eax
lea eax, [edi + 0x2c]
push ebx
push eax
push ebp
mov dword [edi + 4], ebx
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push 0x6c
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp dword [edi], 0
pop ebp
je 0x463196
mov ecx, dword [esp + 0x7c]
lea eax, [edi + 0x2c]
mov dword [ecx], eax
jmp 0x4631a2
push 1
push edi
call fcn.004632e4
pop ecx
pop ecx
xor edi, edi
push 0x467d40
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
add esp, 0x6c
ret
Function at 0x4631f0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x40
push ebx
xor ebx, ebx
cmp dword [0x467d34], 0x40
jae 0x4632dd
mov ecx, dword [esp + 0x48]
push ebp
push esi
mov esi, dword [esp + 0x54]
mov ebp, 0xfff80000
add esi, ecx
add ecx, dword [esp + 0x5c]
push edi
cmp ecx, 0x80000000
lea edi, [esp + 0x2c]
push 9
lea eax, [ecx + 0x7ff80000]
cmovb ebp, eax
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
lea edi, [esi - 0x7fff0000]
inc eax
cmp esi, 0x80000000
cmovb edi, eax
cmp edi, ebp
jae 0x4632da
push 0x1c
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4632b5
cmp dword [esp + 0x20], 0x10000
jne 0x4632a7
mov eax, dword [esp + 0x1c]
cmp eax, 0x6c
jb 0x4632ab
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jb 0x4632ab
lea eax, [ecx - 1]
xor edx, edx
add eax, edi
div ecx
push 0x20
imul eax, ecx
push 0x3000
push 0x6c
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4632b9
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
add edi, eax
cmp edi, ebp
jb 0x463258
test ebx, ebx
je 0x4632da
xor eax, eax
cmp dword [eax*4 + 0x467d58], 0
je 0x4632cd
inc eax
cmp eax, 0x40
jb 0x4632bb
jmp 0x4632da
inc dword [0x467d34]
mov dword [eax*4 + 0x467d58], ebx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x40
ret
Function at 0x46494c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x10c
push ebp
mov ebp, dword [esp + 0x118]
push edi
lea edi, [eax + ebp]
cmp eax, 8
ja 0x46496f
push 0xffffffffffffffe2
pop eax
jmp 0x464b04
push ebx
mov ebx, dword [esp + 0x11c]
push esi
push 0x800
lea esi, [ebp + 8]
lea eax, [ebx + 0x5410]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [ebx + 0x140c]
push esi
push eax
call fcn.00466c43
add esp, 0x14
cmp eax, 0xffffff88
ja 0x464aff
add esi, eax
mov dword [esp + 0x18], 0x1c
mov eax, edi
sub eax, esi
push eax
push esi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00464b6e
add esp, 0x14
mov dword [esp + 0x10], eax
cmp eax, 0xffffff88
ja 0x464aff
cmp dword [esp + 0x14], 8
ja 0x464aff
push dword [esp + 0x14]
lea eax, [esp + 0x30]
push dword [esp + 0x1c]
push eax
lea eax, [ebx + 0x804]
push eax
call fcn.00465029
add esp, 0x10
cmp eax, 0xffffff88
ja 0x464aff
add esi, dword [esp + 0x10]
mov eax, edi
sub eax, esi
mov dword [esp + 0x20], 0x34
push eax
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.00464b6e
add esp, 0x14
mov dword [esp + 0x10], eax
cmp eax, 0xffffff88
ja 0x464aff
cmp dword [esp + 0x1c], 9
ja 0x464aff
push dword [esp + 0x1c]
lea eax, [esp + 0xb4]
push dword [esp + 0x24]
push eax
lea eax, [ebx + 0xc08]
push eax
call fcn.00465029
add esp, 0x10
cmp eax, 0xffffff88
ja 0x464aff
add esi, dword [esp + 0x10]
mov eax, edi
sub eax, esi
mov dword [esp + 0x10], 0x23
push eax
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00464b6e
add esp, 0x14
mov dword [esp + 0x28], eax
cmp eax, 0xffffff88
ja 0x464aff
cmp dword [esp + 0x24], 9
ja 0x464aff
push dword [esp + 0x24]
lea eax, [esp + 0x6c]
push dword [esp + 0x14]
push eax
push ebx
call fcn.00465029
add esp, 0x10
cmp eax, 0xffffff88
ja 0x464aff
add esi, dword [esp + 0x28]
lea eax, [esi + 0xc]
cmp eax, edi
ja 0x464aff
sub edi, esi
xor edx, edx
sub edi, 0xc
add ebx, 0x5c10
mov ecx, dword [esi]
add esi, 4
test ecx, ecx
je 0x464aff
cmp ecx, edi
jae 0x464aff
mov dword [ebx], ecx
inc edx
add ebx, 4
cmp edx, 3
jl 0x464ae1
sub esi, ebp
mov eax, esi
jmp 0x464b02
push 0xffffffffffffffe2
pop eax
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x10c
ret