joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a918
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x417ad4]
call fcn.00404d18
xor eax, eax
push ebp
push 0x46aa5c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x478720], 0
jne 0x46a96b
mov ecx, dword [0x4fe06c]
mov dl, 1
mov eax, dword [0x4077a0]
call fcn.0040c008
call fcn.00403d74
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402fc8
mov eax, ebx
call fcn.00404be4
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x46aa6c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405ef4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404bf4
test eax, eax
jle 0x46aa03
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x46a9fc
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404604
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004045ec
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408684
test eax, eax
jne 0x46a9fc
mov ebx, 0x15
jmp 0x46aa08
mov ebx, 0x10
jmp 0x46aa08
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x478720]
call fcn.0046a790
mov eax, dword [ebp - 8]
call fcn.0046a790
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405f0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46aa63
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004043a0
lea eax, [ebp - 0x10]
mov edx, dword [0x417ad4]
call fcn.00404de8
ret
Function at 0x473abc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040482c
mov eax, dword [ebp - 8]
call fcn.0040482c
mov edi, 0x4ffc54
xor eax, eax
push ebp
push 0x473bac
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040437c
mov eax, dword [ebp - 4]
call fcn.0040463c
mov ebx, eax
test ebx, ebx
jl 0x473b91
inc ebx
mov dword [0x4ffc50], 0
lea eax, [ebp - 0x10]
push eax
mov edx, dword [0x4ffc50]
add edx, edx
inc edx
mov ecx, 2
mov eax, dword [ebp - 4]
call fcn.0040489c
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 0x473bc4
call fcn.00404688
mov eax, dword [ebp - 0xc]
mov edx, 0x20
call fcn.0040896c
mov byte [edi], al
mov eax, dword [ebp - 8]
call fcn.0040463c
push eax
mov eax, dword [0x4ffc50]
pop edx
mov ecx, edx
cdq
idiv ecx
inc edx
mov eax, dword [ebp - 8]
mov al, byte [eax + edx - 1]
xor al, byte [edi]
mov byte [edi], al
lea eax, [ebp - 0x14]
mov dl, byte [edi]
call fcn.00404564
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.00404644
inc dword [0x4ffc50]
dec ebx
jne 0x473b1b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473bb3
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004043a0
ret
Function at 0x419610
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x11000]
push edi
or ebp, 0xffffffff
jmp 0x419632
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419639
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419628
mov eax, 1
add ebx, ebx
jne 0x41964b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419640
jne 0x41965c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419640
xor ecx, ecx
sub eax, 3
jb 0x419670
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4196e2
mov ebp, eax
add ebx, ebx
jne 0x41967b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419688
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4196ac
inc ecx
add ebx, ebx
jne 0x419698
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41968d
jne 0x4196a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41968d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4196cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4196bd
jmp 0x41962e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4196cc
add edi, ecx
jmp 0x41962e
pop esi
mov edi, esi
mov ecx, 0x5ce
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4196ea
cmp byte [edi], 0
jne 0x4196ea
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 eax, ebx
loop 0x4196ef
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x41975e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x191e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1924c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41971c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19250]
or eax, eax
je 0x419758
mov dword [ebx], eax
add ebx, 4
jmp 0x419739
call dword [esi + 0x19254]
popal
jmp 0x40e274

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x405646
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x405655
pop dword [ebp - 0x40]
mov eax, 0xe79a5953
add eax, 0x18a5fd02
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x5f51d6cf
add dword [ebp - 0x50], 0xef006e7c
mov dword [ebp - 0x4c], 0x18027447
add dword [ebp - 0x4c], 0x1a30d7fe
mov dword [ebp - 0x48], 0x2f48c16f
sub dword [ebp - 0x48], 0xe2fc7d41
mov dword [ebp - 0x44], 0xfbf76ea2
add dword [ebp - 0x44], 0x408915e
lea eax, [ebp - 0x50]
push eax
mov eax, 0x694a7c9d
add eax, 0x96f5f4a7
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x449a38e0
add dword [ebp - 0x50], 0x2fd83076
mov dword [ebp - 0x4c], 0x267aa931
sub dword [ebp - 0x4c], 0xe50e47bc
mov dword [ebp - 0x48], 0xf1cb0483
sub dword [ebp - 0x48], 0x8e5b9817
mov dword [ebp - 0x44], 0xfc7b5364
sub dword [ebp - 0x44], 0xfc7b5364
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xf9a6e39d
sub eax, 0xf966728d
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x35e03
push 0
call eax
mov ecx, 0x43d3
mov ebx, eax
mov esi, 0xc4b20dd0
sub esi, 0xc46eadd0
add esi, dword [ebp - 0x40]
mov edx, 0x69efa2cd
sub dword [ebp - 0x24], 0x3c14d0b7
mov edi, dword [esi]
xor dword [ebp - 0x1c], edi
xor edi, edx
add dword [ebp - 0x14], ecx
mov dword [ebx], edi
xor dword [ebp - 0x3c], 0xa980ed9d
add ebx, 4
add esi, 0x28db7bf1
add esi, 0xd7248413
loop 0x40576b
add eax, 0x1021f
xor ebx, ebx
add ebx, eax
add eax, 0xf0beab8f
add eax, 0xf415476
mov ecx, 0x6dd8f564
sub ecx, 0x6d98f564
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421968
push esi
call fcn.00405d21
push esi
call fcn.004058a8
mov edi, eax
test edi, edi
jne 0x405916
xor eax, eax
jmp 0x405968
push edi
call fcn.00405f83
test byte [0x423f78], 0x80
je 0x40592f
mov al, byte [edi]
test al, al
je 0x405912
cmp al, 0x5c
je 0x405912
sub edi, esi
jmp 0x405947
call fcn.0040601c
test eax, eax
je 0x405941
test byte [eax], 0x10
je 0x405912
push esi
call fcn.0040585b
push esi
call sub.kernel32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405933
call fcn.00405814
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4059d9
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4059f5
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
ret 4

Function at 0x4059f8
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileA]
ret 0xc
Function at 0x401260
Capabilities:
Hide graphical window

Disassembly:
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x403100], eax
push esp
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov esi, dword [esp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4030f4], eax
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x40128d
push esp
mov dword [ebp - 0x24], 0x401330
mov eax, dword [0x4030f4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], str.wookernof
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4030f4]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.tofkol
push str.wookernof
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403104], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x40132c
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x40130d
pop ebp
ret 0x10

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40701c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x407028
push 0x407024
push 0x407020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x407028]
push dword [0x407024]
push dword [0x407020]
mov dword [0x407014], esp
call fcn.004014df
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x4011d0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
jmp 0x4011e8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jae 0x40128c
mov edx, dword [ebp - 4]
sub edx, 0x231d
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + eax*2 + 0x463a]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
shr eax, 0xc
cmp eax, 3
jne 0x401287
mov ecx, dword [ebp - 8]
push ecx
call fcn.00401680
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x401246
push 0x154b
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x401246
xor eax, eax
jmp 0x40128c
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax - 0x4c3f8]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx]
add ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov edx, dword [ebp + 0x10]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 8]
sub eax, 0x4c3f8
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
sub edx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
jmp 0x4011df
mov esp, ebp
pop ebp
ret
Function at 0x40109c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov al, byte [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x18]
xor ebx, ebx
push edi
push ebx
add al, 0x40
push 0x80
push 3
mov byte [ebp - 0x10], al
push ebx
push 3
lea eax, [ebp - 0x14]
push 0x80000000
push eax
mov dword [ebp - 4], ebx
mov dword [esi], ebx
mov byte [ebp - 0x14], 0x5c
mov byte [ebp - 0x13], 0x5c
mov byte [ebp - 0x12], 0x2e
mov byte [ebp - 0x11], 0x5c
mov byte [ebp - 0xf], 0x3a
mov byte [ebp - 0xe], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4010f4
push 0xb
pop esi
jmp 0x40113c
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp + 0x18], eax
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x401113
push 0xd
pop esi
jmp 0x401135
lea eax, [ebp + 8]
push ebx
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40112d
push 8
jmp 0x401110
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov esi, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401143
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, 0x104
push edi
call fcn.00404a4c
mov esi, eax
pop ecx
test esi, esi
jne 0x40115f
push 5
jmp 0x40117a
and byte [esi + 1], 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [esi + 1], 0x3a
je 0x40117d
push esi
call fcn.00404963
pop ecx
push 1
pop eax
jmp 0x401196
mov al, byte [esi]
push esi
mov byte [ebp - 4], al
call fcn.00404963
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.00401357
add esp, 0xc
pop edi
pop esi
leave
ret

Function at 0x401357
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4013ad
cmp dword [ebp - 0x84], 2
jne 0x4013ad
push dword [ebp + 0xc]
cmp dword [ebp - 0x90], 5
push dword [ebp + 8]
jae 0x40139a
call fcn.0040332f
jmp 0x40139f
call fcn.004033bc
pop ecx
pop ecx
xor ecx, ecx
test ax, ax
sete cl
mov eax, ecx
leave
ret
push 1
pop eax
leave
ret
Function at 0x4013b2
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
dec eax
push edi
mul ebx
mov esi, eax
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp + 0x10], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, esi
je 0x4013e3
push 0xd
jmp 0x401402
lea eax, [ebp - 4]
push edi
push eax
push ebx
push dword [ebp + 0x14]
xor esi, esi
cmp dword [ebp + 0x18], edi
push dword [ebp + 8]
je 0x401405
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401413
push 9
pop esi
jmp 0x401425
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401413
push 8
jmp 0x401402
cmp dword [ebp - 4], ebx
je 0x401425
xor eax, eax
cmp dword [ebp + 0x18], edi
setne al
add eax, 8
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40271f
Capabilities:
Create directory
Enumerate files on windows

Disassembly:
mov eax, 0x40d940
call fcn.00405710
sub esp, 0x16c
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
test ebx, ebx
je 0x40273c
and dword [ebx], 0
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x40292d
cmp dword [ebp + 8], 0
je 0x40292d
lea eax, [edi + 2]
push eax
call fcn.00404a4c
mov esi, eax
pop ecx
test esi, esi
mov dword [ebp + 0xc], esi
jne 0x402777
test ebx, ebx
je 0x402770
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
push 5
jmp 0x40292f
lea eax, [edi + 1]
push eax
push 0
push esi
call fcn.00404f80
push edi
push dword [ebp + 8]
push esi
call fcn.00404b90
add esp, 0x18
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4027b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4027b8
test ebx, ebx
je 0x4027b0
mov dword [ebx], eax
push 0x13
pop esi
jmp 0x402920
lea ecx, [ebp - 0x38]
call fcn.00403091
push dword [0x41359c]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.004030dd
test al, al
je 0x402904
push esi
lea ecx, [ebp - 0x38]
call fcn.004032b6
push esi
lea ecx, [ebp - 0x38]
call fcn.004031c2
mov esi, eax
test esi, esi
jne 0x40290b
lea eax, [edi + 0xa]
push eax
call fcn.00404a4c
mov ebx, eax
pop ecx
test ebx, ebx
je 0x402900
push dword [ebp + 0xc]
push ebx
call fcn.00405130
push 0x5c
push ebx
call fcn.00405310
add esp, 0x10
test eax, eax
je 0x40282f
cmp byte [eax + 1], 0
jne 0x40282f
push 0x410634
jmp 0x402834
push str..
push ebx
call fcn.00405140
pop ecx
lea eax, [ebp - 0x178]
pop ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4028f9
mov eax, dword [ebp - 0x178]
and eax, 0x10
cmp al, 0x10
je 0x4028cb
lea eax, [ebp - 0x14c]
push eax
call fcn.004050b0
lea eax, [eax + edi + 2]
push eax
call fcn.00404a4c
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x4028cb
push dword [ebp + 0xc]
push esi
call fcn.00405130
push 0x5c
push esi
call fcn.00405310
add esp, 0x10
test eax, eax
je 0x40289f
cmp byte [eax + 1], 0
je 0x4028ac
push 0x410628
push esi
call fcn.00405140
pop ecx
pop ecx
lea eax, [ebp - 0x14c]
push eax
push esi
call fcn.00405140
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0x38]
call fcn.004032b6
push esi
call fcn.00404963
pop ecx
lea eax, [ebp - 0x178]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402856
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x38]
call fcn.004031c2
mov esi, eax
push ebx
call fcn.00404963
pop ecx
test esi, esi
jne 0x402908
xor esi, esi
jmp 0x402914
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x402911
mov dword [ebx], esi
push 0x14
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004030d6
push dword [ebp + 0xc]
call fcn.00404963
pop ecx
mov eax, esi
jmp 0x402930
push 3
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40293f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x402958
push 6
pop eax
jmp 0x4029e2
lea eax, [ebp - 4]
push eax
push 0xf003f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x4029e2
lea eax, [ebp - 0x10]
push edi
push eax
push esi
push esi
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push eax
lea eax, [ebp - 0x110]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 0x100
call edi
test eax, eax
jne 0x4029cc
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 4]
call fcn.0040293f
pop ecx
lea eax, [ebp - 0x10]
pop ecx
mov dword [ebp - 8], 0x100
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x110]
push eax
push esi
push dword [ebp - 4]
jmp 0x402996
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
leave
ret
Function at 0x4029e5
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0xc], 0x29
push ebx
push esi
push edi
jb 0x402b14
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x1c]
mov esi, dword [eax + 0x18]
mov ecx, dword [eax + 0x20]
lea edi, [esi + edx]
mov dword [ebp + 8], ecx
lea ecx, [edi + ecx + 0x28]
cmp dword [ebp + 0xc], ecx
jne 0x402b14
lea ecx, [eax + 0x28]
mov ebx, dword [eax + 0x14]
lea edi, [esi + ecx]
mov esi, dword [ebp + 0x10]
add edx, edi
mov dword [ebp - 4], edx
mov edx, dword [eax + 0x24]
mov dword [ebp - 8], edx
xor edx, edx
mov dword [esi + 4], edx
mov eax, dword [eax]
sub eax, 0x10
je 0x402aeb
dec eax
je 0x402ab6
dec eax
je 0x402a8b
dec eax
je 0x402a52
mov dword [esi + 4], 0xf
jmp 0x402b1e
lea eax, [ebp + 0xc]
push eax
push 0xf003f
push edx
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [esi + 8], eax
jne 0x402b1e
push edi
push dword [ebp + 0xc]
call fcn.0040293f
pop ecx
mov dword [esi + 8], eax
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402b1e
lea eax, [ebp + 0xc]
push eax
push 0xf003f
push edx
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [esi + 8], eax
jne 0x402b1e
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp + 0xc]
mov dword [esi + 8], eax
jmp 0x402a80
lea eax, [ebp + 0xc]
push eax
push 0xf003f
push edx
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [esi + 8], eax
jne 0x402b1e
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
mov dword [esi + 8], eax
jmp 0x402a80
lea eax, [ebp + 0xc]
push edx
push eax
push 0x4134a0
push 0xf003f
push edx
push edx
push edx
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov dword [esi + 8], eax
jne 0x402b1e
push dword [ebp + 0xc]
jmp 0x402a80
mov eax, dword [ebp + 0x10]
mov dword [eax + 4], 3
push 0xc
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402bde
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x413590]
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x402bf2
mov al, 1
jmp 0x402c47
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
lea ecx, [ebp - 4]
push edi
push ecx
push ebx
push ebx
push eax
mov dword [ebp - 4], 1
call esi
push dword [ebp - 4]
call fcn.004050a2
push dword [ebp - 4]
mov edi, eax
push ebx
push edi
call fcn.00404f80
add esp, 0x10
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push dword [0x413590]
call esi
test eax, eax
je 0x402c3c
cmp dword [edi + 4], 3
sete bl
push edi
call fcn.00405097
pop ecx
pop edi
mov al, bl
pop esi
pop ebx
leave
ret