joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4022f0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b8a0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4220c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, 0x4242e8
call fcn.00408ad0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.1836
call fcn.004050f0
mov dword [ebp - 0x1c], eax
mov ecx, dword [0x424134]
call fcn.00405720
mov dword [ebp - 4], 0
movzx eax, byte [0x424138]
test eax, eax
je 0x402360
call dword [0x42411c]
jmp 0x402373
push 0
call dword [0x424114]
push 0xb4
call dword [0x424120]
mov ecx, dword [0x424140]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4023af
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x4242cc
call fcn.00404760
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, 0x4242b0
call fcn.00404760
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4023e6
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4023c7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405400
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b428
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4220c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
call fcn.004047e0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x1c], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x24], 0
mov byte [ebp - 0x17], 0x6c
mov byte [ebp - 0x28], 0x4e
mov byte [ebp - 0x25], 0x53
mov byte [ebp - 0x1c], 0x4d
mov byte [ebp - 0x18], 0x6c
mov byte [ebp - 0x23], 0x49
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x15], 0x29
mov byte [ebp - 0x1d], 0x28
mov byte [ebp - 0x1e], 0x20
mov byte [ebp - 0x20], 0x74
mov byte [ebp - 0x24], 0x5f
mov byte [ebp - 0x1b], 0x6f
mov byte [ebp - 0x27], 0x53
mov byte [ebp - 0x26], 0x49
mov byte [ebp - 0x22], 0x6e
mov byte [ebp - 0x19], 0x69
mov byte [ebp - 0x1f], 0x63
mov byte [ebp - 0x1a], 0x7a
mov byte [ebp - 0x21], 0x65
mov byte [ebp - 0x16], 0x61
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.00408770
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040bfa4
mov esp, ebp
pop ebp
ret

Function at 0x4054e0
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0
push 0
push 0
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.00404760
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x20], eax
push 0
push 0
push 3
push 0
push 0
movzx edx, word [ebp + 0x24]
push edx
lea ecx, [ebp + 8]
call fcn.00404760
push eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x24], 0
jne 0x40554d
mov byte [ebp - 5], 0
lea ecx, [ebp + 8]
call fcn.00404830
mov al, byte [ebp - 5]
jmp 0x405563
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0x1c], 1
mov byte [ebp - 6], 1
lea ecx, [ebp + 8]
call fcn.00404830
mov al, byte [ebp - 6]
mov esp, ebp
pop ebp
ret 0x24
Function at 0x406360
Capabilities:
Check http status code
Contain obfuscated stackstrings
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4220c0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x48], ecx
mov byte [ebp - 1], 0
mov byte [ebp - 0x10], 0x6c
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xb], 0x6d
mov byte [ebp - 0xc], 0x6f
mov byte [ebp - 0x11], 0x67
mov byte [ebp - 0xe], 0x2e
mov byte [ebp - 0xa], 0
mov byte [ebp - 0xd], 0x63
mov byte [ebp - 0x12], 0x6f
mov byte [ebp - 0x14], 0x67
mov byte [ebp - 0x13], 0x6f
push 1
push 0
call fcn.00405890
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x28], esp
lea eax, [ebp - 0x14]
push eax
call fcn.004050f0
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x48]
call fcn.004054e0
mov ecx, dword [ebp - 0x48]
movzx edx, byte [ecx + 0x1c]
test edx, edx
je 0x406478
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.004058c0
mov dword [ebp - 0x50], eax
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
push 0
push 0x41df2c
push 0x41df38
mov ecx, dword [ebp - 0x50]
call fcn.00404760
push eax
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x24]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x44]
call fcn.00404830
cmp dword [ebp - 0x18], 0
je 0x40646e
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 4
push 0
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x24]
push eax
push 0x20000013
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [ebp - 0x24], 0xc8
jne 0x40646e
mov byte [ebp - 1], 1
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x48]
call fcn.00405570
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040bfa4
mov esp, ebp
pop ebp
ret
Function at 0x406810
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
lea ecx, [ebp + 0xc]
call fcn.00404760
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406865
mov dword [ebp - 0x10], 4
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea ecx, [ebp + 0x28]
call fcn.00404760
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea ecx, [ebp + 0xc]
call fcn.00404830
lea ecx, [ebp + 0x28]
call fcn.00404830
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 0x3c
Function at 0x406890
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b598
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4220c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.004047e0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
lea ecx, [ebp + 0x10]
call fcn.00404760
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406a0a
lea ecx, [ebp - 0x50]
call fcn.00406b30
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x50]
call fcn.00406c40
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x38]
push edx
push 0
push 0
push 0
lea ecx, [ebp + 0x2c]
call fcn.00404760
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4069fe
mov ecx, dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x50]
call fcn.00406c20
lea edx, [ebp - 0x38]
push edx
push 0
lea ecx, [ebp - 0x50]
call fcn.00406c60
push eax
push 0
push 0
lea ecx, [ebp + 0x2c]
call fcn.00404760
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4069fe
lea ecx, [ebp - 0x50]
call fcn.00406c40
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jle 0x4069fe
push 1
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0x78]
push edx
lea ecx, [ebp - 0x50]
call fcn.00406bf0
mov ecx, eax
call fcn.00406c90
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x50]
call fcn.00406bc0
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea ecx, [ebp - 0x70]
call fcn.00407890
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x94]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00403720
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00404830
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.00406ba0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
call fcn.004047a0
mov ecx, dword [ebp - 0x8c]
or ecx, 1
mov dword [ebp - 0x8c], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00404830
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00404830
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2c]
call fcn.00404830
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040bfa4
mov esp, ebp
pop ebp
ret 0x40

Function at 0x4089b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov byte [0x42419b], 1
mov byte [0x4242a8], 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x408af0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4242ac], eax
mov esp, ebp
pop ebp
ret
Function at 0x4095f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x10]
jge 0x40967a
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x409640
cmp dword [ebp - 0x10], 0
jne 0x409648
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40967a
cmp dword [ebp - 4], 0
jne 0x40965d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x40965d
jmp 0x40967a
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x10]
mov dword [ebp + 0xc], edx
jmp 0x409611
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp eax, dword [ebp + 0x10]
sete cl
mov al, cl
mov esp, ebp
pop ebp
ret 0xc

Function at 0x409a70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b918
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4220c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x1c], 0
je 0x409ab0
mov ecx, dword [ebp - 0x1c]
call fcn.00409f20
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00403720
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 0x1c]
push eax
push 0x409940
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x58], eax
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x58], 0
jne 0x409b03
mov byte [ebp - 0x15], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404830
mov al, byte [ebp - 0x15]
jmp 0x409b23
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1c], 1
mov byte [ebp - 0x16], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404830
mov al, byte [ebp - 0x16]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x409bc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x10]
jge 0x409c1d
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x409c00
xor al, al
jmp 0x409c2a
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x10]
mov dword [ebp + 0xc], edx
jmp 0x409bd3
mov eax, dword [ebp - 8]
xor ecx, ecx
cmp eax, dword [ebp + 0x10]
sete cl
mov al, cl
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40bfa4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4220c0]
jne 0x40bfae
repz ret
jmp fcn.0040d9e6

Function at 0x415b7f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040e566
and dword [ebp - 4], 0
cmp dword [0x423f7c], 0
mov ebx, eax
jne 0x415c30
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x415ce1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41d55c
push edi
call esi
test eax, eax
je 0x415ce1
push eax
call fcn.0040e4f4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423f7c], eax
call esi
push eax
call fcn.0040e4f4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423f80], eax
call esi
push eax
call fcn.0040e4f4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423f84], eax
call esi
push eax
call fcn.0040e4f4
pop ecx
mov dword [0x423f8c], eax
test eax, eax
je 0x415c30
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040e4f4
pop ecx
mov dword [0x423f88], eax
mov eax, dword [0x423f88]
cmp eax, ebx
je 0x415c88
cmp dword [0x423f8c], ebx
je 0x415c88
push eax
call fcn.0040e56f
push dword [0x423f8c]
mov esi, eax
call fcn.0040e56f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x415c88
test edi, edi
je 0x415c88
call esi
test eax, eax
je 0x415c7f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x415c7f
test byte [ebp - 0xc], 1
jne 0x415c88
or dword [ebp + 0x10], 0x200000
jmp 0x415cc1
mov eax, dword [0x423f80]
cmp eax, ebx
je 0x415cc1
push eax
call fcn.0040e56f
pop ecx
test eax, eax
je 0x415cc1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x415cc1
mov eax, dword [0x423f84]
cmp eax, ebx
je 0x415cc1
push eax
call fcn.0040e56f
pop ecx
test eax, eax
je 0x415cc1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423f7c]
call fcn.0040e56f
pop ecx
test eax, eax
je 0x415ce1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x415ce3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x64c850
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x196000]
push edi
or ebp, 0xffffffff
jmp 0x64c872
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x64c879
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x64c868
mov eax, 1
add ebx, ebx
jne 0x64c88b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x64c89c
jne 0x64c8ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x64c8ac
dec eax
add ebx, ebx
jne 0x64c8a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x64c880
xor ecx, ecx
sub eax, 3
jb 0x64c8c4
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x64c936
sar eax, 1
mov ebp, eax
jmp 0x64c8cf
add ebx, ebx
jne 0x64c8cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x64c8dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x64c900
inc ecx
add ebx, ebx
jne 0x64c8ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x64c8e1
jne 0x64c8fd
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x64c8e1
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x64c920
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x64c911
jmp 0x64c86e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x64c920
add edi, ecx
jmp 0x64c86e
pop esi
mov edi, esi
mov ecx, 0x2068
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x64c93e
cmp byte [edi], 0xd
jne 0x64c93e
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x64c943
lea edi, [esi + 0x249000]
mov eax, dword [edi]
or eax, eax
je 0x64c9b2
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x24caac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x24cb60]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x64c970
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x24cb64]
or eax, eax
je 0x64c9ac
mov dword [ebx], eax
add ebx, 4
jmp 0x64c98d
call dword [esi + 0x24cb68]
popal
jmp 0x4422e8
Function at 0x405690
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.00405940
mov byte [esp], al
cmp byte [esp], 0
jne 0x40581c
test edi, edi
je 0x40581c
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405753
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40572e
cmp edi, 0xffffffff
je 0x4056ef
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4056ef
mov byte [esp], 0
jmp 0x40581c
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40572e
test ebx, ebx
jne 0x405724
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402840
test eax, eax
jne 0x405724
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40581c
call 0x405984
dec ebp
test ebp, ebp
jg 0x4056d4
cmp edi, 0xffffffff
je 0x405753
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405751
mov byte [esp], 0
jmp 0x40581c
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40569e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402840
cmp ebx, eax
jne 0x405753
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040588c
mov edx, eax
mov ebx, dword [0x4658f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4057ba
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4057b8
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4057ba
xor edi, edi
cmp byte [esp], 0
je 0x4057e3
mov ebx, dword [esi]
test bl, 1
jne 0x4057fc
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402840
cmp ebx, eax
jne 0x4057c0
mov byte [esp + 1], 1
jmp 0x4057fc
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402840
cmp ebx, eax
jne 0x4057e3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40576d
cmp byte [esp], 0
je 0x40581c
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
Function at 0x406188
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x467b18
cmp dword [ebp + 0xc], 2
jl 0x40619c
mov ebx, 0x467b48
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x4061d4
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x4028cc
mov dword [0x465018], eax
mov eax, 0x4028d4
mov dword [0x46501c], eax
mov eax, ebx
call fcn.0040606c
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x406209
cmp al, 3
jge 0x406209
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x40621a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x406225
call dword [ecx + eax*4]
cmp dword [0x46503c], 0
jne 0x40623b
mov byte [0x465044], 1
fnstcw word [0x460028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.004064b8
call fcn.0040611c
ret 4

Function at 0x406420
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x465058], 0
je 0x406487
cmp word [0x465344], 0xd7b2
jne 0x406449
cmp dword [0x46534c], 0
jbe 0x406449
mov eax, 0x465340
call dword [0x46535c]
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, 0x4064b4
call fcn.00406e00
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x460032], 0
jne 0x4064a3
push 0
push 0x4609ba
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408784
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 0x4088e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004066b8
cmp si, word [0x4609f8]
jb 0x40881c
cmp si, word [0x460bf8]
ja 0x40881c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40881c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4609f8]
jae 0x4087f6
mov edi, ebx
dec edi
jmp 0x408817
cmp si, word [ebx*8 + 0x4609f8]
jbe 0x408806
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408817
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4609fc]
call fcn.00408694
jmp 0x40881c
cmp edi, dword [ebp - 8]
jae 0x4087e0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4088cb
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4088cb
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.00407174
push dword [ebp - 0x160]
push 0x408904
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407174
push dword [ebp - 0x164]
push 0x408914
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407174
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004073ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4088f0
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406718
ret