joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010e8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d004]
jne 0x4010f2
repz ret
jmp fcn.00401553

Function at 0x404ebb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403ba9
and dword [ebp - 0x14], 0
cmp dword [0x42fc78], 0
mov dword [ebp - 0x18], eax
jne 0x404f6e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405016
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405016
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42fc78], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42fc7c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42fc80], eax
call edi
push eax
call esi
mov dword [0x42fc88], eax
test eax, eax
je 0x404f6e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42fc84], eax
mov eax, dword [0x42fc84]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404fc7
cmp dword [0x42fc88], ecx
je 0x404fc7
push eax
call esi
push dword [0x42fc88]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404fc7
test ebx, ebx
je 0x404fc7
call edi
test eax, eax
je 0x404fbe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x404fbe
test byte [ebp - 8], 1
jne 0x404fc7
or dword [ebp + 0x10], 0x200000
jmp 0x404ffa
mov eax, dword [0x42fc7c]
cmp eax, dword [ebp - 0x18]
je 0x404ffa
push eax
call esi
test eax, eax
je 0x404ffa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x404ffa
mov eax, dword [0x42fc80]
cmp eax, dword [ebp - 0x18]
je 0x404ffa
push eax
call esi
test eax, eax
je 0x404ffa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42fc78]
call esi
test eax, eax
je 0x405016
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405018
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004010e8
leave
ret
Function at 0x421350
Capabilities:
Create pipe

Disassembly:
sub esp, 0x24
mov eax, dword [0x42d004]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x42ddd0]
push ebx
mov ebx, dword [0x2bd324c]
push edi
mov edi, dword [0x2bd56cc]
call fcn.004212d0
cmp dword [0x2bd56cc], 0x2f
jne 0x4213bd
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
call fcn.00421300
mov ecx, dword [esp + 0x24]
pop edi
pop ebx
xor ecx, esp
call fcn.004010e8
add esp, 0x24
ret
Function at 0x421630
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
jmp 0x421648
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x1519a5
jge 0x421691
mov dword [0x2bd5334], 0x8e46a6f0
cmp dword [0x2bd56cc], 0x3dc
jne 0x42168f
xor ecx, ecx
mov word [ebp - 8], cx
xor edx, edx
mov word [ebp - 6], dx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
jmp 0x42163f
mov dword [ebp - 0x10], 0
jmp 0x4216a3
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x12cad2a
jge 0x42173e
cmp dword [0x2bd56cc], 0xa5f
jne 0x4216c4
push 0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [ebp - 0x10], 0x84620b
jne 0x4216e9
mov eax, dword [0x42ebf0]
mov dword [0x2bd56cc], eax
mov ecx, dword [0x2bd56cc]
add ecx, 0xa231
mov dword [0x2bd56cc], ecx
cmp dword [0x2bd56cc], 0x141
jne 0x421739
xor edx, edx
mov word [ebp - 0x24], dx
xor eax, eax
mov word [ebp - 0x22], ax
xor ecx, ecx
mov word [ebp - 0x20], cx
xor edx, edx
mov word [ebp - 0x1e], dx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
mov dword [0x4301b8], 0xec58acac
mov dword [0x4301bc], 0xffffffff
jmp 0x42169a
call fcn.004213e0
jmp dword [0x2bd324c]
Function at 0x410518
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, 3
xor edi, edi
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, esp
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x28]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0xc], 3
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], edi
call sub.ADVAPI32.DLL_LogonUserA
sub esp, 0x18
cmp eax, 0
setne al
and al, 1
mov byte [ebp - 0x15], al
test byte [ebp - 0x15], 1
je 0x4105bd
mov eax, dword [ebp - 0x14]
mov ecx, esp
mov dword [ecx], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov dword [ebp - 0x48], eax
mov al, byte [ebp - 0x15]
and al, 1
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xd]
and al, 1
movzx eax, al
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x416904
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp dword [ebp + 0xc], 0
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
jne 0x41692e
mov dword [ebp - 4], 0
jmp 0x416aea
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x416a9f
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, ecx
add edx, 1
mov dword [ebp + 0xc], edx
movzx ecx, byte [ecx]
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x57c7a4]
mov ecx, dword [ebp + 8]
shr ecx, 8
xor eax, ecx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, ecx
add edx, 1
mov dword [ebp + 0xc], edx
movzx ecx, byte [ecx]
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x57c7a4]
mov ecx, dword [ebp + 8]
shr ecx, 8
xor eax, ecx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, ecx
add edx, 1
mov dword [ebp + 0xc], edx
movzx ecx, byte [ecx]
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x57c7a4]
mov ecx, dword [ebp + 8]
shr ecx, 8
xor eax, ecx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, ecx
add edx, 1
mov dword [ebp + 0xc], edx
movzx ecx, byte [ecx]
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x57c7a4]
mov ecx, dword [ebp + 8]
shr ecx, 8
xor eax, ecx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, ecx
add edx, 1
mov dword [ebp + 0xc], edx
movzx ecx, byte [ecx]
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x57c7a4]
mov ecx, dword [ebp + 8]
shr ecx, 8
xor eax, ecx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, ecx
add edx, 1
mov dword [ebp + 0xc], edx
movzx ecx, byte [ecx]
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x57c7a4]
mov ecx, dword [ebp + 8]
shr ecx, 8
xor eax, ecx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, ecx
add edx, 1
mov dword [ebp + 0xc], edx
movzx ecx, byte [ecx]
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x57c7a4]
mov ecx, dword [ebp + 8]
shr ecx, 8
xor eax, ecx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, ecx
add edx, 1
mov dword [ebp + 0xc], edx
movzx ecx, byte [ecx]
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x57c7a4]
mov ecx, dword [ebp + 8]
shr ecx, 8
xor eax, ecx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x416937
cmp dword [ebp + 0x10], 0
je 0x416ae1
jmp 0x416aa7
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, ecx
add edx, 1
mov dword [ebp + 0xc], edx
movzx ecx, byte [ecx]
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x57c7a4]
mov ecx, dword [ebp + 8]
shr ecx, 8
xor eax, ecx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
add eax, 0xffffffff
mov dword [ebp + 0x10], eax
cmp eax, 0
jne 0x416aa7
jmp 0x416ae1
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add esp, 0x10
pop ebp
ret
Function at 0x416af4
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov al, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx]
movsx esi, byte [ebp + 0xc]
xor edx, esi
and edx, 0xff
mov edx, dword [edx*4 + 0x57c7a4]
mov esi, dword [ebp + 8]
mov esi, dword [esi]
shr esi, 8
xor edx, esi
mov esi, dword [ebp + 8]
mov dword [esi], edx
mov edx, dword [ebp + 8]
mov edx, dword [edx]
and edx, 0xff
mov esi, dword [ebp + 8]
add edx, dword [esi + 4]
mov dword [esi + 4], edx
mov edx, dword [ebp + 8]
imul edx, dword [edx + 4], 0x8088405
add edx, 1
mov esi, dword [ebp + 8]
mov dword [esi + 4], edx
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov esi, dword [ebp + 8]
mov esi, dword [esi + 4]
shr esi, 0x18
xor edx, esi
and edx, 0xff
mov edx, dword [edx*4 + 0x57c7a4]
mov esi, dword [ebp + 8]
mov esi, dword [esi + 8]
shr esi, 8
xor edx, esi
mov esi, dword [ebp + 8]
mov dword [esi + 8], edx
mov byte [ebp - 5], al
mov dword [ebp - 0xc], ecx
add esp, 8
pop esi
pop ebp
ret

Function at 0x417d48
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 0x14]
test byte [edi], 1
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], esi
je 0x417dce
lea eax, [ebp - 0x18]
xor ecx, ecx
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 4]
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x14]
mov ebx, esp
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x18]
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], edi
mov dword [ebx + 4], esi
mov dword [ebx], edx
mov dword [ebx + 0x10], 0
mov dword [ebp - 0x38], ecx
call sub.KERNEL32.DLL_ReadFile
sub esp, 0x14
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x417dc1
mov eax, dword [ebp + 0x14]
mov byte [eax + 8], 1
mov eax, dword [ebp - 0x18]
xor edx, edx
div dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
jmp 0x417e32
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
cmp eax, dword [ecx + 0x18]
jbe 0x417dee
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x18]
mov ecx, dword [ebp + 0x14]
sub eax, dword [ecx + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx + 0x14]
mov edx, dword [ebp + 0x14]
add ecx, dword [edx + 0x1c]
mov edx, dword [ebp - 0x14]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00566cac
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 0x14]
add ecx, dword [edx + 0x1c]
mov dword [edx + 0x1c], ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
mov eax, ecx
xor edx, edx
div dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4199d8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 8]
cmp dword [edi], 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
jne 0x419a0d
mov eax, dword [ebp - 0x38]
cmp dword [eax + 4], 0xffffffff
je 0x419a19
mov dword [ebp - 0x10], 0x1000000
jmp 0x419b41
mov eax, 0x104
mov ecx, dword [ebp - 0x38]
add ecx, 0x244
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], 0x104
mov dword [ebp - 0x3c], eax
call sub.KERNEL32.DLL_GetCurrentDirectoryW
sub esp, 8
mov ecx, dword [ebp - 0x38]
add ecx, 0x244
mov dword [esp], ecx
mov dword [ebp - 0x40], eax
call fcn.00566a34
sub eax, 1
mov ecx, dword [ebp - 0x38]
mov si, word [ecx + eax*2 + 0x244]
mov word [ebp - 0x12], si
movzx eax, word [ebp - 0x12]
cmp eax, 0x5c
je 0x419a93
movzx eax, word [ebp - 0x12]
cmp eax, 0x2f
je 0x419a93
lea eax, [0x57cc40]
mov ecx, dword [ebp - 0x38]
add ecx, 0x244
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.005669c8
mov dword [ebp - 0x44], eax
cmp dword [ebp + 0x14], 1
jne 0x419aeb
xor eax, eax
mov ecx, 1
mov edx, dword [ebp + 0xc]
mov esi, esp
mov dword [esi], edx
mov dword [esi + 0xc], 1
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ecx
call sub.KERNEL32.DLL_SetFilePointer
sub esp, 0x10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
setne bl
and bl, 1
mov byte [ebp - 0x19], bl
test byte [ebp - 0x19], 1
jne 0x419ae9
mov dword [ebp - 0x10], 0x2000000
jmp 0x419b41
jmp 0x419aeb
lea eax, [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
call fcn.0041788c
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x419b1c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
jmp 0x419b41
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.004181f8
mov ecx, dword [ebp - 0x38]
mov dword [ecx], eax
cmp dword [ecx], 0
jne 0x419b3a
mov dword [ebp - 0x10], pe_nt_image_headers32
jmp 0x419b41
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41a728
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x454
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp dword [ebp + 8], 0
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x428], ecx
je 0x41a782
mov eax, dword [ebp + 8]
mov ecx, esp
mov dword [ecx], eax
call sub.KERNEL32.DLL_GetFileAttributesW
sub esp, 4
cmp eax, 0xffffffff
jne 0x41a782
xor eax, eax
mov ecx, dword [ebp + 8]
mov edx, esp
mov dword [edx], ecx
mov dword [edx + 4], 0
mov dword [ebp - 0x42c], eax
call sub.KERNEL32.DLL_CreateDirectoryW
sub esp, 8
mov dword [ebp - 0x430], eax
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
cmp eax, 0
jne 0x41a792
jmp 0x41a8c1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp eax, 0
je 0x41a7d0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp eax, 0x2f
je 0x41a7bf
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp eax, 0x5c
jne 0x41a7c5
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
jmp 0x41a79e
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x41a83e
lea eax, [ebp - 0x218]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
sub edx, esi
sar edx, 1
shl edx, 1
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00566cac
lea ecx, [ebp - 0x218]
mov edx, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
sub edx, esi
sar edx, 1
mov word [ebp + edx*2 - 0x218], 0
mov edx, dword [ebp + 8]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [ebp - 0x434], eax
call fcn.0041a728
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x10], eax
mov word [ebp - 0x420], 0
cmp dword [ebp + 8], 0
je 0x41a868
lea eax, [ebp - 0x420]
mov ecx, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.005669f4
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x420]
mov ecx, dword [ebp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.005669c8
lea ecx, [ebp - 0x420]
mov edx, esp
mov dword [edx], ecx
mov dword [ebp - 0x43c], eax
call sub.KERNEL32.DLL_GetFileAttributesW
sub esp, 4
cmp eax, 0xffffffff
jne 0x41a8c1
xor eax, eax
lea ecx, [ebp - 0x420]
mov edx, esp
mov dword [edx], ecx
mov dword [edx + 4], 0
mov dword [ebp - 0x440], eax
call sub.KERNEL32.DLL_CreateDirectoryW
sub esp, 8
mov dword [ebp - 0x444], eax
add esp, 0x454
pop esi
pop ebp
ret
Function at 0x423c00
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004240c0
mov byte [esp], al
cmp byte [esp], 0
jne 0x423d89
test edi, edi
je 0x423d89
mov byte [esp + 1], 0
test ebp, ebp
jle 0x423cc9
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x423ca4
cmp edi, 0xffffffff
je 0x423c65
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x423c65
mov byte [esp], 0
jmp 0x423d89
cmp dword [esi], 1
jg 0x423ca4
cmp dword [esi], 0
jne 0x423c96
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x423c96
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x423d89
lea eax, [esp + 0xc]
call fcn.004238b0
dec ebp
test ebp, ebp
jg 0x423c4a
cmp edi, 0xffffffff
je 0x423cc9
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x423cc7
mov byte [esp], 0
jmp 0x423d89
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x423c0e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x423cc9
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00423e04
mov edx, eax
mov ebx, dword [0x59065c]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x423d2d
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x423d2b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x423d2d
xor edi, edi
cmp byte [esp], 0
je 0x423d53
mov ebx, dword [esi]
test bl, 1
jne 0x423d69
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x423d33
mov byte [esp + 1], 1
jmp 0x423d69
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x423d53
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x423ce0
cmp byte [esp], 0
je 0x423d89
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x424b7c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x58fdbc], 0
je 0x424be3
cmp word [0x5900a8], 0xd7b2
jne 0x424ba5
cmp dword [0x5900b0], 0
jbe 0x424ba5
mov eax, 0x5900a4
call dword [0x5900c0]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x424c10
call fcn.00425838
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x57e4ec], 0
jne 0x424bff
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x424da4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x57e4b4], 0
je 0x424dcf
mov edx, edi
mov eax, esi
call dword [0x57e4b4]
mov ebx, eax
jmp 0x424de0
mov eax, 8
call fcn.0042206c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x58fdbd], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x424d6c
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CreateThread
mov esi, eax
test esi, esi
jne 0x424e10
mov eax, ebx
call fcn.00422088
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x4283e4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x42854b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00424ee4
cmp si, word [0x57eebc]
jb 0x42847c
cmp si, word [0x57f0bc]
ja 0x42847c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x42847c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x57eebc]
jae 0x428456
mov edi, ebx
dec edi
jmp 0x428477
cmp si, word [ebx*8 + 0x57eebc]
jbe 0x428466
inc ebx
mov dword [ebp - 8], ebx
jmp 0x428477
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x57eec0]
call fcn.00428300
jmp 0x42847c
cmp edi, dword [ebp - 8]
jae 0x428440
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x42852b
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x42852b
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00425be4
push dword [ebp - 0x160]
push 0x428568
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00425be4
push dword [ebp - 0x164]
push 0x428578
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00425be4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00425e1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428552
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00424f44
pop eax
jmp eax