joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409b60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f1a6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x43a050]
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 dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x430], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x418], edi
push 2
push edi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x424], esi
cmp esi, edi
jne 0x409be0
call fcn.00408f80
mov edi, eax
jmp 0x409cf9
mov eax, dword [ebp - 0x41c]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
jne 0x409bff
call fcn.00408f80
jmp 0x409cf0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, edi
jne 0x409c1b
call fcn.00408f80
jmp 0x409cf0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
mov dword [ebp - 0x41c], ebx
cmp eax, ebx
jae 0x409c3c
mov edi, 0x8007000e
jmp 0x409cf2
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, edi
ja 0x409c51
cmp eax, 0xffffffff
jbe 0x409c5b
push 0x80070216
call fcn.00401000
cmp eax, 0x400
jbe 0x409c8d
lea ecx, [ebp - 0x418]
push ecx
call fcn.00417150
jmp 0x409c99
lea edx, [ebp - 0x414]
mov dword [ebp - 0x418], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x418]
cmp eax, edi
jne 0x409cb1
mov edi, 0x8007000e
jmp 0x409cf2
push ebx
push eax
mov eax, dword [ebp - 0x420]
push ebx
push eax
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
jne 0x409ccf
call fcn.00408f80
jmp 0x409cf0
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x418]
push eax
lea ecx, [ebp - 0x42c]
call fcn.0040a8e0
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x414]
cmp dword [ebp - 0x418], ecx
je 0x409d12
lea eax, [ebp - 0x418]
call fcn.00416b60
mov eax, edi
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.00418cd4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40bba0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, eax
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 4]
push ecx
or edx, 1
push edx
push 0
push eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esi], eax
test eax, eax
je 0x40bbdf
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40bc52
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
push 0
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push edx
push eax
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
mov dword [esi], eax
push ecx
test eax, eax
jne 0x40bc39
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bc30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bc5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40bf10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42eca0
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x43a050]
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 dword [ebp - 0x81c], 0
mov eax, 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x81c], eax
xor eax, eax
mov word [ebp - 0x810], ax
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x820], 0x400
mov dword [ebp - 0x814], esp
mov edi, esp
call fcn.00401710
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.0040bba0
mov dword [ebp - 0x818], eax
cmp eax, 1
je 0x40bfba
cmp eax, 2
je 0x40bfba
cmp eax, 7
je 0x40bfba
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00401710
add eax, 0x10
mov dword [ebx], eax
jmp 0x40c03a
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x814]
push ecx
or edx, 0x20019
push edx
push 0
push eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esi], eax
test eax, eax
jne 0x40bfa5
lea ecx, [ebp - 0x820]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x810]
push edx
mov edx, dword [ebp - 0x814]
lea eax, [ebp - 0x818]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esi], eax
test eax, eax
je 0x40c013
xor esi, esi
jmp 0x40c019
mov esi, dword [ebp - 0x81c]
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40bfa5
push ebx
lea ecx, [ebp - 0x810]
call fcn.004012d0
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c05d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c083
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
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.00418cd4
mov esp, ebp
pop ebp
ret 8
Function at 0x40c0b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x43a050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0xfe
push edi
mov edi, 1
jle 0x40c126
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c0f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c113
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418cd4
mov esp, ebp
pop ebp
ret 8
push eax
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0x10]
lea edx, [ebp - 0x208]
push edx
mov edx, dword [esi + 8]
or ecx, 0x20006
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c0d5
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c166
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x208]
lea edx, [ebp - 0x204]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40c19c
xor edi, edi
cmp dword [esi + 0xc], 0
jne 0x40c1af
mov edx, dword [ebp - 0x208]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c1db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c1fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.00418cd4
mov esp, ebp
pop ebp
ret 8

Function at 0x40c240
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x43a050]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x210], 0
mov word [ebp - 0x20c], ax
call fcn.0041c1a0
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
lea ecx, [ebp - 0x20c]
call fcn.004012d0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.00418cd4
mov esp, ebp
pop ebp
ret
Function at 0x40c6e0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f170
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43a050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
jne 0x40c790
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x10], esp
mov esi, esp
call fcn.00401710
add eax, 0x10
lea ecx, [ebp - 0x10]
mov dword [esi], eax
call fcn.0040c2b0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
push ecx
call edi
test eax, eax
jne 0x40c7cc
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x14], esp
mov esi, esp
call fcn.00401710
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.0040c6e0
test eax, eax
jne 0x40c7cc
mov byte [ebp - 4], al
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 0x40c790
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c7b6
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 4
mov ecx, dword [ebp + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 0
test eax, eax
mov eax, dword [ebp - 0x10]
je 0x40c774
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c7ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c825
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 4
Function at 0x40c840
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e7c8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push edi
mov eax, dword [0x43a050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x10], eax
push 0x3e8
mov dword [ebp - 4], eax
call fcn.00419476
add esp, 4
mov ebx, eax
mov eax, dword [ebp + 8]
push 0x1f4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x40c8b5
push ebx
push 0x4340d4
lea edi, [ebp + 8]
call fcn.00418480
push ebx
call fcn.004197c6
add esp, 0xc
mov ebx, edi
call fcn.00415b00
mov ebx, eax
call fcn.00415b80
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00401710
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c8eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c900
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ebc8
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x43a050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x218]
push ecx
push eax
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
lea ecx, [ebp - 0x218]
test eax, eax
jne 0x40c959
mov ecx, 0x432d0c
call fcn.004012d0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c984
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00418cd4
mov esp, ebp
pop ebp
ret 4
Function at 0x40f820
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e3e0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x43a050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x68]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0041c1a0
xor eax, eax
add esp, 0xc
lea ecx, [ebp - 0x6c]
push ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x6c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [ebp + 8]
mov edx, 5
mov edi, 1
add eax, 0xfffffff0
mov word [ebp - 0x3c], dx
mov dword [ebp - 0x40], edi
call fcn.00401710
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
cmp dword [esi - 4], edi
jle 0x40f8b6
mov eax, dword [esi - 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00401a60
mov esi, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push ebx
push edi
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40f929
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f8ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f915
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
mov ecx, dword [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [ebp - 0x20]
push edx
call edi
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f95a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f980
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
Function at 0x40fb60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f066
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x43a050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [edi + 4]
mov dword [edi + 0x20c], 0
test eax, eax
je 0x40fbda
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [eax + 1]
cmp ebx, 0x3fffffff
jg 0x40fbda
lea eax, [ebx + ebx]
call fcn.00425100
mov esi, esp
test esi, esi
je 0x40fbda
push ebx
push esi
xor eax, eax
push 0xffffffffffffffff
mov word [esi], ax
lea eax, [edi + 4]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40fbdc
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fbfd
mov edx, dword [edi + 0x210]
lea ecx, [edi + 4]
call fcn.004042c0
movzx eax, al
jmp 0x40fc80
push 0x98
call fcn.00418f20
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x40fc20
push eax
call fcn.00404eb0
jmp 0x40fc22
xor eax, eax
or esi, 0xffffffff
mov dword [ebp - 4], esi
mov ecx, dword [edi + 0x210]
call fcn.00403ae0
push 0x98
call fcn.00418f20
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x40fc5d
lea ecx, [edi + 0x108]
push ecx
push eax
call fcn.00403c70
jmp 0x40fc5f
xor eax, eax
mov dword [ebp - 4], esi
mov ecx, dword [edi + 0x210]
call fcn.00403ae0
mov edx, dword [edi + 0x210]
mov byte [edx + 0x75], 1
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
lea esp, [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00418cd4
mov esp, ebp
pop ebp
ret
Function at 0x4104f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e606
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x43a050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, edi
call fcn.00410ce0
xor ebx, ebx
lea esi, [edi + 0x30]
mov dword [ebp - 4], ebx
call fcn.00410ce0
lea esi, [edi + 0x60]
call fcn.00410ce0
lea esi, [edi + 0x90]
call fcn.00410ce0
lea esi, [edi + 0xc0]
call fcn.00410ce0
lea esi, [edi + 0xf0]
call fcn.00410ce0
lea esi, [edi + 0x120]
call fcn.00410ce0
mov dword [edi + 0x150], ebx
mov dword [edi + 0x154], ebx
mov dword [edi + 0x158], ebx
mov byte [ebp - 4], 7
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [edi + 0x184], eax
mov byte [ebp - 4], 8
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [edi + 0x188], eax
mov byte [ebp - 4], 9
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [edi + 0x18c], eax
mov byte [ebp - 4], 0xa
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [edi + 0x190], eax
mov byte [ebp - 4], 0xb
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
lea esi, [edi + 0x198]
mov dword [edi + 0x194], eax
call fcn.00410ce0
lea esi, [edi + 0x1c8]
call fcn.00410ce0
lea esi, [edi + 0x1f8]
call fcn.00410ce0
lea esi, [edi + 0x228]
call fcn.00410ce0
mov byte [ebp - 4], 0xc
mov eax, edi
mov dword [edi + 0x178], ebx
mov dword [edi + 0x17c], ebx
mov dword [edi + 0x180], ebx
call fcn.00410810
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x411140
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x43a050]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x40
lea eax, [esi + 0x600]
push 0
push eax
call fcn.0041c1a0
push 0x40
lea ecx, [esi + 0x640]
push 0
push ecx
call fcn.0041c1a0
xor eax, eax
mov dword [esi + 0x680], eax
push 0x41
mov dword [esi + 0x684], eax
push eax
lea edx, [esi + 0x690]
mov dword [esi + 0x688], eax
push edx
mov dword [esi + 0x68c], eax
call fcn.0041c1a0
xor eax, eax
mov dword [esi + 0x6d1], eax
mov dword [esi + 0x6d5], eax
mov dword [esi + 0x6d9], eax
mov dword [esi + 0x6dd], eax
mov byte [esi + 0x6e1], al
mov dword [esi + 0x6e2], eax
mov dword [esi + 0x6e6], eax
push 0x1000
push eax
mov byte [esi + 0x6ea], al
lea eax, [esi + 0x6eb]
push eax
call fcn.0041c1a0
push 0x1000
lea ecx, [esi + 0x16eb]
push 0
push ecx
call fcn.0041c1a0
push 0x3f
lea edx, [ebp - 0x7b]
push 0
push edx
mov byte [ebp - 0x7c], 0
call fcn.0041c1a0
add esp, 0x48
xor eax, eax
jmp 0x411210
mov ecx, eax
shr ecx, 3
movsx edx, byte [ecx + 0x43c9e8]
mov ecx, eax
and ecx, 7
shl edx, cl
inc eax
sar edx, 7
and dl, 1
mov byte [ebp + eax - 0x7d], dl
cmp eax, 0x40
jb 0x411210
push 0x37
lea eax, [ebp - 0x3b]
push 0
push eax
mov byte [ebp - 0x3c], 0
call fcn.0041c1a0
add esp, 0xc
xor eax, eax
lea esp, [esp]
movsx ecx, byte [eax + str.91__]
movzx edx, byte [ebp + ecx - 0x7d]
movsx ecx, byte [eax + 0x433579]
mov byte [ebp + eax - 0x3c], dl
movzx edx, byte [ebp + ecx - 0x7d]
movsx ecx, byte [eax + 0x43357a]
mov byte [ebp + eax - 0x3b], dl
movzx edx, byte [ebp + ecx - 0x7d]
movsx ecx, byte [eax + 0x43357b]
mov byte [ebp + eax - 0x3a], dl
movzx edx, byte [ebp + ecx - 0x7d]
mov byte [ebp + eax - 0x39], dl
add eax, 4
cmp eax, 0x38
jl 0x411250
lea edx, [ebp - 0x3c]
mov ecx, esi
call fcn.004112b0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418cd4
mov esp, ebp
pop ebp
ret