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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push edi
push edi
push SysStringLen
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, edi
jne 0x10004142
push ebx
push 8
pop esi
mov ebx, 0x104
push ebx
call fcn.10006837
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x10004138
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x10]
push edi
push edi
push edi
push edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 8], ebx
push dword [ebp - 4]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0xea
jne 0x100040ea
cmp dword [ebp - 8], ebx
jbe 0x100040c2
inc dword [ebp - 4]
xor esi, esi
jmp 0x1000410c
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xc], eax
jbe 0x10004130
push dword [ebp - 0x14]
call fcn.100050ca
mov eax, dword [ebp - 0xc]
push eax
mov dword [ebp - 0x10], eax
call fcn.10006837
cmp eax, edi
mov dword [ebp - 0x14], eax
jne 0x100040be
push 8
pop esi
jmp 0x10004130
cmp esi, edi
jne 0x10004126
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.10001d57
mov esi, eax
cmp esi, edi
jne 0x10004126
push edi
push dword [0x1000a2c4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1000408c
jmp 0x10004130
cmp esi, 0x103
jne 0x10004130
xor esi, esi
push dword [ebp - 0x18]
call fcn.100050ca
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 4
Function at 0x1000414a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov edx, esi
call fcn.1000562b
test eax, eax
jne 0x10004243
mov eax, dword [ebp - 4]
push ebx
mov ebx, dword [ebp - 4]
and ebx, 0xfff
neg ebx
sbb ebx, ebx
shr eax, 0xc
neg ebx
add ebx, eax
mov eax, dword [ebp - 8]
push edi
lea edi, [eax + esi]
mov eax, ebx
shl eax, 0xc
push eax
mov dword [ebp - 0x14], edi
call fcn.10006837
mov esi, eax
test esi, esi
mov dword [ebp - 0x10], esi
je 0x1000423e
push dword [ebp - 4]
push edi
push esi
call sub.ntdll.dll_memcpy
add esp, 0xc
xor eax, eax
test ebx, ebx
jbe 0x10004215
mov edx, dword [ebp + 8]
mov ecx, esi
sub ecx, edi
lea ecx, [ecx + edx + 0x1000b7e2]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], esi
mov edx, dword [ebp - 4]
mov esi, str.Jun__6_2021
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [eax + 1]
mov eax, dword [ebp - 0x20]
xor eax, dword [ebp - 0x1c]
mov ecx, edi
add eax, dword [ebp - 8]
push 1
add eax, dword [ebp + 8]
mov esi, 0x1000
shr eax, cl
push eax
mov eax, esi
call fcn.10005f68
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
sub ecx, dword [eax + 8]
add dword [ebp - 4], esi
add ecx, dword [eax + 0xc]
mov eax, edi
cmp eax, ebx
jb 0x100041cb
mov esi, dword [ebp - 0x10]
jmp 0x10004218
mov ecx, dword [ebp + 8]
lea eax, [ecx - 0x63699bc3]
test eax, eax
jne 0x10004233
sub esi, dword [ebp - 0x14]
mov dword [0x1000a2d0], ecx
mov dword [0x1000a2d4], esi
jmp 0x10004241
push esi
call fcn.100050ca
xor eax, eax
inc eax
jmp 0x10004241
push 8
pop eax
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x10004454
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
jne 0x10004472
mov eax, dword [0x1000a2c8]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
mov edx, esi
call fcn.1000143f
cmp edi, ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
jne 0x100044d8
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x100044e7
add eax, eax
push eax
push ebx
push dword [0x1000a290]
call edi
mov ebx, eax
test ebx, ebx
je 0x100044e7
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x100044c7
mov eax, dword [ebp - 4]
add eax, eax
mov ecx, ebx
call fcn.1000283a
xor dword [esi], eax
push ebx
push 0
push dword [0x1000a290]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100044e7
mov eax, dword [esi]
xor eax, dword [0x1000a2d0]
xor eax, 0x4c0ca0ae
mov dword [esi], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetComputerNameW]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
call ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x1000453c
add eax, eax
push eax
push 0
push dword [0x1000a290]
call edi
mov edi, eax
test edi, edi
je 0x1000453c
lea eax, [ebp - 4]
push eax
push edi
call ebx
test eax, eax
je 0x1000452d
mov eax, dword [ebp - 4]
add eax, eax
mov ecx, edi
call fcn.1000283a
xor dword [esi + 0xc], eax
push edi
push 0
push dword [0x1000a290]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
inc eax
cpuid
lea edi, [ebp - 0x18]
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x10]
pop edi
xor eax, dword [ebp - 0x18]
pop ebx
xor dword [esi + 4], eax
leave
ret

Function at 0x10004c1b
Capabilities:
Check os version

Disassembly:
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0x1000a2c4], eax
je 0x10004c7d
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jbe 0x10004c78
mov dword [0x1000a2b4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 4]
push eax
push 0
push 0x10047a
mov dword [0x1000a2b0], eax
mov dword [0x1000a2bc], ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [0x1000a2ac], eax
jne 0x10004c74
or dword [0x1000a2ac], 0xffffffff
xor eax, eax
jmp 0x10004c83
push 0x32
pop eax
jmp 0x10004c83
call dword [sym.imp.KERNEL32.dll_GetLastError]
ret 4
Function at 0x10004f5a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x20
call fcn.10006837
mov esi, eax
test esi, esi
je 0x1000502f
mov eax, dword [0x1000a2d4]
lea eax, [eax + 0x1000b11a]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov eax, dword [0x1000a2d4]
lea eax, [eax + 0x1000b792]
push eax
push ebx
mov dword [ebp - 4], 0x7f
call edi
test eax, eax
mov dword [esi + 0xc], eax
je 0x10005027
mov eax, dword [0x1000a2d4]
lea eax, [eax + 0x1000b77f]
push eax
push ebx
call edi
test eax, eax
mov dword [esi + 0x10], eax
je 0x10005027
mov eax, dword [0x1000a2d4]
lea eax, [eax + 0x1000b74e]
push eax
push ebx
call edi
test eax, eax
mov dword [esi + 0x14], eax
je 0x10005027
mov eax, dword [0x1000a2d4]
lea eax, [eax + 0x1000b72e]
push eax
push ebx
call edi
test eax, eax
mov dword [esi + 0x18], eax
je 0x10005027
mov eax, dword [0x1000a2d4]
lea eax, [eax + 0x1000b7a2]
push eax
push ebx
call edi
test eax, eax
mov dword [esi + 0x1c], eax
je 0x10005027
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, esi
mov dword [esi + 8], 0x40
call fcn.10004248
test eax, eax
mov dword [ebp - 4], eax
jne 0x10005027
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
jmp 0x10005036
push esi
call fcn.100050ca
jmp 0x10005036
mov dword [ebp - 4], 8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1000513e
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, edi
je 0x100051a2
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32First
jmp 0x10005192
mov eax, dword [0x1000a2d4]
lea eax, [eax + 0x1000bdd4]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x10005198
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10005168
jmp 0x1000519b
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x1000562b
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [edx + 0x3c]
add ecx, edx
movzx edx, word [ecx + 0x14]
push esi
movzx esi, word [ecx + 6]
xor eax, eax
lea ecx, [edx + ecx + 0x18]
xor edx, edx
cmp dword [ecx + 4], eax
jne 0x10005650
cmp dword [ecx], 0x7373622e
jne 0x10005650
mov edx, ecx
add ecx, 0x28
dec esi
je 0x1000565a
cmp edx, eax
je 0x10005641
cmp edx, eax
je 0x1000567e
mov ecx, dword [edx + 0xc]
cmp ecx, eax
je 0x1000567a
mov edx, dword [edx + 0x10]
cmp edx, eax
je 0x1000567a
mov esi, dword [esp + 8]
mov dword [esi], ecx
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
jmp 0x10005681
push 0xb
jmp 0x10005680
push 2
pop eax
pop esi
ret 8

Function at 0x100060bd
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x10006384
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0x192
push 0x54d38000
push dword [ebp - 4]
push dword [ebp - 8]
call sub.ntdll.dll__aulldiv
push eax
mov dword [ebp - 8], eax
mov eax, dword [0x1000a2d4]
lea ecx, [eax + 0x1000b8a2]
push ecx
lea eax, [eax + 0x1000b57c]
push eax
lea eax, [ebp - 0x34]
push 0x16
push eax
mov dword [ebp - 4], edx
call sub.ntdll.dll__snwprintf
add esp, 0x14
lea eax, [ebp - 0x34]
push eax
push 0x1000
push 0
push 4
push 0x1000a2f8
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
je 0x10006439
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
je 0x10006407
push 2
pop edi
jmp 0x10006430
push 0
push 0
push 0
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x10006428
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor edi, edi
jmp 0x10006441
call edi
mov edi, eax
test edi, edi
je 0x10006441
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10006441
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret 8
Function at 0x100065e5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x28
push 0x100092b8
call fcn.10007d94
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp word [eax + 4], 0x14c
jne 0x1000660e
add eax, 0x78
jmp 0x10006613
add eax, 0x88
mov esi, dword [eax]
add esi, ecx
cmp dword [eax], edx
je 0x10006701
cmp dword [eax + 4], edx
je 0x10006701
cmp dword [esi + 0x1c], edx
je 0x10006701
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x28], eax
cmp eax, edx
je 0x10006701
mov eax, dword [esi + 0x1c]
add eax, ecx
mov dword [ebp - 0x30], eax
cmp dword [esi + 0x24], edx
je 0x100066f1
mov edi, dword [esi + 0x24]
add edi, ecx
mov dword [ebp - 0x38], edi
mov ebx, dword [esi + 0x20]
add ebx, ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
jae 0x10006701
and dword [ebp - 0x1c], 0
xor eax, eax
inc eax
je 0x10006682
movzx ecx, word [edi]
add ecx, dword [esi + 0x10]
cmp eax, ecx
jmp 0x100066b3
mov eax, dword [ebx]
add eax, ecx
mov dword [ebp - 0x2c], eax
xor ecx, ecx
inc ecx
je 0x100066a0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100066bc
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jmp 0x100066b3
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x2c]
call fcn.1000283a
xor ecx, ecx
cmp ecx, eax
jne 0x100066bc
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 0
je 0x100066db
movzx eax, word [edi]
mov ecx, dword [ebp - 0x30]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x20], eax
xor eax, eax
je 0x10006701
mov ecx, dword [ebx]
add ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x10006701
add ebx, 4
mov dword [ebp - 0x34], ebx
inc edi
inc edi
mov dword [ebp - 0x38], edi
inc dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
jmp 0x10006663
mov dword [ebp - 0x20], eax
jmp 0x10006701
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
call fcn.10007dcf
ret 4
Function at 0x10006a36
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x10006a65
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 fcn.10004323
mov esi, eax
cmp esi, ebx
je 0x10006aec
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
cmp esi, ebx
jne 0x10006aec
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call esi
cmp dword [ebp + 8], ebx
je 0x10006ade
push dword [ebp + 8]
call fcn.10006837
mov edi, eax
cmp edi, ebx
je 0x10006ad9
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call esi
mov esi, eax
cmp esi, ebx
jne 0x10006ad1
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x10006ae3
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x10006ae3
push edi
call fcn.100050ca
jmp 0x10006ae3
push 8
pop esi
jmp 0x10006ae3
mov esi, 0xe8
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18

Function at 0x10006be1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
push esi
push edi
push ebx
call fcn.10002902
test eax, eax
mov dword [ebp + 8], eax
je 0x10006c64
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call sub.ntdll.dll_memset
mov eax, dword [0x1000a2d4]
add esp, 0xc
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x3c], 0x3c
je 0x10006c27
lea eax, [eax + 0x1000b8f8]
jmp 0x10006c2d
lea eax, [eax + 0x1000b4c8]
mov dword [ebp - 0x20], esi
mov esi, dword [sym.imp.KERNEL32.dll_Wow64EnableWow64FsRedirection]
push 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], edi
call esi
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x10006c5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x10006c60
and dword [ebp + 8], 0
push 1
call esi
mov eax, dword [ebp + 8]
pop esi
pop ebx
leave
ret 8
Function at 0x100071a5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1000a2d4]
and dword [ebp - 4], 0
push ebx
lea eax, [eax + 0x1000ba30]
push eax
mov dword [ebp - 0xc], 4
call fcn.10003875
mov ebx, eax
test ebx, ebx
je 0x10007237
mov eax, dword [0x1000a2d4]
push edi
lea eax, [eax + 0x1000ba8c]
push eax
call fcn.10003875
mov edi, eax
test edi, edi
je 0x10007230
lea eax, [ebp - 8]
push eax
push 0x20119
push 0
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000722a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10007221
and dword [ebp - 4], 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.100050ca
push ebx
call fcn.100050ca
pop edi
mov eax, dword [ebp - 4]
pop ebx
leave
ret
Function at 0x4070b0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4070f2
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x407112
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040b318
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x408e18
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.004092d8
mov byte [esp], al
cmp byte [esp], 0
jne 0x408fa1
test edi, edi
je 0x408fa1
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408ee1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408ebc
cmp edi, 0xffffffff
je 0x408e7d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408e7d
mov byte [esp], 0
jmp 0x408fa1
cmp dword [esi], 1
jg 0x408ebc
cmp dword [esi], 0
jne 0x408eae
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408eae
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408fa1
lea eax, [esp + 0xc]
call fcn.00408af8
dec ebp
test ebp, ebp
jg 0x408e62
cmp edi, 0xffffffff
je 0x408ee1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408edf
mov byte [esp], 0
jmp 0x408fa1
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408e26
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408ee1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040901c
mov edx, eax
mov ebx, dword [0x6d08fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408f45
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408f43
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408f45
xor edi, edi
cmp byte [esp], 0
je 0x408f6b
mov ebx, dword [esi]
test bl, 1
jne 0x408f81
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408f4b
mov byte [esp + 1], 1
jmp 0x408f81
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408f6b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408ef8
cmp byte [esp], 0
je 0x408fa1
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 0x409e60
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x6d005c], 0
je 0x409ec7
cmp word [0x6d0348], 0xd7b2
jne 0x409e89
cmp dword [0x6d0350], 0
jbe 0x409e89
mov eax, 0x6d0344
call dword [0x6d0360]
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, 0x409ef4
call fcn.0040ac70
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x6c6036], 0
jne 0x409ee3
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a088
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 [0x6c6038], 0
je 0x40a0b3
mov edx, edi
mov eax, esi
call dword [0x6c6038]
mov ebx, eax
jmp 0x40a0c4
mov eax, 8
call fcn.00406f0c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x6d005d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a050
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 0x40a0f4
mov eax, ebx
call fcn.00406f28
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40dc78
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 0x40dddd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a1c8
cmp si, word [0x6c6a18]
jb 0x40dd10
cmp si, word [0x6c6c18]
ja 0x40dd10
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40dd10
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x6c6a18]
jae 0x40dcea
mov edi, ebx
dec edi
jmp 0x40dd0b
cmp si, word [ebx*8 + 0x6c6a18]
jbe 0x40dcfa
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40dd0b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x6c6a1c]
call fcn.0040db98
jmp 0x40dd10
cmp edi, dword [ebp - 8]
jae 0x40dcd4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40ddbf
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ddbf
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.0040b318
push dword [ebp - 0x160]
push 0x40ddf8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b318
push dword [ebp - 0x164]
push 0x40de08
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b318
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b550
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dde4
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a228
ret
Function at 0x40df90
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 0x40e094
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x6d2c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x6d2c2c]
jne 0x40dfdc
mov eax, esi
mov edx, 0x6d2c2e
mov ecx, 0x55
call fcn.0040b318
push 0x6d2c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e07e
push 0x6d2c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a1c8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e04b
cmp byte [0x6d2c10], 0
je 0x40e010
mov edx, esi
mov eax, ebx
call fcn.0040de74
jmp 0x40e04b
mov edx, esi
mov eax, ebx
call fcn.0040dc78
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40e04b
cmp dword [esi], 0
je 0x40e034
mov eax, esi
mov edx, 0x40e0ac
call fcn.0040b470
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040dc78
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b470
push 0x6d2c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x6d2c2c], bx
mov eax, dword [esi]
call fcn.0040b278
mov ecx, eax
mov eax, 0x6d2c2e
mov edx, 0xaa
call fcn.0040daf8
push 0x6d2c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e09b
lea eax, [ebp - 4]
call fcn.0040a1c8
ret