joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10058d45
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10061170]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.100553a9
mov dword [ebp - 0x14], eax
cmp dword [0x1064d3f0], esi
jne 0x10058e38
push 0x800
push esi
push 0x10006474
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10058dc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10058f18
push esi
push esi
push 0x10006474
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10058f18
push 0x1000648c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10058f18
push eax
call ebx
push 0x10006498
push edi
mov dword [0x1064d3f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100064a8
push edi
mov dword [0x1064d3f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100064bc
push edi
mov dword [0x1064d3f8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1064d400], eax
test eax, eax
je 0x10058e35
push 0x100064d8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1064d3fc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10058e5d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10058e50
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10058e72
push 4
pop eax
jmp 0x10058f1a
cmp dword [ebp - 0x14], esi
je 0x10058e72
push dword [0x1064d3f0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10058e57
mov eax, dword [0x1064d3fc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10058ed0
cmp dword [0x1064d400], edi
je 0x10058ed0
push eax
call ebx
push dword [0x1064d400]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10058ed0
test eax, eax
je 0x10058ed0
call ecx
test eax, eax
je 0x10058ec5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10058ec5
test byte [ebp - 8], 1
jne 0x10058ed0
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10058f00
mov eax, dword [0x1064d3f4]
cmp eax, edi
je 0x10058efd
push eax
call ebx
test eax, eax
je 0x10058efd
call eax
mov esi, eax
test esi, esi
je 0x10058efd
mov eax, dword [0x1064d3f8]
cmp eax, edi
je 0x10058efd
push eax
call ebx
test eax, eax
je 0x10058efd
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1064d3f0]
call ebx
test eax, eax
je 0x10058f18
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10058f1a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004da4e
mov esp, ebp
pop ebp
ret
Function at 0x5f26c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.HAOCMP1
lea edi, [esi - 0x14b000]
push edi
or ebp, 0xffffffff
jmp 0x5f26e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5f26e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5f26d8
mov eax, 1
add ebx, ebx
jne 0x5f26fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5f270c
jne 0x5f272b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5f272b
dec eax
add ebx, ebx
jne 0x5f2718
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5f26f0
add ebx, ebx
jne 0x5f2727
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5f277d
xor ecx, ecx
sub eax, 3
jb 0x5f2743
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5f27b2
sar eax, 1
mov ebp, eax
jmp 0x5f274e
add ebx, ebx
jne 0x5f274e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5f271c
inc ecx
add ebx, ebx
jne 0x5f275c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5f271c
add ebx, ebx
jne 0x5f2769
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5f275e
jne 0x5f277a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5f275e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5f279c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5f278e
jmp 0x5f26de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5f279c
add edi, ecx
jmp 0x5f26de
pop esi
mov edi, esi
mov ecx, 0x4bf5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5f27ba
cmp byte [edi], 0x12
jne 0x5f27ba
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 0x5f27bf
lea edi, [esi + 0x1ee000]
mov eax, dword [edi]
or eax, eax
je 0x5f2837
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x248f58]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x249084]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5f27ec
mov ecx, edi
jns 0x5f281b
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 + 0x249088]
or eax, eax
je 0x5f2831
mov dword [ebx], eax
add ebx, 4
jmp 0x5f2809
call dword [esi + 0x249090]
mov ebp, dword [esi + 0x24908c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
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 0x5f286b
sub esp, 0xffffff80
jmp 0x43c5f7
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41ce90
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 0x41cec1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cea9
add dl, dl
jne 0x41cecc
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf1d
xor eax, eax
add dl, dl
jne 0x41ced9
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cfba
add dl, dl
jne 0x41cee8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cef3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cefe
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf09
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf13
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41ceb8
mov eax, 1
add dl, dl
jne 0x41cf2b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf36
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf22
sub eax, ebx
mov ebx, 1
jne 0x41cf69
mov ecx, 1
add dl, dl
jne 0x41cf4f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cf5a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf46
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41ceb8
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cf80
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cf8b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf77
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 0x41ceb8
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cfdb
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 0x41ceb8
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 0x41efdc
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 0x5624ca
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 0x41f02b
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 0x41f04a
mov ecx, edx
add ecx, ebx
jmp 0x41f04a
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 0x41f04a
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f0bc
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 0x41f0a5
test esi, esi
jbe 0x41f0bc
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f097
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 0x41f0bc
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f074
jmp 0x41f0bc
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f0bc
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 0x5624d1
ret
Function at 0x4201e8
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 0x563803
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 0x420223
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x42023c
lea eax, [ebp - 0x10]
mov edx, dword [0x57f30c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x42024f
lea eax, [ebp - 0x10]
mov edx, dword [0x57f30c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42025b
adc edx, 0
mov edx, dword [edx*4 + 0x57e154]
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 0x4203d5
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.00406d7c
test eax, eax
je 0x4203c8
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4203c8
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
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.00406d7c
test eax, eax
je 0x4203c8
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4203c8
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420366
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420366
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.00406d7c
test eax, eax
je 0x420366
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420366
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 0x4203c8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4203c8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4203c8
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.00406d7c
test eax, eax
je 0x4203c8
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4203c8
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 0x4203ed
inc ebx
cmp ebx, 0x19
jne 0x420215
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56380a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x24a3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.024a378f
jae 0x24a370e
xor ecx, ecx
call fcn.024a378f
jae 0x24a373d
xor eax, eax
call fcn.024a378f
jae 0x24a374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.024a378f
adc al, al
jae 0x24a372f
jne 0x24a3779
stosb byte es:[edi], al
jmp 0x24a3711
call fcn.024a379b
sub ecx, ebx
jne 0x24a3756
call fcn.024a3799
jmp 0x24a3775
lodsb al, byte [esi]
shr eax, 1
je 0x24a3783
adc ecx, ecx
jmp 0x24a3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.024a3799
cmp eax, 0x7d00
jae 0x24a3772
cmp ah, 5
jae 0x24a3773
cmp eax, 0x7f
ja 0x24a3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x24a3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x411be1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040dc32
and dword [ebp - 4], 0
cmp dword [0x5dfe5c], 0
mov ebx, eax
jne 0x411c92
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x411d43
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x416b04
push edi
call esi
test eax, eax
je 0x411d43
push eax
call fcn.0040dbc0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5dfe5c], eax
call esi
push eax
call fcn.0040dbc0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5dfe60], eax
call esi
push eax
call fcn.0040dbc0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5dfe64], eax
call esi
push eax
call fcn.0040dbc0
pop ecx
mov dword [0x5dfe6c], eax
test eax, eax
je 0x411c92
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040dbc0
pop ecx
mov dword [0x5dfe68], eax
mov eax, dword [0x5dfe68]
cmp eax, ebx
je 0x411cea
cmp dword [0x5dfe6c], ebx
je 0x411cea
push eax
call fcn.0040dc3b
push dword [0x5dfe6c]
mov esi, eax
call fcn.0040dc3b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x411cea
test edi, edi
je 0x411cea
call esi
test eax, eax
je 0x411ce1
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x411ce1
test byte [ebp - 0xc], 1
jne 0x411cea
or dword [ebp + 0x10], 0x200000
jmp 0x411d23
mov eax, dword [0x5dfe60]
cmp eax, ebx
je 0x411d23
push eax
call fcn.0040dc3b
pop ecx
test eax, eax
je 0x411d23
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x411d23
mov eax, dword [0x5dfe64]
cmp eax, ebx
je 0x411d23
push eax
call fcn.0040dc3b
pop ecx
test eax, eax
je 0x411d23
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5dfe5c]
call fcn.0040dc3b
pop ecx
test eax, eax
je 0x411d43
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x411d45
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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 0x45bd50
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x45bd83
push esi
call fcn.0045eeb0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45bd7c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x45be09
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45bdf2
mov eax, dword [esi + 8]
test eax, eax
je 0x45bda7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45bdee
cmp eax, 2
je 0x45bdf2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45bd9a
cmp eax, 3
je 0x45bdcd
cmp eax, 1
jne 0x45bd9a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45bd9a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45bd9a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0045be30
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x45be18
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0045be30
add esp, 4
pop esi
ret

Function at 0x4686e0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + 0x4aa58c]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x4aa51c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4686f3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x468734
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x4aa5c4]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x468766
mov bl, byte [esp + ecx + 0x4c]
jmp 0x46876a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x46875b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x468788
mov bl, byte [esp + ecx + 0x4c]
jmp 0x46878c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x46877d
xor ecx, ecx
mov eax, 0x4aa52c
xor ebx, ebx
mov bl, byte [ecx + 0x4aa5d4]
cmp byte [esp + ebx + 0x14], 0
je 0x4687b7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x4aa5ec]
cmp byte [esp + ebx + 0x14], 0
je 0x4687ce
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, 0x4aa58c
jl 0x46879e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x468727
lea edx, [esp + 0x84]
push edx
call fcn.00468810
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4058c9
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, dword [ebp + 8]
push edi
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
and al, 0xdd
lea ecx, [ebp - 4]
or al, 0x40
push ecx
add esi, 0x12
push eax
push 2
push esi
call edi
test eax, eax
je 0x405927
lea eax, [ebp - 8]
mov word [esi], 0x4550
push eax
push dword [ebp - 4]
push 2
push esi
call edi
mov al, 1
jmp 0x405929
xor al, al
pop edi
pop esi
leave
ret

Function at 0x4075fa
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push 0x10
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [esp + 0x10]
mov esi, eax
mov eax, dword [esp + 0x14]
and dword [esi + 0xc], 0
lea edi, [esi + 0xc]
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp dword [esi + 4], 0
mov dword [esi], eax
je 0x407657
cmp dword [esi + 8], 0
je 0x407657
push dword [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x407657
push edi
push 0x40
push dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x407a8f
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
cmp word [ebx], 0x5a4d
jne 0x407b01
mov eax, dword [ebx + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
jne 0x407b01
mov esi, dword [eax + 0x78]
mov eax, dword [esi + ebx + 0x20]
add esi, ebx
add eax, ebx
mov ecx, dword [esi + 0x18]
test ecx, ecx
mov dword [ebp - 8], ecx
je 0x407b01
mov edi, dword [esi + 0x24]
and dword [ebp + 8], 0
add edi, ebx
test ecx, ecx
jle 0x407b01
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov eax, dword [eax]
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x407af9
inc dword [ebp + 8]
add dword [ebp - 4], 4
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 8]
jl 0x407ad3
jmp 0x407b01
cmp word [ebp + 8], 0xffff
jne 0x407b06
or eax, 0xffffffff
jmp 0x407b11
movzx eax, word [ebp + 8]
movzx eax, word [edi + eax*2]
add eax, dword [esi + 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407b16
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
jne 0x407be2
mov ecx, dword [edi + 0x3c]
add ecx, edi
cmp dword [ecx], 0x4550
jne 0x407be2
mov eax, dword [ecx + 0x78]
mov edx, dword [ebp + 0xc]
add eax, edi
mov esi, dword [eax + 0x10]
cmp edx, esi
jb 0x407be2
sub edx, esi
cmp edx, dword [eax + 0x14]
ja 0x407be2
mov esi, dword [eax + 0x1c]
lea edx, [esi + edx*4]
mov esi, dword [edx + edi]
add esi, edi
cmp esi, eax
jb 0x407bde
mov ecx, dword [ecx + 0x7c]
add ecx, eax
cmp esi, ecx
jae 0x407bde
push 0x2e
push esi
call fcn.0040f422
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x407be2
push 0x104
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.0040f4d4
mov eax, edi
add esp, 0xc
sub eax, esi
push eax
lea eax, [ebp - 0x104]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x407be2
inc edi
push edi
push ebx
call fcn.00407a8f
push eax
push ebx
call fcn.00407b16
add esp, 0x10
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x407be4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret