joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40afc0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423be8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x42d4d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp dword [eax - 0xc], 3
jle 0x40b0a1
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push eax
call edi
test eax, eax
jne 0x40b077
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 3
jne 0x40b08b
mov eax, dword [esi]
push 0x5c
push eax
call fcn.004162bc
add esp, 8
test eax, eax
jne 0x40b026
or eax, 0xffffffff
jmp 0x40b02a
sub eax, dword [esi]
sar eax, 1
lea ecx, [ebp + 8]
mov edx, esi
call fcn.00404df0
push eax
mov dword [ebp - 4], 0
call fcn.0040afc0
mov bl, al
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b06c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40b077
mov ecx, dword [esi]
push 0
push ecx
call edi
mov al, 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
call ebx
mov al, 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
xor al, al
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 0x40b0c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422ba9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x42d4d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov ecx, 1
mov dword [ebp - 0x10], ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x40b133
mov eax, 0x104
mov ecx, esi
call fcn.00402be0
mov eax, dword [esi]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40b15e
push ecx
push eax
call fcn.00415e4f
add esp, 8
test eax, eax
js 0x40b182
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40b182
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403bc0
int3
Function at 0x40baf0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422b29
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x42d4d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov dword [ebp - 4], ebx
push 0x410
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x40bbed
lea ecx, [ebp - 0x18]
push ecx
push 4
lea edx, [ebp - 0x14]
push edx
push edi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x40bbe6
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
mov ebx, 0x104
sub eax, ebx
or eax, ecx
jge 0x40bb91
mov eax, ebx
mov ecx, esi
call fcn.00402be0
mov eax, dword [esi]
cmp dword [eax - 8], ebx
jge 0x40bba2
push 0x80070057
call fcn.00403bc0
mov dword [eax - 0xc], ebx
mov ecx, dword [esi]
push ebx
xor edx, edx
push eax
mov word [ecx + 0x208], dx
mov eax, dword [ebp - 0x14]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40bbd4
push ecx
push eax
call fcn.00415e4f
add esp, 8
test eax, eax
js 0x40bb98
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40bb98
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
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 0x40bc10
Capabilities:
Delete directory
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423be8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x42d4d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
mov esi, dword [edx - 0xc]
test esi, esi
jns 0x40bc51
push 0x80070057
call fcn.00403bc0
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x40bc6f
mov eax, esi
lea ecx, [ebp + 8]
call fcn.00402be0
mov edx, dword [ebp + 8]
lea eax, [esi + 1]
push eax
push edx
call fcn.00415e38
mov eax, dword [ebp + 8]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x40bc47
mov dword [eax - 0xc], esi
mov edx, dword [ebp + 8]
xor ecx, ecx
push 0x7d0
mov word [edx + esi*2], cx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x40b550
lea ecx, [ebp + 8]
call fcn.0040b5f0
add esp, 4
push 0x40b350
lea ecx, [ebp + 8]
call fcn.0040b5f0
mov eax, dword [ebp + 8]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.0040baf0
mov eax, dword [eax]
add esp, 8
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
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 0x40bd04
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 0x40bd2a
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 0x40be10
Capabilities:
Check os version
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42351d
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x42d4d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x220], ebx
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov edi, ecx
mov ecx, section..data
mov dword [ebp - 0x224], edi
call edx
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x128]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x220], 1
mov dword [ebp - 0x128], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40bede
cmp dword [ebp - 0x118], 2
jne 0x40bede
cmp dword [ebp - 0x124], 6
jb 0x40bede
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0040bd40
add esp, 4
mov dword [ebp - 4], 1
call fcn.00404c20
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bede
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], ebx
jne 0x40bf22
push 1
push 0x26
lea edx, [ebp - 0x218]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40bf22
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40bf04
sub eax, edx
lea ecx, [ebp - 0x218]
sar eax, 1
push ecx
push edi
mov ebx, eax
call fcn.00402880
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041528c
mov esp, ebp
pop ebp
ret
Function at 0x40bf60
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4232a2
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x42d4d4]
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
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x220], esi
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov edi, ecx
mov ecx, section..data
mov dword [ebp - 0x224], edi
call edx
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x128]
mov dword [ebp - 4], esi
push eax
mov dword [ebp - 0x220], 1
mov dword [ebp - 0x128], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40c063
cmp dword [ebp - 0x118], 2
jne 0x40c063
cmp dword [ebp - 0x124], 6
jb 0x40c063
push 0x428264
call fcn.00401570
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
je 0x40c063
push str.XIUFNL_p2_hpxeF:bNi
call fcn.00401320
add esp, 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x40c05c
lea ecx, [ebp - 0x21c]
push ecx
push esi
push esi
push 0x42f6e0
mov dword [ebp - 0x21c], esi
call eax
cmp eax, esi
jl 0x40c05c
mov edx, dword [ebp - 0x21c]
cmp edx, esi
je 0x40c05c
call fcn.00401b40
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
jg 0x40c0ae
push 1
push 0x1a
lea ecx, [ebp - 0x218]
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40c0ae
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40c090
sub eax, edx
lea edx, [ebp - 0x218]
sar eax, 1
push edx
push edi
mov ebx, eax
call fcn.00402880
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 - 0x10]
xor ecx, ebp
call fcn.0041528c
mov esp, ebp
pop ebp
ret
Function at 0x40c0d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422dd8
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x42d4d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x814], edx
mov dword [ebp - 4], edx
mov ecx, dword [ecx]
lea edx, [ebp - 0x818]
push edx
lea edx, [ebp - 0x810]
push edx
lea edx, [ebp - 0x814]
push edx
push 2
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
push eax
mov dword [ebp - 0x814], 1
mov dword [ebp - 0x818], 0x800
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
push esi
test eax, eax
jne 0x40c16e
lea ecx, [ebp - 0x810]
call fcn.00401930
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40c192
mov ecx, 0x427b68
call fcn.00401930
mov dword [ebp - 4], 0xffffffff
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 0x40c19e
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.0041528c
mov esp, ebp
pop ebp
ret

Function at 0x40cae0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x38
xor esi, esi
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.00416ee0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x2c], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [ebp - 4]
cmp eax, esi
pop esi
je 0x40cb44
cmp eax, 0xffffffff
je 0x40cb44
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esp, ebp
pop ebp
ret
Function at 0x40cea0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423c88
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x42d4d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
lea eax, [ebp - 0x128]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x128], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40d03b
cmp dword [ebp - 0x118], 2
jne 0x40d03b
cmp dword [ebp - 0x124], 6
jb 0x40d03b
call fcn.0040cb50
mov dword [ebp - 0x12c], eax
test eax, eax
je 0x40d00e
push 0x44
lea ecx, [ebp - 0x188]
push 0
push ecx
call fcn.00416ee0
mov esi, dword [esi]
xor eax, eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 1
add esp, 0xc
mov dword [ebp - 0x188], 0x44
mov word [ebp - 0x158], dx
mov dword [ebp - 0x15c], ecx
cmp dword [eax - 4], ecx
jle 0x40cf89
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp + 8]
push ecx
call fcn.00402c40
mov eax, dword [ebp + 8]
mov edi, dword [edi]
mov edx, dword [ebp - 0x12c]
push esi
push eax
push edi
push edx
call fcn.00401090
push eax
lea ecx, [ebp - 0x13c]
lea edx, [ebp - 0x188]
call fcn.00401290
test eax, eax
je 0x40cfb8
mov eax, dword [ebp - 0x13c]
mov dword [ebx], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00415e4f
add esp, 8
test eax, eax
js 0x40d004
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx - 8]
jg 0x40d004
mov dword [ecx - 0xc], eax
mov edx, dword [ebp + 8]
xor ecx, ecx
mov word [edx + eax*2], cx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov 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
jmp 0x40d081
push 0x80070057
call fcn.00403bc0
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 0x40d034
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x62
jmp 0x40d08f
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 0xa
push ecx
push ebx
push esi
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x12c], esp
mov esi, esp
call fcn.00403820
add eax, 0x10
push edi
mov dword [esi], eax
call fcn.0040c970
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 0x18
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d08d
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 esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041528c
mov esp, ebp
pop ebp
ret
Function at 0x40e670
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422cf8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x42d4d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
xor al, al
cmp dword [ecx - 0xc], 3
jl 0x40e7d5
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
mov byte [ebp + 0xb], bl
test bl, bl
jne 0x40e7d3
cmp byte [ebp + 0xc], bl
je 0x40e7d3
mov eax, dword [esi]
sub eax, 0x10
call fcn.00403820
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40e7ad
cmp eax, 0xb7
je 0x40e7ad
call fcn.0040d240
mov ecx, dword [esi]
add ecx, 0xfffffff4
cmp eax, dword [ecx]
jne 0x40e770
mov bl, 1
mov edi, edi
mov eax, dword [ecx]
lea eax, [eax - 1]
lea ecx, [ebp - 0x14]
mov edx, esi
call fcn.00404df0
lea edi, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00404c20
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e74d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
push 0x5c
push eax
call fcn.004162bc
add esp, 8
test eax, eax
jne 0x40e763
or eax, 0xffffffff
jmp 0x40e767
sub eax, dword [esi]
sar eax, 1
mov ecx, dword [esi]
add ecx, 0xfffffff4
cmp eax, dword [ecx]
je 0x40e710
lea ecx, [ebp - 0x14]
mov edx, esi
call fcn.00404df0
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x18]
push eax
mov byte [ebp - 4], 2
call fcn.0040e670
lea ecx, [ebp - 0x14]
mov bl, al
call fcn.004019e0
test bl, bl
je 0x40e7aa
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne byte [ebp + 0xb]
mov bl, byte [ebp + 0xb]
mov dword [ebp - 4], 0xffffffff
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 0x40e7d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
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 0x40f480
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
movzx ecx, di
shr edi, 0x10
test esi, esi
jne 0x40f49c
pop edi
lea eax, [esi + 1]
pop esi
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x40f5a7
jmp 0x40f4b0
mov eax, ebx
cmp ebx, 0x15b0
jb 0x40f4bf
mov eax, 0x15b0
sub ebx, eax
mov dword [ebp + 0x10], ebx
cmp eax, 0x10
jl 0x40f56c
mov edx, eax
shr edx, 4
mov ebx, edx
neg ebx
shl ebx, 4
add eax, ebx
jmp 0x40f4e0
movzx ebx, byte [esi]
add ecx, ebx
movzx ebx, byte [esi + 1]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 2]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 3]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 4]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 5]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 6]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 7]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 8]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 9]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xa]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xb]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xc]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xd]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xe]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xf]
add edi, ecx
add ecx, ebx
add edi, ecx
add esi, 0x10
dec edx
jne 0x40f4e0
mov ebx, dword [ebp + 0x10]
test eax, eax
je 0x40f57b
movzx edx, byte [esi]
add ecx, edx
inc esi
add edi, ecx
dec eax
jne 0x40f570
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
jne 0x40f4b0
mov eax, edi
pop ebx
shl eax, 0x10
pop edi
or eax, ecx
pop esi
pop ebp
ret
Function at 0x40f770
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x24]
mov dword [ebp - 8], edi
jmp 0x40f783
mov edi, dword [ebp - 8]
mov eax, dword [esi + 0x64]
mov ebx, dword [esi + 0x34]
mov ecx, dword [esi + 0x6c]
sub ebx, eax
sub ebx, ecx
mov dword [ebp - 4], ebx
jne 0x40f7a2
test eax, eax
jne 0x40f7b0
test ecx, ecx
jne 0x40f7b0
mov dword [ebp - 4], edi
jmp 0x40f81c
cmp ebx, 0xffffffff
jne 0x40f7b0
mov dword [ebp - 4], 0xfffffffe
jmp 0x40f81c
mov ecx, dword [esi + 0x24]
lea edx, [edi + ecx - 0x106]
cmp eax, edx
jb 0x40f81c
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.00417410
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x40f7f0
sub eax, edi
jmp 0x40f7f2
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x40f7e1
mov ecx, dword [esi + 0x38]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x40f80f
sub eax, edi
jmp 0x40f811
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x40f800
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x40f8b8
mov eax, dword [esi + 0x6c]
add eax, dword [esi + 0x64]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x30]
mov edx, dword [ebp - 4]
mov ebx, ecx
mov dword [ebp - 0xc], eax
cmp ebx, edx
jbe 0x40f842
mov ebx, edx
test ebx, ebx
je 0x40f87c
mov edx, dword [edi + 0x1c]
sub ecx, ebx
mov dword [edi + 4], ecx
cmp dword [edx + 0x18], 0
jne 0x40f86a
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
push eax
push ecx
call fcn.0040f480
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [edi]
push ebx
push edx
push eax
call fcn.00417410
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x6c], ebx
mov edi, dword [esi + 0x6c]
cmp edi, 3
jb 0x40f8a4
mov edx, dword [esi + 0x64]
add edx, dword [esi + 0x30]
mov ecx, dword [esi + 0x50]
movzx eax, byte [edx]
mov dword [esi + 0x40], eax
movzx edx, byte [edx + 1]
shl eax, cl
xor eax, edx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp edi, 0x106
jae 0x40f8b8
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x40f780
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413e20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x429518
push 0x6f
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
add ebx, 0xfffffffe
mov esi, dword [ebp + 8]
mov edi, eax
movzx eax, word [edi + ebx]
mov dword [ebp - 4], eax
je 0x413ea5
mov eax, dword [esi]
test eax, eax
je 0x413e88
push eax
call fcn.004159ef
add esp, 4
mov dword [esi], 0
mov dword [esi + 8], 0
push ebx
mov dword [esi + 8], ebx
call fcn.00414b8b
mov ecx, dword [esi + 8]
push ecx
push 0xfe
push eax
mov dword [esi], eax
call fcn.00416ee0
add esp, 0x10
test edi, edi
je 0x413eb9
mov edx, dword [esi + 8]
mov eax, dword [esi]
push edx
push edi
push eax
call fcn.00417410
add esp, 0xc
mov ax, word [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41528c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d4d4]
jne 0x415296
repz ret
jmp fcn.00418c15