joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004fc0e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1006d050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10042be9
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10042be9
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1004fc85
cmp word [ecx], dx
je 0x1004fc85
mov eax, dword [0x1005d62c]
push edi
dec eax
push eax
push 0x1005d518
call fcn.1004fbad
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1004fcf8
cmp word [eax], dx
je 0x1004fcf8
mov eax, dword [edi]
test eax, eax
je 0x1004fca9
cmp word [eax], dx
je 0x1004fca9
lea eax, [ebp - 0x10]
push eax
call fcn.1004f590
jmp 0x1004fcb2
lea eax, [ebp - 0x10]
push eax
call fcn.1004f62b
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1004fd22
mov eax, dword [0x1005d514]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1005d208
call fcn.1004fbad
add esp, 0xc
test al, al
je 0x1004fd22
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1004fced
cmp word [eax], di
je 0x1004fced
lea eax, [ebp - 0x10]
push eax
call fcn.1004f590
pop ecx
jmp 0x1004fd24
lea eax, [ebp - 0x10]
push eax
call fcn.1004f62b
jmp 0x1004fcea
mov eax, dword [edi]
test eax, eax
je 0x1004fd0f
cmp word [eax], dx
je 0x1004fd0f
lea eax, [ebp - 0x10]
push eax
call fcn.1004f545
pop ecx
jmp 0x1004fd22
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1004fded
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1004fa32
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1004fded
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1004fded
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1004fded
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1004fd7a
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100462f4
test ebx, ebx
je 0x1004fde8
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100462f4
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1004fded
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1004fded
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1003994e
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1004fdef
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10032978
leave
ret
Function at 0x1005281e
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1005279a
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1005298d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1005298d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10052942
jg 0x1005287a
test eax, eax
je 0x10052938
push 1
push 0x1000
call fcn.10045c7d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1005289d
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1005292f
push 0x8000
push ebx
call fcn.100526cb
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100528c6
jg 0x100528c1
cmp ecx, 0x1000
jb 0x100528c6
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1004551d
add esp, 0x10
cmp eax, 0xffffffff
je 0x1005290b
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100528c1
jl 0x100528f2
test ecx, ecx
jne 0x100528b3
push dword [ebp - 0xc]
push ebx
call fcn.100526cb
push esi
call fcn.100417e2
add esp, 0xc
xor ebx, ebx
jmp 0x1005299b
cmp byte [edi + 0x24], 0
je 0x10052922
cmp dword [edi + 0x20], 5
jne 0x10052922
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1005292d
mov ebx, dword [edi + 0x18]
jmp 0x1005292f
xor ebx, ebx
push esi
call fcn.100417e2
pop ecx
jmp 0x1005299b
test ecx, ecx
jg 0x10052904
jl 0x10052942
test eax, eax
jae 0x10052904
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1004777b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10052962
cmp byte [edi + 0x1c], 0
je 0x10052904
jmp 0x10052993
push ebx
call fcn.100501c8
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10052904
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1005299b
cmp byte [edi + 0x1c], 0
je 0x10052998
mov ebx, dword [edi + 0x18]
jmp 0x1005299b
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1004777b
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4010d8
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x80c]
sub esp, 0x88c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp + 0x808], eax
mov eax, dword [ebp + 0x814]
mov dword [ebp - 0x28], eax
push esi
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x44
call dword [edi + 0x1c]
lea eax, [edi + 0x44]
push eax
lea eax, [ebp + 0x5fc]
push eax
call fcn.00403c02
pop ecx
pop ecx
lea esi, [ebp + 0x5fc]
call fcn.0040221a
mov ecx, str..dll_
mov edx, ebx
call fcn.00401718
cmp eax, 0xffffffff
je 0x40118a
push edi
call fcn.0040109d
xor ecx, ecx
test al, al
setne cl
lea eax, [ebp + 0x3f0]
push eax
xor eax, eax
push eax
push eax
lea ecx, [ecx*4 + 0x25]
push ecx
push eax
call dword [edi + 0x20]
lea esi, [ebp + 0x3f0]
call fcn.0040221a
push dword [ebp - 0x28]
lea eax, [ebp + 0x5fc]
push ebx
push eax
mov eax, esi
push eax
lea eax, [ebp - 0x24]
push str.__srundll32.exe_____s_s___s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
jmp 0x4011bf
mov ecx, str..msi
mov edx, ebx
call fcn.00401718
push dword [ebp - 0x28]
cmp eax, 0xffffffff
lea eax, [ebp + 0x5fc]
push ebx
push eax
lea eax, [ebp - 0x24]
je 0x4011b0
push str.msiexec__i___s_s___s
jmp 0x4011b5
push str.__s_s___s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [edi + 0x44]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop esi
test eax, eax
jne 0x4011e7
push 0xc
pop eax
jmp 0x401208
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [edi + 0x24]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x3c]
call dword [edi + 0x28]
push dword [ebp - 0x3c]
call dword [edi + 0x2c]
push dword [ebp - 0x38]
call dword [edi + 0x2c]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0x808]
xor ecx, ebp
call fcn.00403bc5
add ebp, 0x80c
leave
ret 4
Function at 0x4015a7
Capabilities:
Delete directory
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x9c0]
sub esp, 0xa3c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp + 0x9bc], eax
push ebx
push esi
xor ebx, ebx
push edi
lea esi, [ebp - 0x78]
mov byte [ebp - 0x79], bl
mov byte [ebp - 0x7a], 1
call fcn.00401b83
push ebx
mov dword [ebp + 0x1dc], ebx
mov dword [ebp + 0x1e0], ebx
mov dword [ebp + 0x1e4], ebx
mov dword [ebp + 0x1e8], 3
call dword [ebp - 0x3c]
mov dword [ebp + 0x1d8], eax
mov eax, esi
call section..text
cmp eax, ebx
jne 0x401715
lea eax, [ebp + 0x1ec]
push eax
mov edi, esi
call fcn.0040154e
mov edi, eax
cmp edi, ebx
jne 0x4016e3
xor edi, edi
cmp word [ebp + 0x1ec], bx
je 0x40169a
lea esi, [ebp + 0x1ec]
push 3
push 0x4041c8
push esi
call fcn.00403c6b
add esp, 0xc
test eax, eax
je 0x401689
push 3
push 0x4041d0
push esi
call fcn.00403c6b
add esp, 0xc
test eax, eax
je 0x401689
push 6
push 0x4041d8
push esi
call fcn.00403c6b
add esp, 0xc
test eax, eax
je 0x401684
push 6
push str._nodel
push esi
call fcn.00403c6b
add esp, 0xc
test eax, eax
jne 0x40168d
mov byte [ebp - 0x7a], bl
jmp 0x40168d
mov byte [ebp - 0x79], 1
inc edi
lea esi, [ebp + edi*2 + 0x1ec]
cmp word [esi], bx
jne 0x401634
push str.ExecuteFiles
lea eax, [ebp - 0x78]
push eax
call fcn.004014dc
mov esi, eax
push esi
call fcn.00403ca2
pop ecx
test eax, eax
je 0x4016c8
push esi
lea ecx, [ebp + 0x1ec]
lea ebx, [ebp - 0x78]
call fcn.004012e1
xor ebx, ebx
jmp 0x4016dc
lea eax, [ebp + 0x1ec]
push eax
mov edx, str.setup.exe
lea ecx, [ebp - 0x78]
call fcn.0040121f
mov edi, eax
cmp byte [ebp - 0x7a], bl
je 0x4016fe
push 1
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp + 0x1dc]
call fcn.00401889
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea esi, [ebp + 0x1dc]
call fcn.004017bc
cmp byte [ebp - 0x79], bl
je 0x401715
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebx
jmp 0x40170f
Function at 0x401889
Capabilities:
Check if file exists
Delete directory
Delete file
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 0xc], 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
je 0x4018ac
and dword [esi], 0
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x4018cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401975
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x4018c2
push ebx
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jae 0x401959
mov ecx, dword [esi + 8]
mov edx, dword [ecx + eax]
add eax, 4
mov dword [esi], eax
mov ebx, dword [eax + ecx]
add eax, 4
mov dword [esi], eax
cmp ebx, 2
je 0x401959
test ebx, ebx
jne 0x401907
cmp dword [esi + 0xc], 1
jbe 0x401907
add eax, 8
mov dword [esi], eax
add dword [esi], edx
call fcn.004017dd
mov edi, dword [esi]
add edi, dword [esi + 8]
push edi
call fcn.00403ca2
lea eax, [eax + eax + 2]
add dword [esi], eax
pop ecx
call fcn.004017dd
cmp ebx, 1
jne 0x401941
push 0
push edi
mov ecx, esi
call fcn.00401889
test eax, eax
jne 0x401974
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4018d9
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4018d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4018d9
jmp 0x401974
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x401972
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401974
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00403bc5
leave
ret 8
Function at 0x401985
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Set current directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 0xc], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
je 0x4019a9
and dword [esi], 0
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x4019ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401b33
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x4019bf
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jae 0x401b1c
mov ecx, dword [esi + 8]
mov edi, dword [ecx + eax]
add eax, 4
mov dword [esi], eax
mov dword [ebp - 0x220], edi
mov edx, dword [eax + ecx]
add eax, 4
mov dword [ebp - 0x22c], edx
mov dword [esi], eax
cmp edx, 2
je 0x401b1c
test edx, edx
jne 0x401a43
cmp dword [esi + 0xc], 1
jbe 0x401a43
add ecx, eax
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x228]
sub dword [ebp - 0x21c], ecx
mov ebx, dword [ebp - 0x21c]
lea ecx, [ebp + edx - 0x228]
mov bl, byte [ebx + ecx]
inc edx
mov byte [ecx], bl
cmp edx, 8
jb 0x401a26
add eax, 8
mov dword [esi], eax
mov ebx, dword [esi]
lea eax, [ebx + edi]
mov dword [esi], eax
call fcn.004017dd
mov edi, dword [esi]
add edi, dword [esi + 8]
push edi
call fcn.00403ca2
lea eax, [eax + eax + 2]
add dword [esi], eax
pop ecx
call fcn.004017dd
cmp dword [ebp - 0x22c], 1
jne 0x401aa4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401a8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401b33
push 0
push edi
mov ecx, esi
call fcn.00401985
test eax, eax
je 0x4019d5
jmp 0x401b33
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401aba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x401b33
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401b17
push 0
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x220]
mov eax, dword [esi + 8]
add eax, ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esi + 0xc], 1
jbe 0x401b0b
lea eax, [ebp - 0x228]
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4019d5
push 9
pop eax
jmp 0x401b33
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x4019bf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403bc5
leave
ret 8
Function at 0x402254
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x40226b
leave
ret
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 8], ecx
lea edi, [eax + esi]
jmp 0x40228a
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40228f
inc edi
cmp edi, dword [ebp - 8]
jb 0x402281
mov eax, edi
sub eax, esi
cmp edi, dword [ebp - 8]
jae 0x40237e
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x402311
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x4022bb
cmp cl, 0xff
jne 0x402340
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
sub esi, eax
sub esi, 5
mov ebx, esi
mov dword [ebp - 0xc], ebx
test edx, edx
je 0x402351
movzx esi, byte [edx + 0x404244]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
shr ebx, cl
test bl, bl
je 0x402301
cmp bl, 0xff
jne 0x40234e
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, dword [ebp - 0xc]
jmp 0x4022d9
dec ecx
shl edx, cl
and edx, 7
je 0x4022a8
movzx ecx, byte [edx + 0x404244]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x40423c], 0
mov cl, byte [ebx + 4]
je 0x40233d
test cl, cl
je 0x40233d
cmp cl, 0xff
jne 0x4022a8
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x40227c
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x40227c
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0xc]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret

Function at 0x403bc5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x403bcf
repz ret
jmp fcn.00403cbc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4238c0
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.0040b278
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42392a
test ah, 4
je 0x423923
test bl, bl
jne 0x4238e8
mov al, 1
jmp 0x423951
test al, 0x10
je 0x4238f0
xor eax, eax
jmp 0x423951
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x423914
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x423951
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x423951
test al, 0x10
sete al
jmp 0x423951
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x42394b
cmp ebx, 3
je 0x42394b
cmp ebx, 0x7b
je 0x42394b
mov eax, esi
call fcn.00423880
test al, al
jne 0x42394f
xor eax, eax
jmp 0x423951
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x423a38
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.0040b278
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x423a8d
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x423a87
test ah, 4
je 0x423a87
test al, 0x10
je 0x423a87
mov eax, esi
call fcn.0040b278
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x423a8d
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x427df0
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 0x427e29
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a350
jmp 0x427e32
mov eax, ebx
mov edx, esi
call fcn.0040a5a8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x427e3c
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 0x427e5e
movzx eax, word [esp]
jmp 0x427e60
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x428eb0
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 0x428fd5
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00428cb8
mov esi, eax
mov eax, dword [0x6d0008]
cmp byte [eax], 0
je 0x428f7d
mov eax, dword [0x6cfbb0]
call fcn.004076fc
call fcn.00407080
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 [0x428e80]
call fcn.0040d208
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 0x428ff0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x428fb9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x6cfb00]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x6d4634]
call fcn.0040d79c
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 0x428fdc
lea eax, [ebp - 4]
mov edx, dword [0x428e80]
call fcn.0040d32c
ret

Function at 0x42af40
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.0040a6c4
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410394
mov edi, eax
cmp edi, 0x104
jbe 0x42aeeb
mov eax, edi
add eax, eax
call fcn.00406f0c
mov esi, eax
jmp 0x42aeed
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410394
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42af26
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 0x42af10
mov eax, esp
cmp esi, eax
je 0x42af33
mov eax, esi
call fcn.00406f28
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 0x42af6c
cmp bl, 0
je 0x42af68
cmp bl, 0x41
jl 0x42af63
cmp bl, 0x5a
jg 0x42af63
or bl, 0x20
xor al, bl
inc esi
jmp 0x42af47
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42aeac
Function at 0x517de4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.0041282c
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00511d70
test ebx, ebx
jne 0x517e37
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.00517c5c
mov ebx, eax
test ebx, ebx
je 0x517f2d
cmp esi, ebx
je 0x517e60
mov eax, dword [esp]
sub eax, dword [ebx + 0x50]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x54]
mov dword [esp + 0x118], eax
jmp 0x517e75
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x517ead
add eax, 0xffffff5f
sub eax, 2
jb 0x517ec5
dec eax
sub eax, 2
jb 0x517ed9
dec eax
sub eax, 2
jb 0x517ecf
jmp 0x517ee3
add eax, 0xfffffdff
sub eax, 2
jb 0x517ec5
dec eax
sub eax, 2
jb 0x517ed9
dec eax
sub eax, 2
jb 0x517ecf
jmp 0x517ee3
mov byte [esp + 0x120], 0
jmp 0x517eeb
mov byte [esp + 0x120], 2
jmp 0x517eeb
mov byte [esp + 0x120], 1
jmp 0x517eeb
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.005abf04
mov esi, eax
call fcn.0050e4b4
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00513788
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x517f2f
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x51e4c6
Capabilities:
Get number of processors

Disassembly:
add esp, 4
and eax, 0x17071
jmp 0x51e4d7
pop eax
mov eax, dword [ebp - 0x504]
mov dword [ebp - 0x31c], eax
jmp 0x51e54e

Function at 0x51e514
Capabilities:
Contain obfuscated stackstrings
Get number of processors

Disassembly:
add esp, 4
pop esi
mov ecx, dword [ebp - 0x504]
mov edx, dword [ecx]
mov dword [ebp - 0x504], edx
mov eax, dword [ebp - 0x504]
cmp eax, dword [ebp - 0xc98]
je 0x51e544
mov ecx, dword [ebp - 0x504]
cmp dword [ecx + 0x30], 0
jne 0x51e2fa
mov dword [ebp - 0x31c], 0