joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4021d1
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push 0x20
mov eax, 0x46fa0c
call fcn.00421a36
mov esi, 0x3b9aca00
push esi
call fcn.00441b14
pop ecx
test eax, eax
je 0x4022d8
push esi
push 0xd5
push eax
call fcn.00423ca0
add esp, 0xc
lea ecx, [ebp - 0x24]
push 0x402065
call fcn.004048b1
and dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
and dword [ebp - 0x14], 0
call fcn.00401ec5
push 8
call fcn.004022e6
push 0x40209f
lea ecx, [ebp - 0x1c]
call fcn.004048b1
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push 0x40
push 0x77e
push 0x4abec0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 0x1c]
call fcn.00401ec5
mov byte [0x489ab4], 0x31
mov esi, 0x489ab4
mov byte [ebp - 4], 2
mov edx, esi
call fcn.00403e7f
mov edx, esi
mov byte [0x489ab4], 0x30
call fcn.00403e7f
mov byte [0x489ab4], 0x31
mov edx, esi
mov byte [ebp - 4], 3
call fcn.00403e7f
mov byte [0x489ab4], 0x31
mov byte [ebp - 4], 4
mov edx, esi
mov dword [ebp - 0x28], 0x4ac042
call fcn.00403e7f
mov edx, 0x489ac0
push edx
xor edx, edx
mov edi, edx
push 0
lea esi, [0x489ab0]
push esi
mov edx, dword [esp]
mov edx, dword [edx]
pop esi
push edx
pop esi
push esi
mov eax, dword [ebp - 0x28]
dec eax
call eax
cmp dword [ebp - 0x18], 0
mov byte [0x489ab4], 0x30
jne 0x4022e0
cmp dword [ebp - 0x20], 0
jne 0x4022e0
xor eax, eax
call fcn.004219e5
ret
call fcn.004416bf
int3

Function at 0x4048b1
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x46fe14
call fcn.00421a36
mov edi, ecx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.004049e5
xor ecx, ecx
mov ebx, dword [eax]
mov dword [eax], ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x18], ecx
je 0x4048e9
push 4
push dword [ebp - 0x18]
call fcn.00421622
pop ecx
pop ecx
xor ecx, ecx
lea esi, [edi + 4]
push esi
push ecx
push ebx
push 0x404a1b
push ecx
push ecx
call fcn.0042fe49
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x40490c
call fcn.004219e5
ret 4
and dword [esi], 0
push 6
call fcn.00404d87
int3
Function at 0x40679a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4067bb
jl 0x4067b2
test edi, edi
jne 0x4067bb
xor eax, eax
xor edx, edx
jmp 0x40687c
cmp dword [ebx + 0x38], 0
je 0x4067d0
push eax
push edi
push dword [ebp + 8]
call fcn.00406882
jmp 0x40687c
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x406817
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x406817
cmp eax, edi
jb 0x4067f1
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004231a0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40681d
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x406871
mov ecx, ebx
call fcn.00405dcb
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40685c
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00442abd
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x406871
jmp 0x40682f
test edx, edx
je 0x406871
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00442abd
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x406971
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x406993
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406a56
jmp 0x406a51
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x4069b9
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x4069be
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov eax, ecx
cdq
mov dword [ebp - 4], eax
mov ecx, edx
mov dword [ebp - 8], ecx
test edi, edi
jl 0x406a1e
jg 0x4069d3
test esi, esi
je 0x406a1e
test ecx, ecx
jl 0x406a19
jg 0x4069dd
test eax, eax
je 0x406a19
cmp edi, ecx
jg 0x4069ef
jl 0x4069e7
cmp esi, eax
jae 0x4069ef
mov eax, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
call fcn.004231a0
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 8]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x406a21
mov ecx, dword [ebp + 8]
jmp 0x406a2b
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x406a45
jg 0x406a2b
test esi, esi
je 0x406a45
cmp dword [ebx + 0x4c], 0
je 0x406a45
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0044320b
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x422033
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x422072
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x422072
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x422072
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x422072
cmp dword [ecx + 0x74], 0xe
jbe 0x422072
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x45b3ef
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045afe7

Function at 0x4609ff
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004608d3

Function at 0x463244
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00462c02

Function at 0x46edc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x46eded
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46eded
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x516364a1
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..rdata
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x512e3cc0
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x42e006
Capabilities:
Encode data using xor

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
push edi
mov dl, 1
mov ecx, str.vJOWf1
mov dword [ebp - 8], ebx
call fcn.0040a260
mov ecx, 0x41010c
mov dword [ebp - 0xc], eax
call fcn.0040a260
mov ecx, ebx
mov dword [ebp - 0x10], eax
call fcn.0040a260
mov ebx, eax
lea esi, [ebx + 1]
push esi
call fcn.004016d3
push esi
mov dword [ebp - 4], eax
call fcn.004016d3
mov edx, dword [ebp - 8]
mov edi, eax
push ebx
mov ecx, edi
call fcn.0040a170
add esp, 0xc
mov ecx, edi
mov byte [edi + ebx], 0
xor esi, esi
call fcn.0040a200
test eax, eax
je 0x4010ae
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
lea esp, [esp]
mov ecx, eax
call fcn.0040a1c0
mov ecx, eax
mov eax, esi
cdq
idiv ebx
mov eax, esi
inc esi
xor cl, byte [edx + 0x41010c]
cdq
idiv edi
xor cl, byte [edx + str.vJOWf1]
mov edx, dword [ebp - 4]
mov byte [esi + edx - 1], cl
xor ecx, ecx
call fcn.0040a200
test eax, eax
jne 0x401070
pop edi
mov byte [esi + edx], al
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
pop edi
mov byte [esi + eax], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4010c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
push edi
xor dl, dl
mov ecx, str.2lw1BF
mov dword [ebp - 8], ebx
call fcn.0040a260
mov ecx, 0x410354
mov dword [ebp - 0xc], eax
call fcn.0040a260
mov ecx, ebx
mov dword [ebp - 0x10], eax
call fcn.0040a260
mov ebx, eax
xor ecx, ecx
lea eax, [ebx + 1]
mov edi, 2
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004016d3
mov dword [ebp - 4], eax
xor ecx, ecx
lea eax, [ebx + 1]
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004016d3
mov edx, dword [ebp - 8]
mov edi, eax
lea esi, [ebx + ebx]
push esi
mov ecx, edi
call fcn.0040a170
xor eax, eax
mov word [esi + edi], ax
add esp, 0xc
mov ecx, edi
xor esi, esi
call fcn.0040a1f0
test eax, eax
je 0x401185
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
nop
mov ecx, eax
call fcn.0040a190
mov ecx, eax
mov eax, esi
cdq
idiv dword [ebp - 0x10]
mov eax, esi
inc esi
xor cx, word [edx*2 + 0x410354]
cdq
idiv ebx
xor cx, word [edx*2 + str.2lw1BF]
mov word [edi + esi*2 - 2], cx
xor ecx, ecx
call fcn.0040a1f0
test eax, eax
jne 0x401150
mov eax, dword [ebp - 4]
xor ecx, ecx
pop edi
mov word [eax + esi*2], cx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404c5a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x411038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00403be7
mov dword [ebp - 0x14], eax
cmp dword [0x412d08], edi
jne 0x404d4b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x404cd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x404e2b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x404e2b
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404e2b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x412d08], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x412d0c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x412d10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x412d18], eax
test eax, eax
je 0x404d48
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x412d14], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x404d70
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x404d63
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x404d85
push 4
pop eax
jmp 0x404e2d
cmp dword [ebp - 0x14], edi
je 0x404d85
push dword [0x412d08]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x404d6a
mov eax, dword [0x412d14]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x404de3
cmp dword [0x412d18], esi
je 0x404de3
push eax
call ebx
push dword [0x412d18]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x404de3
test eax, eax
je 0x404de3
call ecx
test eax, eax
je 0x404dd8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x404dd8
test byte [ebp - 8], 1
jne 0x404de3
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x404e13
mov eax, dword [0x412d0c]
cmp eax, esi
je 0x404e10
push eax
call ebx
test eax, eax
je 0x404e10
call eax
mov edi, eax
test edi, edi
je 0x404e10
mov eax, dword [0x412d10]
cmp eax, esi
je 0x404e10
push eax
call ebx
test eax, eax
je 0x404e10
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x412d08]
call ebx
test eax, eax
je 0x404e2b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x404e2d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040135a
leave
ret
Function at 0x409e00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov ecx, str.9_84_29_66_25_41_39_73_29_84_44_1
mov edi, edx
call fcn.00401000
mov ecx, dword [0x412df8]
mov edx, eax
call fcn.00409e30
push esi
call eax
mov edx, edi
pop edi
mov ecx, eax
pop esi
jmp fcn.00409e30

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
jne 0x409e48
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x3c]
push esi
mov eax, dword [eax + edi + 0x78]
add eax, edi
xor esi, esi
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x24]
add ecx, edi
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 0x20]
add ecx, edi
mov dword [ebp - 0xc], ecx
lea ecx, [edx + edi]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], esi
test ebx, 0xffff0000
jne 0x409eaa
sub ebx, dword [eax + 0x10]
xor ecx, ecx
test edx, edx
je 0x409ef5
lea eax, [edx + edi]
movsx eax, word [eax + ecx*2]
add eax, edi
and eax, 0xffff
cmp ebx, eax
je 0x409e9a
inc ecx
cmp ecx, edx
jb 0x409e81
jmp 0x409ef5
mov esi, dword [ebp - 8]
movzx eax, ax
mov esi, dword [esi + eax*4]
add esi, edi
mov dword [ebp - 4], esi
jmp 0x409ef5
mov eax, dword [eax + 0x18]
xor esi, esi
mov dword [ebp - 0x10], eax
test eax, eax
je 0x409ef3
mov eax, dword [ebp - 0xc]
mov ecx, ebx
mov eax, dword [eax + esi*4]
add eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409ee0
test dl, dl
je 0x409edc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409ee0
add eax, 2
add ecx, 2
test dl, dl
jne 0x409ec0
xor eax, eax
jmp 0x409ee5
sbb eax, eax
or eax, 1
test eax, eax
je 0x409f7c
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x409eb6
xor esi, esi
mov edx, esi
mov ecx, edi
call fcn.00409ff0
test al, al
je 0x409f9a
mov ecx, esi
call fcn.00409fd0
mov ebx, eax
mov eax, 1
sub eax, esi
add ebx, eax
push ebx
call fcn.00401372
mov edi, eax
lea eax, [ebx - 1]
push eax
mov edx, esi
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.00409fb0
mov byte [edi + ebx - 1], 0
mov edi, esi
add esp, 8
lea ecx, [edi + 1]
lea ecx, [ecx]
mov al, byte [edi]
inc edi
test al, al
jne 0x409f40
sub edi, ecx
sub edi, ebx
lea eax, [edi + 1]
push eax
call fcn.00401372
mov edx, dword [ebp - 4]
mov esi, eax
push edi
lea edx, [ebx + edx]
mov ecx, esi
call fcn.00409fb0
mov ecx, dword [ebp - 0x14]
add esp, 8
mov edx, esi
mov byte [esi + edi], 0
call fcn.00409e00
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
movsx eax, word [eax + esi*2]
mov esi, dword [ebp - 8]
add eax, edi
and eax, 0xffff
mov esi, dword [esi + eax*4]
add esi, edi
mov dword [ebp - 4], esi
jmp 0x409ef5
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a010
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, str.75_27_23_77_53_56_51_108_107_71_60_56
call fcn.004010c0
mov ecx, eax
jmp fcn.0040a030
Function at 0x401d70
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x402eb6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call sub.rdsmisc.dll_Ordinal_1
add esp, 4
lea eax, [esp + 8]
push 0
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_2
push 0x40511c
lea ecx, [esp + 4]
mov dword [esp + 0x298], 0
call fcn.0040296a
push 0x4051a8
lea ecx, [esp + 8]
call fcn.00402988
lea edx, [esp + 4]
lea ecx, [esp]
push edx
mov byte [esp + 0x298], 1
call fcn.00402994
lea ecx, [esp + 4]
mov byte [esp + 0x294], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp]
lea eax, [esp + 0x14c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x401e37
mov edx, dword [esp]
push edx
push 0x405180
push 1
call sub.rdsmisc.dll_Ordinal_2
add esp, 0xc
jmp 0x401e7f
mov eax, dword [esp]
push eax
push 0x405158
push 1
call sub.rdsmisc.dll_Ordinal_2
mov ecx, dword [esp + 0xc]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x401e66
mov edx, dword [esp]
push edx
push 0x405068
jmp 0x401e70
mov eax, dword [esp]
push eax
push 0x4050ec
push str._s__s
push 1
call sub.rdsmisc.dll_Ordinal_2
add esp, 0x10
lea ecx, [esp]
mov dword [esp + 0x294], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28c]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x298
ret

Function at 0x402660
Capabilities:
Query service status

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1c
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x402684
mov ecx, dword [esp + 4]
mov eax, 1
cmp ecx, eax
je 0x402686
xor eax, eax
add esp, 0x1c
ret

Function at 0x402690
Capabilities:
Modify service
Query service status
Stop service

Disassembly:
sub esp, 0x20
push esi
push edi
push Ordinal_1
push str.ServicesActive
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
mov dword [esp + 8], edi
je 0x402745
mov eax, dword [esp + 0x2c]
push 0x26
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x402735
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push esi
call fcn.00402660
add esp, 4
test eax, eax
jne 0x4026ff
lea ecx, [esp + 0xc]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
xor edi, edi
lea edx, [esp + 0x14]
push edx
push esi
call ebp
test eax, eax
je 0x40272f
cmp dword [esp + 0x18], 1
je 0x40272f
push 0x3e8
call ebx
inc edi
cmp edi, 0x3c
jl 0x40270f
mov edi, dword [esp + 0x10]
pop ebp
pop ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x402745
push esi
call edi
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
Function at 0x402750
Capabilities:
Modify service
Start service

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
push Ordinal_1
push str.ServicesActive
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x4027b6
mov eax, dword [esp + 0x10]
push 0x16
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x4027a6
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
je 0x4027a6
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov ebx, 1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x4027b6
push esi
call edi
pop edi
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x402306
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffffc
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp dword [ebp + 8], 0
je 0x402326
mov eax, dword [ebp + 8]
mov byte [eax], 0
test ebx, ebx
je 0x40232f
cmp byte [ebx], 0
jne 0x402336
xor eax, eax
jmp 0x4023b6
xor esi, esi
jmp 0x402379
mov al, byte [ebx]
xor ecx, ecx
mov cl, al
inc ebx
cmp ecx, 0x3d
jne 0x402360
cmp dword [ebp - 4], 0
je 0x402360
test esi, esi
jne 0x402360
cmp dword [ebp + 8], 0
je 0x40235c
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov esi, edx
jmp 0x402379
xor ecx, ecx
mov cl, al
cmp ecx, 0xd
je 0x40236e
cmp ecx, 0xa
jne 0x402376
cmp ecx, 0xd
jne 0x40237e
inc ebx
jmp 0x40237e
mov byte [edx], al
inc edx
cmp byte [ebx], 0
jne 0x40233a
mov byte [edx], 0
cmp dword [ebp - 4], 0
je 0x4023b4
mov eax, dword [ebp - 4]
test esi, esi
mov byte [eax], 0
je 0x4023b4
push 0x1000
lea edx, [ebp - 0x1004]
push edx
push esi
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
lea edx, [ebp - 0x1004]
mov eax, dword [ebp - 4]
call fcn.00406b54
mov byte [esi], 0
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40274a
Capabilities:
Set registry value

Disassembly:
push ebx
add esp, 0xfffffbf8
mov ebx, eax
cmp byte [0x40c05d], 0
je 0x4027c1
cmp byte [0x40dd74], 0
je 0x4027c1
lea edx, [esp + 8]
mov eax, 0x40dd74
call fcn.00402719
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
jne 0x4027c1
mov eax, ebx
call fcn.00406ad4
inc eax
push eax
push ebx
push 1
push 0
lea edx, [esp + 0x18]
push edx
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x408
pop ebx
ret

Function at 0x4027c9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffff7f4
mov ebx, eax
cmp byte [0x40c05d], 0
je 0x402842
lea edx, [esp + 0xc]
mov eax, ebx
call fcn.00402719
push esp
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x402842
mov dword [esp + 4], 0x400
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 0x410]
push eax
lea edx, [esp + 0x10]
push edx
push 0
lea ecx, [esp + 0x1c]
push ecx
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x40283a
lea edx, [esp + 0x40c]
mov eax, ebx
call fcn.00406b54
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x80c
pop ebx
ret

Function at 0x40292c
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff9c
push 0x64
lea eax, [esp + 4]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [esp]
add esp, 0x64
ret

Function at 0x402936
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff9c
push 0x64
lea eax, [esp + 4]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [esp]
add esp, 0x64
ret