joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4028cd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x409d58
cmp edx, dword [eax]
je 0x4028ef
add eax, 8
inc ecx
cmp eax, 0x409de8
jl 0x4028e0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x409d58]
jne 0x402a1d
mov eax, dword [0x40c558]
cmp eax, 1
je 0x4029f7
test eax, eax
jne 0x402920
cmp dword [0x409ca0], 1
je 0x4029f7
cmp edx, 0xfc
je 0x402a1d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402957
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004033f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402d90
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40299a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402d90
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40644c
push edi
call fcn.00404bc0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004033f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403400
lea eax, [ebp - 0xa0]
push 0x40642c
push eax
call fcn.00403400
push dword [esi + 0x409d5c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403400
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404b34
add esp, 0x2c
pop edi
jmp 0x402a1d
lea eax, [ebp + 8]
lea esi, [esi + 0x409d5c]
push 0
push eax
push dword [esi]
call fcn.00402d90
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x449d7b
Capabilities:
Check for peb beingdebugged flag

Disassembly:
add byte [edx], bh
add byte [ebx], dh
push 0x72006100
add byte [eax], dh
popal
add byte [edx], dh
sub eax, 0x33006d00
add byte [0x30003000], dh
add byte [eax + eax], dh
xor byte [eax], al
cmp dword [eax], eax
add byte [eax], al
add al, 0xe3
add eax, dword [eax]
add byte fs:[edi], ch
imul eax, dword [eax], 0x3a0064
jae 0x449db0
push 0x72006100
add byte [eax], dh
popal
add byte [edx], dh
sub eax, 0x33006d00
add byte [0x75003000], dh
add byte [ebx], dh
add byte [ecx], bh
add byte [eax], dh
add byte [eax + eax], dh
add byte [eax], al
add byte [eax], al
les ecx, [edi]
Function at 0x4033e8
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.0040624c
test esi, esi
jne 0x403420
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.00406388
jmp 0x40343e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040332c
mov edi, eax
test esi, esi
je 0x40343e
cmp dword [ebx], 0
je 0x40343e
dec esi
jmp 0x403427
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403470
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x545008], 0x8088405
inc edx
mov dword [ebx + 0x545008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403b84
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x545024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403c1c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403bfc
xor eax, eax
push ebp
push 0x403bf5
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 0x403c54
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 0x403bfc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x545024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x545024], ax
mov esp, ebp
pop ebp
ret
Function at 0x404404
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.004046b8
mov byte [esp], al
cmp byte [esp], 0
jne 0x40458d
test edi, edi
je 0x40458d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4044c4
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40449f
cmp edi, 0xffffffff
je 0x404463
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x404463
mov byte [esp], 0
jmp 0x40458d
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40449f
test ebx, ebx
jne 0x404498
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00401400
test eax, eax
jne 0x404498
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40458d
pause
dec ebp
test ebp, ebp
jg 0x404448
cmp edi, 0xffffffff
je 0x4044c4
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4044c2
mov byte [esp], 0
jmp 0x40458d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x404412
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00401400
cmp ebx, eax
jne 0x4044c4
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00404600
mov edx, eax
mov ebx, dword [0x5558cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40452b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x404529
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40452b
xor edi, edi
cmp byte [esp], 0
je 0x404554
mov ebx, dword [esi]
test bl, 1
jne 0x40456d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00401400
cmp ebx, eax
jne 0x404531
mov byte [esp + 1], 1
jmp 0x40456d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00401400
cmp ebx, eax
jne 0x404554
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4044de
cmp byte [esp], 0
je 0x40458d
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 0x404fb4
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x557aec
cmp dword [ebp + 0xc], 2
jl 0x404fc8
mov ebx, 0x557b1c
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x405000
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x4012b8
mov dword [0x555014], eax
mov eax, 0x4012c0
mov dword [0x555018], eax
mov eax, ebx
call fcn.00404ea0
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x405035
cmp al, 3
jge 0x405035
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x405046
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x405051
call dword [ecx + eax*4]
cmp dword [0x555038], 0
jne 0x405067
mov byte [0x555040], 1
fnstcw word [0x545024]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.004052e4
call fcn.00404f4c
ret 4

Function at 0x405254
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x555054], 0
je 0x4052b5
cmp word [0x555330], 0xd7b2
jne 0x40527d
cmp dword [0x555338], 0
jbe 0x40527d
mov eax, 0x55532c
call dword [0x555348]
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 0x4052e0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x545030], 0
jne 0x4052d1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405480
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 [0x545034], 0
je 0x4054a6
mov edx, esi
mov eax, ebx
call dword [0x545034]
jmp 0x4054b5
mov eax, 8
call fcn.00403074
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x555055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405448
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 0x406d5c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x406d9e
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x406dbe
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040644c
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x408b68
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 0x40aa1c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x557b64
push 0xa
push 0x40aab0
mov eax, dword [0x557b50]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40aa40
call fcn.004167c8
push ebx
mov eax, dword [0x557b50]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40aa57
call fcn.004167c8
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40aa69
call fcn.004167c8
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x557b68], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x557b6c], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x557b70], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x557b74], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x557b78], ecx
add edx, dword [eax + 0x14]
mov dword [0x557b7c], edx
pop esi
pop ebx
ret

Function at 0x40c760
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40c809
test eax, edx
je 0x40c80c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40c789
push edx
mov edx, eax
mov eax, esp
call fcn.00406468
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40c79f
push eax
lea eax, [esp + 8]
call fcn.00406468
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40c7ae
movzx eax, word [eax]
sub eax, ecx
jmp 0x40c7d5
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 0x40c7ef
add ecx, 4
js 0x40c7c6
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40c7ec
push eax
mov eax, ecx
mov edx, 2
call fcn.00405520
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40c7d3
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40c7d5
xor eax, eax
ret
test eax, eax
je 0x40c81c
test edx, edx
jne 0x40c770
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004062d8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40da02
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40da23
cmp ebx, 3
je 0x40da23
cmp ebx, 0x7b
je 0x40da23
mov eax, esi
call fcn.0040d9a4
test al, al
jne 0x40da27
xor eax, eax
jmp 0x40da29
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004062d8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40da45
test al, 0x10
jne 0x40da49
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x40db64
Capabilities:
Get file attributes

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

Function at 0x40db78
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.004062d8
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x40db9a
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4138b4
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 0x4138ed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406388
jmp 0x4138f6
mov eax, ebx
mov edx, esi
call fcn.0040624c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x413900
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 0x413922
movzx eax, word [esp]
jmp 0x413924
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4141f8
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 0x41431d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041400c
mov esi, eax
mov eax, dword [0x554a50]
cmp byte [eax], 0
je 0x4142c5
mov eax, dword [0x5544d0]
call fcn.00403550
call fcn.004031dc
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 [0x4141d4]
call fcn.00407c64
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 0x414338
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x414301
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x55441c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x557b50]
call fcn.00407d58
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 0x414324
lea eax, [ebp - 4]
mov edx, dword [0x4141d4]
call fcn.00407c70
ret
Function at 0x414f48
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 0x41501e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004062a0
lea eax, [ebp - 4]
call fcn.00406cbc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004062d8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x415008
mov eax, ebx
call fcn.00403074
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x415001
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.004062d8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x414feb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x415030
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x414feb
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 0x415008
mov eax, dword [ebp - 0x10]
call fcn.00403090
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415025
lea eax, [ebp - 4]
call fcn.0040623c
ret

Function at 0x416640
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.004058cc
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 0x4165ea
mov eax, edi
add eax, eax
call fcn.00403074
mov esi, eax
jmp 0x4165ec
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 0x416625
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 0x41660f
mov eax, esp
cmp esi, eax
je 0x416632
mov eax, esi
call fcn.00403090
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 0x41666c
cmp bl, 0
je 0x416668
cmp bl, 0x41
jl 0x416663
cmp bl, 0x5a
jg 0x416663
or bl, 0x20
xor al, bl
inc esi
jmp 0x416647
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4165ac

Function at 0x4306ac
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.004303b0
dec esi
jne 0x4306ce
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x43188c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x559e98
cmp dword [edi], 0
jne 0x431908
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x559e94]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x545e40
mov ecx, 2
call fcn.0040322c
mov edx, 0x431864
lea eax, [esi + 5]
call fcn.00431884
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00431884
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 0x4318dd
mov dword [0x559e94], 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 0x434134
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.004062d8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x43418c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x554d40]
mov dl, 1
mov eax, dword [0x433a8c]
call fcn.00414434
call fcn.00404c54
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00433c14
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 0x435a20
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 0x435a26
ret
Function at 0x43f458
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x43f6bb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
xor edx, edx
call fcn.004062a0
lea eax, [ebp - 0x120]
xor ecx, ecx
mov edx, 0x11c
call fcn.0040367c
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call sub.kernel32.dll_GetVersionExW
lea eax, [ebp - 0x144]
xor ecx, ecx
mov edx, 0x24
call fcn.0040367c
push 0x43f6c8
push 0x43f6f0
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.004096cc
test eax, eax
je 0x43f4e2
lea edx, [ebp - 0x144]
push edx
call eax
jmp 0x43f4ee
lea eax, [ebp - 0x144]
push eax
call sub.kernel32.dll_GetSystemInfo_1
cmp dword [ebp - 0x110], 2
jne 0x43f69b
test bl, bl
je 0x43f51e
call fcn.0043f868
mov edx, dword [eax]
mov dword [ebp - 0x11c], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x118], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffffd
sub eax, 2
jae 0x43f539
lea eax, [ebp - 4]
mov edx, 0x43f718
call fcn.004062a0
cmp dword [ebp - 0x11c], 5
jne 0x43f55d
cmp dword [ebp - 0x118], 0
jne 0x43f55d
lea eax, [ebp - 4]
mov edx, 0x43f73c
call fcn.004062a0
jmp 0x43f69b
cmp dword [ebp - 0x11c], 5
jne 0x43f581
cmp dword [ebp - 0x118], 1
jne 0x43f581
lea eax, [ebp - 4]
mov edx, 0x43f764
call fcn.004062a0
jmp 0x43f69b
cmp dword [ebp - 0x11c], 5
jne 0x43f5c7
cmp dword [ebp - 0x118], 2
jne 0x43f5c7
cmp byte [ebp - 6], 1
jne 0x43f5b5
cmp word [ebp - 0x144], 9
jne 0x43f5b5
lea eax, [ebp - 4]
mov edx, 0x43f764
call fcn.004062a0
jmp 0x43f69b
lea eax, [ebp - 4]
mov edx, 0x43f788
call fcn.004062a0
jmp 0x43f69b
cmp dword [ebp - 0x11c], 6
jne 0x43f5eb
cmp dword [ebp - 0x118], 0
jne 0x43f5eb
lea eax, [ebp - 4]
mov edx, 0x43f7bc
call fcn.004062a0
jmp 0x43f69b
cmp dword [ebp - 0x11c], 6
jne 0x43f60f
cmp dword [ebp - 0x118], 1
jne 0x43f60f
lea eax, [ebp - 4]
mov edx, 0x43f7e4
call fcn.004062a0
jmp 0x43f69b
cmp dword [ebp - 0x11c], 6
jne 0x43f635
mov eax, dword [ebp - 0x118]
add eax, 0xfffffffe
sub eax, 2
jae 0x43f635
lea eax, [ebp - 4]
mov edx, 0x43f804
call fcn.004062a0
jmp 0x43f69b
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jne 0x43f65a
mov edx, dword [ebp - 0x118]
sub edx, 4
jne 0x43f65a
lea eax, [ebp - 4]
mov edx, 0x43f824
call fcn.004062a0
jmp 0x43f69b
cmp eax, 0xa
jne 0x43f689
cmp dword [ebp - 0x114], 0x55f0
jae 0x43f67a
lea eax, [ebp - 4]
mov edx, 0x43f824
call fcn.004062a0
jmp 0x43f69b
lea eax, [ebp - 4]
mov edx, 0x43f848
call fcn.004062a0
jmp 0x43f69b
cmp eax, 0xb
jb 0x43f69b
lea eax, [ebp - 4]
mov edx, 0x43f848
call fcn.004062a0
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040624c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f6c2
lea eax, [ebp - 4]
call fcn.0040623c
ret