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

Disassembly:
cmp eax, edx
je 0x424ee5
test eax, edx
je 0x424ee8
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x424ea3
movzx eax, word [eax]
sub eax, ecx
jmp 0x424eca
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x424ecb
add ecx, 4
js 0x424ebb
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x424ec8
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x424eca
xor eax, eax
ret
test eax, eax
je 0x424ef4
test edx, edx
jne 0x424e94
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040af30
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42628a
test ah, 4
je 0x426283
test bl, bl
jne 0x426248
mov al, 1
jmp 0x4262b1
test al, 0x10
je 0x426250
xor eax, eax
jmp 0x4262b1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x426274
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x4262b1
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4262b1
test al, 0x10
sete al
jmp 0x4262b1
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4262ab
cmp ebx, 3
je 0x4262ab
cmp ebx, 0x7b
je 0x4262ab
mov eax, esi
call fcn.004261e0
test al, al
jne 0x4262af
xor eax, eax
jmp 0x4262b1
mov al, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.0040af30
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x426356
test esi, 0x400
jne 0x4262ed
test esi, 0x10
setne bl
jmp 0x426356
cmp byte [esp], 0
je 0x426321
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x426356
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x426356
test esi, 0x10
je 0x42632d
mov bl, 1
jmp 0x426356
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x426354
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x426356
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x426360
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.0040af30
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4263b5
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4263af
test ah, 4
je 0x4263af
test al, 0x10
je 0x4263af
mov eax, esi
call fcn.0040af30
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4263b5
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42aea4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x42aedd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a5d4
jmp 0x42aee6
mov eax, ebx
mov edx, esi
call fcn.0040a82c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42aef0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x42af14
movzx eax, word [esp]
jmp 0x42af16
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x42c634
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x42c75b
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042c43c
mov esi, eax
mov eax, dword [0x5f18f8]
cmp byte [eax], 0
je 0x42c701
mov eax, dword [0x5f15b0]
call fcn.00407d8c
call fcn.00407140
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x42c604]
call fcn.0040d1a4
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x42c774
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42c73d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5f1524]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5f563c]
call fcn.0040d768
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c762
lea eax, [ebp - 4]
mov edx, dword [0x42c604]
call fcn.0040d2c8
pop eax
jmp eax
Function at 0x42dbf4
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
mov dword [ebp - 0x11c], 0x114
lea eax, [ebp - 0x11c]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x42dc37
mov eax, dword [ebp - 0x10c]
mov dword [0x5f5900], eax
mov eax, 0x5f5904
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040afcc
mov eax, 0x5f5908
call fcn.0040a43c
xor eax, eax
mov dword [0x5f590c], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x5f57c4], 0xa
jl 0x42dd8d
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x42dd98
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x42dd8d
xor eax, eax
push ebp
push 0x42dd86
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42ddf4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42dce6
cmp dword [ebp - 8], 2
jle 0x42dce6
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42dcb9
adc edx, 0
mov eax, 0x5f5908
call fcn.0040b0a4
lea eax, [ebp - 8]
push eax
mov eax, dword [0x5f5908]
call fcn.0040af30
push eax
push 0
push 0
push 0x42ddf4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x42dd40
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42de14
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42dd40
cmp dword [ebp - 8], 2
jle 0x42dd40
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42dd15
adc edx, 0
mov eax, 0x5f5908
call fcn.0040b0a4
lea eax, [ebp - 8]
push eax
mov eax, dword [0x5f5908]
call fcn.0040af30
push eax
push 0
push 0
push 0x42de14
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x5f590c
push 0
push 0
push 0x42de28
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x42dd6d
xor eax, eax
mov dword [0x5f590c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42dd8d
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x5eb720], 1
mov esp, ebp
pop ebp
ret
Function at 0x42ded0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42dfaa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a874
lea eax, [ebp - 4]
call fcn.0040a9d8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040af30
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42df92
mov eax, ebx
call fcn.00406fcc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42df8b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040af30
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42df73
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42dfbc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42df73
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42df92
mov eax, dword [ebp - 0x10]
call fcn.00406fe8
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42dfb1
lea eax, [ebp - 4]
call fcn.0040a43c
pop eax
jmp eax

Function at 0x42efac
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040a920
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004103f0
mov edi, eax
cmp edi, 0x104
jbe 0x42ef57
mov eax, edi
add eax, eax
call fcn.00406fcc
mov esi, eax
jmp 0x42ef59
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004103f0
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42ef92
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x42ef7c
mov eax, esp
cmp esi, eax
je 0x42ef9f
mov eax, esi
call fcn.00406fe8
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x42efd8
cmp bl, 0
je 0x42efd4
cmp bl, 0x41
jl 0x42efcf
cmp bl, 0x5a
jg 0x42efcf
or bl, 0x20
xor al, bl
inc esi
jmp 0x42efb3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42ef18

Function at 0x42f8f0
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040afcc
add esp, 0x800
pop ebx
ret
Function at 0x4321a8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x4321c8
sub eax, 4
mov eax, dword [eax]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x4321e2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x4321dd
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x4321e7
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x432255
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x43229e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x432213
inc dword [ebp - 0xc]
jmp 0x43222b
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x43222b
cmp dword [ebp - 0xc], 0
jle 0x43222b
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x43224d
xor eax, eax
jmp 0x432249
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x432248
mov eax, esi
jmp 0x4322a1
inc eax
cmp eax, ecx
jle 0x432235
inc esi
cmp esi, dword [ebp - 8]
jl 0x4321ff
jmp 0x43229e
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x43229e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x432276
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x432298
xor eax, eax
jmp 0x432294
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x432293
mov eax, esi
jmp 0x4322a1
inc eax
cmp eax, ecx
jle 0x432280
inc esi
cmp esi, dword [ebp - 8]
jl 0x43225e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4324b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x4324cf
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x4324df
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x432601
test ebx, ebx
jl 0x432601
test esi, esi
jle 0x432601
mov eax, dword [ebp - 8]
call fcn.0040af30
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040af30
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x43259e
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x432601
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x432583
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x432552
inc dword [ebp - 0x14]
jmp 0x432562
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x432562
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x43256d
or eax, 0xffffffff
jmp 0x432583
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x432580
inc eax
jmp 0x432583
or eax, 0xffffffff
test eax, eax
jl 0x43258b
cmp esi, eax
jg 0x432540
cmp esi, eax
jg 0x432596
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x432604
inc edx
dec dword [ebp - 0x1c]
jne 0x43253c
jmp 0x432601
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x432601
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x4325e8
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x4325c7
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x4325d2
or eax, 0xffffffff
jmp 0x4325e8
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x4325e5
inc eax
jmp 0x4325e8
or eax, 0xffffffff
test eax, eax
jl 0x4325f0
cmp esi, eax
jg 0x4325b0
cmp esi, eax
jg 0x4325fb
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x432604
inc edx
dec dword [ebp - 0x1c]
jne 0x4325ac
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x441fe4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x441fec
mov eax, edx
pop esi
pop ebx
ret

Function at 0x444c30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x444c47
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x444c37
mov eax, ecx
pop ebx
ret
Function at 0x455db0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
test dl, dl
je 0x455dc4
add esp, 0xfffffff0
call fcn.00408c00
mov ebx, edx
mov esi, eax
mov dl, 1
mov eax, dword [0x44fe4c]
call fcn.00473890
mov dword [esi + 4], eax
mov dl, 1
mov eax, dword [0x454dec]
call fcn.00476660
mov dword [esi + 8], eax
mov dl, 1
mov eax, dword [0x454dec]
call fcn.00476660
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x10], eax
mov eax, esi
test bl, bl
je 0x455e19
call fcn.00408c58
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c5490
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x4c54d3
cmp byte [ebx + 0x11], 0
jne 0x4c54d3
cmp byte [ebx + 0x24], 0
jne 0x4c54d3
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4c54ea
mov ecx, dword [0x5f1874]
mov dl, 1
mov eax, dword [0x490e8c]
call fcn.0042c8c0
call fcn.00409ab4
pop ebx
ret
mov ecx, dword [0x5f1874]
mov dl, 1
mov eax, dword [0x490e8c]
call fcn.0042c8c0
call fcn.00409ab4
pop ebx
ret

Function at 0x4c5e58
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4c5ea6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004c533c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c5ebf
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4c5ec8
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004c533c
dec esi
jne 0x4c5eea
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret
Function at 0x4c8bc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5f88bc
cmp dword [edi], 0
jne 0x4c8c3c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x5f88b8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5eca9c
mov ecx, 2
call fcn.004073d0
mov edx, 0x4c8b98
lea eax, [esi + 5]
call fcn.004c8bb8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004c8bb8
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4c8c11
mov dword [0x5f88b8], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4e2474
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x22c], eax
xor eax, eax
push ebp
push 0x4e2616
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x489418]
call fcn.004b5328
mov dword [ebp - 4], eax
lea eax, [ebp - 0x220]
xor ecx, ecx
mov edx, 0x208
call fcn.00407e04
push 0x208
lea eax, [ebp - 0x220]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
push 0x4e2628
lea eax, [ebp - 0x220]
push eax
call sub.kernel32.dll_lstrcatW
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004e23f4
test eax, eax
je 0x4e25eb
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 1
mov eax, dword [ebp - 0x14]
push eax
call sub.ntdll_RtlImageDirectoryEntryToData
mov ebx, eax
test ebx, ebx
je 0x4e25e2
cmp dword [ebp - 8], 0
je 0x4e25e2
mov byte [ebp - 0xd], 1
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x4e25e2
dec eax
test eax, eax
jb 0x4e25e2
inc eax
mov dword [ebp - 0x18], eax
xor edi, edi
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp - 0x14]
add eax, esi
mov edx, edi
shl edx, 2
add eax, edx
mov eax, dword [eax]
add eax, esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x744e
jne 0x4e25d8
mov eax, dword [ebx + 0x24]
add eax, esi
mov edx, edi
add edx, edx
add eax, edx
movzx eax, word [eax]
shl eax, 2
mov edx, dword [ebx + 0x1c]
add edx, esi
add eax, edx
mov eax, dword [eax]
add eax, dword [ebp - 0x14]
movzx edx, byte [ebp - 0xd]
add eax, edx
mov eax, dword [eax]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x224]
call fcn.004259d8
mov eax, dword [ebp - 0x224]
push eax
lea eax, [ebp - 0x22c]
mov edx, dword [ebp - 0xc]
mov ecx, 0
call fcn.0040aafc
mov edx, dword [ebp - 0x22c]
lea eax, [ebp - 0x228]
call fcn.0040afe8
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 4]
pop ecx
call fcn.004b3fe0
inc edi
dec dword [ebp - 0x18]
jne 0x4e254a
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e261d
lea eax, [ebp - 0x22c]
call fcn.0040a460
lea eax, [ebp - 0x228]
mov edx, 2
call fcn.0040a49c
pop eax
jmp eax

Function at 0x4e2648
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
pop ebp
xor eax, eax
mov eax, dword fs:[eax + 0x18]
mov eax, dword [eax + 0xc0]
test eax, eax
jne 0x4e266d
xor ecx, ecx
mov eax, dword [0x5ecacc]
lea edx, [esp + 4]
int 0x2e
ret 8
xor ecx, ecx
mov eax, dword [0x5ecacc]
lea edx, [esp + 4]
call dword fs:[0xc0]
add esp, 4
ret 8
Function at 0x507664
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x507823
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a874
mov eax, dword [ebp - 4]
call fcn.00506fb0
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x5076b6
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040b334
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.005082b8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x507797
xor eax, eax
push ebp
push 0x507790
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00507250
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00507858
test al, al
je 0x50776c
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.0040a5d4
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x50776c
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.0040af30
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.005071b0
test al, al
je 0x507766
mov eax, dword [ebp - 8]
call fcn.0040af30
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040af90
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.00507664
dec ebx
cmp ebx, 0xffffffff
jne 0x507715
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x507797
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00507250
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
cmp byte [0x5f890c], 0
je 0x5077d7
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.0040af30
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0050723c
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.005071b0
mov ebx, eax
jmp 0x5077fe
mov eax, dword [ebp - 4]
call fcn.0040af30
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0050723c
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.005071b0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50782a
lea eax, [ebp - 0x3c]
call fcn.0040a43c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a49c
pop eax
jmp eax