joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407440
Capabilities:
Create directory
Get common file path

Disassembly:
mov eax, 0x2028
call fcn.0040af90
mov eax, dword [0x435040]
xor eax, esp
mov dword [esp + 0x2024], eax
push ebx
mov ebx, dword [esp + 0x2030]
push ebp
xor ebp, ebp
mov dword [esp + 8], ebx
push esi
push edi
cmp dword [ebx + 0x3020], ebp
je 0x4074d7
push 0x4291d8
call fcn.00407600
push dword [ebx + 0x3020]
mov ebp, eax
call fcn.00406f70
mov edi, eax
add esp, 8
test edi, edi
jne 0x4074a2
push ebp
call fcn.0041256e
add esp, 4
or eax, 0xffffffff
jmp 0x4075db
push edi
push 0x4291dc
call fcn.004152bc
push edi
mov esi, eax
call fcn.0041256e
add esp, 0xc
test esi, esi
je 0x4074d7
push str.LOADER:_failed_to_set_the_TMP_environment_variable._n
call fcn.00402400
push ebp
call fcn.0041256e
add esp, 8
or eax, 0xffffffff
jmp 0x4075db
lea eax, [esp + 0x34]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str._MEI_d
lea eax, [esp + 0x1c]
push 0x10
push eax
call fcn.004022d0
add esp, 0x10
xor esi, esi
jmp 0x407509
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00415ae8
add esp, 8
mov edi, eax
push dword [ebx + 0x301c]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407542
push edi
call fcn.0041256e
inc esi
add esp, 4
or ebx, 0xffffffff
cmp esi, 5
jl 0x407505
jmp 0x407578
push 0x1000
lea eax, [ebx + 0x2012]
push eax
push edi
call fcn.00407de0
add esp, 0xc
test eax, eax
jne 0x40756d
push str.LOADER:_length_of_teporary_directory_path_exceeds_maximum_path_length__n
call fcn.00402400
add esp, 4
or ebx, 0xffffffff
jmp 0x40756f
xor ebx, ebx
push edi
call fcn.0041256e
add esp, 4
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x3020], 0
je 0x4075d9
push 0
push 0
push 0x4291d8
call fcn.00407d60
test ebp, ebp
je 0x4075c3
push 0
push 0
push ebp
mov edi, eax
call fcn.00407d60
mov esi, eax
push esi
push edi
call fcn.004152bc
push edi
call fcn.0041256e
push esi
call fcn.0041256e
push ebp
call fcn.0041256e
add esp, 0x2c
jmp 0x4075d9
mov esi, eax
push 0x428f10
push esi
call fcn.004152bc
push esi
call fcn.0041256e
add esp, 0x18
mov eax, ebx
mov ecx, dword [esp + 0x2034]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040ac53
add esp, 0x2028
ret

Function at 0x407600
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.0040af90
mov eax, dword [0x435040]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push 0
push 0
push eax
call fcn.00407d60
add esp, 0xc
lea ecx, [esp]
push 0x1000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, 0x1000
jae 0x407693
test eax, eax
je 0x407693
push 0x1000
lea eax, [esp + 0x2004]
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x1000
jae 0x407693
test eax, eax
je 0x407693
push 0
lea eax, [esp + 0x2004]
push 0
push eax
call fcn.00407de0
add esp, 0xc
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040ac53
add esp, 0x4004
ret
mov ecx, dword [esp + 0x4000]
xor eax, eax
xor ecx, esp
call fcn.0040ac53
add esp, 0x4004
ret
Function at 0x40b7ea
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40b829
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40b829
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b829
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40b829
cmp dword [ecx + 0x74], 0xe
jbe 0x40b829
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4132f8
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x435040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x42d770
push esi
call fcn.0041b7ce
pop ecx
pop ecx
test eax, eax
jne 0x413326
xor al, al
jmp 0x4133a3
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00413039
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x413360
push dword [ebp - 0x210]
call fcn.0041256e
xor al, al
jmp 0x4133a1
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x413366
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x413386
push edx
call fcn.0041322f
pop ecx
test al, al
je 0x413351
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x413394
mov bl, 1
push dword [ebp - 0x210]
call fcn.0041256e
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040ac53
leave
ret
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40b02c], 0x8088405
inc edx
mov dword [0x40b02c], edx
mul edx
mov eax, edx
ret

Function at 0x40765c
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40b55c
mov eax, esi
mov edx, 8
test al, 1
je 0x407678
shr eax, 1
xor eax, 0xedb88320
jmp 0x40767a
shr eax, 1
dec edx
jne 0x40766b
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x407664
pop esi
ret

Function at 0x4076a7
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40b558], 0
jne 0x4076b3
call fcn.0040765c
push 1
push 0x40b558
call fcn.004043fc
mov eax, edi
test esi, esi
je 0x4076de
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40b55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4076b9
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0xd68b9a
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push 0xd68886
pop ebx
sub esp, 4
mov dword [esp], edi
pop eax
call fcn.00d68bc9
or edi, edi
xor dword [ecx], ebx
mov edi, eax
add ecx, 2
or edi, edi
cmp ecx, edx
jl fcn.00d68b9a
add eax, eax
mov eax, 0xa0b4723f
ret
Function at 0x402594
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4025a2
call dword [0x40b004]
or eax, eax
je 0x4025a3
ret
mov al, 1
jmp fcn.00402614

Function at 0x4025ac
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4025ba
call dword [0x40b008]
or eax, eax
jne 0x4025bb
ret
mov al, 2
jmp fcn.00402614

Function at 0x4025c4
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [eax]
test ecx, ecx
je 0x4025fc
test edx, edx
je 0x4025e6
push eax
mov eax, ecx
call dword [0x40b00c]
pop ecx
or eax, eax
je 0x4025f5
mov dword [ecx], eax
ret
mov al, 2
jmp fcn.00402614
mov dword [eax], edx
mov eax, ecx
call dword [0x40b008]
or eax, eax
jne 0x4025df
ret
mov al, 1
jmp fcn.00402614
test edx, edx
je 0x402610
push eax
mov eax, edx
call dword [0x40b004]
pop ecx
or eax, eax
je 0x4025f5
mov dword [ecx], eax
ret

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

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x403780
Capabilities:
Terminate process

Disassembly:
mov al, 0x10
jmp fcn.00402614
cmp eax, edx
je 0x4037f0
cmp word [eax], 8
jb 0x4037a5
push eax
push edx
cmp word [eax], 0x100
je 0x40379b
push eax
call sub.oleaut32.dll_VariantClear
jmp 0x4037a3
add eax, 8
call fcn.00403198
pop edx
pop eax
cmp word [edx], 8
jae 0x4037bc
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
ret
cmp word [edx], 0x100
jne 0x4037dc
mov edx, dword [edx + 8]
or edx, edx
je 0x4037d3
mov ecx, dword [edx - 8]
inc ecx
jle 0x4037d3
mov dword [edx - 8], ecx
mov word [eax], pe_nt_image_headers32
mov dword [eax + 8], edx
ret
mov word [eax], 0
push edx
push eax
call sub.oleaut32.dll_VariantCopyInd
or eax, eax
jne 0x403744
ret

Function at 0x403e30
Capabilities:
Terminate process

Disassembly:
xor edx, edx
mov dword [0x40c028], edx
jmp 0x403d04

Function at 0x40520c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40524e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405258
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405279
mov al, byte [esp]
jmp 0x40527b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x408fbc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00408f70
test al, al
jne 0x408fdd
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x409029
xor eax, eax
push ebp
push 0x409019
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403414
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409020
lea eax, [ebp - 0xc]
call fcn.00408fac
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409330
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x40941f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00406cf4
mov edx, dword [ebp - 8]
mov ecx, 0x409438
xor eax, eax
call fcn.00409224
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x4093ed
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x409350
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x36
call fcn.00408dd8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404c94
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00407284
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x68
call fcn.00408da8
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x404660
call fcn.00405890
call fcn.00402eb4
jmp 0x409350
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409426
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004031b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004031b8
ret

Function at 0x4094d8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x409532
inc esi
xor edi, edi
cmp edi, 1
jne 0x4094fe
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x40950c
cmp edi, 1
jle 0x40950c
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00408fbc
test eax, eax
jne 0x409532
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x409532
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x409532
inc edi
dec esi
jne 0x4094ee
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x602c3390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x602c34ab
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x602c34ab
push 0x6030ca44
push eax
call dword [sym.imp.PNCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x602c33ef
mov edx, dword [esi + 0x4c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
push ecx
push 1
push edx
call dword [sym.imp.PNCRT.dll_fwrite]
push ebx
call dword [sym.imp.PNCRT.dll_fclose]
add esp, 0x14
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x602c34ab
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push str.ProxyAutoConfigFiles
push eax
call dword [ecx + 0xc]
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x64]
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x60]
push ecx
push edx
push eax
call fcn.602c67d0
mov eax, dword [esi + 0x2c]
mov edx, dword [ebp - 4]
add esp, 0x10
mov ecx, dword [eax]
push edx
push str.ProxyAutoConfigFiles
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 4]
test eax, eax
je 0x602c3447
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x54]
test eax, eax
je 0x602c34ab
push 0x20
call sub.PNCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x602c3465
mov ecx, eax
call fcn.602c9470
jmp 0x602c3467
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [eax]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 4]
mov edx, dword [esi + 0x54]
mov edi, edx
or ecx, 0xffffffff
mov ebx, dword [eax]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [ebp - 4]
push edx
push ecx
call dword [ebx + 0x10]
mov esi, dword [esi + 0x2c]
mov eax, dword [ebp - 4]
push eax
push str.LastKnownProxyAutoConfigURL
mov edx, dword [esi]
push esi
call dword [edx + 0x10]
mov eax, dword [ebp - 4]
test eax, eax
je 0x602c34ab
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x602cb8c0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x602cb8eb
mov ecx, dword [esi + 0x18]
lea eax, [esi + 0x14]
push eax
lea edx, [esi + 4]
push ecx
push edx
push 0x602cb860
push 0
push 0
call dword [sym.imp.PNCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 0x10]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret

Function at 0x602cbc50
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push esi
lea ecx, [ebp - 4]
push eax
lea edx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push edx
xor esi, esi
push eax
push ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [ebp - 4]
cmp eax, esi
mov eax, 1
jne 0x602cbc8d
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x602cc420
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60304a78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
test ebx, ebx
jne 0x602cc45a
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push edi
push 0
lea ecx, [ebp - 0x14]
call fcn.602c7940
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 4], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp ecx, 1
jbe 0x602cc48f
cmp byte [ebx + 1], 0x3a
jne 0x602cc48f
push ebx
lea ecx, [ebp - 0x14]
call fcn.602c7a70
jmp 0x602cc50c
add esi, 4
lea ecx, [ebp - 0x14]
push esi
call fcn.602c7a30
mov eax, dword [esi]
test eax, eax
je 0x602cc4a6
mov edx, dword [eax + 0xc]
jmp 0x602cc4a8
mov edx, esi
mov eax, dword [esi]
test eax, eax
je 0x602cc4b3
mov ecx, dword [eax + 4]
jmp 0x602cc4b5
xor ecx, ecx
mov eax, dword [esi]
test eax, eax
je 0x602cc4c0
mov eax, dword [eax + 0xc]
jmp 0x602cc4c2
mov eax, esi
add ecx, edx
push ecx
push eax
call fcn.60304700
mov ecx, dword [esi]
add esp, 8
test ecx, ecx
je 0x602cc4d9
mov ecx, dword [ecx + 0xc]
jmp 0x602cc4db
mov ecx, esi
mov esi, dword [esi]
test esi, esi
je 0x602cc4e6
mov esi, dword [esi + 4]
jmp 0x602cc4e8
xor esi, esi
add esi, ecx
lea ecx, [eax + 1]
cmp ecx, esi
jb 0x602cc4f6
cmp byte [eax], 0x5c
je 0x602cc503
push 0x6030ca70
lea ecx, [ebp - 0x14]
call fcn.602c7b20
push ebx
lea ecx, [ebp - 0x14]
call fcn.602c7b20
mov eax, dword [ebp - 0x14]
xor esi, esi
test eax, eax
je 0x602cc51a
mov eax, dword [eax + 0xc]
jmp 0x602cc51d
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp - 0x14]
and al, 0xfe
test ecx, ecx
je 0x602cc532
mov ecx, dword [ecx + 0xc]
jmp 0x602cc535
lea ecx, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x602cc549
mov eax, dword [eax + 0xc]
jmp 0x602cc54c
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x602cc55c
mov esi, 1
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.602c7a10
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x602dcd30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
xor eax, eax
push esi
mov ecx, dword [edx]
mov edx, dword [edx + 4]
cmp ecx, 0x10
jae 0x602dcd62
test ecx, ecx
je 0x602dcd8b
mov esi, eax
add edx, 2
shr esi, 0x1c
shl eax, 4
xor esi, eax
xor eax, eax
mov ax, word [edx - 2]
xor eax, esi
dec ecx
jne 0x602dcd47
pop esi
pop ebp
ret
mov esi, ecx
shr esi, 3
cmp ecx, esi
jb 0x602dcd8b
push ebx
push edi
lea edi, [esi + esi]
mov ebx, eax
sub ecx, esi
shr ebx, 0x1c
shl eax, 4
xor ebx, eax
xor eax, eax
mov ax, word [edx]
add edx, edi
xor eax, ebx
cmp ecx, esi
jae 0x602dcd70
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x603016e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
xor eax, eax
mov cl, byte [edx]
test cl, cl
je 0x6030170c
push esi
mov esi, eax
and ecx, 0xff
shr esi, 0x1c
shl eax, 4
xor esi, eax
xor esi, ecx
mov cl, byte [edx + 1]
inc edx
mov eax, esi
test cl, cl
jne 0x603016ef
pop esi
pop ebp
ret
Function at 0x401ce0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
push eax
xor ebx, ebx
mov dword [esp + 0x34], 0x9c
call esi
test eax, eax
jne 0x401d31
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], 0x94
call esi
test eax, eax
jne 0x401d31
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x34]
cmp eax, 6
jae 0x401d46
cmp eax, 5
jne 0x401d80
cmp dword [esp + 0x38], 2
jne 0x401d80
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401d73
lea ecx, [esp + 0xc]
push ecx
call eax
cmp word [esp + 0xc], 9
jne 0x401d80
mov ebx, 1
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402410
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx]
lea ecx, [esp + 0x24]
push ecx
push 0x20019
push 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x18], 0
mov dword [ebx], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4024d6
mov ecx, dword [ebx]
mov edx, dword [esp + 0x20]
push esi
mov esi, ecx
shr ecx, 2
push edi
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4024bf
lea ecx, [esp + 0x10]
push ecx
push edx
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x2c]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4024a6
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
pop edi
mov dword [edx], eax
pop esi
mov dword [ebx], ecx
xor eax, eax
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
add esp, 8
ret
or eax, 0xffffffff
pop ebx
add esp, 8
ret
Function at 0x4025f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push edi
or edi, 0xffffffff
test eax, eax
je 0x402733
push ebx
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x40272d
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x40272d
push ebp
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.0040c2e2
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40271a
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402711
push ebx
push ebp
mov byte [esi + ebp], 0
call fcn.0040c680
add esp, 8
test eax, eax
je 0x402711
mov ecx, ebx
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x402690
sub ecx, esi
add eax, ecx
mov cl, byte [eax]
test cl, cl
je 0x4026b3
cmp cl, 0x20
je 0x4026ab
cmp cl, 9
jne 0x4026b3
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4026a1
cmp byte [eax], 0
mov ebx, eax
je 0x4026dd
lea ebx, [ebx]
mov cl, byte [eax]
cmp cl, 0xd
je 0x4026da
cmp cl, 0xa
je 0x4026da
test cl, cl
je 0x4026da
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4026c0
jmp 0x4026dd
mov byte [eax], 0
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4026e2
mov esi, dword [esp + 0x20]
sub eax, edx
test esi, esi
je 0x40270f
mov edi, dword [esp + 0x24]
dec edi
cmp eax, edi
jg 0x4026fe
mov edi, eax
push edi
push ebx
push esi
call fcn.0040c810
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x402711
mov edi, eax
push ebp
call fcn.0040bf42
add esp, 4
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
pop ecx
ret
pop ebx
mov eax, edi
pop edi
pop ecx
ret
mov eax, edi
pop edi
pop ecx
ret
Function at 0x404f70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
test eax, eax
mov ecx, dword [esi]
push ebp
mov ebp, dword [esp + 0x18]
mov dword [esp + 8], 0
mov dword [esp + 0xc], ecx
mov dword [esi], 0
je 0x405021
test ebp, ebp
je 0x405021
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x405021
test ebx, ebx
je 0x405021
lea edx, [esp + 4]
push edx
push 0x20019
push 0
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405004
mov ecx, dword [esi]
push edi
mov edx, ecx
shr ecx, 2
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 8]
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x14]
push ecx
push 0
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x405009
mov eax, edi
pop edi
pop ebp
add esp, 0xc
ret
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov dword [edx], ecx
pop edi
mov dword [esi], eax
xor eax, eax
pop ebp
add esp, 0xc
ret
mov eax, 6
pop ebp
add esp, 0xc
ret