joyce8/EMBER2024-capa huggingface dataset:
Function at 0x103c4a8
Capabilities:
Identify system language via api

Disassembly:
push ebx
mov ebx, eax
test edx, edx
jl 0x103c4b4
cmp edx, 4
jle 0x103c4bb
call fcn.0103c484
mov edx, eax
cmp edx, dword [ebx + 4]
je 0x103c4f9
mov dword [ebx + 4], edx
mov eax, dword [0x1057054]
mov eax, dword [eax]
mov ebx, dword [eax + 8]
dec ebx
cmp ebx, 0
jl 0x103c4f9
push 0
push 0
push 0x40a
mov eax, dword [0x1057054]
mov eax, dword [eax]
mov edx, ebx
call fcn.0100a59c
mov eax, dword [eax + 0x20]
push eax
call sub.user32.dll_SendMessageW
dec ebx
cmp ebx, 0xffffffff
jne 0x103c4d3
pop ebx
ret

Function at 0x1040860
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x10409a0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov esi, dword [fcn.01055ae0]
mov esi, dword [esi]
lea edx, [ebp - 0x10]
mov eax, 0x10409bc
call esi
mov eax, dword [ebp - 0x10]
call fcn.01005440
push eax
push 0x80000001
call sub.advapi32.dll_RegCreateKeyExW
test eax, eax
jne 0x1040978
xor edx, edx
push ebp
push 0x1040971
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.01003268
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.01009020
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 4]
call fcn.010091a4
cmp byte [ebx + 4], 0
je 0x1040948
lea edx, [ebp - 8]
xor eax, eax
call fcn.01003268
mov eax, dword [ebp - 8]
test eax, eax
je 0x1040918
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x1040918
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.01004b30
test eax, eax
je 0x1040921
sub eax, 4
mov eax, dword [eax]
inc eax
mov ebx, eax
add ebx, ebx
push ebx
mov eax, dword [ebp - 8]
call fcn.01005440
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.01005440
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExW
jmp 0x104095a
mov eax, dword [ebp - 4]
call fcn.01005440
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegDeleteValueW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1040978
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10409a7
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.010053ac
lea eax, [ebp - 8]
mov edx, 2
call fcn.010053ac
ret
Function at 0x1041e50
Capabilities:
Enumerate gui resources
Log keystrokes via application hook

Disassembly:
push ebx
push esi
add esp, 0xfffffff0
mov ebx, eax
mov dx, 0x258
mov ax, 0x320
call fcn.0101b4ec
push esp
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_GetClientRect
mov eax, esp
call fcn.01007344
push eax
lea eax, [esp + 4]
call fcn.0100734c
push eax
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x7c]
push 0
call sub.user32.dll_ShowCursor
push 0
mov eax, dword [0x105ab4c]
push eax
mov esi, 0x1041e24
push esi
push 0xd
call sub.user32.dll_SetWindowsHookExW
push 0
mov eax, dword [0x105ab4c]
push eax
push esi
push 0xe
call sub.user32.dll_SetWindowsHookExW
mov eax, dword [ebx + 0x20]
push eax
push 0x1041e30
call sub.user32.dll_EnumWindows
mov ecx, ebx
mov dl, 1
mov eax, dword [0x103c538]
call fcn.0103c654
mov esi, eax
mov dword [ebx + 0x110], esi
push ebx
push 0x1041f18
mov eax, esi
call fcn.0103c730
mov edx, 0x2710
mov eax, dword [ebx + 0x110]
call fcn.0103c720
mov eax, dword [ebx + 0x110]
call fcn.0103c6c8
mov eax, ebx
call fcn.01011308
add esp, 0x10
pop esi
pop ebx
ret

Function at 0x104d780
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x104d85c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.01003424
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 0x101
mov word [ebp - 0x1c], 0
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x6c], esi
mov byte [ebp - 0x68], 0x11
mov dword [ebp - 0x64], edi
mov byte [ebp - 0x60], 0x11
lea edx, [ebp - 0x6c]
mov ecx, 1
mov eax, 0x104d878
call fcn.01009904
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.01005440
push eax
mov eax, esi
call fcn.01005440
push eax
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x104d846
push 0xea60
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x104d846
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
je 0x104d840
cmp dword [ebp - 8], 0
je 0x104d844
xor ebx, ebx
jmp 0x104d846
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x104d863
lea eax, [ebp - 4]
call fcn.010053a4
ret
Function at 0x4e2bf0
Capabilities:
Compute adler32 checksum

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
movzx ecx, di
shr edi, 0x10
test esi, esi
jne 0x4e2c0a
pop edi
lea eax, [esi + 1]
pop esi
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
jbe 0x4e2d1a
push ebp
jmp 0x4e2c20
mov eax, ebx
cmp ebx, 0x15b0
jb 0x4e2c2f
mov eax, 0x15b0
sub ebx, eax
cmp eax, 0x10
jl 0x4e2cdb
mov edx, eax
shr edx, 4
mov ebp, edx
neg ebp
shl ebp, 4
add eax, ebp
jmp 0x4e2c50
movzx ebp, byte [esi]
add ecx, ebp
movzx ebp, byte [esi + 1]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 2]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 3]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 4]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 5]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 6]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 7]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 8]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 9]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xa]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xb]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xc]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xd]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xe]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xf]
add edi, ecx
add ecx, ebp
add edi, ecx
add esi, 0x10
sub edx, 1
jne 0x4e2c50
test eax, eax
je 0x4e2ced
nop
movzx edx, byte [esi]
add ecx, edx
inc esi
add edi, ecx
sub eax, 1
jne 0x4e2ce0
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
ja 0x4e2c20
pop ebp
mov eax, edi
pop ebx
shl eax, 0x10
pop edi
or eax, ecx
pop esi
ret
Function at 0x17ed058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.017ed1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x17ed07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17ed06a
add dl, dl
jne 0x17ed089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17ed0dc
xor eax, eax
add dl, dl
jne 0x17ed096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17ed17d
add dl, dl
jne 0x17ed0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17ed0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17ed0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17ed0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x17ed0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x17ed075
mov eax, 1
add dl, dl
jne 0x17ed0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17ed0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17ed0e1
sub eax, ebx
mov ebx, 1
jne 0x17ed128
mov ecx, 1
add dl, dl
jne 0x17ed10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x17ed119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17ed105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x17ed075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x17ed13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x17ed14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17ed136
cmp eax, 0x7d00
jae 0x17ed16d
cmp eax, 0x500
jb 0x17ed168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x17ed075
cmp eax, 0x7f
ja 0x17ed170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x17ed075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x17ed19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x17ed075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x5c5732d7
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x7f1a3a60
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4018d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42dfd8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x43c3f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.0041a222
add esp, 4
cmp eax, ebx
je 0x4019b4
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x18]
push 8
mov dword [edi], ebx
call fcn.0041a222
add esp, 4
cmp eax, ebx
je 0x401990
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
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 4
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.00419c8c
push 0x4384a4
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.0041b1f1
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], ebx
call fcn.00419c8c
push 0x4384a4
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], vtable.std::bad_alloc.0
call fcn.0041b1f1
int3
Function at 0x40b760
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42df1b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x43c3f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00419a9f
push 4
mov dword [ebp - 4], 0
call fcn.0041a222
mov edi, eax
add esp, 4
test edi, edi
je 0x40b7dc
call fcn.0041951f
mov dword [edi], eax
call fcn.004192de
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004196e5
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40b7d2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0041970d
jmp 0x40b7de
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 4

Function at 0x40cd10
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
test edi, edi
je 0x40cd44
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp + 0xc]
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 8]
lea edx, [esi + ecx]
push edx
push eax
call ebx
cmp eax, 0xffffffff
je 0x40cd4d
test eax, eax
je 0x40cd54
add esi, eax
cmp esi, edi
jb 0x40cd21
pop esi
mov eax, 1
pop ebx
pop ebp
ret
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x40cd80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40cd98
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40cdca
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x40cdc6
cmp esi, eax
jae 0x40cdca
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40cdb8
cmp esi, eax
jb 0x40cdd0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x40cde0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x43e86c
call fcn.0042a839
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x40ce94
test esi, esi
jne 0x40ce94
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x40ce78
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40ce72
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40ce72
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x40ce61
cmp esi, eax
jae 0x40ce65
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40ce53
cmp esi, eax
jb 0x40ce69
xor eax, eax
jmp 0x40ce72
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x40ce9d
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x43e86c
call fcn.0042a839
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x40ce05
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40cfd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push esi
add eax, eax
lea edx, [ebp + 8]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0
mov dword [edi], 0
mov ecx, dword [eax]
push str.USERPROFILE
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d03f
mov eax, dword [ebp + 8]
cmp eax, 1
je 0x40d00e
cmp eax, 2
jne 0x40d029
mov eax, dword [ebp - 4]
test esi, esi
je 0x40d039
test eax, eax
je 0x40d034
test al, 1
jne 0x40d029
mov edx, eax
shr edx, 1
cmp word [esi + edx*2 - 2], 0
je 0x40d039
mov eax, 0xd
mov esp, ebp
pop ebp
ret 4
xor ecx, ecx
mov word [esi], cx
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x40d120
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e46b
mov eax, dword fs:[0]
push eax
mov eax, 0x203c
call fcn.004293b0
mov eax, dword [0x43c3f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
push 0x1ffe
lea ecx, [ebp - 0x200e]
xor eax, eax
push ebx
mov dword [ebp - 0x2014], ebx
push ecx
mov dword [ebp - 0x2024], edi
mov word [ebp - 0x2010], ax
call fcn.00420770
add esp, 0xc
mov dword [ebp - 0x2014], 0x1000
mov dword [ebp - 0x2020], ebx
mov dword [ebp - 0x201c], ebx
mov dword [ebp - 0x2018], ebx
lea edx, [ebp - 0x2048]
push edx
mov dword [ebp - 4], ebx
mov esi, 0x20019
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x2048]
cmp ax, 9
je 0x40d1c4
cmp ax, 6
jne 0x40d1c9
mov esi, 0x20119
push esi
lea eax, [ebp - 0x2020]
push eax
mov eax, dword [ebp + 8]
call fcn.0040cf50
test eax, eax
jne 0x40d1fb
lea ecx, [ebp - 0x2020]
push ecx
lea edi, [ebp - 0x2014]
lea esi, [ebp - 0x2010]
call fcn.0040cfd0
mov edi, dword [ebp - 0x2024]
mov esi, dword [ebp - 0x2020]
cmp esi, ebx
je 0x40d214
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x2020], esi
push edi
lea ecx, [ebp - 0x2010]
mov dword [ebp - 0x201c], ebx
call fcn.0040d440
cmp esi, ebx
je 0x40d231
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419bd7
mov esp, ebp
pop ebp
ret

Function at 0x40d3e0
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.HiofficeClean
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40d40a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
call fcn.0040d250
test eax, eax
je 0x40d43c
push 0xc
call fcn.0041a222
add esp, 4
test eax, eax
je 0x40d433
mov esi, eax
call fcn.00417390
mov esi, eax
call fcn.00417410
xor eax, eax
pop esi
ret
xor eax, eax
mov esi, eax
call fcn.00417410
xor eax, eax
pop esi
ret
Function at 0x40dcf0
Capabilities:
Create process on windows
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x43c3f4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0
push 2
mov dword [ebp - 0x244], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40dd31
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00419bd7
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x23c]
push ecx
push esi
mov dword [ebp - 0x23c], 0x22c
xor edi, edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x40dd50
push 0x4347e0
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40dd7a
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40dd50
jmp 0x40dd80
mov edi, dword [ebp - 0x234]
lea ecx, [ebp - 0x240]
push ecx
push 0xf01ff
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push 0x44
lea edx, [ebp - 0x28c]
push 0
push edx
call fcn.00420770
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x29c]
push ecx
mov ecx, dword [ebp - 0x240]
lea edx, [ebp - 0x28c]
push edx
push eax
push eax
push 0x20
push eax
push eax
push eax
mov word [ebp - 0x25c], ax
mov eax, dword [ebp - 0x244]
push eax
push ebx
push ecx
mov dword [ebp - 0x28c], 0x44
mov dword [ebp - 0x284], str.winsta0default
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edx, dword [ebp - 0x240]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
push esi
call edi
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00419bd7
mov esp, ebp
pop ebp
ret
Function at 0x412a50
Capabilities:
Get memory capacity
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x43c3f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push ecx
push 0x20006
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp + 0x14], 0
mov dword [ebp - 0x24], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x10]
push 4
lea edx, [ebp + 0x14]
push edx
push 4
shr ecx, 0x14
push 0
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebp - 0x28]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x412ad7
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412af6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412b15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00419bd7
mov esp, ebp
pop ebp
ret 0x10
Function at 0x413da0
Capabilities:
Delete file

Disassembly:
push 0x43e8c8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x43e914]
test eax, eax
je 0x413e4f
push ebx
push esi
push edi
xor edi, edi
mov esi, 1
lea ebx, [esi - 1]
cmp ebx, eax
jae 0x413e5b
mov eax, dword [0x43e910]
mov eax, dword [edi + eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x413e38
cmp esi, ebx
jb 0x413e5b
cmp esi, 1
jb 0x413e5b
mov eax, dword [0x43e914]
cmp esi, eax
ja 0x413e5b
mov ecx, dword [0x43e910]
sub eax, esi
mov ebx, eax
mov eax, dword [edi + ecx]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413e1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x413e32
mov eax, dword [0x43e910]
lea ecx, [edi + eax + 4]
lea edx, [edi + eax]
mov eax, ebx
call fcn.00415430
dec dword [0x43e914]
mov eax, dword [0x43e914]
inc esi
lea ecx, [esi - 1]
add edi, 4
cmp ecx, eax
jb 0x413dc2
pop edi
pop esi
pop ebx
push 0x43e8c8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
ret
push 0x80070057
call fcn.0040cd60
int3
Function at 0x417390
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x43c3f4]
xor eax, esp
mov dword [esp + 0x194], eax
xor eax, eax
push 0x18e
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00420770
add esp, 0xc
lea edx, [esp]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x43e8c8
mov dword [0x43e8e0], esi
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [esp + 0x194]
xor ecx, esp
mov eax, esi
call fcn.00419bd7
mov esp, ebp
pop ebp
ret