joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x35032348
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x374f51ad
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40123d
Capabilities:
Create pipe
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0040b4b0
mov eax, dword [0x245923c]
mov ecx, dword [0x2458cc8]
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x401316
mov edi, ecx
mov ebx, eax
cmp dword [0x245923c], 0x959
jne 0x401306
push esi
lea eax, [ebp - 0x800]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push str.xajoraboyufutudani
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push esi
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
lea eax, [ebp - 0x400]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
call fcn.00401007
add edi, 8
dec ebx
jne 0x401269
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407875
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x440460]
jne 0x40787f
repz ret
jmp fcn.0040b4db

Function at 0x40799b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x440460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004053b0
and dword [ebp - 0x14], 0
cmp dword [0x4467d8], 0
mov dword [ebp - 0x18], eax
jne 0x407a4e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407af6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407af6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4467d8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4467dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4467e0], eax
call edi
push eax
call esi
mov dword [0x4467e8], eax
test eax, eax
je 0x407a4e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4467e4], eax
mov eax, dword [0x4467e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407aa7
cmp dword [0x4467e8], ecx
je 0x407aa7
push eax
call esi
push dword [0x4467e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407aa7
test ebx, ebx
je 0x407aa7
call edi
test eax, eax
je 0x407a9e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407a9e
test byte [ebp - 8], 1
jne 0x407aa7
or dword [ebp + 0x10], 0x200000
jmp 0x407ada
mov eax, dword [0x4467dc]
cmp eax, dword [ebp - 0x18]
je 0x407ada
push eax
call esi
test eax, eax
je 0x407ada
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407ada
mov eax, dword [0x4467e0]
cmp eax, dword [ebp - 0x18]
je 0x407ada
push eax
call esi
test eax, eax
je 0x407ada
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4467d8]
call esi
test eax, eax
je 0x407af6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407af8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407875
leave
ret
Function at 0x403360
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004058f0
test esi, esi
jne 0x403398
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405a2c
jmp 0x4033b6
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004032a4
mov edi, eax
test esi, esi
je 0x4033b6
cmp dword [ebx], 0
je 0x4033b6
dec esi
jmp 0x40339f
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403a64
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4c4024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403afc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403adc
xor eax, eax
push ebp
push 0x403ad5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403b34
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403adc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4c4024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4c4024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404c9c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c7050], 0
je 0x404cfd
cmp word [0x4c732c], 0xd7b2
jne 0x404cc5
cmp dword [0x4c7334], 0
jbe 0x404cc5
mov eax, 0x4c7328
call dword [0x4c7344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404d28
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4c4030], 0
jne 0x404d19
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404ea8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4c4034], 0
je 0x404ece
mov edx, esi
mov eax, ebx
call dword [0x4c4034]
jmp 0x404edd
mov eax, 8
call fcn.00402fec
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4c7051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404e70
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x409408
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov ebx, eax
xor esi, esi
push 0x40
push ebx
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x409447
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x409447
cmp dword [eax + 0x3c], 0
je 0x409447
mov esi, dword [eax + 0x3c]
add esi, ebx
push 0xf8
push esi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x409445
cmp dword [esi], 0x4550
je 0x409447
xor esi, esi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x40a118
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4c9bd4
push 0xa
push 0x40a1ac
mov eax, dword [0x4c9b4c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40a13c
call fcn.0041293c
push ebx
mov eax, dword [0x4c9b4c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40a153
call fcn.0041293c
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40a165
call fcn.0041293c
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4c9bd8], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4c9bdc], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4c9be0], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4c9be4], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4c9be8], ecx
add edx, dword [eax + 0x14]
mov dword [0x4c9bec], edx
pop esi
pop ebx
ret

Function at 0x40b964
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40ba0d
test eax, edx
je 0x40ba10
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40b98d
push edx
mov edx, eax
mov eax, esp
call fcn.00405b0c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40b9a3
push eax
lea eax, [esp + 8]
call fcn.00405b0c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40b9b2
movzx eax, word [eax]
sub eax, ecx
jmp 0x40b9d9
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 [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40b9f3
add ecx, 4
js 0x40b9ca
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40b9f0
push eax
mov eax, ecx
mov edx, 2
call fcn.00404f48
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40b9d7
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40b9d9
xor eax, eax
ret
test eax, eax
je 0x40ba20
test edx, edx
jne 0x40b974
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.0040597c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40c956
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40c977
cmp ebx, 3
je 0x40c977
cmp ebx, 0x7b
je 0x40c977
mov eax, esi
call fcn.0040c8f8
test al, al
jne 0x40c97b
xor eax, eax
jmp 0x40c97d
mov al, 1
pop esi
pop ebx
ret
Function at 0x410108
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 0x410141
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405a2c
jmp 0x41014a
mov eax, ebx
mov edx, esi
call fcn.004058f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x410154
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x410176
movzx eax, word [esp]
jmp 0x410178
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x410900
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 0x410a25
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00410714
mov esi, eax
mov eax, dword [0x4c68a4]
cmp byte [eax], 0
je 0x4109cd
mov eax, dword [0x4c65fc]
call fcn.004034b0
call fcn.00403154
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 [0x4108dc]
call fcn.004070c4
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 0x410a40
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x410a09
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4c659c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4c9b4c]
call fcn.004071b8
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 0x410a2c
lea eax, [ebp - 4]
mov edx, dword [0x4108dc]
call fcn.004070d0
ret
Function at 0x411630
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 0x411706
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405944
lea eax, [ebp - 4]
call fcn.00406360
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040597c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4116f0
mov eax, ebx
call fcn.00402fec
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4116e9
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.0040597c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4116d3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x411718
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4116d3
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 0x4116f0
mov eax, dword [ebp - 0x10]
call fcn.00403008
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41170d
lea eax, [ebp - 4]
call fcn.004058e0
ret

Function at 0x41276b
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.00405278
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar
mov edi, eax
cmp edi, 0x104
jbe 0x41278e
mov eax, edi
add eax, eax
call fcn.00402fec
mov esi, eax
jmp 0x412790
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4127c9
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 0x4127b3
mov eax, esp
cmp esi, eax
je 0x4127d6
mov eax, esi
call fcn.00403008
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 0x412810
cmp bl, 0
je 0x41280c
cmp bl, 0x41
jl 0x412807
cmp bl, 0x5a
jg 0x412807
or bl, 0x20
xor al, bl
inc esi
jmp 0x4127eb
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x412750
Function at 0x42aca4
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0042a9a8
dec esi
jne 0x42acc6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x42be84
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4cbf08
cmp dword [edi], 0
jne 0x42bf00
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x4cbf04]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4c4cf4
mov ecx, 2
call fcn.004031a4
mov edx, 0x42be5c
lea eax, [esi + 5]
call fcn.0042be7c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042be7c
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 0x42bed5
mov dword [0x4cbf04], 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 0x42f42c
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 0x42f596
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405944
mov eax, dword [ebp - 4]
call fcn.0042ef20
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x42f47e
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040616c
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.0042fa48
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42f553
xor eax, eax
push ebp
push 0x42f54c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0042f12c
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.0042f5c4
test al, al
je 0x42f52a
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00405a2c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x42f52a
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.0040597c
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
test eax, eax
jne 0x42f524
mov eax, dword [ebp - 8]
call fcn.0040597c
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00405a9c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.0042f42c
dec ebx
cmp ebx, 0xffffffff
jne 0x42f4dd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f553
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0042f12c
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
call fcn.0040597c
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0042f118
push eax
call sub.advapi32.dll_RegDeleteKeyW
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f59d
lea eax, [ebp - 0x3c]
call fcn.004058e0
lea eax, [ebp - 8]
mov edx, 2
call fcn.004058e8
ret