joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10033e3d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
bt bx, 0xe
lahf
sbb al, bl
shrd ax, bx, 2
push ebp
ror bp, 0xc
not bp
sar bp, 2
sbb al, 0x20
mov ebp, esp
test cl, cl
Function at 0x4014c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40010
call fcn.00409490
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x40010], eax
mov eax, dword [ebp + 0xc]
cmp ebx, edi
jne 0x4014fc
lea eax, [edi + 1]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402b12
mov esp, ebp
pop ebp
ret
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40008], eax
cmp eax, 0xffffffff
jne 0x40152f
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402b12
mov esp, ebp
pop ebp
ret
push esi
mov dword [ebp - 0x4000c], edi
mov esi, 0x40000
cmp ebx, 0x40000
ja 0x401545
mov esi, ebx
test esi, esi
je 0x4015c5
lea esp, [esp]
mov eax, dword [ebp - 0x40008]
push 0
lea ecx, [ebp - 0x4000c]
push ecx
push esi
lea edx, [ebp - 0x40004]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401606
cmp dword [ebp - 0x4000c], esi
jne 0x401606
mov eax, dword [ebp - 0x40010]
push 0
lea ecx, [ebp - 0x4000c]
push ecx
push esi
lea edx, [ebp - 0x40004]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4015e7
cmp dword [ebp - 0x4000c], esi
jne 0x4015e7
add edi, esi
mov esi, ebx
sub esi, edi
cmp esi, 0x40000
jbe 0x4015c1
mov esi, 0x40000
jmp 0x401550
test esi, esi
jne 0x401550
mov eax, dword [ebp - 0x40008]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402b12
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x40008]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402b12
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x40008]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop edi
call fcn.00402b12
mov esp, ebp
pop ebp
ret
Function at 0x4017c0
Capabilities:
Get file version info
Impersonate file version information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20ec
call fcn.00409490
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x100c]
push ecx
push 0x1000
push 0
push eax
mov dword [ebp - 0x20ec], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x401812
mov eax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00402b12
mov esp, ebp
pop ebp
ret
push 0x1000
lea edx, [ebp - 0x200c]
push 0
push edx
mov dword [ebp - 0x2090], 0
call fcn.004064d0
xor eax, eax
push 0x40
push eax
mov dword [ebp - 0x20b0], eax
mov dword [ebp - 0x20ac], eax
mov dword [ebp - 0x20a8], eax
mov dword [ebp - 0x20a4], eax
mov dword [ebp - 0x20a0], eax
mov dword [ebp - 0x209c], eax
mov dword [ebp - 0x2098], eax
mov dword [ebp - 0x2094], eax
lea eax, [ebp - 0x208c]
push eax
call fcn.004064d0
push 0x40
lea ecx, [ebp - 0x204c]
push 0
push ecx
call fcn.004064d0
push 0x34
lea edx, [ebp - 0x20e4]
push 0
push edx
call fcn.004064d0
add esp, 0x30
lea eax, [ebp - 0x100c]
lea ebx, [ebp - 0x20e4]
call fcn.004026b0
test eax, eax
jne 0x4018ba
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00402b12
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20e8]
push eax
lea ecx, [ebp - 0x100c]
push ecx
lea edx, [ebp - 0x20e4]
xor ebx, ebx
push edx
mov dword [ebp - 0x20e8], ebx
call fcn.00402910
test eax, eax
je 0x4018a8
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov dword [ebp - 0x20e8], ebx
movzx ebx, word [ebp - 0x100c]
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov esi, eax
test esi, esi
je 0x401938
push ebx
lea ecx, [ebp - 0x100c]
push ecx
push 0x804
push 1
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
test eax, eax
jne 0x401925
push 1
jmp 0x401931
mov dword [ebp - 0x20e8], 1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov edx, dword [ebp - 0x20ec]
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x40196b
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x20e8]
pop esi
xor ecx, ebp
pop ebx
call fcn.00402b12
mov esp, ebp
pop ebp
ret
Function at 0x401d20
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, edx
mov eax, esi
mov dword [ebp - 0x218], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401d44
sub eax, edx
sar eax, 1
cmp eax, 4
jbe 0x401eb4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401d61
sub eax, edx
sar eax, 1
lea eax, [esi + eax*2 - 8]
push eax
push str..exe
call fcn.00402cd2
add esp, 8
test eax, eax
jne 0x401eb4
push ebx
push esi
push edi
push str._s_s
mov ecx, 0x104
lea ebx, [ebp - 0x20c]
call fcn.00401080
mov ebx, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
add esp, 0xc
call ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401db0
sub eax, edx
sar eax, 1
mov esi, eax
lea ecx, [esi + esi]
push ecx
call fcn.00402d97
mov edi, eax
xor edx, edx
add esp, 4
lea eax, [ebp - 0x214]
mov word [edi], dx
push eax
mov dword [ebp - 0x214], edx
call ebx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov eax, 1
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x214], eax
jle 0x401e73
jmp 0x401e06
mov eax, 1
cmp dword [ebp - 0x210], eax
jne 0x401e41
mov eax, dword [ebx + 4]
push 0x40b9f4
push eax
call fcn.00402e59
mov ecx, dword [ebx + 4]
add esp, 8
cmp eax, ecx
jne 0x401e41
lea eax, [ecx + 4]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401e30
sub eax, edx
sar eax, 1
jne 0x401e5e
mov ecx, dword [ebp - 0x210]
mov edx, dword [ebx + ecx*4]
push edx
mov eax, esi
call section..text
push 0x40b9fc
mov eax, esi
call section..text
mov eax, dword [ebp - 0x210]
inc eax
mov dword [ebp - 0x210], eax
cmp eax, dword [ebp - 0x214]
jl 0x401e01
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x218]
push 5
push eax
push edi
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push edi
call fcn.00402d5d
add esp, 4
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402b12
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00402b12
mov esp, ebp
pop ebp
ret
Function at 0x401ed0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x80218
call fcn.00409490
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea ecx, [edi + 4]
push ecx
mov dword [ebp - 0x80218], eax
mov eax, dword [ebp + 0xc]
push eax
push str._s_s
mov ecx, 0x104
lea ebx, [ebp - 0x20c]
call fcn.00401080
add esp, 0xc
xor esi, esi
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
mov edx, ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401ff6
mov dword [ebp - 0x80210], esi
mov dword [ebp - 0x80214], esi
mov esi, dword [edi]
cmp esi, 0x80000
jbe 0x401f55
mov esi, 0x80000
jmp 0x401f60
test esi, esi
je 0x401fd3
lea esp, [esp]
mov edx, dword [ebp - 0x80218]
push 0
lea eax, [ebp - 0x80210]
push eax
push esi
lea ecx, [ebp - 0x8020c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401fef
cmp esi, dword [ebp - 0x80210]
jne 0x401fef
push 0
lea eax, [ebp - 0x80210]
push eax
push esi
lea ecx, [ebp - 0x8020c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401fef
cmp esi, dword [ebp - 0x80210]
jne 0x401fef
mov eax, dword [ebp - 0x80214]
add eax, esi
mov esi, dword [edi]
sub esi, eax
mov dword [ebp - 0x80214], eax
cmp esi, 0x80000
jbe 0x401fcf
mov esi, 0x80000
jmp 0x401f60
test esi, esi
jne 0x401f60
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402b12
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00402b12
mov esp, ebp
pop ebp
ret
Function at 0x4022e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.004011b0
add esp, 4
test eax, eax
je 0x4023bc
push esi
push edi
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 4], 1
mov esi, eax
jle 0x402357
mov eax, dword [esi + 4]
push 0x40b9f4
push eax
call fcn.00402e59
mov ecx, dword [esi + 4]
add esp, 8
cmp eax, ecx
jne 0x402357
lea edx, [ecx + 4]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402344
sub eax, edi
sar eax, 1
je 0x402357
mov ebx, edx
mov edx, dword [ebp - 4]
push esi
push edx
call fcn.004023d0
add esp, 8
cmp eax, 0xffffffff
je 0x40238e
lea esp, [esp]
cmp eax, 0x78
jne 0x40237c
mov byte [0x40ddb0], 0
mov eax, dword [ebp - 4]
push esi
push eax
call fcn.004023d0
add esp, 8
cmp eax, 0xffffffff
jne 0x402370
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
push ebx
push edi
push ecx
call fcn.00402010
add esp, 0xc
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call fcn.00402d5d
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.00401990
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402b12
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d004]
jne 0x402b1c
repz ret
jmp fcn.00403323
Function at 0x407a9c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403e46
and dword [ebp - 0x14], 0
cmp dword [0x40eb1c], 0
mov dword [ebp - 0x18], eax
jne 0x407b4f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407bf7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407bf7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40eb1c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40eb20], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40eb24], eax
call edi
push eax
call esi
mov dword [0x40eb2c], eax
test eax, eax
je 0x407b4f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40eb28], eax
mov eax, dword [0x40eb28]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407ba8
cmp dword [0x40eb2c], ecx
je 0x407ba8
push eax
call esi
push dword [0x40eb2c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407ba8
test ebx, ebx
je 0x407ba8
call edi
test eax, eax
je 0x407b9f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407b9f
test byte [ebp - 8], 1
jne 0x407ba8
or dword [ebp + 0x10], 0x200000
jmp 0x407bdb
mov eax, dword [0x40eb20]
cmp eax, dword [ebp - 0x18]
je 0x407bdb
push eax
call esi
test eax, eax
je 0x407bdb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407bdb
mov eax, dword [0x40eb24]
cmp eax, dword [ebp - 0x18]
je 0x407bdb
push eax
call esi
test eax, eax
je 0x407bdb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40eb1c]
call esi
test eax, eax
je 0x407bf7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407bf9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402b12
leave
ret
Function at 0x408433
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x408433
lcall 0x5de5, 0x8b10c483
jmp loc.0082c52c

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x50915514
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x42e060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x38000d17
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x402c48
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cmp byte [eax], bl
mov dword [ebp - 0x44], esi
call fcn.00402a41
add al, 0xac
xchg ebx, eax
pop ds
movzx eax, word [edi + 6]
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
invalid
invalid
dec dword [ecx - 0x311707bb]
std
invalid
call dword [ebp - 0x55]
cld
xchg dword [esi - 0x75], esp
inc edi
push es
cmp ax, bx
jbe 0x402c9b
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x402c95
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x402c86
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.00402a41
enter 0x7789, 0x15
lea eax, [ebp - 0x58]
push eax
call fcn.00402a51
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00402a06
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x402d2f
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00402a41
pop esp
outsd dx, dword [esi]
ljmp 0xe850

Function at 0x404ab8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
call fcn.00402a51
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.00402a06
add esp, 0xc
mov dword [ebp - 0x37c], eax
Function at 0x404d1c
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x404c05
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.00402a41
dec edi
and esp, dword [edx - 0x740774c8]
inc edi
cmp al, 0x8b
push esp
pop es
js 0x404c1f
xlatb
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
sbb byte [ebx - 0x20fcdfa6], cl
call fcn.00402a41
jae 0x404c91
and byte [ecx], al
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
mov eax, dword [ebx]
idiv dword [eax + 0x50746547]
cmp dword [esi], eax
jne 0x404c2e
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x404c2e
call fcn.00402a41
push ds
jb 0x404c31
inc ebp
mov ebx, dword [edx + 0x24]
add ebx, edi
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.00402a41
pop esi
adc byte [ecx + 0x875ff07], cl
push dword [ebp + 4]
push dword [ebp]
call fcn.00403241
ret
and dword [edx + 0x3a], edx
or dh, byte [edi + edx + 0x3a]
dec edx
add dword [ecx + edx + 0x3a], esi
dec edx
add dh, byte [ebx + ecx + 0x3a]
dec edx
add esi, dword [ebp + eax - 0x7d]
ret 0xeb04
xor ecx, ecx
test edx, edx
je 0x404d27
mov ecx, dword [edx - 4]
shr ecx, 1
jmp 0x404bf0
Function at 0x406650
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4066b6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404d04
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403630
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4066a0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066bd
lea eax, [ebp - 0x10]
call fcn.00404a94
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404f30
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408369
test al, 0x10
jne 0x40836d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4084b4
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404f30
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4084d6
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40af58
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 pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40af91
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404b84
jmp 0x40af9a
mov eax, ebx
mov edx, esi
call fcn.00404ae8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c4cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c530
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404d04
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407fd0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c537
lea eax, [ebp - 0xc]
call fcn.00404a94
ret
Function at 0x401940
Capabilities:
Modify service
Persist via windows service
Set registry value

Disassembly:
mov eax, 0x1810
call fcn.00467cb0
mov eax, dword [0x4bcb20]
xor eax, esp
mov dword [esp + 0x180c], eax
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [esp + 4], esi
test esi, esi
je 0x401ac8
push ebx
push 0xf003f
push 0x4a18f4
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x401ac0
push 0xfff
lea eax, [esp + 0x819]
push 0
push eax
mov byte [esp + 0x820], 0
call fcn.00465ec0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x1000
lea edx, [esp + 0x81c]
push edx
push ebx
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x401ab9
push ebp
push edi
push str.SystemCurrentControlSetServices_
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4a18f4
lea ecx, [esp + 0x20]
push ecx
call esi
push str.Instances
lea edx, [esp + 0x20]
push edx
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4a19b0
call ebp
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add eax, eax
push eax
push 0x4a19b0
push 1
push str.DefaultInstance
lea eax, [esp + 0x2c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
push str.Top
lea ecx, [esp + 0x20]
push ecx
call esi
push str.586333
call ebp
add eax, eax
push eax
push str.586333
push 1
push str.Altitude
lea edx, [esp + 0x2c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
push 4
lea eax, [esp + 0x18]
push eax
push 4
push str.Flags
lea ecx, [esp + 0x2c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 1
call edi
cmp dword [esp + 0x81c], 2
pop edi
pop ebp
je 0x401ab5
push 0
push 0
push 0
push str.FltMgr
push 0
push str.FSFilter_Activity_Monitor
push 0
push 1
push 1
push 2
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov esi, dword [esp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
mov ecx, dword [esp + 0x1810]
pop esi
xor ecx, esp
call fcn.00466b40
add esp, 0x1810
ret