joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4022e0
Capabilities:
Get file version info

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x402304
pop edi
pop esi
pop ebx
add esp, 8
ret 8
push esi
call fcn.00405450
mov edi, eax
add esp, 4
test edi, edi
jne 0x40231c
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov ecx, dword [esp + 0x18]
push edi
push esi
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x402341
push edi
call fcn.00405440
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret 8
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push eax
push 0x40a0e0
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40236e
push edi
call fcn.00405440
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0xc]
xor ecx, ecx
push edi
mov dword [edx], 0
mov eax, dword [esi + 0x10]
shr eax, 0x10
and eax, 0xff
shl eax, 0x18
mov dword [edx], eax
mov cl, byte [esi + 0x10]
shl ecx, 0x10
or ecx, eax
xor eax, eax
mov dword [edx], ecx
mov ax, word [esi + 0x14]
or eax, ecx
mov dword [edx], eax
call fcn.00405440
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 8
ret 8

Function at 0x403dc0
Capabilities:
Delete file

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x14], ebx
call fcn.004051f0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov edx, dword [0x40c7b4]
lea eax, [ecx + ecx*4]
lea eax, [eax + eax*4]
shl eax, 5
test byte [eax + edx + 4], 0x20
je 0x403f4f
mov eax, ecx
sub eax, 0
je 0x403f2d
sub eax, 2
je 0x403e9d
dec eax
jne 0x403f4f
add ebx, 8
push ebx
push 0x40c7c0
call esi
push str.WUBI.EXE
push 0x40c7c0
call edi
push 0x40c7c0
call ebp
push ebx
push 0x40c7c0
call esi
push str.WINWB98.IME
push 0x40c7c0
call edi
push 0x40c7c0
call ebp
push ebx
push 0x40c7c0
call esi
push str.WINWB98.MB
push 0x40c7c0
call edi
push 0x40c7c0
call ebp
push ebx
push 0x40c7c0
call esi
push str.WINWB98.CNT
push 0x40c7c0
call edi
push 0x40c7c0
call ebp
push ebx
push 0x40c7c0
call esi
push str.WINWB98.HLP
jmp 0x403f19
add ebx, 8
push ebx
push 0x40c7c0
call esi
push str.WUBI.EXE
push 0x40c7c0
call edi
push 0x40c7c0
call ebp
push ebx
push 0x40c7c0
call esi
push str.WINWB86.IME
push 0x40c7c0
call edi
push 0x40c7c0
call ebp
push ebx
push 0x40c7c0
call esi
push str.WINWB86.MB
push 0x40c7c0
call edi
push 0x40c7c0
call ebp
push ebx
push 0x40c7c0
call esi
push str.WINWB86.CNT
push 0x40c7c0
call edi
push 0x40c7c0
call ebp
push ebx
push 0x40c7c0
call esi
push str.WINWB86.HLP
push 0x40c7c0
call edi
push 0x40c7c0
call ebp
mov ebx, dword [esp + 0x14]
jmp 0x403f4b
lea eax, [ebx + 8]
push eax
push 0x40c7c0
call esi
push str.MSPY20.EXE
push 0x40c7c0
call edi
push 0x40c7c0
call ebp
mov ecx, dword [esp + 0x10]
inc ecx
cmp ecx, 4
mov dword [esp + 0x10], ecx
jb 0x403dea
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x404930
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
sub esp, 0x214
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp]
push eax
push 0x4092a0
push 1
push 0
push 0x4091b0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x404a80
mov edx, dword [0x40c6a4]
mov eax, dword [esp]
add edx, 0xa8
push ebp
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 4]
push 0x40a184
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, dword [0x40c7b8]
mov ebp, dword [sym.imp.USER32.dll_LoadStringA]
push 0x208
push 0x40c7c0
mov eax, dword [edx]
push 0x16
push eax
call ebp
mov eax, dword [esp + 4]
push 0x40c7c0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push 0x4095a0
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jl 0x404a75
push edi
push esi
lea edx, [esp + 0x14]
push ebx
push edx
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [esp + 0x18]
push 0x40c7c0
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40a0e0
push 0x40c7c0
call esi
mov ecx, dword [0x40c7b8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x40c7c0
mov edi, dword [ecx]
call ebx
mov edx, 0x208
sub edx, eax
push edx
push 0x40c7c0
call ebx
add eax, 0x40c7c0
push eax
push 0x16
push edi
call ebp
push str..LNK
push 0x40c7c0
call esi
lea eax, [esp + 0x1c]
push 0x104
push eax
push 0xffffffffffffffff
push 0x40c7c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop ebx
pop esi
pop edi
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop ebp
add esp, 0x214
ret

Function at 0x4050d0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [0x40c6a4]
push esi
mov esi, ecx
cmp dword [eax + 0x10], 2
jne 0x4050f2
lea ecx, [esp + 4]
push ecx
push 0xf003f
push 0
push 0x40a1cc
jmp 0x405103
lea edx, [esp + 4]
push edx
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunServicesOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405117
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esi]
push 0x208
push 0x40c7c0
push 0xda
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
mov ecx, dword [esp + 4]
push 0
push 0
push 0
push 0
push 0x40c7c0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 4]
neg esi
sbb esi, esi
inc esi
test eax, eax
je 0x40515d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
Function at 0x405170
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [0x40c6a4]
push esi
mov esi, ecx
cmp dword [eax + 0x10], 2
jne 0x405195
mov ecx, dword [esi]
push 0x104
push 0x40c7c0
push 0x15
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
jmp 0x4051aa
mov edx, dword [esi]
push 0x208
push 0x40c7c0
push 0x15
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x40c7c0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4051db
mov eax, dword [esi + 4]
test eax, eax
je 0x4051d7
mov ecx, esi
call fcn.004051f0
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x405ae0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4095b0
push 0x407998
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40ca2c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40ca28], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40ca24], ecx
shr eax, 0x10
mov dword [0x40ca20], eax
call fcn.00407950
test eax, eax
jne 0x405b4a
push 0x1c
call fcn.00405c80
add esp, 4
mov dword [ebp - 4], 0
call fcn.00407750
call fcn.00407740
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40cdf0], eax
call fcn.00407310
mov dword [0x40c9d0], eax
test eax, eax
je 0x405b7d
mov eax, dword [0x40cdf0]
test eax, eax
jne 0x405b87
push 0xffffffffffffffff
call fcn.00406c70
add esp, 4
call fcn.00407060
call fcn.00406f70
call fcn.00406c40
mov esi, dword [0x40cdf0]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x405c66
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x405bce
test al, al
je 0x405bce
and eax, 0xff
push eax
call fcn.00406f10
add esp, 4
test eax, eax
je 0x405ba8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x405ba8
cmp byte [esi], 0x22
jne 0x405bd7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x405be7
cmp al, 0x20
ja 0x405be7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x405bd7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x405c08
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x405c0d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00406c70
jmp 0x405c4b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x405bd7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x405c66
Function at 0x406cb0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40ca5c]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x406ccf
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40ca58], 1
mov byte [0x40ca54], bl
jne 0x406d29
mov ecx, dword [0x40cde8]
test ecx, ecx
je 0x406d17
mov esi, dword [0x40cde4]
sub esi, 4
cmp esi, ecx
jb 0x406d17
mov eax, dword [esi]
test eax, eax
je 0x406d10
call eax
mov ecx, dword [0x40cde8]
sub esi, 4
cmp esi, ecx
jae 0x406d02
push 0x40a018
push 0x40a014
call fcn.00406d60
add esp, 8
push 0x40a024
push 0x40a01c
call fcn.00406d60
add esp, 8
test ebx, ebx
jne 0x406d50
push ebp
mov dword [0x40ca5c], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x407310
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40cb70]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x407352
call edi
mov esi, eax
test esi, esi
je 0x40733c
mov eax, 1
jmp 0x40734d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40745f
mov eax, 2
mov dword [0x40cb70], eax
cmp eax, 1
jne 0x4073f2
test esi, esi
jne 0x40736b
call edi
mov esi, eax
test esi, esi
je 0x40745f
cmp word [esi], 0
mov eax, esi
je 0x407385
add eax, 2
cmp word [eax], 0
jne 0x407373
add eax, 2
cmp word [eax], 0
jne 0x407373
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4073e4
push edi
call fcn.00405d00
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4073e4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4073d6
push ebx
call fcn.00405cb0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40745f
test ebx, ebx
jne 0x407403
call ebp
mov ebx, eax
test ebx, ebx
je 0x40745f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40741b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40740b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40740b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00405d00
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40743d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x407ab0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x40a3c0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x407ad4
add eax, 8
inc ebp
cmp eax, 0x40a450
jb 0x407ac5
cmp ecx, dword [ebp*8 + 0x40a3c0]
jne 0x407c7b
mov eax, dword [0x40c9d8]
cmp eax, 1
je 0x407c3d
test eax, eax
jne 0x407b00
cmp dword [0x40a214], 1
je 0x407c3d
cmp ecx, 0xfc
je 0x407c7b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407b3b
mov ecx, 5
mov esi, 0x409918
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x407b84
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x409914
add ebx, ecx
push ebx
call fcn.00408820
add esp, 0xc
mov ecx, 6
mov esi, 0x4098f8
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4098f4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4098cc
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40a3c4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00408920
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40cce0]
test eax, eax
je 0x407c4e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x407c58
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40a3c4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x42a4f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40d015
lea edi, [esi - 0xc015]
push edi
or ebp, 0xffffffff
jmp 0x42a512
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42a519
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42a508
mov eax, 1
add ebx, ebx
jne 0x42a52b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42a520
jne 0x42a53c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42a520
xor ecx, ecx
sub eax, 3
jb 0x42a550
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42a5c2
mov ebp, eax
add ebx, ebx
jne 0x42a55b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42a568
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42a58c
inc ecx
add ebx, ebx
jne 0x42a578
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42a56d
jne 0x42a589
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42a56d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42a5ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42a59d
jmp 0x42a50e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42a5ac
add edi, ecx
jmp 0x42a50e
pop esi
mov edi, esi
mov ecx, 0x21
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42a5ca
cmp byte [edi], 1
jne 0x42a5ca
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42a5cf
lea edi, [esi + 0x28000]
mov eax, dword [edi]
or eax, eax
je 0x42a63e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2a088]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2a140]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42a5fc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2a148]
or eax, eax
je 0x42a638
mov dword [ebx], eax
add ebx, 4
jmp 0x42a619
call dword [esi + 0x2a144]
mov ebp, dword [esi + 0x2a14c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42a672
sub esp, 0xffffff80
jmp 0x401219
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40288e
pop dword [ebp - 0x3c]
mov eax, 0x4d34b1b3
sub eax, 0x4cf48925
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x57b7d01a
sub dword [ebp - 0x4c], 0x9658acf
mov dword [ebp - 0x48], 0x6ede7e3c
add dword [ebp - 0x48], 0xc354ce09
mov dword [ebp - 0x44], 0xae06e5c
sub dword [ebp - 0x44], 0xbe942a2e
mov dword [ebp - 0x40], 0x7d10dda9
add dword [ebp - 0x40], 0x82ef2257
lea eax, [ebp - 0x4c]
push eax
mov eax, 0x75edf289
sub eax, 0x75ad8225
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xe12b52a8
add dword [ebp - 0x4c], 0x934716ae
mov dword [ebp - 0x48], 0x8ecf0c3
add dword [ebp - 0x48], 0x387f70b2
mov dword [ebp - 0x44], 0xcc5e44d0
sub dword [ebp - 0x44], 0x68eed864
mov dword [ebp - 0x40], 0x34f03b09
add dword [ebp - 0x40], 0xcb0fc4f7
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x6a7841c7
add eax, 0x95c82ee1
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3a566
push 0
call eax
mov ecx, 0x9553a3c6
sub ecx, 0x95534ccf
xor ebx, ebx
add ebx, eax
mov esi, 0x410000
add esi, dword [ebp - 0x3c]
mov edi, 0xf89b494b
add edi, 0xd4c551e
sub dword [ebp - 0x14], ecx
mov edx, dword [esi]
sub dword [ebp - 0x24], edi
sub edx, edi
xor dword [ebp - 0x30], esi
mov dword [ebx], edx
xor dword [ebp - 0x34], 0x932ec88b
add ebx, 0x2907fe64
add ebx, 0xd6f801a0
add esi, 0xef6669ad
sub esi, 0xef6669a9
loop 0x4029ac
add eax, 0xc90f6fc7
sub eax, 0xc90e2118
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x4733f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e6d9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004d9512
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x473472
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004d6e47
mov eax, dword [eax]
push 0x53d240
push eax
call fcn.004c91e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004d979d
test bl, bl
je 0x473472
push 0x53d240
lea ecx, [esp + 0xc]
call fcn.004d9b79
push 0x540d98
lea ecx, [esp + 0xc]
call fcn.004d9b79
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4734ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004d979d
jmp 0x473579
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x473532
lea edx, [esp + 0x7c]
push 0x540d94
push edx
call fcn.004c91e4
add esp, 8
test eax, eax
je 0x473532
lea eax, [esp + 0x7c]
push 0x540d90
push eax
call fcn.004c91e4
add esp, 8
test eax, eax
je 0x473532
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4734c2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004d979d
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x473d70
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x473dd2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc