joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d0c0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp + 8], 0x63b
mov dword [esp + 4], 0x41d05c
mov dword [esp], 0x418370
call sym._updatecontext_f
mov eax, dword [0x431298]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0x63d
add eax, 5
mov dword [esp + 8], 0x418370
mov dword [esp + 4], 0x41d05c
mov dword [esp], eax
call sym._mycalloc2
mov dword [ebp - 0x10], eax
mov eax, dword [0x431298]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0x63e
add eax, 9
mov dword [esp + 8], 0x418370
mov dword [esp + 4], 0x41d05c
mov dword [esp], eax
call sym._mycalloc2
mov dword [esp + 4], 0x41d069
mov edi, eax
mov eax, dword [0x431298]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._sprintf
mov dword [esp + 4], 0x41d070
mov eax, dword [0x431298]
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov dword [esp + 8], 0x1b6
mov dword [esp + 4], 0x10601
mov dword [esp], edi
call sym._open
test eax, eax
mov esi, eax
js 0x41d230
mov dword [esp + 0xc], 0x64d
mov dword [esp + 8], 0x418370
mov dword [esp + 4], 0x41d05c
mov dword [esp], 0x24
call sym._mycalloc2
mov dword [esp], eax
mov ebx, eax
mov dword [esp + 8], 0x41d07b
mov dword [esp + 4], 0
call sym._u_fillwith_msg
mov dword [ebx + 0x20], esi
mov dword [ebx], 0x10
mov dword [esp], ebx
call sym._u_parseit
mov dword [esp], ebx
call sym._mydelete2
mov dword [esp], esi
call sym._close
mov dword [esp], edi
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
call sym._rename
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._mydelete2
mov dword [esp], edi
call sym._mydelete2
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
call sym.___errno
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0x41d090
mov dword [esp], 0
call sym._outerror
jmp 0x41d1a1
Function at 0x420b00
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x58]
push ebx
sub esp, 0xcc
xor ebx, ebx
mov dword [esp], 0x420830
call sym._puts
lea esi, [esi]
mov dword [esp], 0x42097b
call sym._printf
call sym.___getreent
mov eax, dword [eax + 8]
mov dword [esp], eax
call sym._fflush
mov dword [esp + 8], 0x3b
mov dword [esp + 4], esi
mov dword [esp], 0
call sym._read
test eax, eax
js 0x420d5c
cmp byte [eax + ebp - 0x59], 0xa
je 0x420d92
sub eax, 5
cmp eax, 3
ja 0x420d81
mov ebx, 1
test ebx, ebx
je 0x420b20
mov dword [esp], 0x420998
lea ebx, [ebp - 0x98]
call sym._printf
call sym.___getreent
mov eax, dword [eax + 8]
mov dword [esp], eax
call sym._fflush
mov dword [esp + 8], 0x3b
mov dword [esp + 4], ebx
mov dword [esp], 0
call sym._read
test eax, eax
js 0x420d5c
cmp byte [eax + ebp - 0x99], 0xa
je 0x420d4e
mov dword [esp + 4], ebx
mov dword [esp], esi
call sym._strcmp
test eax, eax
jne 0x420d1a
call sym._getpid
mov dword [esp], 0
mov ebx, eax
imul ebx, ebx, 0x1388
call sym._time
mov ecx, 0x68db8bad
mov edi, eax
imul ecx
mov ecx, edi
sar ecx, 0x1f
mov dword [ebp - 0xbc], edx
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], eax
sar edx, 0xb
sub edx, ecx
imul edx, edx, 0x1388
sub edi, edx
lea eax, [edi + ebx]
mov dword [esp], eax
call sym._srand
call sym._rand
push eax
fild dword [esp]
add esp, 4
fmul dword [0x420af0]
fnstcw word [ebp - 0xaa]
movzx eax, word [ebp - 0xaa]
fdiv qword [0x420af8]
or ax, 0xc00
mov word [ebp - 0xac], ax
fldcw word [ebp - 0xac]
fistp dword [ebp - 0xb0]
fldcw word [ebp - 0xaa]
mov ebx, dword [ebp - 0xb0]
mov eax, ebx
sar eax, 6
test eax, eax
mov edx, eax
js 0x420d12
and edx, 0xffffffc0
sub eax, edx
mov dword [esp], eax
call sym._inttosaltchar
mov byte [ebp - 0xa8], al
test ebx, ebx
mov eax, ebx
js 0x420d0d
and eax, 0xffffffc0
sub ebx, eax
mov dword [esp], ebx
call sym._inttosaltchar
mov byte [ebp - 0xa7], al
lea eax, [ebp - 0xa8]
mov byte [ebp - 0xa6], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._crypt
test eax, eax
mov ebx, eax
je 0x420ce0
mov dword [esp], eax
call sym._strlen
cmp eax, 0xd
je 0x420cf7
mov dword [esp], 0x4209d0
call sym._puts
add esp, 0xcc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], 0x420a10
call sym._printf
jmp 0x420cec
lea eax, [ebx + 0x3f]
jmp 0x420ca1
lea edx, [eax + 0x3f]
jmp 0x420c88
call sym.___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x25
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], 0x420a70
call sym._fwrite
mov dword [esp], 1
call sym._exit
xor edx, edx
mov byte [eax + ebp - 0x99], dl
jmp 0x420bcc
call sym.___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x27
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], 0x420ab0
jmp 0x420d3d
mov dword [esp], 0x420ad8
call sym._puts
jmp 0x420b78
mov byte [eax + ebp - 0x59], 0
dec eax
jmp 0x420b67
Function at 0x4218a0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x23c
mov dword [esp + 8], 0xc59
mov dword [esp + 4], 0x421848
mov dword [esp], 0x418370
call sym._updatecontext_f
mov eax, dword [0x4312fc]
test eax, eax
jne 0x4218e0
add esp, 0x23c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0xc5e
add eax, 5
mov dword [esp + 8], 0x418370
mov dword [esp + 4], 0x421848
mov dword [esp], eax
call sym._mycalloc2
mov dword [ebp - 0x22c], eax
mov eax, dword [0x4312fc]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0xc5f
add eax, 6
mov dword [esp + 8], 0x418370
mov dword [esp + 4], 0x421848
mov dword [esp], eax
call sym._mycalloc2
mov dword [ebp - 0x230], eax
mov eax, dword [0x4312fc]
mov dword [esp + 4], 0x41d269
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call sym._sprintf
mov dword [esp + 4], 0x41d270
mov eax, dword [0x4312fc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x230]
mov dword [esp], eax
call sym._sprintf
mov dword [esp + 0xc], 0x421859
mov dword [esp + 8], 0
mov dword [esp + 4], 5
mov dword [esp], 1
call sym._ioutput
mov dword [esp + 8], 0x1b6
mov eax, dword [ebp - 0x22c]
mov dword [esp + 4], 0x10601
mov dword [esp], eax
call sym._open
test eax, eax
mov esi, eax
js 0x421b00
mov dword [esp + 8], 4
mov dword [esp + 4], 0x4314b4
mov dword [esp], eax
call sym._write
mov dword [esp], 0x432f08
call sym._irlist_get_head
test eax, eax
mov ebx, eax
je 0x421a18
nop
lea esi, [esi]
test byte [ebx + 8], 2
jne 0x421aa1
mov dword [esp], ebx
call sym._irlist_get_next
test eax, eax
mov ebx, eax
jne 0x421a00
mov dword [esp], esi
call sym._close
mov eax, dword [ebp - 0x230]
mov dword [esp], eax
call sym._unlink
mov eax, dword [ebp - 0x230]
mov dword [esp + 4], eax
mov eax, dword [0x4312fc]
mov dword [esp], eax
call sym._link
mov eax, dword [0x4312fc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call sym._rename
mov dword [esp + 0xc], 0x41d332
mov dword [esp + 8], 0
mov dword [esp + 4], 5
mov dword [esp], 3
call sym._ioutput
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call sym._mydelete2
mov eax, dword [ebp - 0x230]
mov dword [esp], eax
call sym._mydelete2
jmp 0x4218d1
cld
xor eax, eax
mov dword [esp + 8], 0x1ff
lea edi, [ebp - 0x228]
mov ecx, 0x83
rep stosd dword es:[edi], eax
mov eax, dword [ebx]
mov dword [esp + 4], eax
lea eax, [ebp - 0x228]
mov dword [esp], eax
call sym._strncpy
movzx eax, word [ebx + 8]
mov word [ebp - 0x28], ax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 8], 0x20c
mov dword [esp], esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x228]
mov dword [esp + 4], eax
call sym._write
jmp 0x421a0a
call sym.___errno
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 4], 0x421870
mov dword [esp], 1
mov dword [esp + 8], eax
call sym._outerror
jmp 0x421a80
Function at 0x4222e0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 8]
mov dword [esp + 8], 0x29
mov dword [esp + 4], 0x422221
mov dword [esp], 0x42219d
call sym._updatecontext_f
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call sym._socket
mov dword [ebx], eax
test eax, eax
js 0x422415
mov edi, dword [0x4312ac]
test edi, edi
jne 0x4223e0
cld
xor eax, eax
lea edi, [ebx + 0x7c]
mov ecx, 4
rep stosd dword es:[edi], eax
mov word [ebx + 0x7c], 2
xor ecx, ecx
lea eax, [ebx + 0x7c]
mov dword [ebx + 0x80], ecx
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym._ir_bind_listen_socket
test eax, eax
js 0x4223d0
movzx eax, word [ebx + 0x7e]
xchg ah, al
mov word [ebx + 0x6a], ax
mov dword [esp + 4], 1
mov eax, dword [ebx]
mov dword [esp], eax
call sym._listen
test eax, eax
js 0x4223a2
mov edx, 1
mov dword [ebx + 0x9c], edx
call sym._highestsock
add esp, 0x20
pop ebx
pop edi
pop ebp
ret
mov dword [esp + 4], 0x42222f
mov dword [esp], 1
call sym._outerror
mov dword [esp + 8], 1
mov dword [esp + 4], 0x422249
mov dword [esp], ebx
call sym._t_closeconn
jmp 0x42239b
mov dword [esp + 4], 0x422270
jmp 0x4223aa
mov dword [esp + 0x10], 4
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 0xffff
mov eax, dword [ebx]
mov dword [ebp - 0xc], 1
mov dword [esp], eax
call sym._setsockopt
jmp 0x42233b
mov dword [esp + 4], 0x4222b0
jmp 0x4223aa
Function at 0x425b40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov dword [esp + 8], 0x17f
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], esi
lea esi, [ebp - 0x208]
and ebx, 0xffffff7f
mov dword [esp + 4], 0x425abe
mov dword [esp], 0x425090
call sym._updatecontext_f
mov dword [esp + 4], 0x200
lea eax, [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._vsnprintf
cmp eax, 0x1ff
ja 0x425cb0
mov ecx, dword [0x43127c]
test ecx, ecx
jne 0x425bbb
mov edx, dword [0x431420]
test edx, edx
je 0x425ca0
test ebx, ebx
je 0x425c16
cmp ebx, 1
je 0x425c00
cmp ebx, 2
je 0x425bd3
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x425ac7
mov dword [esp + 8], 0x1f
mov dword [esp + 4], 7
mov dword [esp], 0
call sym._ioutput
jmp 0x425bc9
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x425ac7
mov dword [esp + 8], 0x9f
jmp 0x425be7
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x425ad3
mov dword [esp + 8], 0x9f
mov dword [esp + 4], 7
mov dword [esp], 0
call sym._ioutput
mov dword [esp], 1
call sym._tostdout_disable_buffering
call sym._uninitscreen
mov eax, dword [0x43127c]
test eax, eax
jne 0x425c8b
mov dword [esp + 4], 0x425add
mov dword [esp], 0
call sym._mylog
mov eax, dword [0x43129c]
test eax, eax
jne 0x425c81
mov dword [esp], 1
call sym._exit
mov dword [esp], eax
call sym._unlink
jmp 0x425c75
mov dword [esp + 4], esi
mov dword [esp], 0x425af6
call sym._printf
jmp 0x425c58
call sym._gototop
jmp 0x425bbb
mov dword [esp + 8], 0x425b10
mov dword [esp + 4], 0x1ff
mov dword [esp], esi
call sym._snprintf
jmp 0x425ba3
Function at 0x42c330
Capabilities:
Get socket status

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
lea edx, [ebp - 0x38]
mov edi, edx
push esi
push ebx
sub esp, 0x5c
mov byte [edx], 0
inc eax
inc edx
cmp eax, 0x1f
jbe 0x42c340
mov dword [esp + 0xc], 0
mov esi, dword [ebp + 8]
mov eax, 1
mov dword [esp + 8], 0
mov ebx, dword [ebp + 8]
mov dword [esp + 4], edi
and esi, 0x1f
mov ecx, esi
shl eax, cl
shr ebx, 5
or dword [ebp + ebx*4 - 0x38], eax
lea eax, [ebp - 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
inc eax
mov dword [esp], eax
call sym._select
xor edx, edx
test eax, eax
js 0x42c3ad
mov eax, dword [ebp + ebx*4 - 0x38]
mov ecx, esi
xor edx, edx
sar eax, cl
test al, 1
setne dl
add esp, 0x5c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x42d5e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x431778]
cmp eax, 0xff
jbe 0x42d5fa
mov eax, 0xff
mov dword [esp], 0x432f64
lea ebx, [eax - 0x12]
xor esi, esi
shr ebx, 1
call sym._irlist_size
lea edi, [eax + ebx + 7]
cmp esi, edi
jge 0x42d666
lea esi, [esi]
lea edi, [edi]
mov eax, dword [0x4312ac]
test eax, eax
jne 0x42d747
mov ecx, dword [ebp + 0xc]
mov word [ecx + 2], 0
mov dword [esp + 8], 0x10
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._bind
test eax, eax
jns 0x42d666
mov eax, dword [0x4312ac]
test eax, eax
je 0x42d740
inc esi
cmp esi, edi
jl 0x42d620
cmp esi, edi
mov eax, 0xffffffff
je 0x42d71b
mov dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._getsockname
test eax, eax
js 0x42d723
mov eax, dword [0x43151c]
test eax, eax
jle 0x42d6d8
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + 2]
xchg ah, al
mov dword [esp + 0xc], 0x42d579
movzx eax, ax
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x21
mov dword [esp + 4], 1
mov dword [esp], 0
call sym._ioutput
mov dword [esp + 0x10], 0xa85
mov dword [esp + 0xc], 0x425090
mov dword [esp + 8], 0x42d58c
mov dword [esp + 4], 8
mov dword [esp], 0x432f64
call sym._irlist_add2
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + 2]
xchg dh, dl
mov word [eax], dx
mov edx, dword [0x4314b4]
mov dword [eax + 4], edx
xor eax, eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x42d5b0
mov dword [esp], 1
call sym._outerror
mov eax, 0xffffffff
jmp 0x42d71b
mov esi, edi
jmp 0x42d666
movzx eax, word [0x4312ac]
add eax, esi
movzx ebx, ax
mov dword [esp], ebx
call sym._ir_listen_port_is_in_list
test eax, eax
jne 0x42d661
mov edx, dword [ebp + 0xc]
mov eax, ebx
xchg ah, al
mov word [edx + 2], ax
jmp 0x42d636
Function at 0x42da20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
lea edx, [ebp - 0x48]
push ebx
sub esp, 0x54
xor ebx, ebx
movzx eax, word [ebp + 8]
mov dword [esp + 8], 0x3f
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.KERNEL32.dll_GetAtomNameA
sub esp, 0xc
test eax, eax
je 0x42da7c
mov eax, 0x1f
mov edx, 1
lea esi, [esi]
lea edi, [edi]
cmp byte [eax + ebp - 0x48], 0x41
je 0x42da78
add edx, edx
dec eax
jns 0x42da60
cmp dword [ebx], 0x30
jne 0x42da7c
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
or ebx, edx
jmp 0x42da67
call sym._abort
jmp sym.___w32_sharedptr_fixup_after_fork

Function at 0x42e980
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init
Function at 0x402431
Capabilities:
Hide graphical window

Disassembly:
cmp bl, byte [0x42d030]
je 0x4024aa
push esi
movzx esi, bl
shl esi, 4
add esi, section..data
mov ecx, dword [esi + 4]
push edi
call fcn.00403104
push eax
push 2
push dword [esp + 0x14]
call dword [0x40811c]
mov al, byte [0x42d030]
mov edi, dword [0x4080f8]
cmp al, 0xff
je 0x40247b
movzx eax, al
push 0
shl eax, 4
push dword [eax + section..data]
call edi
cmp dword [esi], 0
jne 0x40249c
movzx eax, word [esi + 8]
push 0
push dword [esi + 0xc]
push dword [esp + 0x14]
push eax
push dword [0x42d250]
call dword [0x4080fc]
mov dword [esi], eax
push 5
push dword [esi]
mov byte [0x42d030], bl
call edi
pop edi
pop esi
ret 4

Function at 0x40260b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], 8
mov dword [ebp - 4], 0x4000
call dword [0x408028]
cmp eax, 1
jne 0x4026e3
push 2
xor ebx, ebx
push ebx
call dword [0x408130]
mov dword [0x42d254], eax
cmp eax, ebx
je 0x402657
cmp eax, 1
je 0x402657
cmp eax, 0x80010106
jne 0x4026e3
push ebx
call dword [sym.imp.o_GetModuleHandleW]
mov dword [0x42d250], eax
call dword [sym.imp.o_GetProcessHeap]
push 0x104
mov esi, 0x42d048
push esi
push ebx
mov dword [0x42e22c], eax
mov dword [0x42d464], ebx
mov byte [0x42e228], bl
call dword [sym.imp.o_GetModuleFileNameW]
push esi
call dword [0x4080d4]
push str.settings.ini
push esi
push 0x42d258
call dword [0x4080d0]
test eax, eax
jne 0x4026ae
mov word [0x42d258], ax
call fcn.00403086
push ebx
push 0x4024ad
push ebx
push 1
push dword [0x42d250]
call dword [0x4080f0]
mov eax, dword [0x42d254]
cmp eax, ebx
je 0x4026d6
cmp eax, 1
jne 0x4026dc
call dword [0x40812c]
push ebx
call dword [sym.imp.o_ExitProcess]
push 1
jmp 0x4026dd
Function at 0x403086
Capabilities:
Identify system language via api
Read .ini file

Disassembly:
push esi
mov esi, 0x42d034
mov dword [0x42d460], esi
call dword [sym.imp.o_GetUserDefaultUILanguage]
movzx eax, ax
xor cl, cl
movzx edx, cl
imul edx, edx, 0xc
cmp ax, word [edx + 0x42d03e]
je 0x4030b5
inc cl
cmp cl, 1
jb 0x40309d
jmp 0x4030c3
movzx ecx, cl
imul ecx, ecx, 0xc
add ecx, esi
mov dword [0x42d460], ecx
push 0x42d258
push eax
push str.language
push str.settings
call dword [sym.imp.o_GetPrivateProfileIntW]
movzx ecx, ax
xor al, al
movzx edx, al
imul edx, edx, 0xc
cmp cx, word [edx + 0x42d03e]
je 0x4030f5
inc al
cmp al, 1
jb 0x4030de
pop esi
ret
movzx eax, al
imul eax, eax, 0xc
add eax, esi
mov dword [0x42d460], eax
pop esi
ret

Function at 0x403af3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [eax]
sub edx, dword [ebp + 8]
xor ecx, ecx
sub esp, 0xc
mov dword [eax + 0x40], edx
mov dword [eax + 0x44], ecx
cmp dword [ebp + 8], ecx
jbe 0x403b86
mov edx, dword [eax + 0x4c]
mov dword [ebp - 4], edx
mov edx, dword [eax + 0x58]
push ebx
push esi
mov esi, dword [eax + 0x54]
mov dword [ebp - 8], edx
mov edx, dword [eax + 0x5c]
push edi
mov edi, dword [eax + 0x50]
mov dword [ebp - 0xc], edx
mov edx, dword [eax + 0x48]
sub edi, esi
movzx ebx, byte [edx + ecx]
movzx eax, byte [edx + ecx + 1]
shl ebx, 5
xor eax, ebx
movzx ebx, byte [edx + ecx + 2]
dec dword [ebp + 8]
shl eax, 5
xor eax, ebx
mov ebx, dword [ebp - 4]
imul eax, eax, 0x9f5f
shr eax, 5
and eax, 0xffff
mov ebx, dword [ebx + eax*4]
mov dword [edi + esi], ebx
mov ebx, dword [ebp - 4]
mov dword [ebx + eax*4], ecx
mov ebx, dword [ebp - 8]
mov dword [esi], 0x801
inc dword [ebx + eax*4]
movzx eax, word [edx + ecx]
mov ebx, dword [ebp - 0xc]
mov dword [ebx + eax*4], ecx
inc ecx
add esi, 4
cmp dword [ebp + 8], 0
ja 0x403b2b
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x403fe4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jbe 0x404065
push ebx
push esi
mov esi, dword [edi + 0x34]
mov edx, edi
call fcn.00403e15
mov ecx, dword [edi + 0x30]
mov eax, dword [edi + 0x48]
lea edx, [ecx + eax]
movzx eax, byte [edx]
movzx esi, byte [edx + 1]
shl eax, 5
xor eax, esi
movzx esi, byte [edx + 2]
mov ebx, dword [edi + 0x50]
shl eax, 5
xor eax, esi
mov esi, dword [edi + 0x4c]
imul eax, eax, 0x9f5f
shr eax, 5
and eax, 0xffff
shl eax, 2
add esi, eax
mov dword [ebp - 4], esi
mov esi, dword [esi]
mov dword [ebx + ecx*4], esi
mov esi, dword [ebp - 4]
mov dword [esi], ecx
mov esi, dword [edi + 0x54]
mov dword [esi + ecx*4], 0x801
mov esi, dword [edi + 0x58]
inc dword [eax + esi]
movzx eax, word [edx]
mov edx, dword [edi + 0x5c]
mov dword [edx + eax*4], ecx
mov eax, edi
call fcn.00403f78
dec dword [ebp + 8]
jne 0x403ff0
pop esi
pop ebx
leave
ret 4
Function at 0x404728
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 0xf0000040
push 1
xor ebx, ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 1], bl
call dword [0x40801c]
test eax, eax
je 0x4047b4
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 0x10]
call dword [0x408010]
cmp eax, 1
jne 0x4047aa
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0xc], 0x10
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [0x408018]
cmp eax, 1
jne 0x4047a1
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push 2
push dword [ebp - 8]
call dword [0x408004]
cmp eax, 1
jne 0x4047a1
cmp dword [ebp - 0xc], 0x10
jne 0x4047a1
mov byte [ebp - 1], al
push dword [ebp - 8]
call dword [0x408014]
push ebx
push dword [ebp - 0x10]
call dword [0x40800c]
mov al, byte [ebp - 1]
pop ebx
leave
ret 0xc

Function at 0x4047bc
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [0x42e230]
cmp eax, 0x270
jl 0x4046f4
push esi
push edi
xor edx, edx
mov esi, 0x7fffffff
mov ecx, edx
mov eax, dword [ecx*4 + 0x42d86c]
xor eax, dword [ecx*4 + 0x42d868]
and eax, esi
xor eax, dword [ecx*4 + 0x42d868]
mov edi, eax
shr eax, 1
and edi, 1
xor eax, dword [edi*4 + 0x42d040]
xor eax, dword [ecx*4 + 0x42de9c]
inc edx
mov dword [ecx*4 + 0x42d868], eax
cmp edx, 0xe3
jl 0x40464d
cmp edx, 0x26f
jge 0x4046c6
lea ecx, [edx*4 + 0x42d868]
mov eax, dword [ecx]
xor eax, dword [ecx + 4]
and eax, esi
xor eax, dword [ecx]
mov edi, eax
and edi, 1
mov edi, dword [edi*4 + 0x42d040]
xor edi, dword [ecx - 0x38c]
shr eax, 1
xor edi, eax
mov dword [ecx], edi
add ecx, 4
cmp ecx, 0x42e224
jl 0x40469a
mov ecx, dword [0x42e224]
mov eax, dword [0x42d868]
xor eax, ecx
and eax, esi
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
xor eax, dword [ecx*4 + 0x42d040]
pop edi
xor eax, dword [0x42de98]
pop esi
mov dword [0x42e224], eax
xor eax, eax
mov ecx, dword [eax*4 + 0x42d868]
inc eax
mov dword [0x42e230], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret
call dword [sym.imp.o_GetTickCount]
cmp eax, dword [0x42d464]
je 0x404803
xor ecx, ecx
mov dword [0x42d464], eax
mov dword [0x42d868], eax
inc ecx
mov eax, 0x42d868
push esi
mov edx, dword [eax]
mov esi, edx
shr esi, 0x1e
xor esi, edx
imul esi, esi, 0x6c078965
add esi, ecx
mov dword [eax + 4], esi
add eax, 4
inc ecx
cmp eax, 0x42e224
jl 0x4047dd
mov dword [0x42e230], ecx
pop esi
jmp 0x404634