joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ea0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x41e008], 0x8088405
inc edx
mov dword [ebx + 0x41e008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4050c0
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x44cb0c
cmp dword [ebp + 0xc], 2
jl 0x4050d4
mov ebx, 0x44cb3c
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x40510c
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x401f44
mov dword [0x44a014], eax
mov eax, 0x401f4c
mov dword [0x44a018], eax
mov eax, ebx
call fcn.00404fa4
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x405141
cmp al, 3
jge 0x405141
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x405152
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x40515d
call dword [ecx + eax*4]
cmp dword [0x44a034], 0
jne 0x405173
mov byte [0x44a03c], 1
fnstcw word [0x41e01c]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.004053d4
call fcn.00405054
ret 4

Function at 0x40533c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x44a04c], 0
je 0x4053a3
cmp word [0x44a338], 0xd7b2
jne 0x405365
cmp dword [0x44a340], 0
jbe 0x405365
mov eax, 0x44a334
call dword [0x44a350]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push 0x41e9b8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x4053d0
call fcn.00405d74
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41e026], 0
jne 0x4053bf
push 0
push 0x41e9b2
push 0x41e9b8
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40701c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x407181
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004055bc
cmp si, word [0x41e9f0]
jb 0x4070b4
cmp si, word [0x41ebf0]
ja 0x4070b4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4070b4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x41e9f0]
jae 0x40708e
mov edi, ebx
dec edi
jmp 0x4070af
cmp si, word [ebx*8 + 0x41e9f0]
jbe 0x40709e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4070af
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x41e9f4]
call fcn.00406f2c
jmp 0x4070b4
cmp edi, dword [ebp - 8]
jae 0x407078
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x407163
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x407163
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00405f78
push dword [ebp - 0x160]
push 0x40719c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00405f78
push dword [ebp - 0x164]
push 0x4071ac
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00405f78
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00406130
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407188
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040561c
ret
Function at 0x407334
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407437
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x44cb7c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x44cb94]
jne 0x407380
mov eax, esi
mov edx, 0x44cb96
mov ecx, 0x55
call fcn.00405f78
push 0x44cb7c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x407421
push 0x44cb7c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004055bc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4073ef
cmp byte [0x44cb78], 0
je 0x4073b4
mov edx, esi
mov eax, ebx
call fcn.00407218
jmp 0x4073ef
mov edx, esi
mov eax, ebx
call fcn.0040701c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4073ef
cmp dword [esi], 0
je 0x4073d8
mov eax, esi
mov edx, 0x407450
call fcn.00406050
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040701c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406050
push 0x44cb7c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x44cb94], bx
push 0xaa
mov eax, dword [esi]
call fcn.00405ee4
push eax
push 0x44cb96
call sub.kernel32.dll_lstrcpynW
push 0x44cb7c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40743e
lea eax, [ebp - 4]
call fcn.004055bc
ret
Function at 0x40766c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056a0
xor eax, eax
push ebp
push 0x407891
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4076ac
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4076c6
push 0x105
mov eax, dword [ebp - 4]
call fcn.00405ee4
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40787b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4078a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407795
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4078a0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407795
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4078dc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407795
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4078dc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407795
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407910
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407795
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407944
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40787b
xor eax, eax
push ebp
push 0x407874
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00407478
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x407804
mov eax, dword [ebp - 0x10]
call fcn.00403bd4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00405f3c
jmp 0x40784f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x407984
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40784f
mov eax, dword [ebp - 0x10]
call fcn.00403bd4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x407984
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00405f3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40787b
cmp dword [ebp - 8], 0
je 0x40786a
mov eax, dword [ebp - 8]
call fcn.00403bf0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407898
lea eax, [ebp - 4]
call fcn.004055bc
ret
Function at 0x407b74
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056a0
xor eax, eax
push ebp
push 0x407c34
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00405f78
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004060a8
mov eax, dword [ebx]
call fcn.00407a3c
test al, al
jne 0x407c11
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00405f78
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004060a8
mov eax, dword [ebx]
call fcn.00407a3c
test al, al
jne 0x407c11
mov eax, ebx
call fcn.004055bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407c3b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040561c
lea eax, [ebp - 4]
call fcn.004055bc
ret

Function at 0x4082b8
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x415388
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.00405ee4
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4153f2
test ah, 4
je 0x4153eb
test bl, bl
jne 0x4153b0
mov al, 1
jmp 0x415419
test al, 0x10
je 0x4153b8
xor eax, eax
jmp 0x415419
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4153dc
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x415419
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x415419
test al, 0x10
sete al
jmp 0x415419
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x415413
cmp ebx, 3
je 0x415413
cmp ebx, 0x7b
je 0x415413
mov eax, esi
call fcn.00415348
test al, al
jne 0x415417
xor eax, eax
jmp 0x415419
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x416a50
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x416a89
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405724
jmp 0x416a92
mov eax, ebx
mov edx, esi
call fcn.004058d8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x416a9c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x416abe
movzx eax, word [esp]
jmp 0x416ac0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x417794
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4178b9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041759c
mov esi, eax
mov eax, dword [0x449d24]
cmp byte [eax], 0
je 0x417861
mov eax, dword [0x449c4c]
call fcn.00403f18
call fcn.00403d28
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x417764]
call fcn.00406aa8
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4178d4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x41789d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x449c24]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x44cc44]
call fcn.00406b60
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4178c0
lea eax, [ebp - 4]
mov edx, dword [0x417764]
call fcn.00406ab4
ret

Function at 0x418edc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004059f4
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00408298
mov edi, eax
cmp edi, 0x104
jbe 0x418e83
mov eax, edi
add eax, eax
call fcn.00403bd4
mov esi, eax
jmp 0x418e85
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00408298
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x418ec0
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x418eaa
mov eax, esp
cmp esi, eax
je 0x418ecd
mov eax, esi
call fcn.00403bf0
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x418f08
cmp bl, 0
je 0x418f04
cmp bl, 0x41
jl 0x418eff
cmp bl, 0x5a
jg 0x418eff
or bl, 0x20
xor al, bl
inc esi
jmp 0x418ee3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x418e44

Function at 0x419104
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00405f78
add esp, 0x800
pop ebx
ret
Function at 0x419a5c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
mov eax, dword [ebp + 0xc]
call fcn.004056b0
xor eax, eax
push ebp
push 0x419ac0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00405d74
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x104]
mov ecx, 0x104
push 0
call fcn.00405b30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419ac7
lea eax, [ebp + 0xc]
call fcn.004055e0
ret

Function at 0x419ad0
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
add esp, 0xffffffe8
xor ebx, ebx
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
lea eax, [esp + 0xc]
push eax
push 0x419b30
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
test eax, eax
je 0x419b29
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
lea eax, [esp + 4]
push eax
push 0
push 0x10
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, ebx
add esp, 0x18
pop ebx
ret

Function at 0x419b54
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056b0
xor eax, eax
push ebp
push 0x419c76
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
call fcn.00419ad0
xor eax, eax
push ebp
push 0x419c4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00419a5c
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 4]
call fcn.004059bc
lea eax, [ebp - 0x5c]
xor ecx, ecx
mov edx, 0x10
call fcn.00403f7c
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00403f7c
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], 5
mov ebx, 0x30
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push ebx
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405d74
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x419c39
push 0x2710
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
push 0
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
mov byte [ebp - 5], 1
jmp 0x419c44
push 0
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x419c58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419c7d
lea eax, [ebp - 0x60]
call fcn.004055e0
lea eax, [ebp - 4]
call fcn.004055e0
ret
Function at 0x419d74
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
call sub.kernel32.dll_GetTickCount_1
mov edi, eax
mov eax, esi
mov ecx, 0xa
xor edx, edx
div ecx
mov ebx, eax
test ebx, ebx
jl 0x419dad
inc ebx
push 0xa
call sub.kernel32.dll_Sleep_1
call fcn.00419d50
call sub.kernel32.dll_GetTickCount_1
sub eax, edi
cmp esi, eax
jbe 0x419dad
dec ebx
jne 0x419d93
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x419f08
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, 0x419e24
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call sub.advapi32.dll_RegisterServiceCtrlHandlerW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x419fbc
push ebp
mov ecx, 1
xor edx, edx
mov eax, 2
call fcn.00419ddc
pop ecx
push ebp
xor ecx, ecx
xor edx, edx
mov eax, 4
call fcn.00419ddc
pop ecx
jmp 0x419f5b
mov eax, 0x64
call fcn.00419d74
push 0x419fc4
call sub.kernel32.dll_GlobalFindAtomA
test ax, ax
je 0x419f51
jmp 0x419f76
mov eax, 0x64
call fcn.00419d74
push 0x419fd8
call sub.kernel32.dll_GlobalFindAtomA
test ax, ax
je 0x419f6c
push ebp
xor ecx, ecx
xor edx, edx
mov eax, 3
call fcn.00419ddc
pop ecx
push ebp
xor ecx, ecx
xor edx, edx
mov eax, 1
call fcn.00419ddc
pop ecx
push 0x44eeec
push 0
push 0
push 0x419db4
push 0
push 0
call sub.kernel32.dll_CreateThread
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x41a1d8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
call sub.kernel32.dll_GetTickCount_1
mov edi, eax
mov eax, esi
mov ecx, 0xa
xor edx, edx
div ecx
mov ebx, eax
test ebx, ebx
jl 0x41a211
inc ebx
push 0xa
call sub.kernel32.dll_Sleep_2
call fcn.0041a1b4
call sub.kernel32.dll_GetTickCount_1
sub eax, edi
cmp esi, eax
jbe 0x41a211
dec ebx
jne 0x41a1f7
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41a3e8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x41a482
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40
push 0x1000
push 0x104
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
push 0x104
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_GetModuleFileNameA
lea eax, [ebp - 4]
mov edx, ebx
mov ecx, 0
call fcn.00405abc
mov edx, dword [ebp - 4]
mov eax, 0x41a4a0
call fcn.00406268
test eax, eax
jle 0x41a462
lea eax, [ebp - 8]
mov edx, ebx
mov ecx, 0
call fcn.00405abc
mov edx, dword [ebp - 8]
mov eax, 0x41a4b0
call fcn.00406268
test eax, eax
jg 0x41a467
mov ebx, 0x41a4b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a489
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040564c
ret
Function at 0x41a4b8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056b0
xor eax, eax
push ebp
push 0x41a5c7
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x41a4f5
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x41a50c
lea eax, [ebp - 4]
mov edx, 0x41a5e4
call fcn.00405b50
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x14c]
mov ecx, 0x41a5f4
mov edx, dword [ebp - 4]
call fcn.00405ba8
mov eax, dword [ebp - 0x14c]
call fcn.00405d74
push eax
call sub.kernel32.dll_FindFirstFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x41a5a1
lea eax, [ebp - 8]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
push 0
call fcn.00405b30
mov eax, dword [ebp - 8]
mov edx, 0x41a604
call fcn.00405cf4
je 0x41a584
mov eax, dword [ebp - 8]
mov edx, 0x41a614
call fcn.00405cf4
je 0x41a584
mov eax, dword [ebp - 0x148]
and eax, 0x10
cmp eax, 0x10
setne bl
test bl, bl
jne 0x41a59b
lea eax, [ebp - 0x148]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x41a53e
push esi
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a5ce
lea eax, [ebp - 0x14c]
call fcn.004055e0
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040564c
ret

Function at 0x41a618
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.004056b0
xor eax, eax
push ebp
push 0x41a6af
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.00405d74
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
test esi, esi
je 0x41a699
push 0
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0xc]
push eax
push edi
mov eax, dword [ebp - 8]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x41a68d
cmp edi, dword [ebp - 0xc]
je 0x41a691
xor ebx, ebx
jmp 0x41a693
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a6b6
lea eax, [ebp - 4]
call fcn.004055e0
ret