joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013d2
Capabilities:
Hide graphical window
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov ax, word [0x403e20]
push esi
push edi
mov word [ebp - 0x400], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x3fe]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push dword [sym.imp.MSVCRT.dll__iob]
mov esi, dword [sym.imp.MSVCRT.dll__wfreopen]
push 0x4032d8
push str.CONIN_
call esi
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x20
push eax
push 0x4032c0
push str.CONOUT_
call esi
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov dword [0x4033e0], eax
lea eax, [ebp - 0x400]
push 0x1ff
push eax
push 0x4032a0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
pop edi
pop esi
test eax, eax
je 0x401473
cmp word [ebp - 0x400], 0x30
jne 0x401473
push 0
push dword [0x4033e0]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40147f
push dword [0x4033e0]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
pop eax
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x4033f8
push dword [0x4033e0]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x50]
mov dword [ebp - 0x54], 0x44
xor esi, esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov edi, 0x403600
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push edi
push esi
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4014ec
push dword [ebp - 0x10]
call fcn.0040105f
pop ecx
mov dword [0x4033e8], eax
jmp 0x401506
push edi
push 0x4032f0
push str.GoAgent
call fcn.00401000
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
push 1
pop eax
pop edi
pop esi
leave
ret

Function at 0x40151d
Capabilities:
Terminate process

Disassembly:
push dword [0x4033e8]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x40153d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 5
push dword [0x4033e0]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x4033e0]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x403308
call dword [sym.imp.MSVCRT.dll_wprintf]
pop ecx
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00401484
push 1
pop eax
ret
Function at 0x401577
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x4033c8]
push esi
push edi
mov dword [ebp - 0x428], eax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x424]
push 0x1ff
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x428]
push eax
push str.MEMORY_LIMIT
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x401683
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.MSVCRT.dll__wtoi]
mov edi, eax
pop ecx
test edi, edi
je 0x401683
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
movzx eax, word [ebp + eax*2 - 0x42a]
sub eax, 0x47
je 0x40160e
sub eax, 4
je 0x401609
dec eax
dec eax
je 0x401604
sub eax, 0x1a
je 0x40160e
sub eax, 4
je 0x401609
dec eax
dec eax
jne 0x401611
shl edi, 0x14
jmp 0x401611
shl edi, 0xa
jmp 0x401611
shl edi, 0x1e
push dword [0x4033e8]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401683
lea eax, [ebp - 0x28]
push 0x28
push eax
push esi
call sub.PSAPI.DLL_GetProcessMemoryInfo
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], edi
jbe 0x401683
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 4
push 0xfffffffffffffff5
call esi
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push eax
call edi
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 0x1c]
push dword [0x4033e8]
push str._n_ndwChildrenPid_d_WorkingSetSize_d_large_than_szMemoryLimit_s__restart._n_n
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 0x10
push 7
push 0xfffffffffffffff5
call esi
push eax
call edi
call fcn.0040151d
pop edi
pop esi
leave
ret
Function at 0x403428
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.004061ec
test esi, esi
jne 0x403460
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.00406328
jmp 0x40347e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040330c
mov edi, eax
test esi, esi
je 0x40347e
cmp dword [ebx], 0
je 0x40347e
dec esi
jmp 0x403467
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403b74
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x55e020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403c0c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403bec
xor eax, eax
push ebp
push 0x403be5
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 0x403c44
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 0x403bec
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x55e020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x55e020], ax
mov esp, ebp
pop ebp
ret
Function at 0x4043f4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004046a8
mov byte [esp], al
cmp byte [esp], 0
jne 0x40457d
test edi, edi
je 0x40457d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4044b4
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40448f
cmp edi, 0xffffffff
je 0x404453
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x404453
mov byte [esp], 0
jmp 0x40457d
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40448f
test ebx, ebx
jne 0x404488
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004013e8
test eax, eax
jne 0x404488
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40457d
pause
dec ebp
test ebp, ebp
jg 0x404438
cmp edi, 0xffffffff
je 0x4044b4
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4044b2
mov byte [esp], 0
jmp 0x40457d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x404402
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004013e8
cmp ebx, eax
jne 0x4044b4
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004045f0
mov edx, eax
mov ebx, dword [0x56a8cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40451b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x404519
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40451b
xor edi, edi
cmp byte [esp], 0
je 0x404544
mov ebx, dword [esi]
test bl, 1
jne 0x40455d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004013e8
cmp ebx, eax
jne 0x404521
mov byte [esp + 1], 1
jmp 0x40455d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004013e8
cmp ebx, eax
jne 0x404544
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4044ce
cmp byte [esp], 0
je 0x40457d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4051c4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x56a054], 0
je 0x405225
cmp word [0x56a330], 0xd7b2
jne 0x4051ed
cmp dword [0x56a338], 0
jbe 0x4051ed
mov eax, 0x56a32c
call dword [0x56a348]
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 0x405250
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x55e02c], 0
jne 0x405241
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4053f0
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 [0x55e030], 0
je 0x405416
mov edx, esi
mov eax, ebx
call dword [0x55e030]
jmp 0x405425
mov eax, 8
call fcn.00403054
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x56a055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4053b8
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 0x4089f4
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x40a94c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x56cb60
push 0xa
push 0x40a9e0
mov eax, dword [0x56cb50]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40a970
call fcn.004150c0
push ebx
mov eax, dword [0x56cb50]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40a987
call fcn.004150c0
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40a999
call fcn.004150c0
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x56cb64], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x56cb68], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x56cb6c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x56cb70], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x56cb74], ecx
add edx, dword [eax + 0x14]
mov dword [0x56cb78], edx
pop esi
pop ebx
ret

Function at 0x40c618
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40c6c1
test eax, edx
je 0x40c6c4
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40c641
push edx
mov edx, eax
mov eax, esp
call fcn.00406408
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40c657
push eax
lea eax, [esp + 8]
call fcn.00406408
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40c666
movzx eax, word [eax]
sub eax, ecx
jmp 0x40c68d
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 0x40c6a7
add ecx, 4
js 0x40c67e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40c6a4
push eax
mov eax, ecx
mov edx, 2
call fcn.00405490
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40c68b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40c68d
xor eax, eax
ret
test eax, eax
je 0x40c6d4
test edx, edx
jne 0x40c628
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406278
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40d67a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40d69b
cmp ebx, 3
je 0x40d69b
cmp ebx, 0x7b
je 0x40d69b
mov eax, esi
call fcn.0040d61c
test al, al
jne 0x40d69f
xor eax, eax
jmp 0x40d6a1
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406278
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40d6bd
test al, 0x10
jne 0x40d6c1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x40d7dc
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406278
push eax
call sub.kernel32.dll_GetFileAttributesW
pop ebx
ret

Function at 0x40d7f0
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00406278
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x40d812
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x411f10
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_1
test eax, eax
jle 0x411f49
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406328
jmp 0x411f52
mov eax, ebx
mov edx, esi
call fcn.004061ec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x411f5c
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_1
test eax, eax
jle 0x411f7e
movzx eax, word [esp]
jmp 0x411f80
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x412854
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 0x412979
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00412668
mov esi, eax
mov eax, dword [0x5691cc]
cmp byte [eax], 0
je 0x412921
mov eax, dword [0x568d00]
call fcn.0040354c
call fcn.004031bc
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_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x412830]
call fcn.00407c04
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_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x412994
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x41295d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x568c60]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x56cb50]
call fcn.00407cf8
push eax
call sub.user32.dll_LoadStringW_1
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 0x412980
lea eax, [ebp - 4]
mov edx, dword [0x412830]
call fcn.00407c10
ret
Function at 0x4135cc
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 0x4136a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406240
lea eax, [ebp - 4]
call fcn.00406c5c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406278
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41368c
mov eax, ebx
call fcn.00403054
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x413685
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.00406278
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41366f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4136b4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41366f
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 0x41368c
mov eax, dword [ebp - 0x10]
call fcn.00403070
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4136a9
lea eax, [ebp - 4]
call fcn.004061dc
ret

Function at 0x414f38
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.0040583c
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x414ee2
mov eax, edi
add eax, eax
call fcn.00403054
mov esi, eax
jmp 0x414ee4
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x414f1d
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 0x414f07
mov eax, esp
cmp esi, eax
je 0x414f2a
mov eax, esi
call fcn.00403070
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 0x414f64
cmp bl, 0
je 0x414f60
cmp bl, 0x41
jl 0x414f5b
cmp bl, 0x5a
jg 0x414f5b
or bl, 0x20
xor al, bl
inc esi
jmp 0x414f3f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x414ea4

Function at 0x42ebb8
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.0042e834
dec esi
jne 0x42ebda
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x42fd98
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x56ee94
cmp dword [edi], 0
jne 0x42fe14
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x56ee90]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x55ee24
mov ecx, 2
call fcn.0040320c
mov edx, 0x42fd70
lea eax, [esi + 5]
call fcn.0042fd90
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042fd90
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 0x42fde9
mov dword [0x56ee90], 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 0x4356f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00406278
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x435750
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x569454]
mov dl, 1
mov eax, dword [0x435050]
call fcn.00412ab8
call fcn.00404c44
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004351d8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x436afc
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x436b02
ret
Function at 0x443964
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x443993
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x443a12
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00442234
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4439e0
mov cx, word [esp]
sub cx, si
jmp 0x4439e2
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4439c9
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x443a08
mov cx, word [esp]
sub cx, si
jmp 0x443a0a
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4439f1
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x443a6f
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.00443638
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x443a5a
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x443a6f
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x44396e
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret