joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405bf0
Capabilities:
Create directory
Delete file
Write file on windows

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
mov esi, dword [esp + 0x128]
mov ebx, ecx
push edi
test esi, esi
mov dword [esp + 0x10], ebx
je 0x405d5e
mov edi, dword [esi]
mov ecx, dword [ebx + 0x24]
mov eax, dword [esi + 4]
add esi, 4
push edi
push ecx
lea edx, [esp + 0x2c]
push str._sAds_lu
push edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], eax
add esi, 4
mov dword [esp + 0x28], 0
call fcn.00406840
add esp, 0x10
lea eax, [esp + 0x24]
push 6
push eax
call fcn.004068b0
add esp, 8
test eax, eax
je 0x405c99
call fcn.00406db0
cmp dword [eax], 2
jne 0x405d5e
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor edi, edi
lea ecx, [esp + 0x24]
push 0
push ecx
call ebx
test eax, eax
jne 0x405c88
push 0xf7
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 4
jl 0x405c6a
cmp edi, 4
jge 0x405d5e
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov eax, dword [ebx + 0x24]
mov edx, dword [esi]
push edi
push eax
lea ecx, [esp + 0x2c]
push str._sAds_lu_rc
push ecx
mov dword [esp + 0x2c], edx
add esi, 4
call fcn.00406840
add esp, 0x10
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ebx, ebx
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
lea eax, [esp + 0x38]
push 0x40000000
push eax
call ebp
mov edi, eax
cmp edi, 0xffffffff
jne 0x405cfd
push 0x1ff
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 4
jl 0x405ccc
cmp ebx, 4
jge 0x405d5e
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push 0
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x405d5e
cmp dword [esp + 0x18], ebx
jne 0x405d5e
add esi, ebx
mov ebx, dword [esp + 0x20]
xor edi, edi
test ebx, ebx
jbe 0x405d4f
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push edx
push esi
call fcn.00405d70
mov esi, eax
test esi, esi
je 0x405d5e
inc edi
cmp edi, ebx
jb 0x405d35
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x118
ret 4
Function at 0x405d70
Capabilities:
Delete file
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x10c
test edx, edx
push ebx
push ebp
push esi
push edi
mov ebx, ecx
je 0x405e52
mov esi, dword [esp + 0x124]
test esi, esi
jbe 0x405e52
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push esi
mov dword [esp + 0x18], 0
mov eax, dword [edx + ecx + 1]
lea ebp, [edx + ecx + 1]
mov ecx, dword [ebx + 0x24]
lea edx, [esp + 0x20]
push ecx
push str._sAds_lu_s
push edx
mov dword [esp + 0x28], eax
add ebp, 4
call fcn.00406840
add esp, 0x14
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor edi, edi
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
lea ecx, [esp + 0x2c]
push 0x40000000
push ecx
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x405e16
push 0x1ff
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 4
jl 0x405de5
cmp edi, 4
jge 0x405e52
mov ebx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push edx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x405e52
cmp dword [esp + 0x10], ebx
jne 0x405e52
lea eax, [ebx + ebp]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret 8

Function at 0x405e70
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x350
push ebx
mov ebx, dword [esp + 0x358]
push ebp
push esi
push edi
push ebx
lea eax, [esp + 0x260]
push str._s.
mov dword [esp + 0x18], ecx
push eax
call fcn.00406840
add esp, 0xc
lea ecx, [esp + 0x11c]
lea edx, [esp + 0x25c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
je 0x405f81
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
lea edi, [esp + 0x148]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x405f57
cmp byte [esp + 0x148], 0x2e
je 0x405f57
lea eax, [esp + 0x148]
lea ecx, [esp + 0x18]
push eax
push ebx
push str._s_s
push ecx
call fcn.00406840
add esp, 0x10
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405f81
and eax, 0x10
cmp al, 0x10
jne 0x405f25
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
call fcn.00405e70
jmp 0x405f57
lea ecx, [esp + 0x18]
push pe_nt_image_headers32
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor esi, esi
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405f53
push 0xf7
call ebp
inc esi
cmp esi, 4
jl 0x405f37
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x11c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405ec6
push pe_nt_image_headers32
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x350
ret 4
Function at 0x405f90
Capabilities:
Copy file

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
push 0
push edi
mov dword [esp + 0x18], 0
call fcn.004068b0
mov ebp, dword [esp + 0x24]
mov ebx, eax
add esp, 8
neg ebx
sbb ebx, ebx
push 0
push ebp
inc ebx
call fcn.004068b0
add esp, 8
neg eax
sbb eax, eax
inc eax
test bl, bl
jne 0x405fdd
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test al, al
jne 0x40601e
xor ebx, ebx
push 0
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
test esi, esi
jne 0x40607f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 6
jl 0x405fe3
test esi, esi
jne 0x40607f
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push edi
call fcn.00401220
add esp, 4
mov ebx, eax
mov esi, edx
push ebp
call fcn.00401220
add esp, 4
cmp esi, edx
jl 0x406077
jg 0x40603e
cmp ebx, eax
jbe 0x406077
xor ebx, ebx
push 0
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
test esi, esi
jne 0x40607f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 6
jl 0x406040
test esi, esi
jne 0x40607f
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4068b0
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 0x4068d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00406d30
add esp, 4
or eax, 0xffffffff
ret
test al, 1
je 0x4068f8
test byte [esp + 8], 2
je 0x4068f8
call fcn.00406db0
mov dword [eax], 0xd
call fcn.00406dc0
mov dword [eax], 5
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x406af0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.00406bb0
mov eax, dword [0x412dec]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x406b14
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x412de8], 1
mov byte [0x412de4], bl
jne 0x406b6e
mov ecx, dword [0x414378]
test ecx, ecx
je 0x406b5c
mov esi, dword [0x414374]
sub esi, 4
cmp esi, ecx
jb 0x406b5c
mov eax, dword [esi]
test eax, eax
je 0x406b55
call eax
mov ecx, dword [0x414378]
sub esi, 4
cmp esi, ecx
jae 0x406b47
push 0x40f020
push 0x40f018
call fcn.00406bd0
add esp, 8
push 0x40f02c
push 0x40f024
call fcn.00406bd0
add esp, 8
test ebx, ebx
je 0x406b8d
call fcn.00406bc0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x412dec], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x407050
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e078
push 0x4099c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x412dbc], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x412db8], ecx
shl ecx, 8
add ecx, edx
mov dword [0x412db4], ecx
shr eax, 0x10
mov dword [0x412db0], eax
call fcn.00407230
test eax, eax
jne 0x4070ba
push 0x1c
call fcn.00407200
add esp, 4
call fcn.00408660
test eax, eax
jne 0x4070cd
push 0x10
call fcn.00407200
add esp, 4
mov dword [ebp - 4], 0
call fcn.0040a250
call fcn.00409870
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x414370], eax
call fcn.0040a0f0
mov dword [0x412df0], eax
test eax, eax
je 0x407100
mov eax, dword [0x414370]
test eax, eax
jne 0x40710a
push 0xffffffffffffffff
call fcn.00406ab0
add esp, 4
call fcn.00409e40
call fcn.00409d50
call fcn.00406a80
mov esi, dword [0x414370]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4071e9
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x407151
test al, al
je 0x407151
and eax, 0xff
push eax
call fcn.00409cf0
add esp, 4
test eax, eax
je 0x40712b
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40712b
cmp byte [esi], 0x22
jne 0x40715a
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x40716a
cmp al, 0x20
ja 0x40716a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40715a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40718b
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x407190
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00406ab0
jmp 0x4071ce
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40715a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4071e9

Function at 0x408660
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.00407270
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x411d40], eax
je 0x4086b8
push 0x74
push 1
call fcn.0040ae50
mov esi, eax
add esp, 8
test esi, esi
je 0x4086b8
mov eax, dword [0x411d40]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4086b8
push esi
call fcn.004086c0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4086e0
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 [0x411d40]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x40874e
push 0x74
push 1
call fcn.0040ae50
mov esi, eax
add esp, 8
test esi, esi
je 0x408744
mov ecx, dword [0x411d40]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x408744
push esi
call fcn.004086c0
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.00407200
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

Function at 0x40a0f0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x4130c0]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x40a132
call edi
mov esi, eax
test esi, esi
je 0x40a11c
mov eax, 1
jmp 0x40a12d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40a23f
mov eax, 2
mov dword [0x4130c0], eax
cmp eax, 1
jne 0x40a1d2
test esi, esi
jne 0x40a14b
call edi
mov esi, eax
test esi, esi
je 0x40a23f
cmp word [esi], 0
mov eax, esi
je 0x40a165
add eax, 2
cmp word [eax], 0
jne 0x40a153
add eax, 2
cmp word [eax], 0
jne 0x40a153
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40a1c4
push edi
call fcn.00406160
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40a1c4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40a1b6
push ebx
call fcn.004060f0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40a23f
test ebx, ebx
jne 0x40a1e3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40a23f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40a1fb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40a1eb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40a1eb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00406160
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40a21d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x40a4a0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x412058
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x40a4c4
add eax, 8
inc ebp
cmp eax, 0x4120e8
jb 0x40a4b5
cmp ecx, dword [ebp*8 + 0x412058]
jne 0x40a66b
mov eax, dword [0x412df8]
cmp eax, 1
je 0x40a62d
test eax, eax
jne 0x40a4f0
cmp dword [0x40fa2c], 1
je 0x40a62d
cmp ecx, 0xfc
je 0x40a66b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a52b
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 0x40a574
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 0x40e490
add ebx, ecx
push ebx
call fcn.0040be50
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, 0x40e470
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 + 0x41205c]
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.0040c860
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x414260]
test eax, eax
je 0x40a63e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x40a648
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x41205c]
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 0x40c3e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40c40c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x414260]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x40c447
push 2
push ebp
push ecx
call fcn.0040c2e0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40c5a9
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x40c4f1
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40c4a2
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x40c48f
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x40c472
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c59a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x40c4ed
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x40c46e
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40c589
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40c545
cmp eax, 5
jne 0x40c52e
call fcn.00406db0
mov dword [eax], 9
call fcn.00406dc0
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00406d30
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x40c565
cmp byte [ebp], 0x1a
jne 0x40c565
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.00406db0
mov dword [eax], 0x1c
call fcn.00406dc0
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40c4ed
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c5da
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x40c4f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40c4f1
Function at 0x40d040
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x413160]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x40d088
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x40d068
mov eax, 2
jmp 0x40d083
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40d168
mov eax, 1
mov dword [0x413160], eax
cmp eax, 2
jne 0x40d0a8
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 0x40d17a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40d0c3
mov ecx, dword [0x412e88]
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 0x40d0e2
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.00406160
mov esi, eax
add esp, 4
test esi, esi
jne 0x40d0f9
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 0x40d15f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x40d140
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 0x40d15f
push esi
call fcn.004060f0
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 0x40d16f
push esi
call fcn.004060f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.004060f0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x40633c
pop dword [ebp - 0x4c]
mov eax, 0x40633c
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x7c03e2d0
add dword [ebp - 0x5c], 0xd24e627b
mov dword [ebp - 0x58], 0x6308562b
add dword [ebp - 0x58], 0xcf2af61a
mov dword [ebp - 0x54], 0xc9dbc3a4
sub dword [ebp - 0x54], 0x7d8f7f76
mov dword [ebp - 0x50], 0xaf32a5f2
add dword [ebp - 0x50], 0x50cd5a0e
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x98c2f6e2
sub dword [ebp - 0x5c], 0x24508d8c
mov dword [ebp - 0x58], 0xfa9d7b16
add dword [ebp - 0x58], 0x46cee65f
mov dword [ebp - 0x54], 0x8f5b1ee6
add dword [ebp - 0x54], 0xd4144d86
mov dword [ebp - 0x50], 0x4886dc0b
sub dword [ebp - 0x50], 0x4886dc0b
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0xd485cebc
sub eax, 0xd4455dbc
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x33945
push 0
call eax
mov ecx, 0x399b645c
sub ecx, 0x399b2884
mov edx, eax
mov esi, 0xbceb7ee8
sub esi, 0xbcaa7ee8
add esi, dword [ebp - 0x4c]
mov ebx, 0x70cf6907
sub ebx, 0x20b0102c
xor dword [ebp - 0x48], 0x9f1c3924
mov edi, dword [esi]
add edi, ebx
sub dword [ebp - 0x30], 0xac620052
mov dword [edx], edi
add edx, 0x4ddf6b3d
add edx, 0xb22094c7
add esi, 0x6a95a00a
sub esi, 0x6a95a006
loop 0x406454
add eax, 0x53f82ddc
add eax, 0xac08b457
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x58752928
add ecx, 0xa7cad6d8
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941