joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019dd
Capabilities:
Create service
Delete service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
xor ebx, ebx
xor esi, esi
xor eax, eax
cmp dword [ebp + 8], 0x68
mov dword [ebp - 0xc], 0x422034
mov dword [ebp - 4], 1
setne al
dec eax
and eax, 0xc0000000
add eax, 0x80000000
push eax
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x401a2b
mov dword [ebp - 4], ebx
call fcn.00401b0c
jmp 0x401af5
cmp dword [ebp + 8], 0x68
jne 0x401aab
mov esi, 0x118
push edi
lea eax, [ebp - 0x124]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.MSVCRT.dll_strncat]
push esi
lea eax, [ebp - 0x124]
push 0x41f47c
push eax
call edi
push esi
lea eax, [ebp - 0x124]
push dword [0x41f010]
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0x124]
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
mov eax, dword [str.Mongoose]
push 1
push 2
push 0x10
push 0xf01ff
push eax
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
pop edi
cmp esi, ebx
je 0x401a21
lea eax, [ebp - 0xc]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
jmp 0x401af5
cmp dword [ebp + 8], 0x69
jne 0x401add
push 0x10000
push dword [0x41f014]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebx
je 0x401a21
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x401af5
jmp 0x401a21
push 4
push dword [0x41f014]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebx
jne 0x401af5
mov dword [ebp - 4], ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4

Function at 0x401cca
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
push esi
je 0x401ce4
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004076dc
jmp 0x401d19
mov esi, dword [ebp + 8]
test esi, esi
je 0x401d08
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [esi + 0x10]
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
test byte [esi + 0xc], 0x20
je 0x401d19
or eax, 0xffffffff
jmp 0x401d19
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
pop esi
pop ebp
ret 0x14
Function at 0x401d42
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [ebp + 0x1c], esi
mov dword [ebp - 4], esi
jl 0x401df3
jg 0x401d62
cmp dword [ebp + 0x18], esi
jbe 0x401df3
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
sub eax, esi
sbb ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
js 0x401d8a
jg 0x401d83
cmp eax, 0x7fffffff
jbe 0x401d8a
mov eax, bind
jmp 0x401d8f
mov eax, dword [ebp + 0x18]
sub eax, esi
cmp dword [ebp + 0x10], 0
je 0x401da4
push eax
lea eax, [esi + edi]
push eax
push dword [ebp + 0x10]
call fcn.004076c1
jmp 0x401dd4
test ebx, ebx
je 0x401dc4
push ebx
push eax
lea eax, [esi + edi]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
test byte [ebx + 0xc], 0x20
je 0x401dd4
or eax, 0xffffffff
jmp 0x401dd4
push 0
push eax
lea eax, [esi + edi]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jl 0x401df1
cdq
add esi, eax
adc dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x1c]
jl 0x401d6a
jg 0x401df1
cmp esi, dword [ebp + 0x18]
jb 0x401d6a
pop edi
pop ebx
mov edx, dword [ebp - 4]
mov eax, esi
pop esi
leave
ret 0x18

Function at 0x4023f4
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x10], 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
ret 4

Function at 0x40361a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
test ebx, ebx
jl 0x403696
jg 0x403635
cmp dword [ebp + 0x10], 0
jbe 0x403696
mov edi, dword [ebp + 8]
test ebx, ebx
mov eax, 0x200
jg 0x40364b
jl 0x403648
cmp dword [ebp + 0x10], eax
jae 0x40364b
mov eax, dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x200]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov esi, eax
add esp, 0x10
test esi, esi
je 0x403696
lea eax, [ebp - 0x200]
push esi
push eax
push edi
call fcn.00401d1e
cmp eax, esi
jne 0x403696
lea ecx, [edi + 0x268]
cdq
add dword [ecx], eax
adc dword [ecx + 4], edx
sub dword [ebp + 0x10], eax
sbb ebx, edx
test ebx, ebx
jg 0x403638
jl 0x403696
cmp dword [ebp + 0x10], 0
ja 0x403638
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403751
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
lea eax, [ebp - 0x190]
push edi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x422360
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x408
push 1
call dword [sym.imp.MSVCRT.dll_calloc]
mov ebx, dword [ebp + 0x10]
mov esi, eax
mov eax, dword [ebp + 8]
pop ecx
mov dword [esi + 0x64], eax
mov eax, dword [ebp + 0xc]
pop ecx
mov dword [esi + 0x68], eax
test ebx, ebx
je 0x40381b
mov edi, dword [ebx]
add ebx, 4
test edi, edi
mov dword [ebp + 8], edi
je 0x40381b
push edi
call fcn.00401b80
cmp eax, 0xffffffff
je 0x4037ef
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
mov dword [ebp + 0xc], ecx
je 0x4037f7
cmp dword [esi + eax*4 + 8], 0
lea edi, [esi + eax*4 + 8]
je 0x4037e3
push dword [ebp + 8]
push str._s:_duplicate_option
push esi
call fcn.00403907
push eax
call fcn.00401e9c
add esp, 0xc
push dword [ebp + 0xc]
call fcn.00403918
mov dword [edi], eax
jmp 0x40379a
push edi
push str.Invalid_option:__s
jmp 0x4037fd
push edi
push str._s:_option_value_cannot_be_NULL
push esi
call fcn.00403907
push eax
call fcn.00401e9c
add esp, 0xc
push esi
call fcn.00403708
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x41f4b4], 0
je 0x40384b
mov edi, 0x41f4b4
lea ebx, [esi + 8]
cmp dword [ebx], 0
mov eax, dword [edi + 8]
jne 0x403840
test eax, eax
je 0x403840
push eax
call fcn.00403918
mov dword [ebx], eax
add edi, 0xc
add ebx, 4
cmp dword [edi], 0
jne 0x40382c
push esi
call fcn.00403e5d
test eax, eax
je 0x40380c
push esi
call fcn.00403c6e
test eax, eax
je 0x40380c
push esi
call fcn.004039ce
test eax, eax
je 0x40380c
push esi
call fcn.00403e86
test eax, eax
je 0x40380c
xor edi, edi
lea eax, [esi + 0x74]
push edi
push eax
call fcn.00403958
lea eax, [esi + 0x78]
push edi
push eax
call fcn.00403977
lea eax, [esi + 0x400]
push edi
push eax
call fcn.00403977
lea eax, [esi + 0x3f8]
push edi
push eax
call fcn.00403977
push esi
push 0x4072ac
push esi
call fcn.004039ad
push dword [esi + 0x58]
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
xor ebx, ebx
call edi
test eax, eax
pop ecx
jle 0x403900
push esi
push 0x40409a
push esi
call fcn.004039ad
test eax, eax
je 0x4038ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_start_worker_thread:__d
push esi
call fcn.00403907
push eax
call fcn.00401e9c
add esp, 0xc
jmp 0x4038f5
mov eax, dword [esi + 0x70]
inc eax
mov dword [esi + 0x70], eax
push dword [esi + 0x58]
inc ebx
call edi
cmp ebx, eax
pop ecx
jl 0x4038c1
mov eax, esi
jmp 0x403814

Function at 0x4039ad
Capabilities:
Create thread

Disassembly:
push dword [esp + 0xc]
push 0
push dword [esp + 0x10]
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
dec ecx
mov eax, ecx
ret 0xc
Function at 0x4039ce
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
push esi
mov esi, dword [ebp + 8]
push edi
push 1
mov eax, dword [esi + 0x4c]
pop ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
xor edi, edi
lea ecx, [ebp - 0x18]
push edi
push ecx
push eax
call fcn.00403597
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x403b5b
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00403b9b
test eax, eax
je 0x403aec
cmp dword [ebp - 0x1c], edi
je 0x403a27
cmp dword [esi + 4], edi
je 0x403b12
movzx eax, word [ebp - 0x3c]
push 6
push 1
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0xc], edi
je 0x403aa9
lea eax, [ebp - 8]
push 4
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x403aa9
lea eax, [ebp - 0x3c]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x403aa9
push 0x64
push edi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x403aa9
push 0x2c
push 1
call dword [sym.imp.MSVCRT.dll_calloc]
pop ecx
test eax, eax
pop ecx
je 0x403b2a
push 0xb
lea esi, [ebp - 0x44]
pop ecx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov esi, ecx
mov edx, dword [ecx + 0x6c]
mov dword [eax], edx
mov dword [ecx + 0x6c], eax
jmp 0x403ade
push edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.MSVCRT.dll_strerror]
pop ecx
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push str.line_3497
push str._s:_cannot_bind_to__.s:__s
push esi
call fcn.00403907
push eax
call fcn.00401e9c
add esp, 0x18
and dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x403b60
mov eax, dword [ebp - 0x10]
jmp 0x4039ec
push str._IP_ADDRESS:_PORT_sp_
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push str.line_3472
push str._s:__.s:_invalid_port_spec._Expecting_list_of:__s
push esi
call fcn.00403907
push eax
call fcn.00401e9c
add esp, 0x18
jmp 0x403b25
push str.Cannot_add_SSL_socket__is__ssl_certificate_option_set_
push esi
call fcn.00403907
push eax
call fcn.00401e9c
pop ecx
pop ecx
mov dword [ebp - 4], edi
jmp 0x403b60
push edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.MSVCRT.dll_strerror]
pop ecx
push eax
push str.line_3503
push str._s:__s
push esi
call fcn.00403907
push eax
call fcn.00401e9c
add esp, 0x10
and dword [ebp - 4], 0
jmp 0x403b60
cmp dword [ebp - 4], edi
jne 0x403b66
push esi
call fcn.00403b70
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40583c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40585a
push 0xa0
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4058d7
push 0x358
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
jne 0x405870
push 8
jmp 0x405852
lea eax, [ebp - 0x208]
push 0x104
push eax
push dword [ebp + 8]
call fcn.0040203b
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4058cd
and eax, 0x10
cmp al, 0x10
jne 0x4058cd
lea eax, [ebp - 0x208]
push 0x4206b4
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
pop ecx
lea eax, [esi + 4]
pop ecx
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
and byte [esi + 0x254], 0
mov dword [esi], eax
jmp 0x4058d7
push esi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor esi, esi
mov eax, esi
pop esi
leave
ret 4
Function at 0x4078bf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0x41fe6c
lea edi, [ebp - 0x404]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x407925
push 2
push 0
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
push ebx
mov esi, eax
call dword [sym.imp.MSVCRT.dll_rewind]
add esp, 0x14
cmp esi, 0x400
jle 0x407931
push esi
call fcn.0040d23f
mov edi, eax
test edi, edi
jne 0x40792a
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push 0xfffffffffffffffc
pop eax
jmp 0x40799b
mov dword [ebp - 4], 1
push ebx
push 1
push esi
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
test eax, eax
jge 0x407948
push 0xfffffffffffffffc
pop esi
jmp 0x407981
cmp dword [ebp + 0x14], 2
jne 0x407967
cmp dword [ebp + 0x10], 1
jne 0x407967
push dword [ebp + 0x18]
push 2
push 1
push esi
push edi
push dword [ebp + 8]
call fcn.0040826d
jmp 0x40797f
push dword [ebp + 0x1c]
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push edi
push dword [ebp + 8]
call fcn.004079a2
mov esi, eax
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
cmp dword [ebp - 4], 0
pop ecx
je 0x407999
test edi, edi
je 0x407999
push edi
call fcn.0040d25a
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x408b40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
lea esi, [eax + 1]
shr esi, 1
cmp esi, 0x80
ja 0x408c44
mov edi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x24]
lea ebx, [edi + eax]
cmp ebx, 0x50
ja 0x408c44
cmp dword [ebp + 0xc], 0xe0
ja 0x408c44
push esi
lea eax, [ebp - 0x150]
push dword [ebp + 0x10]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 0x14]
mov ecx, esi
and eax, 1
push esi
sub ecx, eax
lea eax, [ebp - 0xd0]
add ecx, dword [ebp + 0x10]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
push edi
lea eax, [ebp - 0x50]
push dword [ebp + 0x18]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp + 0x24]
lea eax, [ebp + edi - 0x50]
push dword [ebp + 0x20]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x30
cmp dword [ebp + 0x28], 0
je 0x408bea
push 4
lea eax, [ebp - 0x50]
push ebx
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00408c4b
jmp 0x408c44
mov edi, dword [ebp + 0xc]
push 1
lea eax, [ebp - 0x50]
push ebx
push eax
lea eax, [ebp - 0x150]
push esi
push eax
lea eax, [ebp - 0x310]
push edi
push eax
call fcn.00408c4b
push 2
lea eax, [ebp - 0x50]
push ebx
push eax
lea eax, [ebp - 0xd0]
push esi
push eax
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.00408c4b
xor eax, eax
test edi, edi
jbe 0x408c44
mov cl, byte [ebp + eax - 0x230]
mov edx, dword [ebp + 8]
xor cl, byte [ebp + eax - 0x310]
mov byte [eax + edx], cl
inc eax
cmp eax, edi
jb 0x408c2b
pop edi
pop esi
pop ebx
leave
ret 0x24
Function at 0x40de78
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0x10], 0
push edi
jne 0x40ded3
mov eax, dword [ebp + 8]
sub eax, 0x58
je 0x40dec7
sub eax, 0x146
je 0x40debb
sub eax, 0xe8
je 0x40deaf
sub eax, 3
jne 0x40df6a
push 0xa
mov dword [ebp + 0x10], 0x41a6d4
pop edi
jmp 0x40df0b
push 0xa
mov dword [ebp + 0x10], 0x41a6e0
pop edi
jmp 0x40df0b
push 0xb
mov dword [ebp + 0x10], 0x41a6c8
pop edi
jmp 0x40df0b
push 7
mov dword [ebp + 0x10], 0x41a6c0
pop edi
jmp 0x40df0b
cmp dword [ebp + 0x10], 1
jne 0x40def2
cmp dword [ebp + 8], 0x288
jne 0x40df6a
push 0xb
mov dword [ebp + 0x10], 0x41a6ec
pop edi
jmp 0x40df0b
cmp dword [ebp + 0x10], 2
jne 0x40df6a
cmp dword [ebp + 8], 0x285
jne 0x40df6a
push 0xb
mov dword [ebp + 0x10], 0x41a6f8
pop edi
push ebx
lea eax, [ebp + 8]
push esi
push eax
lea eax, [edi - 2]
push eax
call fcn.0040de04
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebx + edi + 1]
push eax
call fcn.0040ddee
mov esi, eax
lea eax, [ebp - 8]
mov byte [ebp + esi - 8], 6
inc esi
push esi
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
lea eax, [ebp + 8]
push ebx
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 0xc]
push edi
push dword [ebp + 0x10]
add esi, ebx
add eax, esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x24
lea eax, [esi + edi]
pop esi
pop ebx
jmp 0x40df6c
xor eax, eax
pop edi
leave
ret 0xc
Function at 0x4104f5
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push esi
push edi
xor ecx, ecx
movzx eax, byte [ecx + 0x41cf2c]
mov esi, dword [ebp + 8]
dec eax
mov edx, eax
and eax, 7
sar edx, 3
mov dl, byte [edx + esi]
test byte [eax*4 + 0x41cfa4], dl
setne al
mov byte [ebp + ecx - 0x78], al
inc ecx
cmp ecx, 0x38
jl 0x4104ff
and dword [ebp + 8], 0
mov edi, dword [ebp + 0x10]
push ebx
push 8
lea eax, [ebp - 8]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
xor ecx, ecx
movzx eax, byte [eax + 0x41cf64]
xor edx, edx
cmp ecx, 0x1c
setge dl
dec edx
mov esi, eax
and edx, 0xffffffe4
add edx, 0x38
cmp eax, edx
jl 0x410565
lea esi, [eax - 0x1c]
mov dl, byte [ebp + esi - 0x78]
mov byte [ebp + ecx - 0x40], dl
inc ecx
inc eax
cmp ecx, 0x38
jl 0x41054d
xor esi, esi
movzx eax, byte [esi + 0x41cf74]
cmp byte [ebp + eax - 0x41], 0
je 0x4105a4
mov eax, esi
push 6
cdq
pop ecx
idiv ecx
push 6
pop ebx
lea ecx, [ebp + eax - 8]
mov eax, esi
cdq
idiv ebx
mov eax, dword [edx*4 + 0x41cfa4]
sar eax, 2
or byte [ecx], al
inc esi
cmp esi, 0x30
jl 0x410576
movzx eax, byte [ebp - 8]
movzx ecx, byte [ebp - 6]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 4]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 5]
mov dword [edi], eax
add edi, 8
movzx eax, byte [ebp - 7]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 3]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 1]
shl eax, 8
or eax, ecx
inc dword [ebp + 8]
cmp dword [ebp + 8], 0x10
mov dword [edi - 4], eax
jl 0x410531
cmp dword [ebp + 0xc], 1
pop ebx
jne 0x41062c
mov eax, dword [ebp + 0x10]
push 8
mov ecx, eax
add eax, 0x7c
pop esi
mov edi, dword [eax - 4]
mov edx, dword [ecx]
mov dword [ecx], edi
mov dword [eax - 4], edx
mov edi, dword [eax]
mov edx, dword [ecx + 4]
mov dword [ecx + 4], edi
mov dword [eax], edx
add ecx, 8
sub eax, 8
dec esi
jne 0x41060f
pop edi
pop esi
leave
ret 0xc

Function at 0x41069f
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, eax
push esi
mov esi, dword [esp + 0x10]
or edx, ecx
or edx, esi
test dl, 3
jne 0x4106cb
shr esi, 2
je 0x4106da
sub ecx, eax
mov edx, dword [ecx + eax]
xor dword [eax], edx
add eax, 4
dec esi
jne 0x4106be
jmp 0x4106da
test esi, esi
jbe 0x4106da
sub ecx, eax
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec esi
jne 0x4106d1
pop esi
ret 0xc
Function at 0x410894
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [ebp + 0xc]
push edi
push 0x3f
mov eax, dword [eax]
lea edx, [ecx + 8]
mov dword [ebp - 4], eax
mov dword [ebp + 0x10], 8
pop ecx
ror eax, 4
xor eax, dword [edx - 8]
mov edi, eax
mov ebx, eax
shr edi, 0x18
and edi, ecx
shr ebx, 0x10
mov edi, dword [edi*4 + 0x41cfc4]
and ebx, ecx
xor edi, dword [ebx*4 + 0x41d1c4]
mov ebx, eax
shr ebx, 8
and ebx, ecx
and eax, ecx
xor edi, dword [ebx*4 + 0x41d3c4]
xor edi, dword [eax*4 + 0x41d5c4]
mov eax, dword [edx - 4]
xor eax, dword [ebp - 4]
xor esi, edi
mov edi, eax
mov ebx, eax
shr edi, 0x18
and edi, ecx
shr ebx, 0x10
mov edi, dword [edi*4 + 0x41d0c4]
and ebx, ecx
xor edi, dword [ebx*4 + 0x41d2c4]
mov ebx, eax
shr ebx, 8
and ebx, ecx
and eax, ecx
xor edi, dword [ebx*4 + 0x41d4c4]
xor edi, dword [eax*4 + 0x41d6c4]
xor esi, edi
mov eax, esi
ror eax, 4
xor eax, dword [edx]
add edx, 0x10
mov edi, eax
mov ebx, eax
shr edi, 0x18
and edi, ecx
shr ebx, 0x10
mov edi, dword [edi*4 + 0x41cfc4]
and ebx, ecx
xor edi, dword [ebx*4 + 0x41d1c4]
mov ebx, eax
shr ebx, 8
and ebx, ecx
and eax, ecx
xor edi, dword [ebx*4 + 0x41d3c4]
xor edi, dword [eax*4 + 0x41d5c4]
mov eax, dword [edx - 0xc]
xor eax, esi
xor dword [ebp - 4], edi
mov edi, eax
shr edi, 0x18
mov ebx, eax
and edi, ecx
shr ebx, 0x10
mov edi, dword [edi*4 + 0x41d0c4]
and ebx, ecx
xor edi, dword [ebx*4 + 0x41d2c4]
mov ebx, eax
shr ebx, 8
and ebx, ecx
and eax, ecx
xor edi, dword [ebx*4 + 0x41d4c4]
xor edi, dword [eax*4 + 0x41d6c4]
mov eax, dword [ebp - 4]
xor eax, edi
dec dword [ebp + 0x10]
mov dword [ebp - 4], eax
jne 0x4108b8
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], esi
mov ecx, dword [ebp + 0xc]
pop esi
pop ebx
mov dword [ecx], eax
leave
ret 0xc
Function at 0x410bde
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
lea ecx, [edx + 0x3f]
lea esi, [edx + edx*2 + 3]
shr ecx, 6
xor edi, edi
xor eax, eax
lea ecx, [ecx + ecx*2]
sub esi, ecx
mov ecx, dword [ebp + 0x14]
shr esi, 2
cmp esi, dword [ecx]
jbe 0x410c11
mov eax, 0xffffff53
jmp 0x410d21
cmp edx, 3
jbe 0x410d1a
mov esi, dword [ebp + 8]
mov cl, byte [eax + esi]
mov dl, byte [eax + esi + 1]
inc eax
and dword [ebp - 8], 0
inc eax
and dword [ebp - 0xc], 0
mov byte [ebp + 0xb], dl
mov bl, byte [eax + esi]
mov dl, byte [eax + esi + 1]
inc eax
mov byte [ebp - 1], dl
inc eax
test cl, cl
je 0x410d1a
cmp bl, 0x3d
jne 0x410c51
mov dword [ebp - 8], 1
cmp dl, 0x3d
jne 0x410c5d
mov dword [ebp - 0xc], 1
movzx ecx, cl
cmp bl, 0x3d
mov dl, byte [ecx + 0x41d799]
movzx ecx, byte [ebp + 0xb]
mov cl, byte [ecx + 0x41d799]
mov byte [ebp + 0xb], cl
jne 0x410c7c
xor cl, cl
jmp 0x410c85
movzx ecx, bl
mov cl, byte [ecx + 0x41d799]
cmp byte [ebp - 1], 0x3d
mov byte [ebp - 2], cl
jne 0x410c92
xor bl, bl
jmp 0x410c9c
movzx ebx, byte [ebp - 1]
mov bl, byte [ebx + 0x41d799]
shl cl, 6
or cl, bl
mov bl, byte [ebp + 0xb]
shr bl, 4
shl dl, 2
or bl, dl
mov edx, dword [ebp + 0x10]
mov byte [edi + edx], bl
inc edi
cmp dword [ebp - 8], 0
jne 0x410cce
mov dl, byte [ebp - 2]
mov bl, byte [ebp + 0xb]
shr dl, 2
shl bl, 4
or dl, bl
mov ebx, dword [ebp + 0x10]
mov byte [edi + ebx], dl
inc edi
cmp dword [ebp - 0xc], 0
jne 0x410d1a
mov edx, dword [ebp + 0x10]
sub dword [ebp + 0xc], 4
mov byte [edi + edx], cl
mov cl, byte [eax + esi]
inc edi
cmp cl, 0x20
je 0x410cf1
cmp cl, 0xd
je 0x410cf1
cmp cl, 0xa
jne 0x410d10
inc eax
dec dword [ebp + 0xc]
cmp cl, 0x20
jne 0x410cff
mov cl, byte [eax + esi]
jmp 0x410cf1
cmp cl, 0xd
jne 0x410d0b
mov cl, byte [eax + esi]
inc eax
dec dword [ebp + 0xc]
cmp cl, 0xa
jne 0x410d28
cmp dword [ebp + 0xc], 3
ja 0x410c1d
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
mov eax, 0xffffff66
jmp 0x410d21

Function at 0x410daa
Capabilities:
Hash data with md5

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

Function at 0x411689
Capabilities:
Hash data using sha1

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