joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4052b6
Capabilities:
Delete file
Set current directory
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x4091e0]
test esi, esi
je 0x405317
push edi
cmp dword [0x408a24], 0
mov edi, esi
jne 0x405300
cmp dword [0x409a30], 0
jne 0x405300
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [edi]
mov esi, dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
jne 0x4052d7
pop edi
mov eax, dword [0x408a20]
pop esi
test eax, eax
je 0x405379
cmp dword [0x408a24], 0
jne 0x405379
cmp dword [0x409a30], 0
jne 0x405379
push ecx
push 0x4091e4
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x108]
call fcn.00401781
test byte [0x409a34], 0x20
je 0x40535e
lea ecx, [ebp - 0x108]
call fcn.004065e8
push 0x4011fc
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x108]
call fcn.00402397
mov eax, dword [0x408a20]
cmp word [0x409a40], 1
je 0x40538c
test eax, eax
je 0x40538c
call fcn.00401fe8
mov ecx, dword [ebp - 4]
and dword [0x408a20], 0
xor ecx, ebp
call fcn.00406cf0
mov esp, ebp
pop ebp
ret

Function at 0x4053a1
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
xor edi, edi
push edi
push 0x401378
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0040171e
add esp, 0x10
mov edx, 0x104
mov ecx, esi
inc edi
push ebx
call fcn.00401680
lea eax, [ebp - 0x108]
mov edx, 0x104
push eax
mov ecx, esi
call fcn.0040658a
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40544f
cmp edi, 0x190
jl 0x4053bf
push esi
xor edi, edi
push edi
push 0x401384
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x40543a
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406cf0
mov esp, ebp
pop ebp
ret 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405415
xor edi, edi
inc edi
mov dword [0x408a20], edi
jmp 0x40543a
Function at 0x4058c3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4058d3
sub edx, ecx
lea esi, [edx + 0x14]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x405914
xor esi, esi
mov edx, 0x4b5
push esi
push 0x10
push esi
push esi
xor ecx, ecx
call fcn.004044a9
call fcn.00406285
mov dword [0x409124], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edx, esi
mov ecx, ebx
call fcn.00401680
push 0x4013b8
mov edx, esi
mov ecx, ebx
call fcn.0040658a
xor esi, esi
push esi
push 0x4000080
push 1
push esi
push esi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x405901
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405901
test al, 0x10
je 0x405901
xor eax, eax
mov dword [0x409124], esi
inc eax
jmp 0x40590d
Function at 0x40621e
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x406268
push eax
push 0x10
push eax
push eax
mov edx, 0x4f0
xor ecx, ecx
call fcn.004044a9
call fcn.00406285
mov dword [0x409124], eax
xor eax, eax
jmp 0x406277
push 2
pop edx
push edx
lea ecx, [ebp - 0x108]
call fcn.00405978
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406cf0
mov esp, ebp
pop ebp
ret

Function at 0x406298
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1c], ecx
push esi
push 0x4013d4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], esi
xor ebx, ebx
push 0x14
push eax
inc ebx
call fcn.0040171e
jmp 0x40633b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40635f
lea edx, [edi + 8]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4062e8
sub ecx, esi
mov esi, esp
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x1c]
add eax, edx
push eax
push edx
push dword [edi + 4]
push dword [edi]
call dword [0x40a288]
call dword [ebp - 0x1c]
cmp esi, esp
je 0x406316
mov ecx, 4
int 0x29
push edi
test eax, eax
je 0x406355
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
inc esi
push esi
push 0x4013d4
push 0x14
push eax
mov dword [ebp - 0x20], esi
call fcn.0040171e
xor esi, esi
add esp, 0x10
lea eax, [ebp - 0x18]
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4062cb
jmp 0x40636b
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40636b
mov dword [0x409124], 0x80070714
mov ebx, esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406cf0
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push ecx
push 0x4091e4
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x108]
call fcn.00401781
mov edi, 0x4011d8
lea ecx, [ebp - 0x108]
push edi
mov edx, 0x104
call fcn.0040658a
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406501
test al, 0x10
jne 0x406501
push 8
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x406508
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00406cf0
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov edi, edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4066bf
xor eax, eax
ret
shr eax, 4
not eax
and eax, 1
ret
Function at 0x40681f
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [0x4081d8]
xor esi, esi
mov dword [ebp - 0xb0], 0xc
mov dword [ebp - 0xac], esi
cmp edi, 0xfffffffe
jne 0x406947
lea eax, [ebp - 0xa4]
mov dword [0x4081d8], esi
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x406941
xor edi, edi
inc edi
cmp dword [ebp - 0x94], edi
jne 0x406941
cmp dword [ebp - 0xa0], 4
jne 0x406941
cmp dword [ebp - 0x9c], 0xa
jae 0x406941
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x406941
lea eax, [ebp - 0xa8]
push eax
push 0x20019
push esi
push 0x4013e0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406941
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb4]
push eax
push esi
push 0x401140
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xa8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x406913
mov eax, dword [0x4081d8]
jmp 0x406949
lea edx, [ebp - 0xac]
lea ecx, [ebp - 0x10]
call fcn.004066f9
test eax, eax
je 0x406941
mov eax, dword [ebp - 0xac]
and eax, 0x3ff
cmp eax, edi
je 0x406939
cmp eax, 0xd
jne 0x406941
mov dword [0x4081d8], edi
jmp 0x406947
mov edi, dword [0x4081d8]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00406cf0
mov esp, ebp
pop ebp
ret

Function at 0x406959
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp byte [ecx], 0
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
je 0x4069a8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4069a8
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
push 0x400
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406ac0
Capabilities:
Terminate process

Disassembly:
call fcn.00407153
jmp 0x406aca
push 0x5c
push 0x407320
call fcn.0040721c
xor ebx, ebx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4088ac
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x406b1c
cmp eax, esi
jne 0x406b0f
xor esi, esi
inc esi
mov edi, esi
jmp 0x406b1f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406af3
xor esi, esi
inc esi
cmp dword [0x4088b0], esi
jne 0x406b31
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x406b6b
cmp dword [0x4088b0], ebx
jne 0x406b65
mov dword [0x4088b0], esi
push 0x4010c0
push 0x4010b4
call fcn.00406c9e
pop ecx
pop ecx
test eax, eax
je 0x406b6b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x406c98
mov dword [0x4081e4], esi
cmp dword [0x4088b0], esi
jne 0x406b8e
push 0x4010b0
push 0x4010a8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4088b0], 2
test edi, edi
jne 0x406b9b
xor eax, eax
mov ecx, 0x4088ac
xchg dword [ecx], eax
cmp dword [0x4088b4], 0
je 0x406bc7
push 0x4088b4
call fcn.00407060
pop ecx
test eax, eax
je 0x406bc7
push ebx
push 2
push ebx
mov esi, dword [0x4088b4]
mov ecx, esi
call dword [0x40a288]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov edi, dword [ebp - 0x24]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x406c24
test cl, cl
je 0x406be3
test edi, edi
jne 0x406c24
mov al, byte [esi]
test al, al
je 0x406bf3
cmp al, 0x20
ja 0x406bf3
inc esi
mov dword [ebp - 0x20], esi
jmp 0x406be3
test byte [ebp - 0x40], 1
je 0x406bff
movzx eax, word [ebp - 0x3c]
jmp 0x406c02
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x4081e0], eax
cmp dword [0x4081f8], 0
jne 0x406c7d
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x406c35
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x24], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x406c48
inc esi
mov dword [ebp - 0x20], esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x406bd4
cmp dword [0x4081e4], 0
jne 0x406c91
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x4081e0]
mov dword [ebp - 4], 0xfffffffe
call fcn.00407264
ret

Function at 0x406f64
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x407340
call fcn.004072b4
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x406fc4
cmp eax, 0xffffffff
je 0x406fc4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x406fbd
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x406fbd
cmp edx, 0x10000000
jae 0x406fbd
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x406fba
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.004072f9
ret 4
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x407136
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x407151
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x40509d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x408010]
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.00403f1d
and dword [ebp - 0x14], 0
cmp dword [0x4096f8], 0
mov dword [ebp - 0x18], eax
jne 0x405150
push 0x401dec
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4051f8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401de0
push ebx
call edi
test eax, eax
je 0x4051f8
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x401dd0
push ebx
mov dword [0x4096f8], eax
call edi
push eax
call esi
push 0x401dbc
push ebx
mov dword [0x4096fc], eax
call edi
push eax
call esi
push 0x401da0
push ebx
mov dword [0x409700], eax
call edi
push eax
call esi
mov dword [0x409708], eax
test eax, eax
je 0x405150
push 0x401d88
push ebx
call edi
push eax
call esi
mov dword [0x409704], eax
mov eax, dword [0x409704]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4051a9
cmp dword [0x409708], ecx
je 0x4051a9
push eax
call esi
push dword [0x409708]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4051a9
test ebx, ebx
je 0x4051a9
call edi
test eax, eax
je 0x4051a0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4051a0
test byte [ebp - 8], 1
jne 0x4051a9
or dword [ebp + 0x10], 0x200000
jmp 0x4051dc
mov eax, dword [0x4096fc]
cmp eax, dword [ebp - 0x18]
je 0x4051dc
push eax
call esi
test eax, eax
je 0x4051dc
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4051dc
mov eax, dword [0x409700]
cmp eax, dword [ebp - 0x18]
je 0x4051dc
push eax
call esi
test eax, eax
je 0x4051dc
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4096f8]
call esi
test eax, eax
je 0x4051f8
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4051fa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402f0f
leave
ret
Function at 0x405060
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x46c008], 0x8088405
inc edx
mov dword [ebx + 0x46c008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x405ba0
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.00405e68
mov byte [esp], al
cmp byte [esp], 0
jne 0x405d29
test edi, edi
je 0x405d29
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405c69
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x405c44
cmp edi, 0xffffffff
je 0x405c05
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405c05
mov byte [esp], 0
jmp 0x405d29
cmp dword [esi], 1
jg 0x405c44
cmp dword [esi], 0
jne 0x405c36
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x405c36
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405d29
lea eax, [esp + 0xc]
call fcn.0040592c
dec ebp
test ebp, ebp
jg 0x405bea
cmp edi, 0xffffffff
je 0x405c69
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405c67
mov byte [esp], 0
jmp 0x405d29
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405bae
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405c69
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405d98
mov edx, eax
mov ebx, dword [0x4708f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405ccd
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405ccb
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405ccd
xor edi, edi
cmp byte [esp], 0
je 0x405cf3
mov ebx, dword [esi]
test bl, 1
jne 0x405d09
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405cd3
mov byte [esp + 1], 1
jmp 0x405d09
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405cf3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405c80
cmp byte [esp], 0
je 0x405d29
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 0x4068dc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x470054], 0
je 0x406943
cmp word [0x470340], 0xd7b2
jne 0x406905
cmp dword [0x470348], 0
jbe 0x406905
mov eax, 0x47033c
call dword [0x470358]
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, 0x406970
call fcn.004074e8
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x46c032], 0
jne 0x40695f
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406b04
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 [0x46c034], 0
je 0x406b2f
mov edx, edi
mov eax, esi
call dword [0x46c034]
mov ebx, eax
jmp 0x406b40
mov eax, 8
call fcn.00404d94
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x470055], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406acc
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 0x406b70
mov eax, ebx
call fcn.00404db0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x409344
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 0x4094a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406c44
cmp si, word [0x46ca00]
jb 0x4093dc
cmp si, word [0x46cc00]
ja 0x4093dc
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4093dc
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x46ca00]
jae 0x4093b6
mov edi, ebx
dec edi
jmp 0x4093d7
cmp si, word [ebx*8 + 0x46ca00]
jbe 0x4093c6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4093d7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x46ca04]
call fcn.00409264
jmp 0x4093dc
cmp edi, dword [ebp - 8]
jae 0x4093a0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40948b
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x40948b
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.00407814
push dword [ebp - 0x160]
push 0x4094c4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407814
push dword [ebp - 0x164]
push 0x4094d4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407814
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004079e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4094b0
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406ca4
ret
Function at 0x40965c
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 0x409760
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x472c0c
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x472c24]
jne 0x4096a8
mov eax, esi
mov edx, 0x472c26
mov ecx, 0x55
call fcn.00407814
push 0x472c0c
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x40974a
push 0x472c0c
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.00406c44
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x409717
cmp byte [0x472c08], 0
je 0x4096dc
mov edx, esi
mov eax, ebx
call fcn.00409540
jmp 0x409717
mov edx, esi
mov eax, ebx
call fcn.00409344
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409717
cmp dword [esi], 0
je 0x409700
mov eax, esi
mov edx, 0x409778
call fcn.00407900
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409344
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407900
push 0x472c0c
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x472c24], bx
mov eax, dword [esi]
call fcn.00407780
mov ecx, eax
mov eax, 0x472c26
mov edx, 0xaa
call fcn.004091c4
push 0x472c0c
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409767
lea eax, [ebp - 4]
call fcn.00406c44
ret