joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453080
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x20]
test ebx, ebx
push esi
jne 0x4530b2
mov esi, dword [esp + 0x20]
mov ecx, esi
call fcn.00452800
test eax, eax
jne 0x4530a7
cmp dword [esi + 0x24], eax
jne 0x4530a7
pop esi
pop ebx
add esp, 0x14
ret
pop esi
mov eax, 1
pop ebx
add esp, 0x14
ret
push ebp
mov ebp, dword [esp + 0x24]
push edi
mov edi, dword [ebp + 0x24]
test edi, edi
je 0x4530fd
nop
mov esi, dword [edi + 0x14]
xor edx, edx
test esi, esi
jle 0x4530f6
lea ecx, [edi + 0x24]
lea esp, [esp]
mov eax, dword [ecx]
cmp dword [ebx + eax*4], 0
jge 0x4532a1
cmp eax, dword [ebp + 8]
jne 0x4530ec
cmp dword [esp + 0x30], 0
jne 0x4532a1
add edx, 1
add ecx, 8
cmp edx, esi
jl 0x4530d0
mov edi, dword [edi + 4]
test edi, edi
jne 0x4530c0
mov edi, dword [ebp + 4]
test edi, edi
mov eax, edi
jne 0x45310a
xor ebx, ebx
jmp 0x453121
cmp byte [edi], 0
je 0x453118
nop
add eax, 1
cmp byte [eax], 0
jne 0x453110
sub eax, edi
and eax, 0x3fffffff
mov ebx, eax
mov ecx, dword [ebp + 0x44]
add ecx, 0x34
cmp dword [ecx + 0xc], 0
mov dword [esp + 0x18], ecx
je 0x45316d
xor eax, eax
test ebx, ebx
mov esi, ebx
mov edx, edi
jle 0x453167
jmp 0x453140
movzx ecx, byte [edx]
movzx ecx, byte [ecx + 0x4c7848]
lea ebp, [eax*8]
xor ecx, ebp
sub esi, 1
xor eax, ecx
add edx, 1
test esi, esi
jg 0x453140
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x28]
xor edx, edx
div dword [ecx]
jmp 0x45316f
xor edx, edx
push ebx
push edi
call fcn.00412ae0
add esp, 8
test eax, eax
je 0x453297
mov eax, dword [eax + 8]
test eax, eax
mov dword [esp + 0x14], eax
je 0x453297
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x14]
test eax, eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
jle 0x453288
mov ebx, dword [ebp + 0xc]
add ecx, 0x28
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ecx
lea esp, [esp]
mov edx, dword [esp + 0x10]
mov ebp, dword [edx]
xor esi, esi
test ebx, ebx
jle 0x453268
mov eax, dword [esp + 0x28]
mov edi, dword [eax + 0x10]
test ebp, ebp
je 0x453234
mov ecx, dword [edi]
mov al, byte [ecx]
test al, al
mov edx, ebp
je 0x453215
jmp 0x4531f0
movzx ebx, byte [edx]
movzx eax, al
mov al, byte [eax + 0x4c7848]
cmp al, byte [ebx + 0x4c7848]
jne 0x453211
mov al, byte [ecx + 1]
add ecx, 1
add edx, 1
test al, al
jne 0x4531f0
mov ebx, dword [esp + 0x1c]
movzx ecx, byte [ecx]
movzx edx, byte [edx]
movzx eax, byte [ecx + 0x4c7848]
movzx ecx, byte [edx + 0x4c7848]
sub eax, ecx
neg eax
sbb eax, eax
add eax, 1
jmp 0x453238
movzx eax, byte [edi + 0x15]
test eax, eax
je 0x453256
mov edx, dword [esp + 0x2c]
cmp dword [edx + esi*4], 0
jge 0x4532a1
mov eax, dword [esp + 0x28]
cmp esi, dword [eax + 8]
jne 0x453256
cmp dword [esp + 0x30], 0
jne 0x4532a1
add esi, 1
add edi, 0x18
cmp esi, ebx
jl 0x4531d7
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
add dword [esp + 0x10], 8
add ecx, 1
cmp ecx, eax
mov dword [esp + 0x18], ecx
jl 0x4531c0
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0xc]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x453190
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 0x14
ret
Function at 0x4639e4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x463a2a
call fcn.004677bb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x463a2a
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x463a6d
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x463a56
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x463a56
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x463a6a
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x465349
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x465369
cmp dword [edi + 0x54], 0
jne 0x465369
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004677bb
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00465310
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x467f2d
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4b928e
call fcn.0048af21
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x467f52
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x467f9e
call fcn.004645a6
push eax
lea ecx, [ebp - 0x10]
call fcn.004016f0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004623d2
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401550
mov eax, esi
call fcn.0048aff9
ret 8

Function at 0x46bcbe
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x46bcf7
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00462801
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040a850
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x46d884
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x46d8c7
call fcn.004677bb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x46d8c7
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x46d8e2
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0046d43b
test ebx, ebx
mov esi, eax
je 0x46d8e0
test edi, edi
je 0x46d8e0
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x470327
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.004677bb
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
jne 0x470352
xor eax, eax
jmp 0x4703f6
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x47034b
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x47034b
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046234a
mov edi, eax
xor eax, eax
cmp word [esi + 6], ax
pop ecx
jbe 0x4703a7
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x470396
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.0046f125
push edi
mov ebx, eax
call fcn.00462375
test ebx, ebx
pop ecx
je 0x4703e9
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.0046f810
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.0046f8c2
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x474423
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x47444c
call fcn.004677bb
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x47446f
push eax
push dword [esi + 4]
call fcn.004743ae
push esi
push eax
mov ecx, 0x4e2978
call fcn.00474088
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x482184
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x48218d
xor eax, eax
jmp 0x4821f6
cmp dword [esp + 8], 0
jne 0x482199
call fcn.0046262e
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0048d198
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4821d4
push dword [esi + 0x10]
call fcn.0048cedd
test eax, eax
pop ecx
jne 0x4821d4
mov esi, dword [esi + 0xc]
call fcn.0048b2ea
push esi
push dword [eax]
push 1
call fcn.00480c44
push dword [esi + 0x10]
call fcn.0048cf0c
test eax, eax
pop ecx
je 0x4821f3
push dword [esi + 0x10]
call fcn.0048ce31
push eax
call fcn.00406c00
pop ecx
pop ecx
jmp 0x4821c2
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x4821ff
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x482209
call fcn.0046262e
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0048d2cd
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x482236
mov esi, dword [esi + 0xc]
call fcn.0048b2ea
push esi
push dword [eax]
push 1
call fcn.00480c44
pop esi
ret 8

Function at 0x485605
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4dd704]
jne 0x48560f
repz ret
jmp fcn.0048db0f

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x48a2df
call fcn.0048b2ea
mov dword [eax], esi
call fcn.0048b2d7
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00485c52
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x48a2bb
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x48a30e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.0048b2fd
pop ecx
call fcn.0048b2d7
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x48a335
test al, 1
je 0x48a335
test byte [esp + 0xc], 2
je 0x48a335
call fcn.0048b2ea
mov dword [eax], 5
call fcn.0048b2d7
mov dword [eax], 0xd
jmp 0x48a305
xor eax, eax
pop esi
ret
Function at 0x499646
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0048dce6
xor ebx, ebx
cmp dword [0x4e376c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x49971b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x499686
xor eax, eax
jmp 0x4997df
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x4c3700
push edi
call esi
cmp eax, ebx
je 0x49967f
push eax
call fcn.0048dc83
mov dword [esp], 0x4c36f0
push edi
mov dword [0x4e376c], eax
call esi
push eax
call fcn.0048dc83
mov dword [esp], 0x4c36dc
push edi
mov dword [0x4e3770], eax
call esi
push eax
call fcn.0048dc83
mov dword [0x4e3774], eax
lea eax, [ebp - 8]
push eax
call fcn.0048b3c4
test eax, eax
pop ecx
pop ecx
je 0x4996e9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00485b56
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x49971b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0048dc83
cmp eax, ebx
pop ecx
mov dword [0x4e377c], eax
je 0x49971b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0048dc83
pop ecx
mov dword [0x4e3778], eax
mov eax, dword [0x4e3778]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x499794
cmp dword [0x4e377c], esi
je 0x499794
push eax
call fcn.0048dcef
pop ecx
call eax
cmp eax, ebx
je 0x499761
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4e377c]
call fcn.0048dcef
pop ecx
call eax
test eax, eax
je 0x499761
test byte [ebp - 0x18], 1
jne 0x499794
lea eax, [ebp - 0xc]
push eax
call fcn.0048b3fb
test eax, eax
pop ecx
je 0x49977c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00485b56
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x49978b
or dword [ebp + 0x10], 0x200000
jmp 0x4997c5
or dword [ebp + 0x10], 0x40000
jmp 0x4997c5
mov eax, dword [0x4e3770]
cmp eax, esi
je 0x4997c5
push eax
call fcn.0048dcef
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4997c5
mov eax, dword [0x4e3774]
cmp eax, esi
je 0x4997c5
push dword [ebp - 4]
push eax
call fcn.0048dcef
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4e376c]
call fcn.0048dcef
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49d6e1
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4dd704]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0049d676
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004858f0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x49d730
cmp dword [ebp - 0x1c], 5
jb 0x49d748
jmp 0x49d744
cmp dword [ebp - 0x10], 1
jne 0x49d748
cmp dword [ebp - 0x1c], 4
ja 0x49d744
jne 0x49d748
cmp dword [ebp - 0x18], 0
jbe 0x49d748
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4c37a8
call fcn.0049d54a
test eax, eax
jge 0x49d769
mov byte [0x4e381c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00485605
add ebp, 0x78
leave
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x4ba603
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4dd704]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
push ebx
call fcn.0049e130
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x4e37f4
or eax, 0xffffffff
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x4ca308
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.0049d910
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x4a1f40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4dd704]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x18], 1
jne 0x4a1f80
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
lea edx, [ebp - 0x28]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 8], eax
jmp 0x4a1f9c
lea edx, [ebp - 4]
push edx
push 0x20006
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4a1fcd
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x30], edx
push 4
lea eax, [ebp - 0x30]
push eax
push 4
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00485605
mov esp, ebp
pop ebp
ret
Function at 0x4a1fe0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4a203c
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4a2050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4dd704]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4a20bb
mov dword [ebp - 0xc], 0x104
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x118]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00485605
mov esp, ebp
pop ebp
ret
Function at 0x4a20d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4dd704]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0x4c7d74
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0x20
ja 0x4a2218
lea edx, [ebp - 0x210]
push edx
push 0x4c7d7c
push SysReAllocString
call fcn.004a2050
add esp, 0xc
test eax, eax
jne 0x4a2218
push 0x4c7d84
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x210]
push edx
push SysReAllocString
call fcn.004a2050
add esp, 0xc
test eax, eax
jne 0x4a2218
push 0x4c7d98
lea eax, [ebp - 0x210]
push eax
call fcn.0040b8f0
add esp, 8
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x4a21d2
push 0x4c7da0
lea ecx, [ebp - 0x210]
push ecx
call fcn.0040b8f0
add esp, 8
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x4a21c7
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea eax, [ebp + eax - 0x211]
mov dword [ebp - 0x218], eax
jmp 0x4a21d0
mov ecx, dword [ebp - 0x218]
mov byte [ecx], 0
jmp 0x4a21db
mov edx, dword [ebp - 0x218]
mov byte [edx], 0
push 0x4c7da4
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.DLL_WinExec]
shl eax, 2
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485605
mov esp, ebp
pop ebp
ret

Function at 0x4a2310
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb48c
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x4dd704]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea ecx, [ebp - 0x178]
call fcn.004058d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x11c]
push ecx
push str.__s_
lea edx, [ebp - 0x178]
push edx
call fcn.00405550
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0x174]
push eax
call fcn.004858f0
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x174], 0x44
lea edx, [ebp - 0x12c]
push edx
lea eax, [ebp - 0x174]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x178]
call fcn.00404330
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x4a2f10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4dd704]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
jne 0x4a2f33
mov eax, 1
jmp 0x4a310c
mov eax, dword [ebp + 8]
push eax
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call fcn.0048a34d
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
call fcn.00485620
add esp, 4
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 3
jb 0x4a2fb1
movsx eax, byte [ebp - 0x110]
cmp eax, 0x41
jl 0x4a2f81
movsx ecx, byte [ebp - 0x110]
cmp ecx, 0x5a
jle 0x4a2f99
movsx edx, byte [ebp - 0x110]
cmp edx, 0x61
jl 0x4a2fb1
movsx eax, byte [ebp - 0x110]
cmp eax, 0x7a
jg 0x4a2fb1
movsx ecx, byte [ebp - 0x10f]
cmp ecx, 0x3a
jne 0x4a2fb1
movsx edx, byte [ebp - 0x10e]
cmp edx, 0x5c
je 0x4a2fbb
mov eax, 1
jmp 0x4a310c
cmp dword [ebp - 0x118], 3
jne 0x4a2ff0
cmp dword [ebp + 0xc], 0
jne 0x4a2fe9
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.0048a339
add esp, 8
test eax, eax
je 0x4a2fe9
mov eax, 2
jmp 0x4a310c
xor eax, eax
jmp 0x4a310c
mov dword [ebp - 0x114], 3
mov dword [ebp - 0x11c], 1
mov ecx, dword [ebp - 0x114]
movsx edx, byte [ebp + ecx - 0x110]
test edx, edx
je 0x4a3100
mov eax, dword [ebp - 0x114]
lea ecx, [ebp + eax - 0x110]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x114]
movsx eax, byte [ebp + edx - 0x110]
test eax, eax
je 0x4a3060
mov ecx, dword [ebp - 0x114]
movsx edx, byte [ebp + ecx - 0x110]
cmp edx, 0x5c
je 0x4a3060
mov eax, dword [ebp - 0x114]
add eax, 1
mov dword [ebp - 0x114], eax
jmp 0x4a302a
mov ecx, dword [ebp - 0x114]
movsx edx, byte [ebp + ecx - 0x110]
neg edx
sbb edx, edx
add edx, 1
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x114]
mov byte [ebp + eax - 0x110], 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.004a2ba0
add esp, 4
test eax, eax
jne 0x4a30a0
mov eax, 1
jmp 0x4a310c
cmp dword [ebp + 0xc], 0
jne 0x4a30d1
push 0
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.0048a339
add esp, 8
test eax, eax
je 0x4a30d1
mov eax, 2
jmp 0x4a310c
cmp dword [ebp - 0x11c], 0
je 0x4a30de
jmp 0x4a3100
mov ecx, dword [ebp - 0x114]
mov byte [ebp + ecx - 0x110], 0x5c
mov edx, dword [ebp - 0x114]
add edx, 1
mov dword [ebp - 0x114], edx
jmp 0x4a3004
xor eax, eax
cmp dword [ebp - 0x11c], 0
sete al
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00485605
mov esp, ebp
pop ebp
ret