joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52d07c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe84
push ebx
xor edx, edx
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x17c], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406fa0
xor eax, eax
push ebp
push 0x52d1fd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x2000
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.004078d8
push eax
call sub.shell32.dll_SHGetFileInfoA
mov ebx, eax
lea eax, [ebp - 0x16c]
mov edx, ebx
and dl, 0xff
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x16c]
lea eax, [ebp - 0x170]
call fcn.00407580
lea eax, [ebp - 0x174]
mov edx, ebx
and edx, 0xff00
shr edx, 8
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x174]
lea eax, [ebp - 0x170]
mov cl, 2
call fcn.004075a8
lea edx, [ebp - 0x170]
lea eax, [ebp - 8]
mov ecx, 0
call fcn.0040765c
mov eax, dword [ebp - 8]
mov edx, 0x52d218
call fcn.00407890
jne 0x52d148
mov bl, 1
jmp 0x52d1d2
mov eax, dword [ebp - 8]
mov edx, 0x52d228
call fcn.00407890
jne 0x52d15b
mov bl, 2
jmp 0x52d1d2
mov eax, dword [ebp - 8]
mov edx, 0x52d238
call fcn.00407890
jne 0x52d17a
mov eax, ebx
call fcn.0040e278
test ax, ax
jne 0x52d17a
mov bl, 3
jmp 0x52d1d2
mov eax, dword [ebp - 8]
mov edx, 0x52d238
call fcn.00407890
jne 0x52d199
mov eax, ebx
call fcn.0040e278
test ax, ax
jbe 0x52d199
mov bl, 4
jmp 0x52d1d2
lea eax, [ebp - 0x17c]
mov edx, dword [ebp - 4]
call fcn.00407e5c
mov eax, dword [ebp - 0x17c]
lea edx, [ebp - 0x178]
call fcn.0041f51c
mov eax, dword [ebp - 0x178]
mov edx, 0x52d248
call fcn.0051a6a0
test al, al
je 0x52d1d0
mov bl, 1
jmp 0x52d1d2
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52d204
lea eax, [ebp - 0x17c]
mov edx, 2
call fcn.00406f0c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406f3c
ret
Function at 0x52d264
Capabilities:
Get file attributes
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe8c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x174], ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov byte [ebp - 9], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406fa0
xor eax, eax
push ebp
push 0x52d396
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 0x4010
cmp byte [ebp - 9], 0
je 0x52d2af
or esi, 1
jmp 0x52d2b2
or esi, 0
test bl, bl
je 0x52d320
lea eax, [ebp - 0x174]
mov edx, dword [ebp - 4]
call fcn.00407e5c
mov eax, dword [ebp - 0x174]
lea edx, [ebp - 0x170]
call fcn.0041f55c
mov edx, dword [ebp - 0x170]
lea eax, [ebp - 8]
mov ecx, 0
call fcn.004079f4
mov edx, 0x52d3b4
mov eax, dword [ebp - 8]
call fcn.0051a64c
test al, al
jne 0x52d30e
mov edx, 0x52d3c8
mov eax, dword [ebp - 8]
call fcn.0051a64c
test al, al
jne 0x52d30e
xor ebx, ebx
jmp 0x52d310
mov bl, 1
test bl, bl
je 0x52d320
or esi, 0x100
or esi, 0x8000
push esi
push 0x160
lea eax, [ebp - 0x169]
push eax
mov eax, dword [ebp - 4]
call fcn.004078d8
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesA
push eax
push edi
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
test esi, esi
jne 0x52d34e
xor ebx, ebx
jmp 0x52d36b
test bl, bl
je 0x52d35a
mov ebx, dword [ebp - 0x169]
jmp 0x52d36b
push 0
mov eax, dword [ebp - 0x165]
push eax
push esi
call sub.comctl32.dll_ImageList_GetIcon
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52d39d
lea eax, [ebp - 0x174]
mov edx, 2
call fcn.00406f0c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406f3c
ret
Function at 0x53d35c
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x53d475
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.0051f6c4
test al, al
je 0x53d457
mov eax, dword [ebp - 4]
cmp byte [eax + 0x81], 0
jne 0x53d429
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x54]
xor eax, eax
push ebp
push 0x53d422
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x78], 0
je 0x53d3fe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
mov edx, dword [eax]
call dword [edx + 0x18]
test al, al
je 0x53d3fe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
mov edx, dword [eax]
call dword [edx + 0x94]
test eax, eax
je 0x53d40c
mov eax, dword [ebp - 4]
push eax
push 0x53d258
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
mov edx, dword [eax]
call dword [edx + 0x94]
push eax
call sub.user32.dll_EnumThreadWindows
jmp 0x53d40c
mov eax, dword [ebp - 4]
push eax
push 0x53d258
call sub.user32.dll_EnumWindows
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53d457
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x58]
ret
lea eax, [ebp - 0x10]
mov edx, dword [0x629ab4]
mov ecx, 0
call fcn.004075e8
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.00407e5c
mov ecx, dword [ebp - 0xc]
mov edx, 0x30000
mov eax, dword [ebp - 4]
call fcn.0051eff8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53d47c
lea eax, [ebp - 0x10]
call fcn.00406ed0
lea eax, [ebp - 0xc]
call fcn.00406eac
ret
Function at 0x544454
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x54445c
push ecx
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x5445cb
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x54], 0
jne 0x544594
mov eax, ebx
call fcn.0051f6c4
test al, al
je 0x544594
mov eax, dword [ebx + 0x38]
mov edx, dword [eax]
call dword [edx + 0x94]
mov esi, eax
call sub.kernel32.dll_GetCurrentProcessId
cmp esi, eax
je 0x5444bc
lea eax, [ebp - 0x30]
call fcn.00521d20
cmp byte [ebp - 0x20], 0
je 0x5444cc
cmp dword [ebx + 0x3c], 0x80000000
jb 0x5444cc
mov eax, dword [ebx + 0x3c]
call fcn.00522a30
mov dword [ebx + 0x54], eax
jmp 0x544580
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x38]
call fcn.0040aa20
lea ecx, [ebp - 8]
mov edx, 0x10
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0xbc]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x18]
test al, al
je 0x54455f
push 2
lea ecx, [ebp - 0xa]
mov edx, dword [ebx + 0x3c]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x120]
test al, al
je 0x544580
cmp word [ebp - 0xa], 0x5a4d
jne 0x544580
push 4
lea ecx, [ebp - 0x10]
mov edx, dword [ebx + 0x3c]
add edx, 0x3c
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x120]
test al, al
je 0x544580
mov eax, dword [ebx + 0x3c]
add eax, dword [ebp - 0x10]
mov dword [ebx + 0x54], eax
push 4
lea ecx, [ebp - 0x10]
mov edx, dword [ebx + 0x54]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x120]
test al, al
je 0x544558
cmp dword [ebp - 0x10], 0x4550
je 0x544580
xor eax, eax
mov dword [ebx + 0x54], eax
jmp 0x544580
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, ebx
pop ecx
call fcn.0051eff8
cmp dword [ebx + 0x54], 0
jne 0x544594
xor ecx, ecx
mov edx, 2
mov eax, ebx
call fcn.0051eff8
mov ebx, dword [ebx + 0x54]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5445d2
lea eax, [ebp - 0x34]
call fcn.00406eac
lea eax, [ebp - 0x30]
mov edx, dword [0x521780]
call fcn.00408720
lea eax, [ebp - 8]
call fcn.0040aa08
lea eax, [ebp - 4]
call fcn.0040aa08
ret
Function at 0x547c68
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x547d6a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x62e898]
mov byte [eax], 1
mov eax, 8
call fcn.004047b8
mov ebx, eax
mov dword [ebx], esi
mov eax, dword [ebp - 4]
mov dword [ebx + 4], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push ebx
push 0x547bdc
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_CreateThread_1
mov esi, eax
test esi, esi
jne 0x547d07
mov edx, 8
mov eax, ebx
call fcn.004047d4
call sub.kernel32.dll_GetLastError_1
push eax
push 0
push 0
push 0
xor ecx, ecx
mov dl, 1
mov eax, dword [0x52f800]
call fcn.0053487c
mov edx, eax
test edx, edx
je 0x547cfe
sub edx, 0xffffff90
mov eax, edi
call fcn.0040aa20
jmp 0x547d4c
lea ecx, [ebp - 0x10]
mov dl, 1
mov eax, esi
call fcn.00536b58
mov edx, dword [ebp - 0x10]
mov al, 5
call fcn.005340b4
mov ebx, eax
mov byte [ebx + 0x4c], 1
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x50], eax
lea eax, [ebp - 0x14]
call fcn.0054e45c
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x6c]
call fcn.0040aa20
mov eax, edi
mov edx, ebx
test edx, edx
je 0x547d47
sub edx, 0xffffff90
call fcn.0040aa20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x547d71
lea eax, [ebp - 0x14]
call fcn.0040aa08
lea eax, [ebp - 0x10]
call fcn.0040aa08
ret
Function at 0x551494
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
test dl, dl
je 0x5514a9
add esp, 0xfffffff0
call fcn.00405890
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5515be
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.00405330
lea edx, [ebp - 8]
mov eax, dword [0x62ef54]
mov eax, dword [eax]
call fcn.004cc2d8
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.0041f424
mov edx, dword [ebp - 4]
lea eax, [esi + 4]
call fcn.0040728c
mov edx, dword [esi + 4]
lea eax, [esi + 8]
mov ecx, 0x5515f0
call fcn.00407ff0
mov edx, dword [esi + 4]
lea eax, [esi + 0xc]
mov ecx, 0x55160c
call fcn.00407ff0
mov edx, dword [esi + 4]
lea eax, [esi + 0x10]
mov ecx, 0x551628
call fcn.00407ff0
mov edx, dword [esi + 4]
lea eax, [esi + 0x14]
mov ecx, 0x551644
call fcn.00407ff0
mov edx, dword [esi + 4]
lea eax, [esi + 0x18]
mov ecx, 0x55166c
call fcn.00407ff0
mov edx, dword [esi + 4]
lea eax, [esi + 0x1c]
mov ecx, 0x551690
call fcn.00407ff0
mov edx, dword [esi + 4]
lea eax, [esi + 0x20]
mov ecx, 0x5516b4
call fcn.00407ff0
mov edx, dword [esi + 4]
lea eax, [esi + 0x24]
mov ecx, 0x5516c8
call fcn.00407ff0
mov edx, dword [esi + 4]
lea eax, [esi + 0x28]
mov ecx, 0x5516dc
call fcn.00407ff0
mov edx, dword [esi + 4]
lea eax, [esi + 0x34]
mov ecx, 0x551700
call fcn.00407ff0
lea eax, [esi + 0x2c]
mov edx, 0x55171c
call fcn.0040728c
lea eax, [esi + 0x30]
mov edx, 0x551734
call fcn.0040728c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5515c5
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406f0c
ret

Function at 0x553b58
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x553c18
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
mov eax, dword [0x629dac]
call fcn.0051c2c4
push dword [ebp - 0xc]
push 0x553c34
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
movzx ecx, byte [ebp - 5]
mov eax, dword [0x629db0]
call fcn.00553a40
push dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 3
call fcn.004077c8
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.004078d8
push eax
call fcn.00553a2c
mov esi, eax
test esi, esi
je 0x553bf5
push 0
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
test eax, eax
je 0x553bef
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov ecx, dword [eax]
mov dword [edx], ecx
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x553c1f
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00406f3c
lea eax, [ebp - 4]
call fcn.00406ed0
ret
Function at 0x553e70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe4
mov ebp, eax
xor esi, esi
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x553ed2
mov ebx, 0x71af0000
jmp 0x553ec0
cmp dword [esp + 0x10], 0x10000
jne 0x553eae
push 0x40
push 0x2000
push ebp
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
jmp 0x553ed2
mov edi, dword [esp + 4]
cmp ebx, edi
jne 0x553ebe
sub ebx, 0x10000
jmp 0x553ec0
mov ebx, edi
push 0x1c
lea eax, [esp + 4]
push eax
push ebx
call sub.kernel32.dll_VirtualQuery_1
cmp eax, 0x1c
je 0x553e8e
push 0x40
push 0x1000
push ebp
push esi
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, esi
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5541cc
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
pushfd
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [0x629e9c]
cmp eax, 0x1c
jne 0x554247
cmp dword [ebp - 0xc], 0x1000
jne 0x554242
cmp dword [ebp - 0x18], 0
je 0x554242
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
je 0x554242
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0
jne 0x554221
mov eax, dword [ebp - 0x18]
cmp eax, 0x80000000
jae 0x554247
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x629e6c]
cmp eax, 0
je 0x554242
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x629ec0]
add ebx, dword [ebp - 0x10]
jmp 0x5541e3
popfd
popal
add esp, 0x20
pop ebp
ret 0xc
Function at 0x558110
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x558301
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor edx, edx
mov eax, dword [0x629d1c]
call fcn.005294b0
mov dword [0x6359a8], eax
xor edx, edx
mov eax, dword [0x629d20]
call fcn.005294b0
mov dword [0x6359ac], eax
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, 5
call fcn.0040797c
lea eax, [ebp - 4]
call fcn.00407474
mov byte [eax], 0x72
lea eax, [ebp - 4]
call fcn.00407474
mov byte [eax + 1], 0x64
lea eax, [ebp - 4]
call fcn.00407474
mov byte [eax + 2], 0x65
lea eax, [ebp - 4]
call fcn.00407474
mov byte [eax + 3], 0x63
lea eax, [ebp - 4]
call fcn.00407474
mov byte [eax + 4], 0x20
lea edx, [ebp - 0xc]
mov eax, dword [0x629d94]
call fcn.0051c2c4
push dword [ebp - 0xc]
push 0x558320
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.0051b8f0
push dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 4
call fcn.004077c8
mov eax, dword [ebp - 4]
call fcn.004078d8
push eax
push 0
push 0
call fcn.0040d324
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x5582de
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov dword [0x63599c], esi
mov dword [0x6359a0], edi
cmp dword [0x6359a8], 0
je 0x55822e
cmp dword [0x6359ac], 0
jne 0x5582b0
mov dl, 1
mov eax, dword [0x629c98]
call fcn.005295bc
mov esi, eax
cmp dword [esi], 0x4244c8b
jne 0x5582c2
lea eax, [esi + 4]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x241c8b
jne 0x5582c2
lea eax, [esi + 7]
cmp byte [eax], 0x51
jne 0x5582c2
lea eax, [esi + 8]
cmp byte [eax], 0x53
jne 0x5582c2
lea eax, [esi + 9]
cmp byte [eax], 0xe8
jne 0x5582c2
lea eax, [ebp - 8]
push eax
push 0x40
push 4
lea eax, [esi + 0xa]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x5582c2
lea edx, [esi + 0xe]
lea eax, [esi + 0xa]
add edx, dword [eax]
mov dword [0x6359a4], edx
mov edx, 0x5580c0
sub edx, esi
sub edx, 0xe
mov dword [eax], edx
lea edx, [ebp - 8]
push edx
mov edx, dword [ebp - 8]
push edx
push 4
push eax
call sub.kernel32.dll_VirtualProtect
mov bl, 1
jmp 0x5582c2
push 0x55806c
push 1
call dword [0x6359a8]
test eax, eax
setne bl
test bl, bl
jne 0x5582de
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x558308
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00406f3c
lea eax, [ebp - 4]
call fcn.00406ed0
ret
Function at 0x558324
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
cmp dword [0x6359a8], 0
je 0x55833c
cmp dword [0x6359ac], 0
jne 0x558395
mov dl, 1
mov eax, dword [0x629c98]
call fcn.005295bc
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea esi, [ebx + 0xa]
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x55837b
mov eax, dword [0x6359a4]
sub eax, ebx
sub eax, 0xe
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
push 4
push esi
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x5583a0
push 0x55806c
call dword [0x6359ac]
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x57146c
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
mov eax, ebx
mov edx, 0x10
call fcn.00407f18
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x571491
sub eax, 4
mov eax, dword [eax]
mov dword [esp], eax
push esp
mov eax, dword [ebx]
call fcn.00407d8c
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x5714b0
mov eax, ebx
mov edx, dword [esp]
call fcn.00407f18
pop ecx
pop edx
pop ebx
ret
Function at 0x5a7408
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
lea ecx, [eax + 0xc]
mov ecx, dword [ecx]
mov dword [edx + 0xc], ecx
lea ecx, [eax + 0x10]
mov ecx, dword [ecx]
mov dword [edx + 0x10], ecx
add eax, 0x14
mov eax, dword [eax]
mov dword [edx + 0x14], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0x14]
mov ebx, ecx
shl ebx, 0x18
shr ecx, 8
or ebx, ecx
mov ecx, ebx
movzx ebx, cl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 4], ebx
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
mov esi, dword [ebx*4 + str.cwko0]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 8], ebx
shr ecx, 0x18
movzx ecx, cl
mov ecx, dword [ecx*4 + str.cwko0]
mov ebx, esi
shl ebx, 8
shr esi, 0x18
or ebx, esi
xor ebx, dword [esp + 4]
mov esi, dword [esp + 8]
shl esi, 0x10
mov edi, dword [esp + 8]
shr edi, 0x10
or esi, edi
xor ebx, esi
mov esi, ecx
shl esi, 0x18
shr ecx, 8
or esi, ecx
xor ebx, esi
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x62c5a8]
mov dword [edx + eax*4 + 0x18], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x18]
mov dword [edx + eax*4 + 0x1c], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x20], ebx
mov ecx, dword [edx + eax*4 + 0xc]
xor ecx, ebx
mov dword [edx + eax*4 + 0x24], ecx
mov ebx, dword [edx + eax*4 + 0x10]
xor ebx, ecx
mov dword [edx + eax*4 + 0x28], ebx
mov ecx, dword [edx + eax*4 + 0x14]
xor ecx, ebx
mov dword [edx + eax*4 + 0x2c], ecx
add eax, 6
cmp eax, 0x2e
jl 0x5a7443
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x5a7518
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
lea ecx, [eax + 0xc]
mov ecx, dword [ecx]
mov dword [edx + 0xc], ecx
lea ecx, [eax + 0x10]
mov ecx, dword [ecx]
mov dword [edx + 0x10], ecx
lea ecx, [eax + 0x14]
mov ecx, dword [ecx]
mov dword [edx + 0x14], ecx
lea ecx, [eax + 0x18]
mov ecx, dword [ecx]
mov dword [edx + 0x18], ecx
add eax, 0x1c
mov eax, dword [eax]
mov dword [edx + 0x1c], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0x1c]
mov edi, ecx
shl edi, 0x18
shr ecx, 8
or edi, ecx
mov ecx, edi
movzx ecx, cl
mov ecx, dword [ecx*4 + str.cwko0]
mov dword [esp + 4], ecx
mov ecx, edi
shr ecx, 8
movzx ecx, cl
mov ecx, dword [ecx*4 + str.cwko0]
mov ebx, edi
shr ebx, 0x10
movzx ebx, bl
mov esi, dword [ebx*4 + str.cwko0]
mov ebx, edi
shr ebx, 0x18
movzx ebx, bl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 8], ebx
mov ebx, ecx
shl ebx, 8
shr ecx, 0x18
or ebx, ecx
xor ebx, dword [esp + 4]
mov ecx, esi
shl ecx, 0x10
shr esi, 0x10
or ecx, esi
xor ebx, ecx
mov ecx, dword [esp + 8]
shl ecx, 0x18
mov esi, dword [esp + 8]
shr esi, 8
or ecx, esi
xor ebx, ecx
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x62c5a8]
mov dword [edx + eax*4 + 0x20], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x20]
mov dword [edx + eax*4 + 0x24], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x28], ebx
mov edi, dword [edx + eax*4 + 0xc]
xor edi, ebx
mov dword [edx + eax*4 + 0x2c], edi
movzx ecx, byte [edx + eax*4 + 0x2c]
mov ecx, dword [ecx*4 + str.cwko0]
mov dword [esp + 4], ecx
mov ecx, edi
shr ecx, 8
movzx ecx, cl
mov ecx, dword [ecx*4 + str.cwko0]
mov ebx, edi
shr ebx, 0x10
movzx ebx, bl
mov esi, dword [ebx*4 + str.cwko0]
mov ebx, edi
shr ebx, 0x18
movzx ebx, bl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 8], ebx
mov ebx, ecx
shl ebx, 8
shr ecx, 0x18
or ebx, ecx
xor ebx, dword [esp + 4]
mov ecx, esi
shl ecx, 0x10
shr esi, 0x10
or ecx, esi
xor ebx, ecx
mov ecx, dword [esp + 8]
shl ecx, 0x18
mov esi, dword [esp + 8]
shr esi, 8
or ecx, esi
xor ebx, ecx
xor ebx, dword [edx + eax*4 + 0x10]
mov dword [edx + eax*4 + 0x30], ebx
mov ecx, dword [edx + eax*4 + 0x14]
xor ecx, dword [edx + eax*4 + 0x30]
mov dword [edx + eax*4 + 0x34], ecx
mov ebx, dword [edx + eax*4 + 0x18]
xor ebx, ecx
mov dword [edx + eax*4 + 0x38], ebx
mov ecx, dword [edx + eax*4 + 0x1c]
xor ecx, ebx
mov dword [edx + eax*4 + 0x3c], ecx
add eax, 8
cmp eax, 0x34
jl 0x5a7563
add esp, 0xc
pop edi
pop esi
pop ebx
ret