joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7f905b90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x30
push ebx
push esi
mov esi, dword [esp + 0x3c]
push edi
push ebp
xor ebp, ebp
mov edi, dword [esi + 0xe0]
mov eax, dword [esi + 0x10]
sub edi, eax
mov ecx, dword [esi + 0xc]
add edi, ecx
mov dword [esp + 0x14], ebp
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov eax, dword [ecx]
cmp eax, 1
jne 0x7f905c8f
lea eax, [esp + 0x10]
mov ecx, dword [ecx + 4]
push eax
push ebp
push ecx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, eax
test ebx, ebx
jne 0x7f905d48
mov dword [esp + 0x14], 1
cmp dword [esp + 0x4c], ebp
jne 0x7f905c9f
mov eax, dword [esi + 0x74]
test ah, 0x80
je 0x7f905c9f
cmp edi, 0xa
jne 0x7f905c9f
lea eax, [esp + 0x2c]
push eax
push ebp
push esi
call fcn.7f916780
mov eax, dword [esp + 0x34]
mov ebx, eax
cmp eax, ebp
jne 0x7f905c27
mov ebx, dword [esp + 0x30]
mov eax, edi
sub eax, ebx
cmp eax, 2
jne 0x7f905c9f
mov ebp, 0x7f8f17a0
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.7f916830
lea ecx, [ebx + eax - 1]
mov al, byte [0x7f8f17a0]
test al, al
je 0x7f905c5f
mov al, byte [ebp]
mov dl, byte [ecx]
cmp dl, al
jne 0x7f905c5f
mov al, byte [ebp + 1]
inc ebp
dec ecx
test al, al
jne 0x7f905c4d
mov al, byte [ebp]
test al, al
jne 0x7f905c9f
mov eax, dword [esi + 0x74]
test eax, 0x80000
je 0x7f905c9f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1388
mov ecx, dword [esi + 0x78]
or ecx, 0x10000000
mov dword [esi + 0x4f0], eax
mov dword [esi + 0x78], ecx
jmp 0x7f905c9f
cmp eax, 4
jne 0x7f905d43
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
xor ebp, ebp
mov edx, dword [esp + 0x24]
push ebp
mov ecx, dword [esp + 0x2c]
push ebp
mov dword [esp + 0x20], eax
push ecx
push edx
mov ebx, dword [eax]
push eax
call dword [ebx + 0x14]
mov ebx, eax
test ebx, ebx
jne 0x7f905d48
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 0x7f9071d0
cmp eax, ebp
je 0x7f905cf5
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], 0x7f907230
mov dword [esp + 0x3c], ebp
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x18]
mov ebp, dword [esp + 0x50]
push eax
mov eax, dword [esi + 0x10]
sub eax, ecx
push eax
push ecx
push esi
call ebp
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x7f905d15
mov ebx, eax
mov eax, dword [esp + 0x54]
test eax, eax
je 0x7f905d48
mov eax, dword [esi + 0xe0]
mov ecx, dword [esi + 0xc]
sub eax, edi
push 1
add eax, ecx
mov edx, dword [esi + 0x74]
xor ecx, ecx
test dl, 0x40
sete cl
push ecx
push eax
push eax
push eax
push esi
call fcn.7f8fbe80
jmp 0x7f905d48
mov ebx, 0x80040064
mov eax, dword [esp + 0x14]
test eax, eax
je 0x7f905d5a
mov eax, dword [esp + 0x10]
push eax
call fcn.7f90c610
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x30
ret 0x14
Function at 0x7f906a90
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x38
push ebx
push esi
push edi
mov ebx, dword [eax + 0x518]
push ebp
test ebx, ebx
je 0x7f906bdf
push ebx
call dword [sym.imp.ole32.dll_OleIsCurrentClipboard]
test eax, eax
jne 0x7f906bcb
mov eax, dword [ebx]
cmp eax, 0x7f8f1600
jne 0x7f906ad4
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x34]
sub eax, dword [ebx + 0x30]
mov dword [esp + 0x30], eax
jmp 0x7f906ae4
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 3
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x4c]
push eax
push 0x708
push ecx
call fcn.7f8ffa10
test eax, eax
jne 0x7f906bc3
mov eax, dword [esp + 0x4c]
mov ebp, dword [sym.imp.USER32.dll_OpenClipboard]
mov ecx, dword [eax]
push ecx
call ebp
test eax, eax
je 0x7f906bc3
push 0x7f02
push 0
mov ebp, 0x7f91f0d8
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [esp + 0x10], eax
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp]
test al, 1
je 0x7f906ba5
cmp ebp, 0x7f91f114
je 0x7f906ba5
lea edi, [esp + 0x34]
lea esi, [ebp - 0x10]
mov ecx, 5
push 0xc
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x18]
push 0
mov dword [esp + 0x4c], 1
push eax
call fcn.7f916b90
lea eax, [esp + 0x14]
lea ecx, [esp + 0x34]
push eax
mov esi, dword [ebx]
push ecx
push ebx
call dword [esi + 0xc]
test eax, eax
jl 0x7f906b9a
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x38]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x7f906ba5
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ole32.dll_ReleaseStgMedium]
add ebp, 0x14
cmp ebp, 0x7f91f1dc
jb 0x7f906b3a
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x7f906bcb
push 0
call dword [sym.imp.ole32.dll_OleSetClipboard]
mov eax, dword [esp + 0x4c]
push ebx
mov dword [eax + 0x518], 0
call fcn.7f90c610
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x38
ret 4
Function at 0x7f90e6d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x4c
mov dword [esp], 0
push ebx
push esi
push edi
push ebp
mov edi, dword [eax]
mov ebp, dword [esp + 0x7c]
test ebp, ebp
je 0x7f90e6f4
mov dword [ebp], 0
mov eax, dword [esp + 0x60]
push 0x7f8f30f0
push eax
call fcn.7f90e1d0
mov esi, eax
test esi, esi
jne 0x7f90e718
mov eax, 0x80070057
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4c
ret 0x20
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], 0
mov word [esp + 0x18], 0
mov ebx, dword [esp + 0x68]
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], ebx
push ecx
lea eax, [ebx - 4]
cmp eax, 1
sbb eax, eax
add eax, 2
push eax
lea eax, [esp + 0x20]
push eax
push esi
mov eax, dword [esi]
call dword [eax + 0xc]
mov dword [esp + 0x14], eax
test eax, eax
jge 0x7f90e777
push esi
call fcn.7f90c610
mov eax, dword [esp + 0x14]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4c
ret 0x20
mov eax, dword [esp + 0x64]
cmp ebx, 4
mov dword [eax], ebx
jne 0x7f90e7cf
mov ecx, dword [esp + 0x6c]
xor edx, edx
test ecx, ecx
je 0x7f90e7cf
mov eax, 0x20
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
push eax
mov dword [esp + 0x28], 4
mov dword [esp + 0x2c], 0xffffffff
mov word [esp + 0x20], 3
push ecx
mov ebp, dword [esi]
push esi
call dword [ebp + 0x1c]
jmp 0x7f90e7da
test ebp, ebp
je 0x7f90e7da
mov dword [ebp], 1
mov eax, dword [esp + 0x74]
test eax, eax
je 0x7f90e814
mov eax, dword [esp + 0x78]
test eax, eax
je 0x7f90e814
mov eax, dword [esp + 0x60]
push 0x7f8f30e0
push eax
call fcn.7f90e1d0
mov ebp, eax
test ebp, ebp
je 0x7f90e814
mov eax, dword [esp + 0x78]
push eax
push 0
push ebx
push ebp
mov ebx, dword [ebp]
call dword [ebx + 0x1c]
push ebp
call fcn.7f90c610
mov eax, dword [esp + 0x70]
test eax, eax
je 0x7f90e865
lea eax, [esp + 0x10]
mov ebx, dword [esi]
push eax
push esi
call dword [ebx + 0x14]
test eax, eax
jne 0x7f90e85b
lea eax, [esp + 0x3c]
push 0
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [ecx]
push 1
push ecx
call dword [eax + 0xc]
mov ebx, eax
test ebx, ebx
jne 0x7f90e85b
mov eax, dword [esp + 0x44]
cmp edi, eax
jne 0x7f90e857
mov eax, dword [esp + 0x58]
mov ebp, dword [esi]
push eax
push esi
call dword [ebp + 0x10]
test ebx, ebx
je 0x7f90e82b
mov eax, dword [esp + 0x10]
push eax
call fcn.7f90c610
push esi
call fcn.7f90c610
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4c
ret 0x20
Function at 0x44bad0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [esi], 0
mov al, byte [0x66304a]
mov cl, byte [0x66304d]
mov edx, dword [0x663030]
and cl, al
mov eax, dword [0x663034]
mov byte [0x66304d], cl
mov ecx, eax
shr ecx, 2
sub edx, ecx
xor ecx, ecx
mov cl, byte [0x663043]
mov dword [0x663030], edx
mov edx, dword [0x663038]
or edx, 7
imul edx, ecx
and eax, edx
mov dword [0x663034], eax
call fcn.0044ba10
mov edx, dword [0x666acc]
push edx
call dword [sym.imp.GDI32.dll_SaveDC]
mov dword [esi], eax
mov eax, dword [0x666acc]
push eax
call dword [sym.imp.ole32.dll_CoRevokeClassObject]
push 0
call sub.comdlg32.dll_FindTextW
push edi
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x44bb5b
or dword [esi], 0x2000000
mov eax, esi
pop edi
pop esi
ret
Function at 0x659ddd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6633b8
cmp edx, dword [eax]
je 0x659dff
add eax, 8
inc ecx
cmp eax, 0x663448
jl 0x659df0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6633b8]
jne 0x659f2d
mov eax, dword [0xa60114]
cmp eax, 1
je 0x659f07
test eax, eax
jne 0x659e30
cmp dword [0x6632e4], 1
je 0x659f07
cmp edx, 0xfc
je 0x659f2d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x659e67
lea eax, [ebp - 0x1a4]
push 0x65fc60
push eax
call fcn.0065a7c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0065ac50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x659eaa
lea eax, [ebp - 0x1a4]
push eax
call fcn.0065ac50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65fc5c
push edi
call fcn.0065cb20
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65fc40
push eax
call fcn.0065a7c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0065a7d0
lea eax, [ebp - 0xa0]
push 0x65fc3c
push eax
call fcn.0065a7d0
push dword [esi + 0x6633bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0065a7d0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65fc14
push eax
call fcn.0065ca94
add esp, 0x2c
pop edi
jmp 0x659f2d
lea eax, [ebp + 8]
lea esi, [esi + 0x6633bc]
push 0
push eax
push dword [esi]
call fcn.0065ac50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4681ec
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00468063

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

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

Function at 0x403bae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40840c]
jne 0x403bb8
repz ret
jmp fcn.00404063
Function at 0x4ab014
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x4ab04f
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4ab036
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x4ab047
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x4ab051
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4ab02c
xor eax, eax
pop edi
pop esi
ret

Function at 0x421bd0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x421bf2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x421bf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x421be8
mov eax, 1
add ebx, ebx
jne 0x421c0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x421c1c
jne 0x421c2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x421c2c
dec eax
add ebx, ebx
jne 0x421c28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x421c00
xor ecx, ecx
sub eax, 3
jb 0x421c44
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x421cb6
sar eax, 1
mov ebp, eax
jmp 0x421c4f
add ebx, ebx
jne 0x421c4f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x421c5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x421c80
inc ecx
add ebx, ebx
jne 0x421c6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x421c61
jne 0x421c7d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421c61
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x421ca0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x421c91
jmp 0x421bee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x421ca0
add edi, ecx
jmp 0x421bee
pop esi
mov edi, esi
mov ecx, 0x843
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x421cbe
cmp byte [edi], 0xd
jne 0x421cbe
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 eax, ebx
loop 0x421cc3
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x421d3b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x228e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2299c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x421cf0
mov ecx, edi
jns 0x421d1f
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 + 0x229a0]
or eax, eax
je 0x421d35
mov dword [ebx], eax
add ebx, 4
jmp 0x421d0d
call dword [esi + 0x229a4]
popal
jmp section.UPX0

Function at 0x43b644
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x43b3c1
sub eax, 0x9e64596c
or esi, esi
mov eax, esi
call fcn.0043b67c
sub esi, eax
push 0xd4c3336e
pop eax
xor dword [edx], ebx
mov eax, eax
inc edx
push 0x37e33179
pop eax
cmp edx, ecx
jne fcn.0043b644
or eax, eax
and eax, eax
and esi, esi
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..idata
mov ebx, 0x40915c
nop
nop
mov ecx, 0x3ec70569
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
mov ecx, 0x65297aae
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x47f008], 0x8088405
inc edx
mov dword [ebx + 0x47f008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d254
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d285
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d26d
add dl, dl
jne 0x41d290
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2e1
xor eax, eax
add dl, dl
jne 0x41d29d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d37e
add dl, dl
jne 0x41d2ac
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2b7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2c2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2cd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d2d7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d27c
mov eax, 1
add dl, dl
jne 0x41d2ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2e6
sub eax, ebx
mov ebx, 1
jne 0x41d32d
mov ecx, 1
add dl, dl
jne 0x41d313
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d31e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d30a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d33b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d39f
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d27c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f3b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x46289e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f3ff
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
jmp 0x41f41e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f490
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f479
test esi, esi
jbe 0x41f490
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f46b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f490
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f448
jmp 0x41f490
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f490
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4628a5
ret
Function at 0x4205fc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x463c17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420637
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x420650
lea eax, [ebp - 0x10]
mov edx, dword [0x4815f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x420663
lea eax, [ebp - 0x10]
mov edx, dword [0x4815f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42066f
adc edx, 0
mov edx, dword [edx*4 + 0x4803fc]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4207e9
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4207dc
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4207dc
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x42077a
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x42077a
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x42077a
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x42077a
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4207dc
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4207dc
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420801
inc ebx
cmp ebx, 0x19
jne 0x420629
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463c1e
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x4afce4
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
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
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 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
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
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x408941
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
inc edi
call fcn.00408956
xor dword [ebx], esi
dec eax
inc ebx
inc edi
cmp ebx, edx
jne fcn.00408941
ret