joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b730
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10c
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x1000b7b0
lea ecx, [esp + 4]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x1000b7b0
mov eax, dword [esp + 4]
cmp al, 0x5c
je 0x1000b765
cmp al, 0x2f
jne 0x1000b772
cmp al, ah
jne 0x1000b772
xor eax, eax
add esp, 0x10c
ret
and eax, 0xff
mov byte [esp], 0x3d
push eax
call fcn.1000d940
add esp, 4
mov byte [esp + 1], al
lea edx, [esp + 4]
lea eax, [esp]
push edx
push eax
mov byte [esp + 0xa], 0x3a
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x1000b7b0
xor eax, eax
add esp, 0x10c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10009bf0
add esp, 4
or eax, 0xffffffff
add esp, 0x10c
ret

Function at 0x1000b7d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push eax
push 0x104
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x1000b809
mov eax, dword [esp + 4]
cmp ah, 0x3a
jne 0x1000b809
and eax, 0xff
push eax
call fcn.1000d9e0
mov esi, eax
add esp, 4
sub esi, 0x40
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x1000b820
Capabilities:
Set current directory

Disassembly:
push ebx
mov ebx, dword [esp + 8]
cmp ebx, 1
jl 0x1000b885
cmp ebx, 0x1f
jg 0x1000b885
push 0xc
call fcn.1000cb90
add esp, 4
lea eax, [esp + 8]
add bl, 0x40
mov byte [esp + 9], 0x3a
push eax
mov byte [esp + 0xc], bl
mov byte [esp + 0xe], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x1000b867
push 0xc
call fcn.1000cc10
add esp, 4
xor eax, eax
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10009bf0
add esp, 4
push 0xc
call fcn.1000cc10
add esp, 4
or eax, 0xffffffff
pop ebx
ret
call fcn.10009c70
mov dword [eax], 0xd
call fcn.10009c80
mov dword [eax], 0xf
or eax, 0xffffffff
pop ebx
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1000b9f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10009bf0
add esp, 4
or eax, 0xffffffff
ret
test al, 1
je 0x1000ba18
test byte [esp + 8], 2
je 0x1000ba18
call fcn.10009c70
mov dword [eax], 0xd
call fcn.10009c80
mov dword [eax], 5
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x1000bce0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x100158c4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x1000bd4e
push 0x74
push 1
call fcn.1000e890
mov esi, eax
add esp, 8
test esi, esi
je 0x1000bd44
mov ecx, dword [0x100158c4]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1000bd44
push esi
call fcn.1000bcc0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.1000bbf0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

Function at 0x1000be20
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.1000b8a0
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
push esi
push edi
xor ebp, ebp
push 1
push ebp
push ebx
call fcn.1000b5c0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x1000bf60
push 2
push ebp
push ebx
call fcn.1000b5c0
add esp, 0xc
cmp eax, 0xffffffff
je 0x1000bf60
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x1000bf01
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.1000e940
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x1000bea6
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.1000b230
add esp, 0xc
cmp eax, 0xffffffff
je 0x1000bec2
sub esi, eax
test esi, esi
jle 0x1000beda
jmp 0x1000be97
call fcn.10009c80
cmp dword [eax], 5
jne 0x1000bed7
call fcn.10009c70
mov dword [eax], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.1000e940
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.1000b5c0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x1000bf47
push 0
push ecx
push ebx
call fcn.1000b5c0
add esp, 0xc
push ebx
call fcn.1000c4a0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x1000bf47
call fcn.10009c70
mov dword [eax], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.10009c80
mov dword [eax], esi
push 0
push edi
push ebx
call fcn.1000b5c0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x1000e6b0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x10017e58
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x1000e6d4
add eax, 8
inc ebp
cmp eax, 0x10017ee8
jb 0x1000e6c5
cmp ecx, dword [ebp*8 + 0x10017e58]
jne 0x1000e87b
mov eax, dword [0x1001a500]
cmp eax, 1
je 0x1000e83d
test eax, eax
jne 0x1000e700
cmp dword [0x1001a504], 1
je 0x1000e83d
cmp ecx, 0xfc
je 0x1000e87b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000e73b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x1000e784
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x10013a68
add ebx, ecx
push ebx
call fcn.1000a740
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10013a48
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x10017e5c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.10010a40
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x1001d0a0]
test eax, eax
je 0x1000e84e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x1000e858
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x10017e5c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x1000f3a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push esi
push edi
test ebx, ebx
je 0x1000f415
push ebx
call fcn.1000f4d0
add esp, 4
test eax, eax
jne 0x1000f3e3
call fcn.10009c80
mov dword [eax], 0xf
call fcn.10009c70
mov dword [eax], 0xd
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x14]
add bl, 0x40
push 0x104
push edx
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 0x3a
mov byte [esp + 0x1e], 0x2e
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x1000f425
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x1000f4bf
inc eax
cmp eax, 0x104
ja 0x1000f4bf
mov edx, dword [esp + 0x120]
mov ecx, dword [esp + 0x124]
test edx, edx
jne 0x1000f477
cmp eax, ecx
jg 0x1000f451
mov eax, ecx
push eax
call fcn.1000a910
mov edx, eax
add esp, 4
test edx, edx
jne 0x1000f492
call fcn.10009c70
mov dword [eax], 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
cmp eax, ecx
jle 0x1000f492
call fcn.10009c70
mov dword [eax], 0x22
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret

Function at 0x1000f4d0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x1000f4de
mov eax, 1
ret
add al, 0x40
mov byte [esp + 5], 0x3a
mov byte [esp + 4], al
lea eax, [esp + 4]
push eax
mov byte [esp + 0xa], 0x5c
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x1000f50d
cmp eax, 1
je 0x1000f50d
mov eax, 1
ret
xor eax, eax
ret
Function at 0x100115a0
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x1001175e
push 0x3d
push edi
call fcn.100120a0
mov esi, eax
add esp, 8
test esi, esi
je 0x1001175e
cmp edi, esi
je 0x1001175e
mov dl, byte [esi + 1]
mov ecx, dword [0x1001a4d4]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x1001a4d0]
cmp eax, ecx
jne 0x100115f7
push eax
call fcn.10011830
add esp, 4
mov dword [0x1001a4d0], eax
test eax, eax
jne 0x10011672
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1001161e
mov eax, dword [0x1001a4d8]
test eax, eax
je 0x1001161e
call fcn.100106d0
test eax, eax
je 0x1001166d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x1001162a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.1000a910
add esp, 4
mov dword [0x1001a4d0], eax
test eax, eax
je 0x1001175e
mov dword [eax], 0
mov eax, dword [0x1001a4d8]
test eax, eax
jne 0x1001166d
push 4
call fcn.1000a910
add esp, 4
mov dword [0x1001a4d8], eax
test eax, eax
je 0x1001175e
mov dword [eax], 0
mov eax, dword [0x1001a4d0]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.100117b0
mov esi, eax
add esp, 8
test esi, esi
jl 0x1001176f
cmp dword [ebx], 0
je 0x1001176f
test ebp, ebp
je 0x10011767
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.1000a9e0
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x100116c9
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x100116b8
lea eax, [esi*4]
push eax
push ebx
call fcn.10011ef0
add esp, 8
test eax, eax
je 0x100116e3
mov dword [0x1001a4d0], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10011756
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.1000a910
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10011756
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.1000a9e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x100116e7
test ebp, ebp
jne 0x10011756
test esi, esi
jge 0x10011779
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.10011ef0
add esp, 8
test eax, eax
je 0x1001175e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x1001a4d0], eax
jmp 0x100116e7
Function at 0x10011c80
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x1001aa44]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edi
test eax, eax
jne 0x10011cc8
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x10011ca8
mov eax, 1
jmp 0x10011cc3
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x10011d99
mov eax, 2
mov dword [0x1001aa44], eax
cmp eax, 1
jne 0x10011ce8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x10011dab
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x10011d03
mov ecx, dword [0x1001a588]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
test esi, esi
jne 0x10011d22
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.1000a910
mov edi, eax
add esp, 4
test edi, edi
jne 0x10011d36
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x10011d90
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x10011d74
mov edx, dword [esp + 0x24]
push eax
push eax
push 0xffffffffffffffff
push edi
push 1
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
je 0x10011d90
push edi
call fcn.1000a9e0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
push eax
push 0xffffffffffffffff
push edi
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jne 0x10011da0
push edi
call fcn.1000a9e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call fcn.1000a9e0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10011db0
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x1001aa48]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x10011df8
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10011ddc
mov eax, 1
jmp 0x10011df3
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x10011ed8
mov eax, 2
mov dword [0x1001aa48], eax
cmp eax, 2
jne 0x10011e18
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x10011eea
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x10011e33
mov ecx, dword [0x1001a588]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x10011e52
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.1000a910
mov esi, eax
add esp, 4
test esi, esi
jne 0x10011e69
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10011ecf
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x10011eb0
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x10011ecf
push esi
call fcn.1000a9e0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x10011edf
push esi
call fcn.1000a9e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.1000a9e0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0xd68b90
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xd68886
sub ebx, 0x4aef19
call fcn.00d68bc7
add edi, edi
add ebx, 0xc27a6318
xor dword [edx], eax
or edi, edi
dec ebx
and ebx, ebx
add edx, 2
sub edi, ebx
mov ebx, ebx
cmp edx, esi
jl fcn.00d68b90
or edi, ebx
or edi, ebx
ret
Function at 0x1000196d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push 0x40
push 0x1000
push dword [ebp + 8]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 4], esp
je 0x100019b1
push 0x12
push 0x404ea02
push 6
call fcn.10004c3d
add esp, 0xc
jmp 0x100019b6
mov esp, ebp
pop ebp
ret 4
Function at 0x10003af5
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x2000
push 0x80000301
push 0
push 0x1000
push 2
mov ebx, 0xc8
call fcn.10005ae0
add esp, 0x1c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0x40
push dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10003b69
push 0x39
push 0x40493b4
push 6
call fcn.10004c3d
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10003be6
push 0x80000301
push 0
push 0x2000
push 0x80000301
push 0
push 0x1000
push 2
mov ebx, 0xc8
call fcn.10005ae0
add esp, 0x1c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0x40
push dword [ebp - 8]
push dword [ebp + 0xc]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10003bdc
push 0xc7
push 0x40493b4
push 6
call fcn.10004c3d
add esp, 0xc
jmp 0x10003bee
mov eax, dword [ebp - 4]
jmp 0x10003bee
mov esp, ebp
pop ebp
ret 8

Function at 0x10005650
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x100056b9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.10004f20
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x10006340
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x10006361
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x100063bb
inc edi
cmp edi, esi
jl 0x10006355
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x100063f0
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x100063aa
cmp byte [eax], bl
je 0x100063c5
cmp byte [eax + 1], bl
je 0x100063ce
cmp byte [eax + 2], bl
je 0x100063d8
cmp byte [eax + 3], bl
je 0x100063e4
add eax, 4
cmp eax, edi
jb 0x10006381
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
Function at 0x40490c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406d50
test esi, esi
jne 0x404942
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.00406ed8
jmp 0x404960
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404850
mov edi, eax
test esi, esi
je 0x404960
cmp dword [ebx], 0
je 0x404960
dec esi
jmp 0x404949
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4059cc
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.00405dc4
mov byte [esp], al
cmp byte [esp], 0
jne 0x405b58
test edi, edi
je 0x405b58
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405a8f
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405a6a
cmp edi, 0xffffffff
je 0x405a2b
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405a2b
mov byte [esp], 0
jmp 0x405b58
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405a6a
test ebx, ebx
jne 0x405a60
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402810
test eax, eax
jne 0x405a60
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405b58
call 0x405ee8
dec ebp
test ebp, ebp
jg 0x405a10
cmp edi, 0xffffffff
je 0x405a8f
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405a8d
mov byte [esp], 0
jmp 0x405b58
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4059da
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402810
cmp ebx, eax
jne 0x405a8f
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405bc8
mov edx, eax
mov ebx, dword [reloc.kernel32.dll_FileTimeToDosDateTime]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405af6
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405af4
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405af6
xor edi, edi
cmp byte [esp], 0
je 0x405b1f
mov ebx, dword [esi]
test bl, 1
jne 0x405b38
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402810
cmp ebx, eax
jne 0x405afc
mov byte [esp + 1], 1
jmp 0x405b38
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402810
cmp ebx, eax
jne 0x405b1f
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405aa9
cmp byte [esp], 0
je 0x405b58
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