joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449bd4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x449bf0
cmp dword [esi + 4], 0
je 0x449c1d
test byte [ebx + 0x55], 1
jne 0x449c0f
mov eax, ebx
call fcn.00448774
test eax, eax
jne 0x449c0f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x449d2d
mov edx, esi
mov eax, ebx
call fcn.004496f8
jmp 0x449d2d
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x449d26
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0044ba44
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00446410
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00449bd4
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0044ba44
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x449d2d
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4501f8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45a9c0]
cmp byte [eax + 0xc], 0
je 0x450365
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45035e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45bba4], 0
jne 0x45024c
push 0x45036c
call sub.KERNEL32.DLL_GetModuleHandleA_1
mov ebx, eax
push 0x450374
push ebx
call sub.KERNEL32.DLL_GetProcAddress_1
mov dword [0x45bba4], eax
cmp dword [0x459d98], 0
jne 0x450347
push 0x450384
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x459d98], eax
cmp dword [0x459d98], 0
je 0x450347
push 0x450390
mov eax, dword [0x459d98]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov dword [0x45bba8], eax
push 0x4503a0
mov eax, dword [0x459d98]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov dword [0x45bbac], eax
push 0x4503b4
mov eax, dword [0x459d98]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov dword [0x45bbb0], eax
push 0x4503cc
mov eax, dword [0x459d98]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov dword [0x45bbb4], eax
push 0x4503e4
mov eax, dword [0x459d98]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov dword [0x45bbb8], eax
push 0x4503f8
mov eax, dword [0x459d98]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov dword [0x45bbbc], eax
push 0x450410
mov eax, dword [0x459d98]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov dword [0x45bbc0], eax
push 0x450428
mov eax, dword [0x459d98]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov dword [0x45bbc4], eax
push 0x450444
mov eax, dword [0x459d98]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov dword [0x45bbc8], eax
push 0x450450
mov eax, dword [0x459d98]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov dword [0x45bbcc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450365
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x45701c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
add edi, 0xfffffffc
xor eax, eax
push ebp
push 0x45715c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [edi]
mov byte [eax + 5], 0
mov eax, dword [0x45a9b4]
cmp dword [eax], 1
jne 0x457057
lea eax, [ebp - 4]
mov edx, 0x457174
call fcn.00403f3c
jmp 0x457064
lea eax, [ebp - 4]
mov edx, 0x457188
call fcn.00403f3c
lea eax, [ebp - 4]
call fcn.004043bc
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov ebx, eax
mov eax, dword [edi]
mov dword [eax + 0xc], ebx
test ebx, ebx
jbe 0x457146
push 0x457198
push ebx
call sub.KERNEL32.DLL_GetProcAddress_1
mov ebx, eax
call ebx
mov esi, eax
mov eax, dword [edi]
mov dword [eax + 8], esi
mov ebx, esi
cmp dword [ebx + 0x44], 0
je 0x4570e1
cmp dword [ebx + 0x40], 0
je 0x4570e1
cmp dword [ebx + 0x24], 0
je 0x4570e1
cmp dword [ebx + 0x10], 0
je 0x4570e1
cmp dword [ebx + 0xc], 0
je 0x4570e1
cmp dword [ebx + 0x18], 0
je 0x4570e1
cmp dword [ebx + 0x1c], 0
je 0x4570e1
cmp dword [ebx + 0x30], 0
je 0x4570e1
cmp dword [ebx + 0x34], 0
je 0x4570e1
cmp dword [ebx + 0x2c], 0
je 0x4570e1
cmp dword [ebx + 0x38], 0
je 0x4570e1
cmp dword [ebx + 0x3c], 0
jne 0x4570e5
xor eax, eax
jmp 0x4570e7
mov al, 1
mov edx, dword [edi]
mov byte [edx + 5], al
cmp dword [ebx + 0x64], 0
jne 0x457119
push 0x4571b0
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
test eax, eax
je 0x457119
push 0x4571b0
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov dword [ebx + 0x64], eax
cmp dword [ebx + 0x68], 0
jne 0x457146
push 0x4571c0
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
test eax, eax
je 0x457146
push 0x4571c0
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov dword [ebx + 0x68], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457163
lea eax, [ebp - 4]
call fcn.00403ea4
ret
Function at 0x404dec
Capabilities:
Check if file exists

Disassembly:
push 0x24
mov eax, 0x40668a
call fcn.004058c6
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [0x40a1cc], ebx
jne 0x404e0c
mov al, 1
jmp 0x404ede
cmp esi, ebx
je 0x404edc
cmp word [esi], bx
je 0x404edc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404edc
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x404edc
lea eax, [ebp - 0x2c]
push esi
push eax
mov byte [ebp - 0x2d], bl
call main
pop ecx
pop ecx
mov esi, dword [0x40a1cc]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], ebx
je 0x404ec8
lea eax, [ebp - 0x2c]
push eax
call main
pop ecx
test al, al
jne 0x404ec8
cmp dword [ebp - 0x1c], esi
jbe 0x404ec8
cmp dword [0x40a1d0], 8
mov ecx, dword [0x40a1bc]
jae 0x404e7f
mov ecx, 0x40a1bc
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x404e8b
lea eax, [ebp - 0x2c]
push esi
push ecx
push eax
call dword [sym.imp.MSVCR100.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x404ec8
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x404ea7
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp eax, ebx
je 0x404ec8
push str..lnk
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x404ec8
mov byte [ebp - 0x2d], 1
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call main
mov al, byte [ebp - 0x2d]
jmp 0x404ede
xor al, al
call fcn.00405910
ret
Function at 0x404ee4
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
push 0x23c
mov eax, 0x4066ba
call fcn.004058c6
and dword [ebp - 0x23c], 0
lea eax, [ebp - 0x23c]
push eax
mov byte [ebp - 0x235], 0
call dword [sym.imp.kernel32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x248], eax
test eax, eax
je 0x405086
mov edi, dword [sym.imp.MSVCR100.dll_wcslen]
mov ebx, str.__alloweddir
push ebx
mov byte [ebp - 0x235], 1
call edi
mov dword [ebp - 0x244], eax
xor eax, eax
pop ecx
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x23c], eax
jle 0x40507a
mov ecx, dword [ebp - 0x248]
lea esi, [ecx + eax*4]
mov eax, dword [esi]
test eax, eax
je 0x405061
push dword [ebp - 0x244]
push ebx
push eax
call dword [sym.imp.MSVCR100.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x405061
mov ecx, dword [ebp - 0x244]
mov byte [ebp - 0x235], al
mov eax, dword [esi]
lea esi, [eax + ecx*2]
cmp word [esi], 0
je 0x405061
push esi
call edi
pop ecx
cmp eax, 0x104
jae 0x405061
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405061
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x405061
lea eax, [ebp - 0x234]
push esi
push eax
call main
pop ecx
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp - 0x224], esi
je 0x40504f
mov ecx, 0x104
cmp dword [ebp - 0x224], ecx
jae 0x40504f
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x405005
lea eax, [ebp - 0x234]
push eax
push ecx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
test eax, eax
jne 0x40504f
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x40504f
lea eax, [ebp - 0x218]
push eax
call edi
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, 0x40a1bc
call main
mov byte [ebp - 0x235], 1
or dword [ebp - 4], 0xffffffff
push esi
push 1
lea ecx, [ebp - 0x234]
call main
mov eax, dword [ebp - 0x240]
inc eax
mov dword [ebp - 0x240], eax
cmp eax, dword [ebp - 0x23c]
jl 0x404f53
push dword [ebp - 0x248]
call dword [sym.imp.kernel32.dll_LocalFree]
mov al, byte [ebp - 0x235]
call fcn.00405910
ret

Function at 0x40584e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a224]
jne 0x405858
repz ret
jmp fcn.00405df1
Function at 0x405cc2
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x4080b0
call fcn.00405f10
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
cmp dword [0x40a5bc], ebx
jne 0x405a5d
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x24], ebx
mov edi, 0x40a5b8
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x405a97
cmp eax, esi
jne 0x405a8a
xor esi, esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x405a9a
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x405a71
xor esi, esi
inc esi
mov eax, dword [0x40a5b4]
cmp eax, esi
jne 0x405aad
push 0x1f
call sub.MSVCR100.dll__amsg_exit
pop ecx
jmp 0x405ae8
mov eax, dword [0x40a5b4]
test eax, eax
jne 0x405ae2
mov dword [0x40a5b4], esi
push 0x407264
push 0x407258
call sub.MSVCR100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x405ae8
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x405c02
mov dword [0x40a278], esi
mov eax, dword [0x40a5b4]
cmp eax, esi
jne 0x405b0c
push 0x407254
push 0x40723c
call sub.MSVCR100.dll__initterm
pop ecx
pop ecx
mov dword [0x40a5b4], 2
cmp dword [ebp - 0x24], ebx
jne 0x405b19
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x40a5c0], ebx
je 0x405b3a
push 0x40a5c0
call main
pop ecx
test eax, eax
je 0x405b3a
push ebx
push 2
push ebx
call dword [0x40a5c0]
mov eax, dword [sym.imp.MSVCR100.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x405b93
cmp al, bl
je 0x405b53
cmp dword [ebp - 0x1c], ebx
jne 0x405b93
mov al, byte [esi]
cmp al, bl
je 0x405b63
cmp al, 0x20
ja 0x405b63
inc esi
mov dword [ebp - 0x20], esi
jmp 0x405b53
test byte [ebp - 0x40], 1
je 0x405b6f
movzx eax, word [ebp - 0x3c]
jmp 0x405b72
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x40a274], eax
cmp dword [0x40a268], ebx
jne 0x405be8
push eax
call dword [sym.imp.MSVCR100.dll_exit]
cmp al, 0x22
jne 0x405ba2
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR100.dll__ismbblead]
pop ecx
test eax, eax
je 0x405bb5
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x405b41
cmp dword [0x40a278], ebx
jne 0x405bf6
call dword [sym.imp.MSVCR100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x40a274]
call fcn.00405f55
ret
call main
jmp 0x405a2f
Function at 0x403cc4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x403cd3
pop dword [ebp - 0x50]
mov eax, 0xb5280e57
add eax, 0x4b182e7c
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x4e4fa
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x40f7
mov edi, eax
mov ebx, 0xee503c71
sub ebx, 0xee07be71
add ebx, dword [ebp - 0x50]
mov edx, 0x4c8f5b25
add edx, 0x56bebf2
mov dword [ebp - 0x48], 0x4b6d23de
mov esi, dword [ebx]
xor dword [ebp - 0xc], edi
xor esi, edx
sub dword [ebp - 0x34], ebx
mov dword [edi], esi
add edi, 0x3b637fde
add edi, 0xc49c8026
add ebx, 0x7e8947df
add ebx, 0x8176b825
loop 0x403d27
add eax, 0x9e30c969
add eax, 0x61d02d46
xor ebx, ebx
add ebx, eax
add eax, 0x96d3c4e7
sub eax, 0x96d3c4e2
mov ecx, 0x7eca77c0
add ecx, 0x81758840
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x43fcae
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fcf1
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fcf6
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fd07
test eax, eax
jne 0x43fdae
push 0x46b5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fdb8
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43fd6c
test eax, eax
jne 0x43fd6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fd56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fd5d
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403821
jmp 0x43fdb8
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43fdae
test eax, eax
jne 0x43fdae
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fda2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fda9
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43fd60
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x4071fc
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.00409cd4
test esi, esi
jne 0x407232
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.00409e5c
jmp 0x407250
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407140
mov edi, eax
test esi, esi
je 0x407250
cmp dword [ebx], 0
je 0x407250
dec esi
jmp 0x407239
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408924
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.00408de4
mov byte [esp], al
cmp byte [esp], 0
jne 0x408aad
test edi, edi
je 0x408aad
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4089ed
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4089c8
cmp edi, 0xffffffff
je 0x408989
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408989
mov byte [esp], 0
jmp 0x408aad
cmp dword [esi], 1
jg 0x4089c8
cmp dword [esi], 0
jne 0x4089ba
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4089ba
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408aad
lea eax, [esp + 0xc]
call fcn.004085e0
dec ebp
test ebp, ebp
jg 0x40896e
cmp edi, 0xffffffff
je 0x4089ed
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4089eb
mov byte [esp], 0
jmp 0x408aad
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408932
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4089ed
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408b28
mov edx, eax
mov ebx, dword [0x6848fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408a51
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408a4f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408a51
xor edi, edi
cmp byte [esp], 0
je 0x408a77
mov ebx, dword [esi]
test bl, 1
jne 0x408a8d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a57
mov byte [esp + 1], 1
jmp 0x408a8d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a77
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408a04
cmp byte [esp], 0
je 0x408aad
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 0x40996c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x68405c], 0
je 0x4099d3
cmp word [0x684348], 0xd7b2
jne 0x409995
cmp dword [0x684350], 0
jbe 0x409995
mov eax, 0x684344
call dword [0x684360]
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, 0x409a00
call fcn.0040a530
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x67a032], 0
jne 0x4099ef
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409b94
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 [0x67a034], 0
je 0x409bbf
mov edx, edi
mov eax, esi
call dword [0x67a034]
mov ebx, eax
jmp 0x409bd0
mov eax, 8
call fcn.00406e7c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x68405d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409b5c
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 0x409c00
mov eax, ebx
call fcn.00406e98
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c93c
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 0x40caa1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409cd4
cmp si, word [0x67aa08]
jb 0x40c9d4
cmp si, word [0x67ac08]
ja 0x40c9d4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c9d4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x67aa08]
jae 0x40c9ae
mov edi, ebx
dec edi
jmp 0x40c9cf
cmp si, word [ebx*8 + 0x67aa08]
jbe 0x40c9be
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c9cf
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x67aa0c]
call fcn.0040c85c
jmp 0x40c9d4
cmp edi, dword [ebp - 8]
jae 0x40c998
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40ca83
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x40ca83
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.0040a894
push dword [ebp - 0x160]
push 0x40cabc
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a894
push dword [ebp - 0x164]
push 0x40cacc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a894
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040aacc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40caa8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409d34
ret
Function at 0x40cc54
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 0x40cd58
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x686c14
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x686c2c]
jne 0x40cca0
mov eax, esi
mov edx, 0x686c2e
mov ecx, 0x55
call fcn.0040a894
push 0x686c14
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x40cd42
push 0x686c14
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.00409cd4
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x40cd0f
cmp byte [0x686c10], 0
je 0x40ccd4
mov edx, esi
mov eax, ebx
call fcn.0040cb38
jmp 0x40cd0f
mov edx, esi
mov eax, ebx
call fcn.0040c93c
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40cd0f
cmp dword [esi], 0
je 0x40ccf8
mov eax, esi
mov edx, 0x40cd70
call fcn.0040a9ec
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c93c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a9ec
push 0x686c14
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x686c2c], bx
mov eax, dword [esi]
call fcn.0040a7dc
mov ecx, eax
mov eax, 0x686c2e
mov edx, 0xaa
call fcn.0040c7bc
push 0x686c14
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd5f
lea eax, [ebp - 4]
call fcn.00409cd4
ret