joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4883e0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x488400
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x488400
mov eax, dword [eax + 0x44]
test eax, eax
je 0x488400
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x499240
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x49926f
push esi
call fcn.00499420
add esp, 4
cmp byte [esi + 0x40], 0
je 0x499268
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
push edi
cmp eax, 0xcb
jne 0x4992f2
mov eax, dword [esi + 0x1a8]
cmp byte [eax + 0x10], 0
je 0x4992dd
mov eax, dword [esi + 8]
test eax, eax
je 0x499295
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x1a8]
push esi
mov eax, dword [eax]
call eax
add esp, 4
test eax, eax
je 0x4992d8
cmp eax, 2
je 0x4992dd
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x499286
cmp eax, 3
je 0x4992bd
cmp eax, 1
jne 0x499286
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x499286
mov eax, dword [esi + 0x128]
add eax, edi
mov dword [edx + 8], eax
jmp 0x499286
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.00499320
add esp, 4
pop edi
pop esi
ret
cmp eax, 0xcc
je 0x499314
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x15
mov ecx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax]
call eax
add esp, 4
push esi
call fcn.00499320
add esp, 4
pop edi
pop esi
ret

Function at 0x499320
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0xcc
je 0x49934c
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x198]
cmp byte [eax + 8], 0
je 0x4993d2
lea ebx, [esi + 0x78]
jmp 0x499360
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x4993a6
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x499385
mov dword [ecx + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x60]
push esi
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [esi + 0x19c]
mov edi, dword [ebx]
push 0
push ebx
mov eax, dword [eax + 4]
push 0
push esi
call eax
mov eax, dword [ebx]
add esp, 0x10
cmp eax, edi
je 0x4993e8
cmp eax, dword [esi + 0x60]
jb 0x499367
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax]
call eax
mov dword [ebx], 0
add esp, 8
mov eax, dword [esi + 0x198]
cmp byte [eax + 8], 0
jne 0x499360
xor eax, eax
cmp byte [esi + 0x41], al
pop edi
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov al, 1
pop esi
pop ebx
ret
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x49a560
Capabilities:
Query environment variable

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov dword [edi + 4], 0
call fcn.004a6780
push 0x54
push edi
mov dword [esp + 0x14], eax
call fcn.004a6750
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x49a5a7
push edi
call fcn.004a6790
mov ecx, dword [edi]
push edi
mov dword [ecx + 0x14], 0x38
mov ecx, dword [edi]
mov dword [ecx + 0x18], esi
mov eax, dword [edi]
mov eax, dword [eax]
call eax
add esp, 8
mov dword [esi], fcn.0049a1f0
mov dword [esi + 4], fcn.0049a080
mov dword [esi + 8], fcn.0049a150
mov dword [esi + 0xc], fcn.00499fd0
mov dword [esi + 0x10], 0x49a8c0
mov dword [esi + 0x14], 0x49a850
mov dword [esi + 0x18], 0x49a6b0
mov dword [esi + 0x1c], 0x499e80
mov dword [esi + 0x20], 0x499d30
mov dword [esi + 0x24], 0x49a460
mov dword [esi + 0x28], 0x49a930
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x49a68a
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], 0x78
push ecx
lea ecx, [esp + 0xc]
push ecx
push str._ld_c
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x49a68a
mov al, byte [esp + 0x10]
cmp al, 0x6d
je 0x49a679
cmp al, 0x4d
mov eax, dword [esp + 8]
jne 0x49a681
imul eax, dword [esp + 8], 0x3e8
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ecx
ret
Function at 0x49de50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
cmp dword [ebp + 0x4c], 1
mov ebx, dword [ebp + 0x1c0]
mov dword [esp + 0x1c], ebx
jne 0x49de75
mov esi, 0x1fe
mov byte [ebx + 0x1c], 1
jmp 0x49de7b
xor esi, esi
mov byte [ebx + 0x1c], 0
push dword [ebp + 0x64]
mov ecx, dword [ebp + 4]
lea eax, [esi + 0x100]
push eax
push 1
push ebp
mov eax, dword [ecx + 8]
mov dword [esp + 0x20], esi
call eax
xor ecx, ecx
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x14]
add esp, 0x10
mov dword [esp + 0x14], ecx
cmp dword [ebp + 0x64], ecx
jle 0x49df90
push edi
lea ecx, [ecx]
mov edi, dword [ebx + ecx*4 + 0x20]
cdq
idiv edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], eax
test esi, esi
je 0x49decd
mov eax, dword [ebx + 0x18]
add dword [eax + ecx*4], 0xff
mov eax, dword [ebx + 0x18]
xor ebx, ebx
mov ebp, dword [eax + ecx*4]
lea eax, [edi + 0xfe]
lea ecx, [edi*2 - 2]
cdq
idiv ecx
xor esi, esi
mov edx, eax
lea esp, [esp]
cmp esi, edx
jle 0x49df26
mov ecx, dword [esp + 0x10]
lea edi, [edi*2 - 2]
imul eax, ebx, 0x1fe
add ecx, 0xfe
add ecx, eax
lea ecx, [ecx]
add ecx, 0x1fe
inc ebx
mov eax, ecx
cdq
idiv edi
mov edx, eax
cmp esi, edx
jg 0x49df10
mov edi, dword [esp + 0x10]
mov al, byte [esp + 0x1c]
imul bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0xff
jle 0x49def0
mov esi, dword [esp + 0x14]
test esi, esi
je 0x49df71
mov ecx, 1
lea edx, [ebp - 1]
jmp 0x49df50
movzx eax, byte [ebp]
lea edx, [edx - 1]
mov byte [edx + 1], al
movzx eax, byte [ebp + 0xff]
mov byte [ecx + ebp + 0xff], al
inc ecx
cmp ecx, 0xff
jle 0x49df50
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [eax + 0x64]
mov eax, dword [esp + 0x1c]
jl 0x49deb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4b2f57
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4f04f4], 0
push ebx
push esi
mov esi, 0x4f04fc
jne 0x4b2f83
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x4f0514], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4f04f4], 1
push dword [0x4f0514]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4b3020
push 0x14
push 8
push dword [0x4ef29c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4b304a
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4f04f8]
test eax, eax
je 0x4b2fc5
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4f04f8], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x4b304f
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x4f0514]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x4ef29c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4b304a
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x4b3759
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x184
push 8
push dword [0x4ef29c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x4f0a20]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x4f0a24], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.004b638c
mov dword [esi + 0x58], 0x4b436c
mov eax, esi
mov dword [esi + 0x5c], 0x4b43b8
mov dword [esi + 0x10], fcn.004b3f0d
mov dword [esi + 0x30], 0x4b3dff
mov dword [esi + 0x64], 0x4b4442
mov dword [esi + 0x60], 0x4b43fa
mov dword [esi + 0x34], 0x4b3aaf
mov dword [esi + 0x24], 0x4b3a86
mov dword [esi + 0x28], 0x4b3a5b
mov dword [esi + 0x2c], 0x4b39ad
mov dword [esi + 0x44], 0x4b4172
pop esi
ret 4
Function at 0x4b9630
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov edx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0xd4]
mov dword [esp + 4], eax
test edx, edx
je 0x4b96e6
imul eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
neg eax
add ecx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
push ebp
push edi
lea edi, [ecx + eax*4]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0xcc]
mov ebp, edi
imul ecx, ebx
add ecx, dword [esi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x4b96c6
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 4]
xor byte [ecx], al
add ecx, esi
dec edx
jne 0x4b96a1
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec edx
inc ebx
cmp dword [esi + 0xe8], 0
mov dword [esp + 0x3c], edx
jne 0x4b96db
add edi, dword [esp + 0x14]
jmp 0x4b96df
add edi, dword [esp + 0x24]
test edx, edx
jne 0x4b967f
pop edi
pop ebp
pop ebx
pop esi
pop ecx
pop ecx
ret 0x24

Function at 0x4b99f1
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 8], edx
test ebx, ebx
je 0x4b9acb
imul eax, dword [esp + 0x1c], 3
mov ecx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
neg ecx
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x30]
push edi
imul edi, dword [esp + 0x30], 3
mov dword [esp + 0x10], ecx
add eax, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], edi
mov esi, dword [eax + 0xcc]
imul esi, ebp
mov dword [esp + 0x34], edi
add esi, dword [eax + 0xc8]
add esi, dword [esp + 0x28]
test edx, edx
jle 0x4b9aa1
mov ebp, dword [esp + 0x34]
mov ebx, 0xff
sub ebx, dword [esp + 0x40]
mov edi, edx
movzx eax, byte [esi]
movzx ecx, byte [ebp]
imul ecx, dword [esp + 0x40]
imul eax, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
inc ebp
mov byte [esi], al
inc esi
dec edi
jne 0x4b9a69
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
dec ebx
inc ebp
cmp dword [eax + 0xe8], 0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebp
jne 0x4b9ab8
add edi, ecx
jmp 0x4b9abc
add edi, dword [esp + 0x24]
mov dword [esp + 0x38], edi
test ebx, ebx
jne 0x4b9a3f
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x4ba0eb
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0xd4]
mov dword [esp + 8], eax
test esi, esi
je 0x4ba1a0
imul eax, dword [esp + 0x20]
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
neg eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
imul eax, dword [esp + 0x34]
add eax, dword [esp + 0x20]
add edx, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 0xcc]
mov ebp, edx
imul ecx, ebx
add ecx, dword [edi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x4ba181
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 3]
xor byte [ecx], al
add ecx, edi
dec esi
jne 0x4ba15c
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec esi
inc ebx
cmp dword [edi + 0xe8], 0
mov dword [esp + 0x3c], esi
jne 0x4ba196
add edx, dword [esp + 0x14]
jmp 0x4ba19a
add edx, dword [esp + 0x24]
test esi, esi
jne 0x4ba13a
pop ebp
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret 0x24
Function at 0x401000
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x40e3e0]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00404c23
add esp, 0x194
ret
Function at 0x4014d0
Capabilities:
Hash data with md5

Disassembly:
push 0xd8
push 0
push esi
call fcn.00404c50
add esp, 0xc
mov dword [esi + 0x48], 0x67452301
mov dword [esi + 0x4c], 0xefcdab89
mov dword [esi + 0x50], 0x98badcfe
mov dword [esi + 0x54], 0x10325476
mov byte [esi + 0x58], 0x80
ret
Function at 0x402420
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
sub esp, 0x10c
mov eax, dword [0x40e3e0]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x114]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
mov esi, dword [esp + 0x11c]
push edi
mov byte [eax], 0
mov dword [esp + 0x10], eax
mov byte [esi], 0
mov edi, 1
lea eax, [esp + 0x14]
push eax
push edi
call fcn.004021f0
add esp, 8
test eax, eax
je 0x402491
lea ecx, [esp + 0x14]
push ecx
call ebp
cmp eax, 0xffffffff
je 0x402491
cmp byte [esi], 0
jne 0x4024c9
push 0x103
lea edx, [esp + 0x18]
push edx
push esi
call ebx
inc edi
cmp edi, 4
jl 0x402461
cmp byte [esi], 0
je 0x4024b0
mov edi, dword [esp + 0x10]
push edi
push esi
call fcn.004021b0
test eax, eax
jne 0x4024b0
mov byte [edi], al
mov byte [esi], 0
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404c23
add esp, 0x10c
ret
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, 1
lea eax, [esp + 0x14]
push eax
push edi
call fcn.004021f0
add esp, 8
test eax, eax
je 0x402501
lea ecx, [esp + 0x14]
push ecx
call ebx
test eax, eax
jne 0x402501
push 4
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.004035e0
add esp, 0xc
inc edi
cmp edi, 4
jl 0x4024d4
mov eax, dword [esp + 0x10]
mov byte [eax], 0
jmp 0x4024ad
Function at 0x402d80
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push esi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x402e2e
mov eax, dword [str.Network_Services]
push edi
push 0x10020
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x402e0d
push ebp
lea ecx, [esp + 0x10]
push ecx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402dde
call ebp
mov esi, eax
cmp esi, 0x426
jne 0x402dde
xor esi, esi
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x402df7
call ebp
mov esi, eax
cmp esi, 0x430
jne 0x402df7
xor esi, esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push ebx
call edi
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x1c
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x424
jne 0x402e25
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
call esi
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x402f00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x40e3e0]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x11c]
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
push esi
mov esi, dword [esp + 0x130]
push edi
mov edi, dword [esp + 0x130]
push esi
push 0
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.00404c50
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push str.Microsoft
lea ecx, [esp + 0x30]
push str.SOFTWARE_s
push ecx
call ebp
add esp, 0x18
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
cmp byte [esp + eax + 0x20], 0x5c
lea eax, [esp + eax + 0x20]
jne 0x402f7d
mov byte [eax], 0
mov eax, dword [str.Network_Services]
push eax
push 0x40b354
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + eax + 0x28]
push edx
call ebp
add esp, 0xc
cmp ebx, 0x400
jbe 0x402fc0
push ebx
push 0x40b354
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + eax + 0x28]
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
lea eax, [esp + 0x2c]
push eax
push getpeername
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403041
mov eax, dword [esp + 0x14]
test eax, eax
je 0x403041
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
push edi
lea edx, [esp + 0x18]
push edx
push 0
push ecx
or ebx, 0xffffffff
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40301e
mov dword [esp + 0x10], ebx
jmp 0x403036
mov eax, dword [esp + 0x18]
cmp eax, esi
jae 0x403036
sub esi, eax
push esi
add edi, eax
push 0
push edi
call fcn.00404c50
add esp, 0xc
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404c23
add esp, 0x114
ret
Function at 0x403190
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
xor ebp, ebp
push edi
test eax, eax
je 0x4031a1
mov dword [eax], ebp
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x4031ff
push 0
push 0x80
push 3
push 0
push 3
push closesocket
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x4031ff
push 0
push 0x80
push 3
push 0
push 7
push closesocket
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x40326c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x403216
mov dword [ecx], eax
test eax, eax
jbe 0x403265
add eax, 0x10
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
test ebp, ebp
je 0x403265
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x14]
push eax
inc ecx
push ecx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40325c
mov edx, dword [esp + 0x10]
push esi
mov byte [edx + ebp], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret

Function at 0x403280
Capabilities:
Check if file exists
Get file attributes
Set file attributes
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x20]
xor eax, eax
push esi
push edi
mov dword [esp + 0x18], GetSystemDirectoryA
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
test eax, eax
jne 0x40333c
cmp dword [esp + 0x10], eax
je 0x4032d0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4032c2
mov edi, 0x80
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x4032d5
mov edi, 0x80
push 0
push edi
push 2
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40331a
mov ecx, dword [esp + 0x24]
push 0
lea eax, [esp + 0x1c]
push eax
push ebp
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x18], ebp
jne 0x40331a
mov dword [esp + 0x14], 1
mov esi, dword [esp + 0x10]
test esi, esi
je 0x40332a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x14]
inc esi
cmp esi, 2
mov dword [esp + 0x10], esi
jl 0x4032a1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4033b0
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x80c
mov eax, dword [0x40e3e0]
xor eax, esp
mov dword [esp + 0x808], eax
mov eax, dword [esp + 0x81c]
push ebx
mov ebx, dword [esp + 0x81c]
push ebp
mov ebp, dword [esp + 0x818]
push esi
mov esi, dword [esp + 0x82c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x3fe
push eax
lea eax, [esp + 0x21]
push eax
mov byte [esp + 0x24], 0x22
call edi
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [esp + eax + 0x18], 0x22
inc eax
mov byte [esp + eax + 0x18], 0
cmp esi, 0x400
jbe 0x403435
cmp byte [esi], 0
je 0x403435
mov byte [esp + eax + 0x18], 0x20
inc eax
mov edx, 0x3ff
sub edx, eax
push edx
push esi
lea eax, [esp + eax + 0x20]
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
xor esi, esi
push ebp
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, esi
jne 0x403458
mov eax, dword [esp + 0x10]
cmp eax, esi
jne 0x403481
lea edx, [esp + 0x10]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push ebp
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp eax, esi
jne 0x403538
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x403538
mov ecx, dword [esp + 0x824]
sub ecx, 0x65
je 0x4034e9
sub ecx, 1
je 0x4034b3
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40353a
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 1
push esi
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40353a
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x41c]
push edx
push esi
push esi
push ebx
push eax
mov dword [esp + 0x2c], 0x3ff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403529
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x41c]
push ecx
call fcn.004030d0
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
neg esi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40353a
xor eax, eax
mov ecx, dword [esp + 0x818]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404c23
add esp, 0x80c
ret