joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462386
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4623be
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046043d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00460415
jmp 0x4623ca
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x463a74
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x463ab6
call fcn.004697f1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x463ab6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x463aad
xor eax, eax
jmp 0x463abe
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00463ac4
pop edi
pop esi
pop ebx
ret 4

Function at 0x469d21
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x469d4f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x469d6d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00469c87
jmp 0x469d6d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x469d6d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00469c87
test edi, edi
mov eax, edi
jne 0x469d57
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402ac6
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
lea eax, [eax + 0xc]
mov edx, eax
cmp edx, eax
je 0x402b20
push eax
push 0x40162a
call fcn.00402b5e
push 7
push 0x52c0bc
push dword [eax + 0x30]
call fcn.00402eb7
cmp eax, 0
jne 0x402afa
inc eax
jmp 0x402b22
push 0x401642
call fcn.00402b5e
push 7
push 0x52c0bc
push dword [eax + 0x30]
call fcn.00402eb7
cmp eax, 0
jne 0x402b1b
inc eax
jmp 0x402b22
pop eax
mov eax, dword [eax]
jmp 0x402ad4
xor eax, eax
ret

Function at 0x402b38
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov eax, dword fs:[0x30]
mov al, byte [eax + 0x68]
and al, 0x70
cmp al, 0x70
sete al
movzx eax, al
ret

Function at 0x402b4c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0x30]
mov al, byte [eax + 2]
test al, al
setne al
movzx eax, al
ret

Function at 0x402b5e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
lea edi, [0x52c0bc]
mov esi, dword [ebp + 8]
lodsw ax, word [esi]
xor ax, 0xe2
stosw word es:[edi], ax
cmp ax, 0
jne 0x402b6c
pop edi
pop esi
leave
ret 4

Function at 0x402b80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
lea edi, [0x52c0bc]
mov esi, dword [ebp + 8]
lodsb al, byte [esi]
xor al, 0xe2
stosb byte es:[edi], al
cmp al, 0
jne 0x402b8e
pop edi
pop esi
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x20]
mov edi, dword [edx + ebx]
test edi, edi
je 0x402e13
add edi, ebx
xchg esi, eax
push ecx
xor eax, eax
lea ecx, [eax - 1]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg esi, eax
mov esi, dword [ebp + 0xc]
repe cmpsb byte [esi], byte es:[edi]
pop ecx
jne 0x402e13
sub ecx, dword [eax + 0x18]
neg ecx
mov edx, dword [eax + 0x24]
add edx, ebx
movzx edx, word [edx + ecx*2]
mov eax, dword [eax + 0x1c]
add eax, ebx
mov eax, dword [eax + edx*4]
add eax, ebx
jmp 0x402e1a
add edx, 4
loop 0x402dda
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 8

Function at 0x402e21
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
push esi
push edi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
lea ebp, [eax + 0xc]
mov eax, dword [ebp]
mov esi, dword [eax + 0x30]
movzx ecx, word [eax + 0x2e]
mov edi, dword [esp + 0x10]
mov dx, word [esi]
cmp dx, word [edi]
je 0x402e6d
cmp dx, 0x41
jb 0x402e52
cmp dx, 0x5a
jbe 0x402e58
cmp dx, 0x61
jb 0x402e64
cmp dx, 0x7a
ja 0x402e64
xor dx, 0x20
jmp 0x402e66
jmp 0x402e80
cmp dx, word [edi]
je 0x402e6d
jmp 0x402e80
add edi, 2
add esi, 2
sub ecx, 2
cmp ecx, 0
jne 0x402e3e
mov eax, dword [eax + 0x18]
jmp 0x402e88
mov eax, dword [eax]
cmp ebp, eax
jne 0x402e33
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x52755b
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 4
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
call sub.KERNEL32.DLL_GetTickCount
mov dword [0x52c200], eax
push 0x1f4
call sub.KERNEL32.DLL_Sleep
call sub.KERNEL32.DLL_GetTickCount
mov dword [0x52c204], eax
mov eax, dword [0x52c204]
sub eax, dword [0x52c200]
cmp eax, 0x1f4
jge 0x52759d
or word [ebp - 4], 0xffff
jmp 0x5275a2
and word [ebp - 4], 0
mov ax, word [ebp - 4]
leave
ret
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x15cb5c63
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..rsrc
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x73bf7d4e
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x48bef0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x54000]
push edi
jmp 0x48bf0a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x48bf11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48bf00
mov eax, 1
add ebx, ebx
jne 0x48bf23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48bf34
jne 0x48bf53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48bf53
dec eax
add ebx, ebx
jne 0x48bf40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x48bf18
add ebx, ebx
jne 0x48bf4f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x48bfa5
xor ecx, ecx
sub eax, 3
jb 0x48bf6b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48bfda
sar eax, 1
mov ebp, eax
jmp 0x48bf76
add ebx, ebx
jne 0x48bf76
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48bf44
inc ecx
add ebx, ebx
jne 0x48bf84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48bf44
add ebx, ebx
jne 0x48bf91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48bf86
jne 0x48bfa2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48bf86
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48bfc4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48bfb6
jmp 0x48bf06
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48bfc4
add edi, ecx
jmp 0x48bf06
pop esi
mov edi, esi
mov ecx, 0x2c6d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48bfe2
cmp byte [edi], 0x11
jne 0x48bfe2
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 0x48bfe7
lea edi, [esi + 0x88000]
mov eax, dword [edi]
or eax, eax
je 0x48c05f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x92c14]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x92d2c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48c014
mov ecx, edi
jns 0x48c043
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 + 0x92d30]
or eax, eax
je 0x48c059
mov dword [ebx], eax
add ebx, 4
jmp 0x48c031
call dword [esi + 0x92d40]
mov ebp, dword [esi + 0x92d34]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x48c093
sub esp, 0xffffff80
jmp 0x454bde
Function at 0x401c80
Capabilities:
Resolve dns

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
xor edi, edi
cmp byte [ebp], 0
je 0x401cef
push ebp
call sub.WS2_32.dll_inet_addr
mov edi, eax
cmp edi, 0xffffffff
jne 0x401cef
mov esi, str.255.255.255.255
mov ecx, ebp
mov al, byte [ecx]
mov bl, byte [esi]
mov dl, al
cmp al, bl
jne 0x401ccc
test dl, dl
je 0x401cc8
mov al, byte [ecx + 1]
mov bl, byte [esi + 1]
mov dl, al
cmp al, bl
jne 0x401ccc
add ecx, 2
add esi, 2
test dl, dl
jne 0x401ca4
xor ecx, ecx
jmp 0x401cd1
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x401cef
push ebp
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x401ced
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov edi, dword [edx]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x401ff0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
lea edx, [eax - 2]
mov word [ecx], dx
mov eax, dword [0x407480]
push eax
call fcn.00402050
add esp, 0xc
cmp eax, 0xffffffff
jne 0x402049
push str.send
call fcn.00401d10
mov ecx, dword [0x407480]
add esp, 4
push ecx
call sub.WS2_32.dll_closesocket
cmp eax, 0xffffffff
jne 0x40203e
push str.close
call fcn.00401d10
add esp, 4
push 0
call dword [sym.imp.MSVCRT.dll_exit]
add esp, 4
ret

Function at 0x402090
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x407480]
push esi
mov esi, dword [esp + 8]
push edi
push 2
push esi
push eax
call fcn.004020e0
mov edi, dword [sym.imp.MSVCRT.dll_exit]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4020b9
push 1
call edi
add esp, 4
mov edx, dword [0x407480]
xor ecx, ecx
mov cx, word [esi]
push ecx
push esi
push edx
call fcn.004020e0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4020db
push 1
call edi
add esp, 4
pop edi
pop esi
ret

Function at 0x4020e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
jle 0x40214f
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
push 0
push esi
push edi
push ebx
call sub.WS2_32.dll_recv
test eax, eax
je 0x402117
cmp eax, 0xffffffff
je 0x402123
sub esi, eax
add edi, eax
test esi, esi
jg 0x4020f3
mov eax, 1
pop edi
pop esi
pop ebx
ret
push str.remote_disconnect
call fcn.00401d00
jmp 0x40212d
push str.recv
call fcn.00401d10
add esp, 4
push ebx
call sub.WS2_32.dll_closesocket
cmp eax, 0xffffffff
jne 0x402148
push str.close
call fcn.00401d10
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x402c10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403098
push 0x402db0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x407484], 0xffffffff
mov dword [0x407488], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x405064]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x405060]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x40748c], ecx
call fcn.00402da0
mov eax, dword [0x405040]
test eax, eax
jne 0x402ca1
push 0x402d90
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00402d70
push 0x40400c
push 0x404008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x40505c]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [0x405058]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x404004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00402160
add esp, 0xc
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x402d40
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bfd1f
Capabilities:
Execute anti-debugging instructions

Disassembly:
push esp
mov dword [esp + 0xd0], ebp
push esp
call fcn.004bfced
call fcn.004bfd9e
mov dword [esp + 3], esi
mov word [esp + 2], di
push word [esp + 9]
push word [esp + 7]
jmp 0x4bfd74
pop word [esp + 3]
mov dword [esp + 5], ecx
pop dword [esp]
push word [esp + 1]
mov byte [esp + 1], dh
jmp 0x4bfd11
mov dword [esp + 0xe0], esi
call fcn.004bfd57
pop dword [esp]
mov dword [esp + 0xe0], edi
lea esp, [esp + 0xe0]
jmp 0x4bfdac
pushfd
lea eax, reloc.WSOCK32.dll_WSACleanup
mov cl, 0x32
rdtsc
mov ebp, dword [esp]
jmp 0x4bfe2e
lea esi, [esp + 0x20]
lea edx, [eax + 9]
bsf bp, si
jb 0x4bfdfe
jae 0x4bfdde
mov dword [esp + 0x24], eax
jmp 0x4c18d3
mov bl, byte [esp]
xchg bp, ax
sub esp, 0xa0
mov ebp, esp
jmp 0x4bfe12
xchg dx, cx
rdtsc
xchg dh, al
sub esp, 0x12
jns 0x4bfe5d
js 0x4bfe67
call 0x4bfe25
jmp 0x4c19de
mov edi, dword [esp + 0x28]
mov ebp, dword [esp]
lea esi, [esi*4]
mov al, 0x2e
pushal
jmp 0x4bfdbc
lea esp, [esp + 2]
jmp 0x4bfe8b
popal
call fcn.004c1a26
inc edi
invalid
pop ecx
sub ecx, 0x1000e489
jmp 0x4c1a44
movzx ebx, byte [eax]
jmp 0x4c1a4c
mov dword [ecx + reloc.WSOCK32.dll_WSACleanup], eax
jmp 0x4c1a2c
add ebx, 0x44490ec5
cmp ebx, 0x44490f91
jmp 0x4c1ab0
je 0x4c1ab6
jne 0x4bfdcb
invalid

Function at 0x4bfd40
Capabilities:
Execute anti-debugging instructions

Disassembly:
push esp
mov dword [esp + 0xd0], ebp
push esp
call fcn.004bfced
call fcn.004bfd9e
mov dword [esp + 3], esi
mov word [esp + 2], di
push word [esp + 9]
push word [esp + 7]
jmp 0x4bfd74
pop word [esp + 3]
mov dword [esp + 5], ecx
pop dword [esp]
push word [esp + 1]
mov byte [esp + 1], dh
jmp 0x4bfd11
mov dword [esp + 0xe0], esi
call fcn.004bfd57
pop dword [esp]
mov dword [esp + 0xe0], edi
lea esp, [esp + 0xe0]
jmp 0x4bfdac
pushfd
lea eax, reloc.WSOCK32.dll_WSACleanup
mov cl, 0x32
rdtsc
mov ebp, dword [esp]
jmp 0x4bfe2e
lea esi, [esp + 0x20]
lea edx, [eax + 9]
bsf bp, si
jb 0x4bfdfe
jae 0x4bfdde
mov dword [esp + 0x24], eax
jmp 0x4c18d3
mov bl, byte [esp]
xchg bp, ax
sub esp, 0xa0
mov ebp, esp
jmp 0x4bfe12
xchg dx, cx
rdtsc
xchg dh, al
sub esp, 0x12
jns 0x4bfe5d
js 0x4bfe67
call 0x4bfe25
jmp 0x4c19de
mov edi, dword [esp + 0x28]
mov ebp, dword [esp]
lea esi, [esi*4]
mov al, 0x2e
pushal
jmp 0x4bfdbc
lea esp, [esp + 2]
jmp 0x4bfe8b
popal
call fcn.004c1a26
inc edi
invalid
pop ecx
sub ecx, 0x1000e489
jmp 0x4c1a44
movzx ebx, byte [eax]
jmp 0x4c1a4c
mov dword [ecx + reloc.WSOCK32.dll_WSACleanup], eax
jmp 0x4c1a2c
add ebx, 0x44490ec5
cmp ebx, 0x44490f91
jmp 0x4c1ab0
je 0x4c1ab6
jne 0x4bfdcb
invalid

Function at 0x4bfd57
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov word [esp], dx
pop word [esp]
push word [esp + 1]
push edx
mov byte [esp + 6], ch
jmp 0x4bfd80

Function at 0x4bfd9e
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov word [esp + 0xa], di
pop dword [esp + 6]
jmp 0x4bfd24
Function at 0x5d5a74
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
push eax
jmp 0x5d0044
call fcn.005d0049
call 0x5d4415
jmp 0x5d5b20
movzx ebx, word [eax + 0x3c]
jmp 0x5d5afd
lea esp, [esp + 1]
mov dword [esp + 0x38], edi
lea esp, [esp + 0x38]
jmp 0x5d5a93
jmp 0x5d5a5b
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0x5d4410
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x5d5a76
sar byte [esi], 1
int 0x5c
scasd eax, dword es:[edi]
mov dh, 0x2d
add byte [eax], al
add dword [eax], eax
sub eax, 0x10000
jmp 0x5d5b24
add ebx, eax
cmp word [ebx], 0x4550
je 0x5cfb75
jne 0x5d5ae6
ficomp word [ebx - 0x35]
scasb al, byte es:[edi]
pop ebp
cld
xor al, 0xbc
push edx
xor eax, 0x890210c4
sbb dword [eax - 0x75], edi
test al, 0xcb
pop eax
xor ax, ax
cmp word [eax], 0x5a4d
je 0x5d4456
jne 0x5d5ae6
outsb dx, byte [esi]
loopne 0x5d5baa
adc eax, esp
push cs
nop
sbb eax, 0xc727d48d
loop 0x5d5bad
cld
wait
jbe 0x5d5ae0
lock adc dword [ebx], 0x76
test dword [eax - 0x2a], esp
inc esp
fidivr dword [ebp - 0xe9f51b4]
popal
add bl, dh
sbb byte [edx - 0xe], ah
pushal
pop es
push ebp
pushal
mul dword [edi + 2]
int1
push cs
jle 0x5d5b4b
jle 0x5d5b7e
call 0x9562ebc7
cld
shld dword [edx], esp, 0xb6
and al, 0x43
mov esi, 0x3bab3008
pop esi
lodsd eax, dword [esi]
add dl, byte [esi - 0x34]
inc edx
and eax, 0x38d966d4
fnstcw word [eax]
div dword [edx + 0x60]
invalid
Function at 0x81321f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0xc]
push 0x40
push 0
push esi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
jne 0x81323d
xor eax, eax
inc eax
jmp 0x8132c8
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x8132c5
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x8132c5
push dword [ebp + 0xc]
lea edi, [esi + 0x40]
push 0xf8
push eax
push edi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
je 0x813235
cmp dword [edi], 0x4550
jne 0x8132c5
mov eax, 0x10b
cmp word [esi + 0x58], ax
jne 0x8132c5
movzx eax, word [esi + 0x46]
test ax, ax
je 0x8132c5
mov edi, eax
imul edi, edi, 0x28
push edi
mov dword [esi + 0x140], edi
call fcn.0083361b
pop ecx
mov dword [esi + 0x138], eax
test eax, eax
jne 0x8132a1
push 3
jmp 0x8132c7
movzx ecx, word [esi + 0x54]
push dword [ebp + 0xc]
mov edx, dword [esi + 0x3c]
lea ecx, [ecx + edx + 0x18]
push edi
push ecx
push eax
mov dword [esi + 0x13c], ecx
call dword [ebp + 8]
add esp, 0x10
neg eax
sbb eax, eax
inc eax
jmp 0x8132c8
push 2
pop eax
pop edi
pop ebp
ret

Function at 0x814d53
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x814d61
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x814e1c
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f830]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f830]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f830]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f830]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f830]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f830]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f830]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f830]
add edx, 8
sub edi, 8
dec esi
jne 0x814d7f
pop ebx
test edi, edi
je 0x814e35
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x43f830]
inc edx
dec edi
jne 0x814e20
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x814e3b
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x43f830]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x43f830]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret
Function at 0x82e9ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x82e9ba
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x82ea75
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x441608]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x441608]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x441608]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x441608]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x441608]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x441608]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x441608]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x441608]
add edx, 8
sub edi, 8
dec esi
jne 0x82e9d8
pop ebx
test edi, edi
je 0x82ea8e
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x441608]
inc edx
dec edi
jne 0x82ea79
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x82ea94
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x441608]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x441608]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret