joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002f1e0
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 4], 1
call fcn.1002f540
mov esi, eax
test esi, esi
jns 0x1002f214
mov dword [edi + 0x28c], 2
or eax, 0xffffffff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 4
lea ecx, [ebp - 4]
push ecx
push 1
push 6
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1002f245
push esi
mov dword [edi + 0x28c], 2
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ebx, [edi + 0x4c]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movzx eax, ax
push 0
mov dword [ebp + 8], eax
mov word [ebp - 0xa], ax
push 4
lea eax, [ebp - 0xc]
push eax
mov edx, 5
push esi
mov word [ebp - 0xc], dx
mov byte [ebp - 8], 1
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 4
jne 0x1002f229
push 0
push 1
lea ecx, [ebp - 8]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 1
jne 0x1002f229
movzx eax, word [ebp + 8]
push 0
push eax
push ebx
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, dword [ebp + 8]
jne 0x1002f229
mov edx, dword [edi + 0x188]
xor eax, eax
test edx, edx
je 0x1002f2c3
lea ecx, [edi + 0x18c]
cmp dword [ecx], esi
je 0x1002f2c3
inc eax
add ecx, 4
cmp eax, edx
jb 0x1002f2b7
cmp eax, edx
jne 0x1002f2d9
cmp edx, 0x40
jae 0x1002f2d9
mov dword [edi + eax*4 + 0x18c], esi
inc dword [edi + 0x188]
mov eax, dword [edi + 0x184]
cmp esi, eax
jle 0x1002f2e5
mov eax, esi
mov dword [edi + 0x184], eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1002f300
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [eax + 0x14]
test ebx, ebx
jle 0x1002f389
mov ecx, dword [ebp + 8]
push 0
push ebx
push ecx
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jle 0x1002f331
add dword [ebp + 8], esi
sub ebx, esi
jmp 0x1002f385
je 0x1002f397
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x1002f385
cmp eax, 0x2733
jne 0x1002f3a2
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x110]
push eax
push 0
mov ecx, eax
push ecx
lea edx, [edi + 1]
push edx
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
mov dword [ebp - 8], 0x14
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x1002f38e
je 0x1002f3ad
test ebx, ebx
jg 0x1002f316
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1002f3c0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [eax + 0x14]
mov dword [ebp + 0xc], 0
test ebx, ebx
jle 0x1002f478
mov ecx, dword [ebp + 8]
push 0
push ebx
push ecx
push edi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jle 0x1002f3fc
add dword [ebp + 8], esi
sub ebx, esi
jmp 0x1002f470
je 0x1002f486
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x1002f470
cmp eax, 0x2733
jne 0x1002f491
lea edx, [ebp - 8]
push edx
xor esi, esi
push esi
lea eax, [ebp - 0x110]
push eax
push esi
lea ecx, [edi + 1]
push ecx
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
mov dword [ebp - 8], 5
mov dword [ebp - 4], esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, esi
jl 0x1002f47d
jne 0x1002f46d
mov eax, dword [ebp + 0xc]
add eax, 0x1388
mov dword [ebp + 0xc], eax
cmp eax, 0x4e20
jl 0x1002f470
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp + 0xc], esi
test ebx, ebx
jg 0x1002f3e1
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1002f4a0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
xor al, al
lea edi, [ebp - 0x14]
mov ecx, 0x10
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 8]
mov eax, 2
push ecx
mov dword [ebp - 4], 1
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp + 0xc]
push 0
push 1
push 2
mov word [ebp - 0x12], ax
mov dword [ebp - 0x10], edx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
test esi, esi
js 0x1002f509
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1002f514
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x1002f502
push 5
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
js 0x1002f502
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1002f540
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, eax
xor al, al
lea edi, [ebp - 0x10]
mov ecx, 0x10
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0xc]
mov eax, 2
push ecx
mov word [ebp - 0x10], ax
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebp - 0xe], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0xffffffffffffffff
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htonl]
cmp dword [ebp - 0xc], eax
jne 0x1002f59a
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1002f5c4
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
test ebx, ebx
js 0x1002f5c4
push 0x10
lea edx, [ebp - 0x10]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x1002f5d0
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 8]
add edi, 0x164
lea esi, [ebp - 0x10]
mov ecx, 0x10
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100342d0
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push ebx
push esi
mov esi, dword [edx + 4]
mov edx, eax
shr edx, 4
xor edx, esi
and edx, 0xf0f0f0f
xor esi, edx
shl edx, 4
xor eax, edx
mov edx, eax
shr edx, 0x10
xor edx, esi
and edx, 0xffff
xor esi, edx
shl edx, 0x10
xor eax, edx
mov edx, esi
shr edx, 2
xor edx, eax
and edx, 0x33333333
xor eax, edx
add edx, edx
add edx, edx
xor esi, edx
mov edx, esi
shr edx, 8
xor edx, eax
and edx, 0xff00ff
xor eax, edx
shl edx, 8
xor esi, edx
rol esi, 1
mov edx, esi
xor edx, eax
and edx, 0xaaaaaaaa
xor esi, edx
xor edx, eax
rol edx, 1
push edi
mov ecx, 0x1005b220
mov dword [ebp - 4], edx
mov dword [ebp - 8], 8
mov eax, esi
ror eax, 4
xor eax, dword [ecx]
add ecx, 0x10
mov edx, eax
shr edx, 0x18
mov edi, eax
shr edi, 0x10
and edi, 0x3f
and edx, 0x3f
mov edx, dword [edx*4 + 0x1004b6a8]
or edx, dword [edi*4 + 0x1004b8a8]
mov edi, eax
shr edi, 8
and edi, 0x3f
or edx, dword [edi*4 + 0x1004baa8]
and eax, 0x3f
or edx, dword [eax*4 + 0x1004bca8]
mov eax, dword [ecx - 0xc]
xor eax, esi
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x1004b7a8]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
or edi, dword [ebx*4 + 0x1004b9a8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edi, dword [ebx*4 + 0x1004bba8]
and eax, 0x3f
or edi, dword [eax*4 + 0x1004bda8]
or edi, edx
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 4]
xor edi, dword [ebp - 0xc]
mov eax, edi
ror eax, 4
xor eax, dword [ecx - 8]
mov dword [ebp - 4], edi
mov edx, eax
shr edx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and edx, 0x3f
mov edx, dword [edx*4 + 0x1004b6a8]
or edx, dword [ebx*4 + 0x1004b8a8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edx, dword [ebx*4 + 0x1004baa8]
and eax, 0x3f
or edx, dword [eax*4 + 0x1004bca8]
mov eax, dword [ecx - 4]
xor eax, edi
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x1004b7a8]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
or edi, dword [ebx*4 + 0x1004b9a8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edi, dword [ebx*4 + 0x1004bba8]
and eax, 0x3f
or edi, dword [eax*4 + 0x1004bda8]
or edi, edx
xor esi, edi
dec dword [ebp - 8]
jne 0x10034353
mov ecx, dword [ebp - 4]
ror esi, 1
mov eax, esi
xor eax, ecx
and eax, 0xaaaaaaaa
xor esi, eax
xor eax, ecx
ror eax, 1
mov ecx, eax
shr ecx, 8
xor ecx, esi
and ecx, 0xff00ff
xor esi, ecx
shl ecx, 8
xor eax, ecx
mov ecx, eax
shr ecx, 2
xor ecx, esi
and ecx, 0x33333333
xor esi, ecx
add ecx, ecx
add ecx, ecx
xor eax, ecx
mov edx, dword [ebp + 8]
mov ecx, esi
shr ecx, 0x10
xor ecx, eax
and ecx, 0xffff
xor eax, ecx
shl ecx, 0x10
xor esi, ecx
mov ecx, esi
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
mov edi, ecx
shl edi, 4
xor edi, esi
mov dword [edx], edi
pop edi
xor ecx, eax
pop esi
mov dword [edx + 4], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10036ef0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 8], edi
jmp 0x10036f03
mov edi, dword [ebp - 8]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x10036f7d
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x10036f51
sub eax, edi
jmp 0x10036f53
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x10036f42
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x10036f70
sub eax, edi
jmp 0x10036f72
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x10036f61
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x1003708b
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 4]
mov ebx, ecx
mov dword [ebp - 0xc], eax
cmp ebx, edx
jbe 0x10036fa3
mov ebx, edx
test ebx, ebx
je 0x10036fd8
mov edx, dword [edi + 0x1c]
sub ecx, ebx
mov dword [edi + 4], ecx
cmp dword [edx + 0x18], 1
jne 0x10036fc6
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
call fcn.10041950
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
push ebx
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x10037000
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x10037014
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x10036f00
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x1003708b
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x1003705a
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x1003703b
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
add ebx, edi
pop edi
mov dword [esi + 0x16c0], ebx
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x1003708b
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x10037074
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10042850
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor eax, 0xffffffff
test ecx, ecx
mov esi, dword [ebp + 8]
je 0x10042879
xor al, byte [esi]
movzx edx, al
shr eax, 8
mov edx, dword [edx*4 + 0x1004b100]
inc esi
xor eax, edx
dec ecx
jne 0x10042864
xor eax, 0xffffffff
pop esi
leave
ret 0xc

Function at 0x90d2a7
Capabilities:
Execute anti-debugging instructions

Disassembly:
inc edx
jmp 0xe0b5b5
inc edx
stc
jmp 0xe22d29
push esi
xchg si, si
movsx esi, bp
push edx
push ecx
pushfd
bt esi, 0x85
rcr dh, 0x5f
push ebp
mov ecx, eax
cwd
push edi
push eax
rdtsc
push ebx
rcr si, 0x64
bts ecx, esp
mov ecx, 0
mov ebp, edx
ror dl, cl
ror edi, 0x9e
push ecx
movsx edi, di
ror ax, cl
mov edi, dword [esp + 0x28]
lahf
rol edi, 2
xadd ebp, edx
neg edi
rdtsc
not bh
dec edi
bsr si, ax
xor edi, 0x78555597
rol eax, 0x47
shl dh, 0x6c
add edi, 0x3c3d3ada
or bx, 0x4d15
bswap edi
bt esi, 0x76
shr ax, cl
lea edi, [edi - 0x336a2648]
rol ebp, 0x80
sete bh
bt eax, esi
lea edi, [edi + ecx]
rdtsc
rcl dl, 0xf4
mov ebp, esp
lea esp, [esp - 0xc0]
test dl, 0x9b
cbw
sbb si, 0x3258
mov ebx, edi
and eax, edi
rdtsc
dec dx
mov eax, 0
rcl dx, 1
bsf si, sp
sub ebx, eax
lea esi, [0x90d353]
add dh, ah
clc
sal dx, cl
lea edi, [edi - 4]
adc edx, esp
xor dx, sp
mov edx, dword [edi]
cmp al, 0xc1
test ebx, ebp
clc
xor edx, ebx
jmp 0x8c9a6e
jmp esi
xor edx, 0x9f85f09
test dx, cx
stc
cmp ah, 0x15
neg edx
jmp 0x907ad0
rol edx, 2
not edx
jmp 0xd9b73e
not edx
xor ebx, edx
add esi, edx
jmp 0xd8a0e8
Function at 0x4111d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 0xc]
push eax
xor ebx, ebx
inc ebx
push ebx
xor edi, edi
push edi
push 0x431bfc
push 0x80000002
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 0x200
call esi
test eax, eax
jne 0x411235
lea eax, [ebp - 8]
push eax
push str.EnableJavaUpdate
push dword [ebp - 0xc]
mov dword [ebp - 8], edi
call main
add esp, 0xc
test eax, eax
je 0x411227
cmp dword [ebp - 8], ebx
je 0x41122a
mov dword [ebp - 4], ebx
push dword [ebp - 0xc]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x411243
push str.ISAUDisabled__:_Error_opening_HKLM_Policy_key_for_reading
call main
pop ecx
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], edi
jne 0x4112d5
call fcn.00410107
test eax, eax
jne 0x4112d2
call main
test eax, eax
je 0x4112d2
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push 0x431c74
push 0x80000001
call esi
test eax, eax
jne 0x4112d5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
push edi
push 0x431c9c
push dword [ebp - 0xc]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp esi, edi
jne 0x4112d5
mov dword [ebp - 8], edi
call fcn.0040feb9
test eax, eax
je 0x4112c7
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x210]
push eax
call fcn.0040ff5d
mov eax, dword [ebp - 8]
add esp, 0x10
jmp 0x4112cd
mov eax, dword [ebp - 0x210]
cmp eax, 0x64
jne 0x4112d5
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4187e4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43a210]
jne 0x4187ee
repz ret
jmp fcn.00420617

Function at 0x41e34e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x41e35d
pop dword [ebp - 8]
mov eax, 0x41e35d
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x42309
push 0
mov eax, 0x5885b9fc
sub eax, 0x5842f7d8
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x4a4f
xor edi, edi
add edi, eax
mov esi, 0x539ad1ce
add esi, 0xaca93632
add esi, dword [ebp - 8]
mov ebx, 0x3ab971d9
add ebx, 0xef47f952
xor dword [ebp - 4], ecx
mov edx, dword [esi]
xor dword [ebp - 4], eax
sub edx, ebx
sub dword [ebp - 4], edx
mov dword [edi], edx
sub dword [ebp - 4], edi
add edi, 0x5a35d2fe
add edi, 0xa5ca2d06
add esi, 0x7a2e606
add esi, 0xf85d19fe
loop 0x41e3b3
add eax, 0x11c0f
xor ebx, ebx
add ebx, eax
add eax, 0x5c27ff67
add eax, 0xa3d8009e
mov ecx, 0xc01c2a52
sub ecx, 0xbfdc2a52
add ecx, dword [ebp - 8]
call 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 0x40d8ee
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

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 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x40d719
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x415570
cmp edx, dword [eax]
je 0x40d73b
add eax, 8
inc ecx
cmp eax, 0x415600
jl 0x40d72c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x415570]
jne 0x40d869
mov eax, dword [0x4244cc]
cmp eax, 1
je 0x40d843
test eax, eax
jne 0x40d76c
cmp dword [0x4130f4], 1
je 0x40d843
cmp edx, 0xfc
je 0x40d869
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d7a3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040d870
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409b20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40d7e6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409b20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x410828
push edi
call fcn.0040e9e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040d870
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040d880
lea eax, [ebp - 0xa0]
push 0x410808
push eax
call fcn.0040d880
push dword [esi + 0x415574]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040d880
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040e954
add esp, 0x2c
pop edi
jmp 0x40d869
lea eax, [ebp + 8]
lea esi, [esi + 0x415574]
push 0
push eax
push dword [esi]
call fcn.00409b20
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 0x31a28a4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x31fc030], 0x8088405
inc edx
mov dword [0x31fc030], edx
mul edx
mov eax, edx
ret

Function at 0x31a8188
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
xor edx, edx
mov dword [eax + 0x14], edx
xor edx, edx
mov dword [eax + 0x18], edx
ret
Function at 0x31a9e04
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
je 0x31a9e27
jne 0x31a9e2e
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 1
jne 0x31a9e3d
mov dl, 1
cmp dword [ebp - 4], 1
jne 0x31a9e45
xor edx, edx
mov eax, edx
pop ecx
pop ecx
pop ebp
ret

Function at 0x31b2ee8
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x31b3079
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.031a3578
push 0x31b3088
call fcn.031a6794
mov esi, eax
test esi, esi
je 0x31b2f2a
push 0x31b3094
push esi
call fcn.031a6734
mov edi, eax
test edi, edi
je 0x31b304b
mov dword [ebp - 4], 0x400
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.031a3acc
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.031a395c
push eax
push 0
call edi
test eax, eax
jne 0x31b304b
mov edx, dword [ebp - 4]
dec edx
lea eax, [ebp - 8]
call fcn.031a3acc
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.031a35cc
mov eax, dword [ebx]
call fcn.031a3798
cmp eax, 0xf5
jle 0x31b304b
mov edx, dword [ebx]
mov eax, 0x31b30b4
call fcn.031a3a84
test eax, eax
je 0x31b2fa6
mov eax, ebx
mov edx, 0x31b30c4
call fcn.031a35cc
jmp 0x31b304b
mov edx, dword [ebx]
mov eax, 0x31b3114
call fcn.031a3a84
test eax, eax
je 0x31b2fc7
mov eax, ebx
mov edx, 0x31b3128
call fcn.031a35cc
jmp 0x31b304b
mov edx, dword [ebx]
mov eax, 0x31b3178
call fcn.031a3a84
test eax, eax
je 0x31b2fe5
mov eax, ebx
mov edx, 0x31b318c
call fcn.031a35cc
jmp 0x31b304b
mov edx, dword [ebx]
mov eax, 0x31b31dc
call fcn.031a3a84
test eax, eax
je 0x31b3003
mov eax, ebx
mov edx, 0x31b31f0
call fcn.031a35cc
jmp 0x31b304b
mov edx, dword [ebx]
mov eax, 0x31b3288
call fcn.031a3a84
test eax, eax
je 0x31b3021
mov eax, ebx
mov edx, 0x31b329c
call fcn.031a35cc
jmp 0x31b304b
mov edx, dword [ebx]
mov eax, 0x31b331c
call fcn.031a3a84
test eax, eax
je 0x31b303f
mov eax, ebx
mov edx, 0x31b3330
call fcn.031a35cc
jmp 0x31b304b
mov eax, ebx
mov edx, 0x31b30c4
call fcn.031a35cc
mov eax, dword [ebx]
call fcn.031a3798
cmp eax, 0xa
jge 0x31b3063
mov eax, ebx
mov edx, 0x31b30c4
call fcn.031a35cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x31b3080
lea eax, [ebp - 8]
call fcn.031a3578
ret