joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411070
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0e88
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4fca20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x4110b7
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x41112f
mov edx, dword [esi + 8]
cmp dword [edx - 0xc], 0
jle 0x41115e
mov eax, dword [0x4fc7ec]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fc7ec
call edx
add eax, 0x10
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp + 8]
push 0x4ceac8
push ecx
mov dword [ebp - 4], 0
call fcn.00401a85
mov eax, dword [esi + 8]
mov edi, dword [ebp + 8]
mov esi, dword [esi + 0xc]
add esp, 0xc
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [edi - 0x10]
jne 0x411145
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41112f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41115e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4114e0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2220
call fcn.0047e8f0
mov eax, dword [0x4fca20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x2218], 0
mov edi, dword [esi + 4]
mov dword [ebp - 0x221c], eax
mov dword [ebp - 0x2214], ecx
test edi, edi
je 0x4115bb
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x2218], 1
mov word [ebp - 0x20c], dx
call fcn.0047e610
add esp, 0xc
lea ecx, [ebp - 0x2220]
push ecx
mov ecx, dword [ebp - 0x221c]
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x2218]
push eax
push 0
push ecx
push edi
mov dword [ebp - 0x2220], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [ebp - 0x2214]
test esi, esi
je 0x4115ab
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411590
sub eax, edx
sar eax, 1
jne 0x4115ab
push esi
mov ecx, ebx
call fcn.00402008
jmp 0x411623
lea edx, [ebp - 0x20c]
push edx
mov ecx, ebx
call fcn.00402008
jmp 0x411623
mov edi, dword [esi + 8]
cmp dword [edi - 0xc], 0
jle 0x411617
xor eax, eax
push 0x2000
push eax
lea ecx, [ebp - 0x220e]
push ecx
mov word [ebp - 0x2210], ax
call fcn.0047e610
mov eax, dword [ebp - 0x2214]
mov ecx, dword [ebp - 0x221c]
add esp, 0xc
push edi
push 0x1000
lea edx, [ebp - 0x2210]
push edx
mov edx, dword [esi + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2210]
push eax
mov ecx, ebx
call fcn.00402008
jmp 0x411623
push 0x4cdb58
mov ecx, ebx
call fcn.004037ce
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0047e4d2
mov esp, ebp
pop ebp
ret 0xc
Function at 0x411780
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd358
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4fca20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push 0x1000
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
call fcn.00410ab0
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp + 0xc]
push ecx
push 0xfff
push esi
push edx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov edx, dword [ebp - 0x1c]
mov ebx, eax
mov eax, edx
sub eax, esi
lea ecx, [ebx + 1]
sar eax, 1
mov dword [ebp - 0x10], edi
cmp ecx, eax
jbe 0x41180e
lea esi, [ebp - 0x10]
push esi
sub ecx, eax
push ecx
push edx
lea ecx, [ebp - 0x20]
call fcn.00410b40
mov esi, dword [ebp - 0x20]
jmp 0x41182b
jae 0x41182b
lea ecx, [esi + ecx*2]
mov dword [ebp - 0x10], ecx
cmp ecx, edx
je 0x41182b
push edi
push edx
push ecx
call fcn.00480d10
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp ebx, 0xfff
jbe 0x411843
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push ebx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
sub esp, 0x10
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.004112f0
mov ebx, dword [ebp + 8]
push ebx
call fcn.004137d0
add esp, 0x14
cmp esi, edi
je 0x41186d
push esi
call fcn.0047d656
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412050
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd528
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4fca20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [0x4fc7ec]
mov edi, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x18], ax
mov dword [ebp - 0x16], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc7ec
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x100
or eax, ecx
mov dword [ebp - 4], 0
jge 0x4120c7
push 0x100
lea ecx, [ebp - 0x1c]
call fcn.00401485
mov esi, dword [ebp - 0x1c]
push 0
push 0
push esi
lea ecx, [ebp - 0x18]
push ecx
push edi
call fcn.0047e897
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00480cec
add esp, 0x1c
test eax, eax
js 0x41217b
cmp eax, dword [esi - 8]
jg 0x41217b
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.004033f1
mov eax, dword [eax]
add esp, 0xc
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41213d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412160
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.0047e4d2
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401000
int3
Function at 0x412190
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd568
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x4fca20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 0
je 0x412305
push 0x4fe79c
lea ecx, [ebp - 0x24]
call fcn.0040e6c0
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 4], 0
call fcn.00412050
add esp, 4
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4122f6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x412235
push 0
push 0
push 0
push esi
call edi
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
push 0x4cec68
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push 0
push 0
push esi
call edi
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.00411f00
mov ecx, dword [ebp + 0xc]
push ecx
push eax
lea edx, [ebp - 0x14]
push edx
mov byte [ebp - 4], 1
call fcn.0040338d
push 0x4cec60
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.0040338d
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 0x20
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412296
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4122b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [ebp - 0x1c]
push edx
add ecx, ecx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4122f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0040e6f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4125c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd5b0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x4fca20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00411ec0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00402008
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx - 0xc]
mov dword [ebp - 4], 0
test eax, eax
jne 0x412639
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
jne 0x412616
xor ecx, ecx
jmp 0x41262f
mov ecx, eax
lea esi, [ecx + 2]
jmp 0x412620
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x412620
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.0040170b
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x28]
call fcn.00410090
mov eax, dword [0x4fc7ec]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fc7ec
mov byte [ebp - 4], 1
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0x4ce908
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040f3d0
test eax, eax
je 0x41268b
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x41268b
push eax
call fcn.00412530
add esp, 4
mov edx, dword [0x4fc7ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc7ec
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0x4cdb54
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0040f3d0
test eax, eax
je 0x4126d9
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x4126d9
push 0
push eax
call fcn.0047e601
add esp, 4
push eax
call fcn.00411e40
add esp, 8
push 0
lea edx, [ebp - 0x10]
push edx
push 0x4cec90
lea ecx, [ebp - 0x28]
call fcn.0040f3d0
test eax, eax
je 0x41270d
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x41270d
push 1
push eax
call fcn.0047e601
add esp, 4
push eax
call fcn.00411e40
add esp, 8
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412730
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412753
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0040fee0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412785
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413a00
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
lea eax, [ebp - 8]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
push eax
xor ebx, ebx
push ecx
mov dword [ebp - 8], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
jne 0x413a2d
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push esi
lea edx, [ebp - 1]
push edx
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 1], bl
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.004018d4
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
push esi
push edi
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x413a7d
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0x4cefbc
push esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x413a95
cmp esi, ebx
je 0x413a8a
push esi
call fcn.0047d656
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 0xc]
movzx edx, word [eax + 0xa]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edx
movzx edx, word [eax + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], edx
movzx edx, word [eax + 0xe]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], edx
movzx edx, word [eax + 0xc]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax], edx
mov dword [ecx + 0x14], 1
cmp esi, ebx
je 0x413ad3
push esi
call fcn.0047d656
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x413af0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd7b6
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x4fca20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x64c], ecx
mov dword [ebp - 0x644], eax
mov eax, dword [ebp + 0x18]
lea ecx, [ebp - 0x228]
push ecx
mov dword [ebp - 0x650], edx
lea edx, [ebp - 0x628]
push edx
mov dword [ebp - 0x648], eax
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x28]
push ecx
push esi
call fcn.0047e897
add esp, 0x14
lea edx, [ebp - 0x228]
push edx
lea ecx, [ebp - 0x654]
call fcn.00402008
mov eax, dword [eax]
push 0x4cefc0
push eax
call fcn.0047eb73
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x654]
sete byte [ebp - 0x63d]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413bbd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0x63d], 0
je 0x413cb8
xor edi, edi
mov dword [ebp - method.CLibLoader.virtual_0], vtable.CLibLoader.0
mov dword [ebp - 0x654], edi
test esi, esi
je 0x413bef
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov dword [ebp - 0x654], edi
mov dword [ebp - 4], 1
test edi, edi
je 0x413ca6
lea ecx, [ebp - 0x20]
push ecx
push edi
mov dword [ebp - 0x20], 0x476c6c44
mov dword [ebp - 0x1c], 0x65567465
mov dword [ebp - 0x18], 0x6f697372
mov word [ebp - 0x14], 0x6e
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x413ca6
xor ecx, ecx
lea edx, [ebp - 0x63c]
push edx
mov dword [ebp - 0x638], ecx
mov dword [ebp - 0x634], ecx
mov dword [ebp - 0x630], ecx
mov dword [ebp - 0x62c], ecx
mov dword [ebp - 0x63c], 0x14
call eax
test eax, eax
js 0x413ca6
mov eax, dword [ebp - 0x638]
mov ecx, dword [ebp - 0x644]
mov edx, dword [ebp - 0x634]
mov dword [ecx], eax
mov eax, dword [ebp - 0x64c]
mov ecx, dword [ebp - 0x630]
mov dword [eax], edx
mov edx, dword [ebp - 0x650]
mov eax, dword [ebp - 0x62c]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x648]
mov dword [ecx], eax
push edi
mov dword [ebx + 0x14], 1
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x413cdc
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x413cb8
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x648]
mov eax, dword [ebp - 0x650]
mov ecx, dword [ebp - 0x64c]
push edx
mov edx, dword [ebp - 0x644]
push eax
push ecx
push edx
push esi
mov ecx, ebx
call fcn.00413a00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047e4d2
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4155a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x10
push ebx
push esi
lea esi, [edx + 4]
mov eax, esi
push edi
mov edi, ecx
lea ecx, [ebp + 8]
cmp eax, edx
je 0x4155cb
lea ebx, [ebx]
mov bl, byte [eax - 1]
dec eax
mov byte [ecx], bl
inc ecx
cmp eax, edx
jne 0x4155c0
mov edx, dword [ebp + 8]
lea eax, [esi + 4]
lea ecx, [ebp + 8]
cmp eax, esi
je 0x4155e3
mov bl, byte [eax - 1]
dec eax
mov byte [ecx], bl
inc ecx
cmp eax, esi
jne 0x4155d8
mov ecx, dword [edi + 4]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [edi + 8]
mov dword [ebp + 8], ecx
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + 0x10]
xor esi, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], 8
mov edi, eax
shr edi, 5
add edi, dword [ebp + 8]
lea ecx, [esi + eax - 0x61c88647]
xor ecx, edi
mov edi, eax
shl edi, 4
add edi, dword [ebp - 4]
xor ecx, edi
add edx, ecx
mov edi, edx
shr edi, 5
add edi, dword [ebp - 8]
lea ecx, [esi + edx - 0x61c88647]
xor ecx, edi
mov edi, edx
shl edi, 4
add edi, dword [ebp - 0xc]
xor ecx, edi
add eax, ecx
mov ecx, eax
shr ecx, 5
add ecx, dword [ebp + 8]
mov edi, eax
shl edi, 4
add edi, dword [ebp - 4]
xor ecx, edi
lea edi, [esi + eax + 0x3c6ef372]
xor ecx, edi
add edx, ecx
mov ecx, edx
shr ecx, 5
add ecx, dword [ebp - 8]
mov edi, edx
shl edi, 4
add edi, dword [ebp - 0xc]
xor ecx, edi
lea edi, [esi + edx + 0x3c6ef372]
xor ecx, edi
add eax, ecx
mov ecx, eax
shr ecx, 5
add ecx, dword [ebp + 8]
mov edi, eax
shl edi, 4
add edi, dword [ebp - 4]
xor ecx, edi
lea edi, [esi + eax - 0x255992d5]
xor ecx, edi
add edx, ecx
mov ecx, edx
shr ecx, 5
add ecx, dword [ebp - 8]
mov edi, edx
shl edi, 4
add edi, dword [ebp - 0xc]
xor ecx, edi
lea edi, [esi + edx - 0x255992d5]
xor ecx, edi
add eax, ecx
mov ecx, eax
shr ecx, 5
add ecx, dword [ebp + 8]
mov edi, eax
shl edi, 4
add edi, dword [ebp - 4]
xor ecx, edi
lea edi, [esi + eax + 0x78dde6e4]
xor ecx, edi
add edx, ecx
mov ecx, edx
shr ecx, 5
add ecx, dword [ebp - 8]
mov edi, edx
shl edi, 4
add edi, dword [ebp - 0xc]
xor ecx, edi
lea edi, [esi + edx + 0x78dde6e4]
xor ecx, edi
add eax, ecx
add esi, 0x78dde6e4
dec dword [ebp - 0x10]
jne 0x415607
mov dword [ebp + 8], edx
lea ecx, [ebp + 0xc]
lea esi, [ebp - 0x10]
mov dl, byte [ecx - 1]
dec ecx
mov byte [esi], dl
lea edx, [ebp + 8]
inc esi
cmp ecx, edx
jne 0x415707
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp + 0xc]
mov dword [esi], ecx
mov dword [ebp + 8], eax
lea eax, [ebp + 0xc]
lea ecx, [ebp + 0xc]
mov dl, byte [eax - 1]
dec eax
mov byte [ecx], dl
lea edx, [ebp + 8]
inc ecx
cmp eax, edx
jne 0x415726
mov eax, dword [ebp + 0xc]
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x415750
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x10
push ebx
push esi
lea esi, [edx + 4]
mov eax, esi
push edi
mov edi, ecx
lea ecx, [ebp + 8]
cmp eax, edx
je 0x41577b
lea ebx, [ebx]
mov bl, byte [eax - 1]
dec eax
mov byte [ecx], bl
inc ecx
cmp eax, edx
jne 0x415770
mov edx, dword [ebp + 8]
lea eax, [esi + 4]
lea ecx, [ebp + 8]
cmp eax, esi
je 0x415793
mov bl, byte [eax - 1]
dec eax
mov byte [ecx], bl
inc ecx
cmp eax, esi
jne 0x415788
mov ecx, dword [edi + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [edi + 0x10]
mov dword [ebp + 8], ecx
mov ecx, dword [edi + 4]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + 8]
mov esi, 0xc6ef3720
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], 8
lea ebx, [ebx]
mov ecx, edx
shr ecx, 5
add ecx, dword [ebp + 8]
mov edi, edx
shl edi, 4
add edi, dword [ebp - 4]
xor ecx, edi
lea edi, [esi + edx]
xor ecx, edi
sub eax, ecx
mov ecx, eax
shr ecx, 5
add ecx, dword [ebp - 8]
mov edi, eax
shl edi, 4
add edi, dword [ebp - 0xc]
xor ecx, edi
lea edi, [esi + eax]
xor ecx, edi
sub edx, ecx
mov ecx, edx
shr ecx, 5
add ecx, dword [ebp + 8]
mov edi, edx
shl edi, 4
add edi, dword [ebp - 4]
xor ecx, edi
lea edi, [esi + edx + 0x61c88647]
xor ecx, edi
sub eax, ecx
mov ecx, eax
shr ecx, 5
add ecx, dword [ebp - 8]
mov edi, eax
shl edi, 4
add edi, dword [ebp - 0xc]
xor ecx, edi
lea edi, [esi + eax + 0x61c88647]
xor ecx, edi
sub edx, ecx
mov edi, edx
shr edi, 5
add edi, dword [ebp + 8]
lea ecx, [esi + edx - 0x3c6ef372]
xor ecx, edi
mov edi, edx
shl edi, 4
add edi, dword [ebp - 4]
xor ecx, edi
sub eax, ecx
mov edi, eax
shr edi, 5
add edi, dword [ebp - 8]
lea ecx, [esi + eax - 0x3c6ef372]
xor ecx, edi
mov edi, eax
shl edi, 4
add edi, dword [ebp - 0xc]
xor ecx, edi
sub edx, ecx
mov ecx, edx
shr ecx, 5
add ecx, dword [ebp + 8]
mov edi, edx
shl edi, 4
add edi, dword [ebp - 4]
xor ecx, edi
lea edi, [esi + edx + 0x255992d5]
xor ecx, edi
sub eax, ecx
mov ecx, eax
shr ecx, 5
add ecx, dword [ebp - 8]
mov edi, eax
shl edi, 4
add edi, dword [ebp - 0xc]
xor ecx, edi
lea edi, [esi + eax + 0x255992d5]
xor ecx, edi
sub edx, ecx
sub esi, 0x78dde6e4
dec dword [ebp - 0x10]
jne 0x4157c0
mov dword [ebp + 8], edx
lea ecx, [ebp + 0xc]
lea esi, [ebp - 0x10]
mov dl, byte [ecx - 1]
dec ecx
mov byte [esi], dl
lea edx, [ebp + 8]
inc esi
cmp ecx, edx
jne 0x4158b8
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp + 0xc]
mov dword [esi], ecx
mov dword [ebp + 8], eax
lea eax, [ebp + 0xc]
lea ecx, [ebp + 0xc]
mov dl, byte [eax - 1]
dec eax
mov byte [ecx], dl
lea edx, [ebp + 8]
inc ecx
cmp eax, edx
jne 0x4158d7
mov eax, dword [ebp + 0xc]
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4159f0
Capabilities:
Hash data with md5

Disassembly:
push esi
xor eax, eax
push 0x40
lea esi, [ecx + 0x5c]
push eax
push esi
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
call fcn.004159d0
mov byte [esi], 0x80
pop esi
ret