joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000fd00
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov esi, ecx
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x40]
test eax, eax
je 0x1000fd21
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea edi, [esi + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esi + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
push str.HttpRelease_..._remain:__d
push 0x100364d8
mov edi, ebx
call fcn.10007c70
add esp, 0xc
xor ebx, ebx
call ebp
sub eax, dword [esp + 0x10]
cmp eax, 0xea60
ja 0x1000fda8
lea esp, [esp]
mov ecx, esi
call fcn.1000fb90
mov edi, eax
test edi, edi
je 0x1000fda8
mov eax, dword [0x100364ac]
test eax, eax
je 0x1000fd89
mov ecx, dword [0x100364ac]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
inc ebx
cmp ebx, 0xa
jae 0x1000fd93
push 0xa
jmp 0x1000fd95
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebp
sub eax, dword [esp + 0x10]
cmp eax, 0xea60
jbe 0x1000fd60
mov eax, dword [esi + 0x3c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1000fdcb
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x3c]
push edx
call ebx
mov dword [esi + 0x3c], 0
mov eax, dword [esi + 0x40]
test eax, eax
je 0x1000fddc
push eax
call ebx
mov dword [esi + 0x40], 0
push edi
call ebp
sub eax, dword [esp + 0x14]
push eax
push str.HttpRelease_cost__d_ms__remain_task_d
push 0x100364d8
call fcn.10007c70
add esp, 0x10
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
sete al
pop ebx
pop ecx
ret

Function at 0x10010030
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x10035204]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [esp + 0x218]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov dword [esp + 0x10], 0
mov word [esp + 0x14], ax
call fcn.10012850
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0
push 0
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, esi
test eax, eax
jge 0x10010091
push 0x1002bf64
jmp 0x10010096
lea eax, [esp + 8]
push eax
call fcn.10007a20
mov ecx, dword [esp + 0x210]
mov eax, esi
pop esi
xor ecx, esp
call fcn.10012840
add esp, 0x210
ret
Function at 0x10010150
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x1002a91b
mov eax, dword fs:[0]
push eax
mov eax, 0x4014
call fcn.10013480
mov eax, dword [0x10035204]
xor eax, esp
mov dword [esp + 0x4010], eax
push esi
push edi
mov eax, dword [0x10035204]
xor eax, esp
push eax
lea eax, [esp + 0x4020]
mov dword fs:[0], eax
mov esi, dword [esp + 0x4030]
mov edi, dword [esp + 0x4034]
xor eax, eax
push 0x3ffe
push eax
lea ecx, [esp + 0x26]
mov dword [esp + 0x18], 0
push ecx
mov word [esp + 0x28], ax
call fcn.10012850
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push edi
mov dword [esp + 0x1c], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x10010279
cmp eax, 0x2000
ja 0x10010279
lea ecx, [esp + 0x1c]
push ecx
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10010279
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push 0x1002c388
lea ecx, [esp + 0x28]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10010279
mov edx, dword [0x10036514]
mov eax, dword [edx + 0xc]
mov ecx, 0x10036514
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
lea eax, [esp + 0x1c]
push str._d._d._d._d
push eax
mov dword [esp + 0x4040], 0
call fcn.10007960
add esp, 0x18
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.1000f800
lea ecx, [esp + 0xc]
call fcn.10004ed0
jmp 0x10010285
push 0x1002bf64
mov ecx, esi
call fcn.10007a20
mov eax, esi
mov ecx, dword [esp + 0x4020]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x4010]
xor ecx, esp
call fcn.10012840
add esp, 0x4020
ret

Function at 0x10011240
Capabilities:
Create thread

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0x3c], 0
jne 0x1001129e
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + 4]
push esi
lea esi, [edi + 4]
push ecx
mov ecx, esi
call fcn.100105e0
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
push 0
mov dword [esi + 0x1c], 0
push 0
mov dword [eax], eax
mov esi, dword [esi + 0x18]
push 1
push 0
mov dword [esi + 8], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push edi
push 0x10011210
push 0
push 0
mov dword [edi + 0x40], eax
call fcn.10014dc5
add esp, 0x18
mov dword [edi + 0x3c], eax
pop esi
xor eax, eax
cmp dword [edi + 0x3c], eax
pop edi
setne al
ret

Function at 0x10012840
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10035204]
jne 0x1001284a
repz ret
jmp fcn.100164ba
Function at 0x1001ff15
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10018c58
and dword [ebp - 4], 0
cmp dword [0x10036f4c], 0
mov ebx, eax
jne 0x1001ffc6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10020077
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10020077
push eax
call fcn.10018be6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10036f4c], eax
call esi
push eax
call fcn.10018be6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10036f50], eax
call esi
push eax
call fcn.10018be6
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10036f54], eax
call esi
push eax
call fcn.10018be6
pop ecx
mov dword [0x10036f5c], eax
test eax, eax
je 0x1001ffc6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10018be6
pop ecx
mov dword [0x10036f58], eax
mov eax, dword [0x10036f58]
cmp eax, ebx
je 0x1002001e
cmp dword [0x10036f5c], ebx
je 0x1002001e
push eax
call fcn.10018c61
push dword [0x10036f5c]
mov esi, eax
call fcn.10018c61
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1002001e
test edi, edi
je 0x1002001e
call esi
test eax, eax
je 0x10020015
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10020015
test byte [ebp - 0xc], 1
jne 0x1002001e
or dword [ebp + 0x10], 0x200000
jmp 0x10020057
mov eax, dword [0x10036f50]
cmp eax, ebx
je 0x10020057
push eax
call fcn.10018c61
pop ecx
test eax, eax
je 0x10020057
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10020057
mov eax, dword [0x10036f54]
cmp eax, ebx
je 0x10020057
push eax
call fcn.10018c61
pop ecx
test eax, eax
je 0x10020057
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10036f4c]
call fcn.10018c61
pop ecx
test eax, eax
je 0x10020077
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10020079
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10024a60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x2c]
push ebp
push esi
mov ebp, dword [edi + 0x3c]
sub ebp, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea edx, [ebx + ecx - 0x106]
sub ebp, eax
cmp eax, edx
jb 0x10024ade
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.10012a60
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x10024ab1
sub eax, ebx
jmp 0x10024ab3
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x10024aa2
mov ecx, dword [edi + 0x40]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x10024ad2
sub eax, ebx
jmp 0x10024ad4
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x10024ac3
add ebp, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x10024b39
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
mov ecx, ebp
add edx, dword [edi + 0x38]
push edx
call fcn.10024760
add dword [edi + 0x74], eax
mov edx, dword [edi + 0x74]
add esp, 4
cmp edx, 3
jb 0x10024b25
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp edx, 0x106
jae 0x10024b39
mov edx, dword [edi]
cmp dword [edx + 4], 0
jne 0x10024a66
pop esi
pop ebp
pop ebx
ret
Function at 0x402680
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 1
call sub.msvcrt.dll___set_app_type
add esp, 4
mov dword [0x40600c], 0
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 8]
push ecx
push 0
lea edx, [ebp - 4]
push edx
call sub.msvcrt.dll___p___wargv
push eax
call sub.msvcrt.dll___p___argc
push eax
call sub.msvcrt.dll___wgetmainargs
add esp, 0x14
push 0x403068
push 0x403064
call sub.msvcrt.dll__fcloseall
add esp, 8
push 0x403060
push 0x40305c
call sub.msvcrt.dll__initterm
add esp, 8
mov eax, dword [ebp - 4]
push eax
call sub.msvcrt.dll___p___wargv
mov ecx, dword [eax]
push ecx
call sub.msvcrt.dll___p___argc
mov edx, dword [eax]
push edx
call fcn.0040112a
add esp, 0xc
mov dword [ebp - 0xc], eax
call fcn.00402790
push 0x403078
push 0x403074
call sub.msvcrt.dll__initterm
add esp, 8
push 0x403080
push 0x40307c
call sub.msvcrt.dll__initterm
add esp, 8
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4151e6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x415283
push ebx
push esi
call fcn.004151af
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00413e34
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x415230
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415282
push edi
push eax
call fcn.00412001
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x415250
call fcn.0040efd8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415281
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00413e34
add esp, 0x20
test eax, eax
jne 0x41526f
push edi
call fcn.0040efd8
jmp 0x415277
push ebx
call fcn.0040efd8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41ae50
Capabilities:
Parse pe header

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

Function at 0x41c20e
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x40
push 0x1000
mov ebx, 0x4ac
xor ebp, ebp
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
mov edi, 0x472a10
mov esi, eax
push edi
call fcn.0041c168
push ebx
push edi
push esi
call fcn.00405470
add esp, 0x14
call fcn.0041c14e
push ebp
push ebp
push 0x427010
lea eax, [esi + 0x188]
push eax
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
push ebp
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1001bd34
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ebx, ebx
push edi
mov edi, ecx
push 5
pop eax
push ebx
mov dword [edi], eax
mov dword [edi + 4], eax
mov word [edi + 8], 1
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
push 0x5b
mov dword [edi + 0xc], 4
call esi
push ebx
push 0x10
mov byte [edi + 0x29], al
call esi
push ebx
push 0xa0
mov byte [edi + 0x26], al
call esi
push ebx
push 0xa1
mov byte [edi + 0x27], al
call esi
push ebx
push 0x11
mov byte [edi + 0x28], al
call esi
push ebx
push 0x12
mov byte [edi + 0x24], al
call esi
mov byte [edi + 0x25], al
pop edi
pop esi
pop ebx
ret

Function at 0x1002093b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x1002094a
pop dword [ebp - 0x30]
mov eax, 0x1002094a
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x32dc34fc
sub dword [ebp - 0x40], 0xe489efb1
mov dword [ebp - 0x3c], 0xa8a9a036
sub dword [ebp - 0x3c], 0x767653f1
mov dword [ebp - 0x38], 0x52ebf787
sub dword [ebp - 0x38], 0x69fb359
mov dword [ebp - 0x34], 0x989f960d
sub dword [ebp - 0x34], 0x989f960d
lea eax, [ebp - 0x40]
push eax
mov eax, 0x34f9ee80
add eax, 0xdb0a6284
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x56a991a
add dword [ebp - 0x40], 0x6f07d03c
mov dword [ebp - 0x3c], 0x29c3eeda
add dword [ebp - 0x3c], 0x17a8729b
mov dword [ebp - 0x38], 0x951ee639
add dword [ebp - 0x38], 0xce508633
mov dword [ebp - 0x34], 0xcd947df5
add dword [ebp - 0x34], 0x326b820b
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0xa2097cca
sub eax, 0x92052c12
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x4b4d4
push 0
call eax
mov ecx, 0x6d3d226b
sub ecx, 0x6d3cd69b
xor edi, edi
add edi, eax
mov ebx, 0x29cdebdd
sub ebx, 0x19c69bdd
add ebx, dword [ebp - 0x30]
mov esi, 0x8129b4fa
mov dword [ebp - 0x28], 0x7634e7f9
mov edx, dword [ebx]
add dword [ebp - 0x1c], 0x3c20883a
xor edx, esi
add dword [ebp - 0x24], eax
mov dword [edi], edx
add edi, 4
add ebx, 4
loop 0x10020a63
add eax, 0x12213
xor ebx, ebx
add ebx, eax
add eax, 0xb6187bec
add eax, 0x49e78419
mov ecx, 0x10000000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x404c80
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.00406ee0
test esi, esi
jne 0x404cb6
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.00407068
jmp 0x404cd4
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404bc4
mov edi, eax
test esi, esi
je 0x404cd4
cmp dword [ebx], 0
je 0x404cd4
dec esi
jmp 0x404cbd
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405c48
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00406020
mov byte [esp], al
cmp byte [esp], 0
jne 0x405dc8
test edi, edi
je 0x405dc8
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405d08
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405ce3
cmp edi, 0xffffffff
je 0x405ca7
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405ca7
mov byte [esp], 0
jmp 0x405dc8
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405ce3
test ebx, ebx
jne 0x405cd9
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x405cd9
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405dc8
call 0x406140
dec ebp
test ebp, ebp
jg 0x405c8c
cmp edi, 0xffffffff
je 0x405d08
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405d06
mov byte [esp], 0
jmp 0x405dc8
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405c56
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405d08
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405e34
mov edx, eax
mov ebx, dword [0x5a98f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405d6c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405d6a
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405d6c
xor edi, edi
cmp byte [esp], 0
je 0x405d92
mov ebx, dword [esi]
test bl, 1
jne 0x405da8
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405d72
mov byte [esp + 1], 1
jmp 0x405da8
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405d92
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405d1f
cmp byte [esp], 0
je 0x405dc8
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406b7c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5a9058], 0
je 0x406be3
cmp word [0x5a9344], 0xd7b2
jne 0x406ba5
cmp dword [0x5a934c], 0
jbe 0x406ba5
mov eax, 0x5a9340
call dword [0x5a935c]
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, 0x406c10
call fcn.0040774c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5a1032], 0
jne 0x406bff
push 0
push 0x5a19c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406da0
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 [0x5a1034], 0
je 0x406dcb
mov edx, edi
mov eax, esi
call dword [0x5a1034]
mov ebx, eax
jmp 0x406ddc
mov eax, 8
call fcn.00404900
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5a9059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406d68
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 0x406e0c
mov eax, ebx
call fcn.0040491c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x409504
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 0x409669
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406ee0
cmp si, word [0x5a1a00]
jb 0x40959c
cmp si, word [0x5a1c00]
ja 0x40959c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40959c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5a1a00]
jae 0x409576
mov edi, ebx
dec edi
jmp 0x409597
cmp si, word [ebx*8 + 0x5a1a00]
jbe 0x409586
inc ebx
mov dword [ebp - 8], ebx
jmp 0x409597
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5a1a04]
call fcn.00409424
jmp 0x40959c
cmp edi, dword [ebp - 8]
jae 0x409560
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40964b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40964b
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.00407b08
push dword [ebp - 0x160]
push 0x409684
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407b08
push dword [ebp - 0x164]
push 0x409694
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407b08
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407d40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409670
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406f40
ret
Function at 0x40981c
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 0x40991f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5abb88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5abba0]
jne 0x409868
mov eax, esi
mov edx, 0x5abba2
mov ecx, 0x55
call fcn.00407b08
push 0x5abb88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409909
push 0x5abb88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406ee0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4098d7
cmp byte [0x5abb84], 0
je 0x40989c
mov edx, esi
mov eax, ebx
call fcn.00409700
jmp 0x4098d7
mov edx, esi
mov eax, ebx
call fcn.00409504
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4098d7
cmp dword [esi], 0
je 0x4098c0
mov eax, esi
mov edx, 0x409938
call fcn.00407c60
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409504
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407c60
push 0x5abb88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5abba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407a4c
push eax
push 0x5abba2
call sub.kernel32.dll_lstrcpynW
push 0x5abb88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409926
lea eax, [ebp - 4]
call fcn.00406ee0
ret