joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401420
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
sub esp, 0x43c
lea eax, [esp + 0x54]
push esi
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp eax, 0x3e8
jae 0x401554
push ebx
push edi
or ecx, 0xffffffff
mov edi, str.SYSTEM32_
xor eax, eax
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x60]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.USRprbdA.exe__F:disabler.exe__X:testmgr.exe__L:
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x60]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.USRmlnkA.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x60]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [0x40f514]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x11
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], 0x44
mov dword [esp + 0x10], eax
lea ecx, [esp + 0xc]
lea edx, [esp + 0x1c]
mov dword [esp + 0x14], eax
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x34], eax
push eax
lea eax, [esp + 0x80]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop ebx
test eax, eax
je 0x401554
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 4]
push edx
call esi
pop esi
add esp, 0x43c
ret
Function at 0x403255
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40e2f8
cmp edx, dword [eax]
je 0x403277
add eax, 8
inc ecx
cmp eax, 0x40e388
jl 0x403268
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40e2f8]
jne 0x4033a5
mov eax, dword [0x40f530]
cmp eax, 1
je 0x40337f
test eax, eax
jne 0x4032a8
cmp dword [0x40e0b0], 1
je 0x40337f
cmp edx, 0xfc
je 0x4033a5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4032df
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404ff0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402a50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403322
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402a50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c480
push edi
call fcn.00405530
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404ff0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405000
lea eax, [ebp - 0xa0]
push 0x40c460
push eax
call fcn.00405000
push dword [esi + 0x40e2fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405000
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004054a5
add esp, 0x2c
pop edi
jmp 0x4033a5
lea eax, [ebp + 8]
lea esi, [esi + 0x40e2fc]
push 0
push eax
push dword [esi]
call fcn.00402a50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x439300
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1c000]
push edi
or ebp, 0xffffffff
jmp 0x439322
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x439329
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x439318
mov eax, 1
add ebx, ebx
jne 0x43933b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x439330
jne 0x43934c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x439330
xor ecx, ecx
sub eax, 3
jb 0x439360
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4393d2
mov ebp, eax
add ebx, ebx
jne 0x43936b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x439378
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43939c
inc ecx
add ebx, ebx
jne 0x439388
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43937d
jne 0x439399
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43937d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4393bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4393ad
jmp 0x43931e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4393bc
add edi, ecx
jmp 0x43931e
pop esi
mov edi, esi
mov ecx, 0x254
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4393da
cmp byte [edi], 1
jne 0x4393da
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4393df
lea edi, [esi + 0x37000]
mov eax, dword [edi]
or eax, eax
je 0x439457
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x39ad0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x39bac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43940c
mov ecx, edi
jns 0x43943b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x39bb0]
or eax, eax
je 0x439451
mov dword [ebx], eax
add ebx, 4
jmp 0x439429
call dword [esi + 0x39bc0]
mov ebp, dword [esi + 0x39bb4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x43948b
sub esp, 0xffffff80
jmp 0x407ece

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x4010c0
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541728
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x593dc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x14], edi
mov esi, dword [eax]
cmp dword [esi - 0xc], edi
jne 0x40110e
call fcn.00415eb7
cmp eax, edi
jne 0x401257
push 0x80004005
call fcn.00402460
mov ebx, dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
lea edx, [ebp - 0x10]
push edx
push edi
mov dword [ebp - 0x10], edi
mov eax, dword [esi - 0xc]
push 1
push eax
push esi
call ebx
test eax, eax
je 0x4010f7
cmp dword [ebp - 0x10], edi
je 0x4010f7
call fcn.00415eb7
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x401148
push 0x80004005
call fcn.00402460
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
test edx, edx
jns 0x40116f
push 0x80070057
call fcn.00402460
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, edx
or eax, ecx
jge 0x40118c
push edx
lea ecx, [ebp - 0x14]
call fcn.00401700
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push ecx
push edi
push 1
push eax
push esi
call ebx
test eax, eax
jne 0x4011e2
mov esi, dword [ebp + 8]
call fcn.00401480
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4011ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
jne 0x4011f7
mov eax, dword [edi - 8]
push eax
push edi
call fcn.0051dde1
add esp, 8
test eax, eax
js 0x401165
cmp eax, dword [edi - 8]
jg 0x401165
mov dword [edi - 0xc], eax
mov byte [eax + edi], 0
add edi, 0xfffffff0
push edi
call fcn.00401760
mov esi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401243
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [eax + 0x10]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401f90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401fab
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401fe2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401fde
jmp 0x401fd0
cmp esi, eax
jae 0x401fe2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401fd0
cmp esi, eax
jb 0x401fe9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4033b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5416f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x593dc0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
cmp word [ecx], 0
mov eax, ecx
je 0x4033ec
add eax, 2
cmp word [eax], 0
jne 0x4033e3
sub eax, ecx
mov esi, 0x100005
sar eax, 1
mov dword [esp + 0x18], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
cmp word [edx], 0
mov eax, edx
je 0x403419
lea esp, [esp]
add eax, 2
cmp word [eax], 0
jne 0x403410
sub eax, edx
sar eax, 1
mov dword [esp + 0x20], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x28], esi
mov esi, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
lea ebx, [esp + 0x20]
mov dword [esp + 0x20], edx
call fcn.00403630
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x405af0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5428a0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x593dc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0x18]
call fcn.00407c20
mov esi, eax
mov dword [ebp - 4], edi
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x405b44
mov eax, dword [eax - 0xc]
push eax
mov ecx, esi
call fcn.004022f0
mov esi, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [sym.imp.KERNEL32.dll_LocalFree]
push edx
push eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call fcn.004075e0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405b8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x20]
cmp ecx, edi
je 0x405bcc
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x405bcc
push ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.00405c30
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x1c]
cmp esi, edi
je 0x405bfb
lea edx, [esi + 4]
mov eax, ebx
lock xadd dword [edx], eax
jne 0x405bfb
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
lock xadd dword [ecx], ebx
jmp 0x405bf0
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x1c]
cmp esi, edi
je 0x405bfb
lea ecx, [esi + 4]
mov edx, ebx
lock xadd dword [ecx], edx
jne 0x405bfb
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
lea eax, [esi + 8]
lock xadd dword [eax], ebx
jne 0x405bfb
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x409250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542010
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x593dc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x14], ebx
call fcn.00415eb7
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x409297
push 0x80004005
call fcn.00402460
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], ebx
call fcn.00415eb7
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4092c3
push 0x80004005
call fcn.00402460
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 1
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
jge 0x4092fa
push 0x105
lea ecx, [ebp - 0x10]
call fcn.004023c0
mov esi, dword [ebp - 0x10]
push esi
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x409390
call fcn.00415eb7
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x409328
push 0x80004005
call fcn.00402460
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409358
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40937b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0051e211
add esp, 8
cmp eax, ebx
jl 0x409467
cmp eax, dword [esi - 8]
jg 0x409467
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x105
or eax, ecx
jge 0x4093db
push 0x105
lea ecx, [ebp - 0x14]
call fcn.004023c0
mov edi, dword [ebp - 0x14]
push edi
push ebx
push 0x570834
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40940b
call fcn.00415eb7
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x409328
push 0x80004005
call fcn.00402460
add edi, 0xfffffff0
push edi
call fcn.00407ab0
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
lea eax, [esi - 0x10]
add esp, 4
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40943e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40937b
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
jmp 0x40937b
push 0x80070057
call fcn.00402460
int3
Function at 0x409480
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5421f8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x593dc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x44
lea eax, [ebp - 0x80]
push 0
push eax
mov esi, ecx
mov edi, edx
call fcn.0051fa60
xor eax, eax
xor ecx, ecx
mov edx, 0x73
add esp, 0xc
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov word [ebp - 0x12], cx
mov dword [ebp - 0x20], 0x250022
mov dword [ebp - 0x1c], 0x220073
mov dword [ebp - 0x18], 0x250020
mov word [ebp - 0x14], dx
call fcn.00415eb7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409511
push 0x80004005
call fcn.00402460
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
mov ecx, dword [edi]
mov edx, dword [esi]
push ecx
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00404a60
mov esi, dword [ebp - 0x24]
add esp, 0x10
cmp dword [esi - 4], 1
jle 0x409555
mov edx, dword [esi - 0xc]
push edx
lea ecx, [ebp - 0x24]
call fcn.004022f0
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x80]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40959d
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409599
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x4095d4
mov ecx, dword [ebp - 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [ebp - 0x30]
push edx
call edi
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4095d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051d79f
mov esp, ebp
pop ebp
ret
Function at 0x409c30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542638
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x593dc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x18]
xor ebx, ebx
push eax
mov dword [ebp - 0x18], ebx
call fcn.00407ec0
add esp, 4
push eax
lea edi, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.00401280
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409c9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ebx
jne 0x409cd5
add eax, 0xfffffff0
mov dword [ebp - 4], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x409cc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
lea esi, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.004095f0
mov eax, dword [eax]
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x28]
call fcn.0040e730
mov esi, dword [ebp - 0x28]
test eax, eax
jne 0x409d2d
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
mov edx, dword [0x59be34]
add ecx, ecx
push ecx
push eax
push 3
push ebx
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [ebp - 0xd], 1
test eax, eax
je 0x409d30
mov byte [ebp - 0xd], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409d4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x409d59
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x409d78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409d90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542638
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x593dc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x18]
xor ebx, ebx
push eax
mov dword [ebp - 0x18], ebx
call fcn.004082a0
add esp, 4
push eax
lea edi, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.00401280
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409dfd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ebx
jne 0x409e35
add eax, 0xfffffff0
mov dword [ebp - 4], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x409e21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
lea esi, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.004095f0
mov eax, dword [eax]
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x28]
call fcn.0040e730
mov esi, dword [ebp - 0x28]
test eax, eax
jne 0x409e8d
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
mov edx, dword [0x59be38]
add ecx, ecx
push ecx
push eax
push 3
push ebx
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [ebp - 0xd], 1
test eax, eax
je 0x409e90
mov byte [ebp - 0xd], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409eae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x409eb9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x409ed8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret