joyce8/EMBER2024-capa huggingface dataset:
Function at 0x536040
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f1a1
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x290], ecx
mov dword [ebp - 0x288], 0
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
lea ecx, [ebp - 0x280]
push ecx
call fcn.004e3b70
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x280]
call fcn.004e9c70
push eax
push 0x5a6ff8
lea edx, [ebp - 0x250]
push edx
call fcn.004e2580
add esp, 0xc
mov byte [ebp - 4], 1
lea eax, [ebp - 0x284]
push eax
push 0x2001f
push 0
lea ecx, [ebp - 0x250]
call fcn.004e9c70
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x28c], eax
push 0x5a70ac
lea ecx, [ebp - 0x238]
call fcn.004e98c0
mov byte [ebp - 4], 2
cmp dword [ebp + 0xc], 0
jne 0x536112
push 0x5a70e8
lea ecx, [ebp - 0x238]
call fcn.004e9a20
jmp 0x536140
cmp dword [ebp + 0xc], 1
jne 0x53612a
push 0x5a7118
lea ecx, [ebp - 0x238]
call fcn.004e9a20
jmp 0x536140
cmp dword [ebp + 0xc], 2
jne 0x536140
push 0x5a7144
lea ecx, [ebp - 0x238]
call fcn.004e9a20
push 0x5a716c
lea ecx, [ebp - 0x268]
call fcn.004e98c0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x28c], 0
jne 0x536212
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.0055eb60
add esp, 0xc
mov dword [ebp - 0x21c], 1
lea eax, [ebp - 0x220]
push eax
push 0
lea ecx, [ebp - 0x21c]
push ecx
push 0
lea ecx, [ebp - 0x238]
call fcn.004e9c70
push eax
mov edx, dword [ebp - 0x284]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5361fd
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x21c]
push edx
push 0
lea ecx, [ebp - 0x238]
call fcn.004e9c70
push eax
mov eax, dword [ebp - 0x284]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x268]
call fcn.004e9a20
jmp 0x536203
mov edx, dword [ebp + 0x10]
mov byte [edx], 1
mov eax, dword [ebp - 0x284]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x536247
lea ecx, [ebp - 0x284]
push ecx
lea ecx, [ebp - 0x250]
call fcn.004e9c70
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x536247
mov edx, dword [ebp + 0x10]
mov byte [edx], 1
mov eax, dword [ebp - 0x284]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x268]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004e9920
mov edx, dword [ebp - 0x288]
or edx, 1
mov dword [ebp - 0x288], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x268]
call fcn.004e99d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call fcn.004e99d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x250]
call fcn.004e99d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x280]
call fcn.004e99d0
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.0055e48d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x53d540
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59fc7d
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x38]
add ecx, 0x384
call fcn.00552130
movzx eax, al
test eax, eax
je 0x53d585
jmp 0x53d66b
lea ecx, [ebp - 0x30]
push ecx
call fcn.004e3fe0
add esp, 4
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x38]
add edx, 0x384
mov dword [ebp - 0x34], edx
push 4
lea ecx, [ebp - 0x14]
call fcn.00525060
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.00551c50
push 4
lea ecx, [ebp - 0x18]
call fcn.00525060
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.005521b0
jmp 0x53d5da
lea ecx, [ebp - 0x14]
call fcn.005504f0
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.005502e0
movzx eax, al
test eax, eax
je 0x53d65c
lea ecx, [ebp - 0x14]
call fcn.00558c10
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
add ecx, 0x18
call fcn.004e92b0
push eax
lea ecx, [ebp - 0x78]
push ecx
call fcn.004e1e00
add esp, 8
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x44], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x60]
push edx
call fcn.0054bed0
add esp, 0xc
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
call fcn.004e9c70
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x60]
call fcn.004e99d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.004e99d0
jmp 0x53d5d2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004e99d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055e48d
mov esp, ebp
pop ebp
ret
Function at 0x556140
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov eax, dword [ebp + 0x18]
and eax, 1
jne 0x556174
push 9
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00554930
add esp, 0x14
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov byte [ebp - 1], 0x3c
lea ecx, [ebp - 1]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov ecx, eax
call fcn.00558ba0
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov byte [ebp - 2], 0x21
lea edx, [ebp - 2]
push edx
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov ecx, eax
call fcn.00558ba0
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov byte [ebp - 3], 0x5b
lea eax, [ebp - 3]
push eax
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov ecx, eax
call fcn.00558ba0
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov byte [ebp - 4], 0x43
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov ecx, eax
call fcn.00558ba0
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov byte [ebp - 5], 0x44
lea edx, [ebp - 5]
push edx
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov ecx, eax
call fcn.00558ba0
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov byte [ebp - 6], 0x41
lea eax, [ebp - 6]
push eax
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov ecx, eax
call fcn.00558ba0
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov byte [ebp - 7], 0x54
lea ecx, [ebp - 7]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov ecx, eax
call fcn.00558ba0
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov byte [ebp - 8], 0x41
lea edx, [ebp - 8]
push edx
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov ecx, eax
call fcn.00558ba0
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov byte [ebp - 9], 0x5b
lea eax, [ebp - 9]
push eax
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov ecx, eax
call fcn.00558ba0
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.0055a610
mov esi, eax
mov ecx, dword [ebp + 0x14]
call fcn.0055a640
add esi, eax
push esi
mov ecx, dword [ebp + 0x14]
call fcn.0055a610
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.005548e0
add esp, 0x14
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], edx
mov byte [ebp - 0xa], 0x5d
lea eax, [ebp - 0xa]
push eax
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov ecx, eax
call fcn.00558ba0
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov byte [ebp - 0xb], 0x5d
lea ecx, [ebp - 0xb]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov ecx, eax
call fcn.00558ba0
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov byte [ebp - 0xc], 0x3e
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov ecx, eax
call fcn.00558ba0
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x556700
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov eax, dword [ebp + 0x18]
and eax, 1
jne 0x556734
push 9
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00554930
add esp, 0x14
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov byte [ebp - 1], 0x3c
lea ecx, [ebp - 1]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov ecx, eax
call fcn.00558ba0
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov byte [ebp - 2], 0x21
lea edx, [ebp - 2]
push edx
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov ecx, eax
call fcn.00558ba0
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov byte [ebp - 3], 0x44
lea eax, [ebp - 3]
push eax
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov ecx, eax
call fcn.00558ba0
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov byte [ebp - 4], 0x4f
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov ecx, eax
call fcn.00558ba0
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov byte [ebp - 5], 0x43
lea edx, [ebp - 5]
push edx
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov ecx, eax
call fcn.00558ba0
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov byte [ebp - 6], 0x54
lea eax, [ebp - 6]
push eax
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov ecx, eax
call fcn.00558ba0
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov byte [ebp - 7], 0x59
lea ecx, [ebp - 7]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov ecx, eax
call fcn.00558ba0
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov byte [ebp - 8], 0x50
lea edx, [ebp - 8]
push edx
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov ecx, eax
call fcn.00558ba0
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov byte [ebp - 9], 0x45
lea eax, [ebp - 9]
push eax
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov ecx, eax
call fcn.00558ba0
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov byte [ebp - 0xa], 0x20
lea ecx, [ebp - 0xa]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov ecx, eax
call fcn.00558ba0
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.0055a610
mov esi, eax
mov ecx, dword [ebp + 0x14]
call fcn.0055a640
add esi, eax
push esi
mov ecx, dword [ebp + 0x14]
call fcn.0055a610
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.005548e0
add esp, 0x14
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov byte [ebp - 0xb], 0x3e
lea ecx, [ebp - 0xb]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov ecx, eax
call fcn.00558ba0
lea ecx, [ebp + 0xc]
call fcn.00526f40
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [edx], eax
mov ecx, dword [ebp + 0x10]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 8]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x568be3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x584d55
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00569263
mov dword [ebp - 0x14], eax
cmp dword [0x61eb44], esi
jne 0x584e48
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x584dd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x584f28
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x584f28
push 0x5f3e74
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x584f28
push eax
call ebx
push 0x5f3e80
push edi
mov dword [0x61eb44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x61eb48], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5f3ea4
push edi
mov dword [0x61eb4c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x61eb54], eax
test eax, eax
je 0x584e45
push 0x5f3ec0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x61eb50], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x584e6d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x584e60
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x584e82
push 4
pop eax
jmp 0x584f2a
cmp dword [ebp - 0x14], esi
je 0x584e82
push dword [0x61eb44]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x584e67
mov eax, dword [0x61eb50]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x584ee0
cmp dword [0x61eb54], edi
je 0x584ee0
push eax
call ebx
push dword [0x61eb54]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x584ee0
test eax, eax
je 0x584ee0
call ecx
test eax, eax
je 0x584ed5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x584ed5
test byte [ebp - 8], 1
jne 0x584ee0
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x584f10
mov eax, dword [0x61eb48]
cmp eax, edi
je 0x584f0d
push eax
call ebx
test eax, eax
je 0x584f0d
call eax
mov esi, eax
test esi, esi
je 0x584f0d
mov eax, dword [0x61eb4c]
cmp eax, edi
je 0x584f0d
push eax
call ebx
test eax, eax
je 0x584f0d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x61eb44]
call ebx
test eax, eax
je 0x584f28
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x584f2a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055e48d
mov esp, ebp
pop ebp
ret
Function at 0x407674
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.0040a350
test esi, esi
jne 0x4076aa
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.0040a4e8
jmp 0x4076c8
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004075b8
mov edi, eax
test esi, esi
je 0x4076c8
cmp dword [ebx], 0
je 0x4076c8
dec esi
jmp 0x4076b1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408f18
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.004093d8
mov byte [esp], al
cmp byte [esp], 0
jne 0x4090a1
test edi, edi
je 0x4090a1
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408fe1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408fbc
cmp edi, 0xffffffff
je 0x408f7d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408f7d
mov byte [esp], 0
jmp 0x4090a1
cmp dword [esi], 1
jg 0x408fbc
cmp dword [esi], 0
jne 0x408fae
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408fae
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4090a1
lea eax, [esp + 0xc]
call fcn.00408bcc
dec ebp
test ebp, ebp
jg 0x408f62
cmp edi, 0xffffffff
je 0x408fe1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408fdf
mov byte [esp], 0
jmp 0x4090a1
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408f26
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408fe1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040911c
mov edx, eax
mov ebx, dword [0x4ff8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x409045
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x409043
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x409045
xor edi, edi
cmp byte [esp], 0
je 0x40906b
mov ebx, dword [esi]
test bl, 1
jne 0x409081
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40904b
mov byte [esp + 1], 1
jmp 0x409081
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40906b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408ff8
cmp byte [esp], 0
je 0x4090a1
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 0x409d30
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x501b9c
cmp dword [ebp + 0xc], 2
jl 0x409d44
mov ebx, 0x501bcc
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 0x409d7c
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x405200
mov dword [0x4ff01c], eax
mov eax, 0x405208
mov dword [0x4ff020], eax
mov eax, ebx
call fcn.00409c14
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 0x409db1
cmp al, 3
jge 0x409db1
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x409dc2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x409dcd
call dword [ecx + eax*4]
cmp dword [0x4ff040], 0
jne 0x409de3
mov byte [0x4ff048], 1
fnstcw word [0x4f702c]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.0040a080
call fcn.00409cc4
ret 4

Function at 0x409fe8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ff058], 0
je 0x40a04f
cmp word [0x4ff344], 0xd7b2
jne 0x40a011
cmp dword [0x4ff34c], 0
jbe 0x40a011
mov eax, 0x4ff340
call dword [0x4ff35c]
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, 0x40a07c
call fcn.0040ab68
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4f7036], 0
jne 0x40a06b
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a210
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 [0x4f7038], 0
je 0x40a23b
mov edx, edi
mov eax, esi
call dword [0x4f7038]
mov ebx, eax
jmp 0x40a24c
mov eax, 8
call fcn.00406f68
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4ff059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a1d8
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 0x40a27c
mov eax, ebx
call fcn.00406f84
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40d9bc
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 0x40db23
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a350
cmp si, word [0x4f7a18]
jb 0x40da54
cmp si, word [0x4f7c18]
ja 0x40da54
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40da54
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4f7a18]
jae 0x40da2e
mov edi, ebx
dec edi
jmp 0x40da4f
cmp si, word [ebx*8 + 0x4f7a18]
jbe 0x40da3e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40da4f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4f7a1c]
call fcn.0040d8d8
jmp 0x40da54
cmp edi, dword [ebp - 8]
jae 0x40da18
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40db03
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40db03
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.0040ae50
push dword [ebp - 0x160]
push 0x40db40
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040ae50
push dword [ebp - 0x164]
push 0x40db50
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040ae50
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b088
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40db2a
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a3b0
pop eax
jmp eax
Function at 0x40dcd8
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 0x40ddde
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x501c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x501c2c]
jne 0x40dd24
mov eax, esi
mov edx, 0x501c2e
mov ecx, 0x55
call fcn.0040ae50
push 0x501c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40ddc6
push 0x501c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a350
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dd93
cmp byte [0x501c10], 0
je 0x40dd58
mov edx, esi
mov eax, ebx
call fcn.0040dbbc
jmp 0x40dd93
mov edx, esi
mov eax, ebx
call fcn.0040d9bc
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40dd93
cmp dword [esi], 0
je 0x40dd7c
mov eax, esi
mov edx, 0x40ddf8
call fcn.0040afa8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d9bc
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040afa8
push 0x501c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x501c2c], bx
mov eax, dword [esi]
call fcn.0040adb4
mov ecx, eax
mov eax, 0x501c2e
mov edx, 0xaa
call fcn.0040d838
push 0x501c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dde5
lea eax, [ebp - 4]
call fcn.0040a350
pop eax
jmp eax