joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c020
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4dc58c]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
mov word [ebp - 8], ax
mov dword [ebp - 0xc], 1
jmp 0x45c048
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0xf
jg 0x45c073
movzx edx, word [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
movzx eax, word [ecx + eax*2 - 2]
add edx, eax
shl edx, 1
mov word [ebp - 8], dx
mov ecx, dword [ebp - 0xc]
mov dx, word [ebp - 8]
mov word [ebp + ecx*2 - 0x30], dx
jmp 0x45c03f
mov dword [ebp - 4], 0
jmp 0x45c085
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jg 0x45c0de
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*4 + 2]
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x34], 0
jne 0x45c0a3
jmp 0x45c07c
mov edx, dword [ebp - 0x34]
movzx eax, word [ebp + edx*2 - 0x30]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x34]
mov dx, word [ebp + ecx*2 - 0x30]
add dx, 1
mov eax, dword [ebp - 0x34]
mov word [ebp + eax*2 - 0x30], dx
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.0045db30
add esp, 8
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov word [edx + ecx*4], ax
jmp 0x45c07c
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00488fbb
mov esp, ebp
pop ebp
ret
Function at 0x402730
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40278b
cmp byte [esi + ebx - 1], 0xa
je 0x40275f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4040fc], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x403030
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
Function at 0x405c49
Capabilities:
Encode data using xor

Disassembly:
call 0x405b03
mov ecx, 0x22d
call 0x405c49
rcr dword [esi + 0x30], 0x4c
push cs
pop es
xor byte [esi + ecx + 7], cl
loop 0x405c4c
cli
xor cl, bl
test esp, ebp
jge 0x405c51
loopne 0x405c51
cmc
hlt
Function at 0x40abf0
Capabilities:
Encode data using xor

Disassembly:
add byte [eax - 0x6f6f6f70], dl
nop
sub edx, dword [eax - 0x6f6f6f70]
nop
nop
push ebp
mov ebp, esp
or dword [edx + 0x4f558b08], 0x53
out dx, eax
adc byte [ebx - 0x76697a6e], cl
jge 0x40ac45
jne 0x40abe1
pop edi
pop esi
xor eax, eax
xor al, 0x8b
in eax, 0x70
adc dword [eax], 0xfc7d8b00
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
je 0x40ac05
mov esi, dword [ebp + 8]
xor ebp, dword [ecx - 0x7c4d741f]
mov byte [edx], 0xd2
stc
add byte [eax], 0
inc ecx
or dh, byte [ebp + 5]
jge 0x40ac47
dec edi
mov dword [edx], edi
jnp 0x40ac66
dec esi
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov byte [eax + eax*2 - 0x1675c777], dl
or al, byte [ecx]
add byte [esi + ebx*4 - 0x3f], bh
and eax, 0x8000fc00
cmp eax, 0xbf00dc00
rsm
mov byte [ecx], 0
add byte [edi + 0xd823], al
jne 0x40aca6
sahf
shl dword [0x8000fc00], 0x3d
add ah, bl
add byte [edi + 0x1c6aa0f], bh
add byte [eax], al
xchg dword [ebx], esp
fadd dword [eax]
add byte [ebp + 0x46], dh
cmp edi, 2
xadd dh, bh
int1
add byte [eax], al
mov ax, word [esi]
mov esp, dword [ebx]
and edx, 0xfc00
cmp edx, 0xb800
jne 0x41a875
and ecx, 0xe03ff
jae 0x40ac87
inc dword [ebx]
cmp eax, dword [eax]
sal ebp, 0xa
or eax, ecx
rol dh, 1
add edi, dword [ebx]
add cl, al
cmc
or cl, byte [ebx]
rcl eax, 0xc6
add bl, byte [ecx - 0x5742775]
add ebx, 0x10000
mov dword [ebp + 8], esi
adc edi, 0x1b
xchg edx, eax
das
mov eax, ecx
cdq
cmpsd dword [esi], dword es:[edi]
fmul dword [ebx - 0x743c7410]
xlatb
mov ecx, 0xb
or edx, dword [ebp + 0xb]
add byte [esi], al
mov ecx, eax
mov esi, 1
or ecx, edx
je 0x40acd7
mov ecx, 0x9d000005
adc eax, dword [eax + 0xb]
add byte [eax], al
mov ecx, eax
inc esi
or ebp, dword [ebp + 0x75]
out dx, eax
adc al, 0x3b
xor cl, byte [edi]
and dword [ebx], 0xffffffff
or ah, byte [esi + 0x2b8]
add byte [edx - 0x45], bl
or al, 0x3b
invalid
Function at 0x40add0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov eax, dword [ebx - 0x75]
inc ebp
xchg dword [edx + 0x10747fe8], edx
call dword [0xb0c12c]
mov dword [eax], 0x273f
xor eax, eax
pop ebp
insb byte es:[edi], dx
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 0x10]
mov esp, dword [edi]
or al, 0x27
push ecx
push edx
call 0x40add0
test byte [esi - 0x6f3ca2f4], cl
and eax, 0x90909090
nop
nop
nop
push 0x90909090
nop
push ebp
mov ebp, dword [ebx + ecx*4 + 0x45]
adc byte [ebx - 0x77cf3b3], cl
add byte [ebx - 0x30], dh
call dword [0xfbc1f1]
mov bh, 0
sbb al, 0
add byte [ecx - 0x52], dh
rcr byte [ebp - 0x3d], 0x53
dec edi
mov esi, dword [ebp + 8]
test al, 0xbf
add al, 0x87
adc ebx, dword [edx + 0x3c46068a]
arpl word [eax + 0x1a761045], cx
mov al, byte [esi]
inc esi
cmp al, 0x63
mov byte [ebp + 0x10], al
jbe 0x40ae1d
mov eax, dword [ebp - 0x3c]
mov ebx, 0x62000012
and eax, 0x4c00008b
dec edx
idiv ebx
xor byte ss:[eax + 0x1881064], cl
sub bl, 4
or dword [ecx], 0x458b1776
adc byte [ebx + 0x55000a], bh
and eax, 0xff
cdq
sahf
sti
add al, 0x30
mov byte [ecx], al
inc ecx
mov al, dl
add esi, dword [eax]
mov byte [ecx + eax*2 + 0x412e01c6], al
dec edi
jne 0x40adf9
mov eax, dword [ebp + 0xc]
pop edi
pop edx
mov byte [ecx - 0x15], 0
dec esi
pop ebp
push edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sbb dword [ecx], 0x58
adc edi, edi
push es
add byte [eax], al
jp 0x40ae67
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6a
nop
sub eax, 0x403d10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x4013c6
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x104
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push 0
call dword [0x403060]
lea ecx, [esp + 8]
push 0x5c
push ecx
call dword [0x4030c8]
mov edx, eax
add esp, 8
test edx, edx
je 0x401440
mov edi, str.360sd_min.exe
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.360sd_min.exe
push edx
call dword [0x4030cc]
mov eax, dword [esi + 4]
add esp, 0xc
lea edx, [esp + 8]
push 5
push 0
push 0
push edx
push str.open
push eax
call dword [0x4030d8]
mov ecx, dword [esp + 0x114]
mov byte [esi + 0x40], 1
and ecx, 0xffff
push ecx
mov ecx, esi
call fcn.00401490
pop edi
xor eax, eax
pop esi
add esp, 0x104
ret 0x10

Function at 0x401760
Capabilities:
Check http status code
Create http request
Read data from internet
Receive data

Disassembly:
sub esp, 0x408
push ebp
push esi
push 0
push 0
push 0
push 0
push 0x404040
call dword [0x40315c]
mov ebp, eax
test ebp, ebp
je 0x40182a
mov eax, dword [esp + 0x414]
push 0
push 0x80080000
push 0
push 0
push eax
push ebp
call dword [0x403158]
mov esi, eax
test esi, esi
jne 0x4017b7
push ebp
call dword [0x403154]
pop esi
xor eax, eax
pop ebp
add esp, 0x408
ret
lea ecx, [esp + 8]
push 0
lea edx, [esp + 0x10]
push ecx
push edx
push 0x20000013
push esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 4
call dword [0x403150]
mov eax, dword [esp + 0xc]
cmp eax, 0xc8
jb 0x40181e
cmp eax, 0x12b
ja 0x40181e
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push 0x400
push ecx
push esi
call dword [0x40314c]
pop edi
push esi
mov esi, dword [0x403154]
call esi
push ebp
call esi
pop esi
xor eax, eax
pop ebp
add esp, 0x408
ret

Function at 0x401cf0
Capabilities:
Create process on windows
Self delete

Disassembly:
sub esp, 0x208
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
mov byte [esp + 0x108], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x109]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push 0
call dword [0x403060]
test eax, eax
pop edi
je 0x401dd9
lea ecx, [esp]
push 0x104
lea edx, [esp + 4]
push ecx
push edx
call dword [0x40303c]
test eax, eax
je 0x401dd9
push esi
lea eax, [esp + 0x108]
push str._c_del
push eax
call dword [0x403050]
mov esi, dword [0x403054]
lea ecx, [esp + 4]
lea edx, [esp + 0x108]
push ecx
push edx
call esi
lea eax, [esp + 0x108]
push str.____NUL
push eax
call esi
lea ecx, [esp + 4]
push 0x104
push ecx
push str.ComSpec
call dword [0x403058]
test eax, eax
pop esi
je 0x401dd9
push 0
lea edx, [esp + 0x108]
push 0
lea eax, [esp + 8]
push edx
push eax
push 0
push 0
call dword [0x4030d8]
cmp eax, 0x20
jle 0x401dd9
mov eax, 1
add esp, 0x208
ret
xor eax, eax
add esp, 0x208
ret
Function at 0x4513d1
Capabilities:
Encode data using xor

Disassembly:
jmp 0x46cb20
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x46cc38
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x1c]
nop word [eax + eax]
mov bl, byte [esi + ebx]
push str.ugAyuisyx
push 0x51b4f8
call fcn.00450274
xor edx, edx
mov eax, esi
div ebp
mov eax, dword [esp + 0x1c]
add esp, 8
mov bh, byte [edx + section..Times]
push 0x453f6e
push str.dijovhyuGSYYSyus
xor bh, bl
mov bl, byte [esi + eax]
push 0x51b4f8
call fcn.00450274
add esp, 8
mov ecx, eax
call fcn.00453339
mov eax, dword [esp + 0x14]
push 0x453f6e
push str.fdiogiuAsdoiHYUAUAY87234
push 0x51b4f8
add byte [esi + eax], bh
call fcn.00450274
add esp, 8
mov ecx, eax
call fcn.00453339
mov eax, dword [esp + 0x14]
push str.suih89Ah3
push 0x51b4f8
dec byte [esi + eax]
call fcn.00450274
mov eax, dword [esp + 0x1c]
push str.XScdyhjkujktyyt
push 0x51b4f8
add byte [esi + eax], 0xfe
call fcn.00450274
mov eax, dword [esp + 0x24]
push str.sJBCsKJ2BJN
push 0x51b4f8
sub byte [esi + eax], bl
call fcn.00450274
mov ebx, dword [esp + 0x2c]
push str.sDGTFsE
push 0x51b4f8
inc byte [esi + ebx]
call fcn.00450274
inc byte [esi + ebx]
push str.ZASwe23
push 0x51b4f8
call fcn.00450274
inc byte [esi + ebx]
push str.uhgiyGAuyisua
push 0x51b4f8
call fcn.00450274
inc esi
add esp, 0x30
cmp esi, edi
jb 0x46cb40
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x45342e
Capabilities:
Parse pe header

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

Function at 0x453744
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
jmp 0x46bbb0
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x575b98], eax
pop edi
pop esi
ret
Function at 0x40487c
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x404b6f
call fcn.0042de5c
sub esp, 8
push ebx
push esi
mov dword [ebp - 0x10], ecx
push edi
mov esi, ecx
xor edi, edi
lea ecx, [esi + 0x18]
call fcn.004445ab
lea ecx, [esi + 0x1c]
mov dword [ebp - 4], edi
call fcn.004445ab
mov byte [ebp - 4], 1
lea ecx, [esi + 0x20]
call fcn.004445ab
mov byte [ebp - 4], 2
lea ecx, [esi + 0x24]
call fcn.004445ab
push 0x47d3c4
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 3
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
call fcn.00444778
push 0x47d3c0
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 4
call fcn.00444778
push 0x47d3bc
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 5
lea ebx, [esi + 0x4c]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x44], 1
mov dword [esi + 0x40], edi
call fcn.00444778
push 0x47d3b8
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.00444778
lea ecx, [esi + 0x50]
push str.M_d_yy
mov byte [ebp - 4], 7
call fcn.00444778
lea ecx, [esi + 0x54]
push str.intl
mov byte [ebp - 4], 8
call fcn.00444778
lea ecx, [esi + 0x58]
push str.iDate
mov byte [ebp - 4], 9
call fcn.00444778
lea ecx, [esi + 0x5c]
push str.iTime
mov byte [ebp - 4], 0xa
call fcn.00444778
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x60]
push str.iTLZero
call fcn.00444778
lea ecx, [esi + 0x64]
push str.s1159
mov byte [ebp - 4], 0xc
call fcn.00444778
lea ecx, [esi + 0x68]
push str.s2359
mov byte [ebp - 4], 0xd
call fcn.00444778
lea ecx, [esi + 0x6c]
push str.sDate
mov byte [ebp - 4], 0xe
call fcn.00444778
lea ecx, [esi + 0x70]
push str.sTime
mov byte [ebp - 4], 0xf
call fcn.00444778
lea ecx, [esi + 0x74]
push 0x47d364
mov byte [ebp - 4], 0x10
call fcn.00444778
lea ecx, [esi + 0x78]
push 0x47d360
mov byte [ebp - 4], 0x11
call fcn.00444778
lea ecx, [esi + 0x7c]
push 0x47d35c
mov byte [ebp - 4], 0x12
call fcn.00444778
lea ecx, [esi + 0x80]
push 0x47d358
mov byte [ebp - 4], 0x13
call fcn.00444778
mov byte [ebp - 4], 0x14
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x30]
mov dword [esi], eax
mov eax, dword [esi + 0x3c]
mov dword [esi + 4], ecx
mov ecx, dword [esi + 0x40]
mov dword [esi + 8], edx
mov edx, dword [esi + 0x44]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x34]
mov dword [esi + 0x10], ecx
push eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x14], edx
call fcn.00444803
lea eax, [esi + 0x38]
lea ecx, [esi + 0x1c]
push eax
call fcn.00444803
lea eax, [esi + 0x48]
lea ecx, [esi + 0x20]
push eax
call fcn.00444803
push ebx
lea ecx, [esi + 0x24]
call fcn.00444803
sub esp, 4
mov dword [ebp - 0x14], esp
push 1
push edi
mov ecx, dword [ebp - 0x14]
call fcn.0043f179
mov byte [ebp - 4], 0x15
mov byte [ebp - 4], 0x14
mov ecx, esi
call fcn.00404b84
mov eax, esi
pop edi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b752
Capabilities:
Capture microphone audio

Disassembly:
mov ecx, dword [esp + 4]
push 0x20
push dword [esp + 0xc]
cmp word [ecx + 2], 1
jne 0x40b771
push dword [ecx + 0x9e]
call dword [sym.imp.WINMM.dll_waveOutWrite]
jmp 0x40b77d
push dword [ecx + 0xa2]
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
ret 8
Function at 0x40f4fb
Capabilities:
Capture microphone audio

Disassembly:
cmp dword [ecx + 4], 0
mov eax, 0xffffffec
je 0x40b035
jmp 0x40b413
ret
add ecx, 0xc4
mov eax, dword [ecx]
test eax, eax
je 0x40b466
cmp word [eax], 3
jne 0x40b466
cmp word [eax + 2], 1
jne 0x40b44a
mov word [eax], 1
mov eax, dword [ecx]
push dword [eax + 0x9e]
call dword [sym.imp.WINMM.dll_waveOutRestart]
test eax, eax
je 0x40b466
mov eax, 0xffffff9d
jmp 0x40b468
mov word [eax], 2
mov eax, dword [ecx]
push dword [eax + 0xa2]
call dword [sym.imp.WINMM.dll_waveInStart]
test eax, eax
mov eax, 0xffffff9d
jne 0x40b468
xor eax, eax
ret
cmp dword [ecx + 0x5a], 0
je 0x40f509
mov ecx, dword [ecx + 0x62]
jmp 0x40b025
ret
Function at 0x41c16e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea ecx, [ebp - 0x2b8]
jmp 0x40dbdb
Function at 0x420bb7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], pe_nt_image_headers32
push ebx
push esi
push edi
mov ebx, ecx
mov esi, 1
lea edi, [ebx + 0x17c]
push edi
lea ecx, [ebx + 0x184]
push 0xf003f
push 0
call fcn.00401dd6
push eax
push dword [ebx + 0x180]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x420c29
lea eax, [ebp - 4]
mov ecx, dword [ebp + 0xc]
push eax
push pe_nt_image_headers32
call fcn.00444a8d
push eax
push 0
push 0
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x420c29
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x420c2b
xor esi, esi
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
call fcn.00444ae2
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x420c40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 4
push ebx
push esi
lea esi, [ecx + 0x17c]
mov ebx, ecx
push esi
push 0xf003f
push 0
lea ecx, [ebx + 0x184]
call fcn.00401dd6
push eax
push dword [ebx + 0x180]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x420ca6
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x420ca6
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov eax, 1
je 0x420ca8
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x420d6c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
lea eax, [ebp - 4]
push esi
xor ebx, ebx
push edi
push eax
lea esi, [ecx + 0x17c]
mov edi, ecx
push esi
push ebx
push 0xf003f
lea ecx, [edi + 0x184]
push ebx
push ebx
push ebx
call fcn.00401dd6
push eax
push dword [edi + 0x180]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x420dda
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0xc]
push 1
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x420dda
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov eax, 1
je 0x420ddc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x420de5
Capabilities:
Set registry value

Disassembly:
sub esp, 4
lea eax, [esp]
push ebx
push esi
mov ebx, ecx
push edi
push eax
lea esi, [ebx + 0x17c]
xor edi, edi
push esi
lea ecx, [ebx + 0x184]
push edi
push 0xf003f
push edi
push edi
push edi
call fcn.00401dd6
push eax
push dword [ebx + 0x180]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x420e4b
lea eax, [esp + 0x18]
push 4
push eax
push 4
push edi
push dword [esp + 0x24]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x420e4b
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov eax, 1
je 0x420e4d
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 4
ret 8
Function at 0x42aa90
Capabilities:
Get common file path

Disassembly:
mov eax, 0x42acf3
call fcn.0042de5c
sub esp, 0x140
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x10], esp
call fcn.0042aa57
lea ecx, [ebp - 0x34]
call fcn.00444d50
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004445ab
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.004445ab
mov byte [ebp - 4], 3
call fcn.00402248
lea ecx, [eax + 0x128]
call fcn.0042ad05
push eax
lea ecx, [ebp - 0x18]
call fcn.00444778
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.0044468b
lea esi, [edi + 0x1c]
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00444a8d
push eax
push ebx
mov ecx, esi
call fcn.00401dd6
push eax
lea ecx, [ebp - 0x18]
call fcn.00401dd6
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov dword [ebp - 0x24], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00444ae2
cmp dword [ebp - 0x24], ebx
je 0x42ab44
lea ecx, [ebp - 0x14]
call fcn.00401dd6
push eax
call fcn.00446ddf
cmp dword [ebp - 0x24], 0
jne 0x42abad
lea ecx, [ebp - 0x18]
call fcn.0044468b
mov ebx, 0x104
push ebx
lea ecx, [ebp - 0x18]
call fcn.00444a8d
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.00444ae2
push ebx
lea ecx, [ebp - 0x14]
call fcn.00444a8d
push eax
push 0
mov ecx, esi
call fcn.00401dd6
push eax
lea ecx, [ebp - 0x18]
call fcn.00401dd6
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00444ae2
lea ecx, [ebp - 0x14]
call fcn.00401dd6
push eax
call fcn.00446ddf
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x42ac7d
lea ecx, [ebp - 0x14c]
call fcn.00412220
push 0x2e
lea ecx, [ebp - 0x14]
call fcn.0043f464
push eax
lea ecx, [ebp - 0x14]
call fcn.00444b0a
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00444ae2
push ebx
lea ecx, [ebp - 0x14]
call fcn.00444a38
mov dword [ebp - 0x20], 1
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401dd6
push eax
call fcn.004477ca
test eax, eax
je 0x42ac7d
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00444a8d
push eax
push dword [ebp - 0x20]
mov ecx, esi
call fcn.00401dd6
push eax
lea ecx, [ebp - 0x18]
call fcn.00401dd6
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00444ae2
push 0x2e
lea ecx, [ebp - 0x14]
call fcn.0043f464
push eax
lea ecx, [ebp - 0x14]
call fcn.00444b0a
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00444ae2
push ebx
lea ecx, [ebp - 0x14]
call fcn.00444a38
inc dword [ebp - 0x20]
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401dd6
push eax
call fcn.004477ca
test eax, eax
jne 0x42ac09
lea ecx, [ebp - 0x14]
call fcn.00401dd6
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x24]
push 1
mov ecx, edi
call fcn.004126d3
mov byte [ebp - 4], 3
call fcn.0042accf
mov byte [ebp - 4], 2
call fcn.0042acd7
mov byte [ebp - 4], 1
call fcn.0042acdf
mov dword [ebp - 4], 0xffffffff
call fcn.0042acfd
mov eax, dword [ebp - 0xc]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4