joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409dd0
Capabilities:
Enumerate gui resources
Get hostname

Disassembly:
sub esp, 0x82c
cmp dword [0x2e913d4], 0x13f7
mov eax, dword [esp + 0x830]
push ebx
mov ebx, dword [eax + 4]
push ebp
push esi
mov esi, dword [esp + 0x840]
push edi
mov edi, dword [eax]
mov eax, dword [esi]
mov ebp, 0xc6ef3720
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], eax
jne 0x409e22
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
cmp dword [0x2e913d4], 0x60b
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], eax
jne 0x409e70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
push 0
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x44]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
mov dword [esp + 0x1c], 0x20
jmp 0x409e80
mov eax, edi
shl eax, 4
cmp dword [0x2e913d4], 5
mov dword [esp + 0x18], eax
jne 0x409eb6
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationA]
push 0
call dword [sym.imp.KERNEL32.dll_HeapLock]
push 0
call dword [sym.imp.KERNEL32.dll_FlushConsoleInputBuffer]
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00409d80
lea eax, [edi + ebp]
mov dword [esp + 0x14], eax
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x2c]
cmp dword [0x2e913d4], 0x1b
mov dword [esp + 0x10], eax
mov dword [0x2e74834], 0xffcf03fc
jne 0x409f0f
push 0
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x14]
mov dword [0x2e74834], 0
xor eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add dword [0x2e74834], eax
sub ebx, dword [esp + 0x10]
mov esi, ebx
shl esi, 4
cmp dword [0x2e913d4], 0x78c
mov dword [esp + 0x18], ebx
jne 0x409f5a
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov ecx, ebx
shr ecx, 5
mov dword [0x2e74838], 0xc5e121b4
mov dword [0x2e7483c], 0xffffffff
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x34]
add dword [esp + 0x10], eax
mov edx, dword [esp + 0x28]
lea eax, [esi + edx]
xor eax, dword [esp + 0x10]
add ebp, 0x61c88647
xor eax, dword [esp + 0x14]
mov dword [esp + 0x20], ebp
sub edi, eax
sub dword [esp + 0x1c], 1
jne 0x409e80
mov eax, dword [esp + 0x840]
mov dword [eax], edi
pop edi
pop esi
pop ebp
mov dword [eax + 4], ebx
pop ebx
add esp, 0x82c
ret 8
Function at 0x409fd0
Capabilities:
Copy file
Manipulate console buffer
Terminate thread

Disassembly:
sub esp, 0xf44
cmp dword [0x2e913d4], 0x516
jne 0x40a034
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll__hread]
push 0
lea eax, [esp + 0x748]
push eax
push 0
call sub.KERNEL32.dll_VerLanguageNameW
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
xor edx, edx
xor ecx, ecx
mov word [esp + 2], dx
lea eax, [esp + 4]
push eax
mov word [esp + 4], cx
mov ecx, dword [esp + 4]
push ecx
push edx
lea edx, [esp + 0x350]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov eax, dword [esp + 0xf4c]
shr eax, 3
test eax, eax
jbe 0x40a17d
mov ecx, dword [esp + 0xf48]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileExA]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x2e913d4], 0x29
jne 0x40a0b7
xor eax, eax
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x3c]
push ecx
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call esi
push 0
push 0
push 0
push 0
push 0
push 0
call edi
lea edx, [esp + 0x30]
push edx
push 0x4013a0
call ebx
cmp dword [0x2e913d4], 0xe1b
jne 0x40a0d8
lea eax, [esp + 0x54]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [0x2e913d4], 0x1c
jne 0x40a12a
call ebp
push 0
push 0
push 0
lea ecx, [esp + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
lea edx, [esp + 0x240]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [esp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov ecx, dword [esp + 0xf60]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.00409dd0
cmp dword [0x2e913d4], 0x4fa
jne 0x40a169
xor ecx, ecx
xor eax, eax
lea edx, [esp + 0x34]
push edx
mov word [esp + 0x1c], ax
mov word [esp + 0x1e], cx
mov eax, dword [esp + 0x1c]
push eax
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x40a071
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf44
ret 0xc
Function at 0x40a190
Capabilities:
Connect pipe
Extract resource via kernel32 functions
Manipulate console buffer
Read pipe
Write pipe

Disassembly:
sub esp, 0x8c
cmp dword [0x2e913d4], 0x37
jne 0x40a29d
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x74]
push ecx
push 0x4013b0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x40]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push 0
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameExA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ResetWriteWatch]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
call dword [sym.imp.KERNEL32.dll_CreateTimerQueue]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
push 0x30
lea ecx, [esp + 0x44]
push 0
push ecx
mov dword [esp + 0x48], 0
call fcn.0040b170
add esp, 0xc
push 0
lea edx, [esp + 0x40]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
mov dword [esp], 0
mov eax, dword [0x2e913d8]
add dword [esp], eax
mov eax, 0x38d6
add dword [esp], eax
mov ecx, dword [esp]
mov eax, dword [esp + 0x90]
mov dl, byte [ecx + eax]
mov ecx, dword [0x2e74830]
mov byte [ecx + eax], dl
add esp, 0x8c
ret 4

Function at 0x40a310
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov al, 0x65
mov cl, 0x6c
push 0x45c5e8
mov byte [0x45c5e9], al
mov byte [0x45c5ea], 0x72
mov byte [0x45c5f0], 0x2e
mov byte [0x45c5f1], 0x64
mov byte [0x45c5f2], cl
mov byte [0x45c5f4], 0
mov byte [0x45c5ec], al
mov byte [0x45c5ed], cl
mov byte [0x45c5ee], 0x33
mov byte [0x45c5ef], 0x32
mov byte [0x45c5f3], al
mov byte [0x45c5eb], 0x6e
mov byte [0x45c5e8], 0x6b
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [0x2e913d4]
mov edx, dword [0x2e74830]
mov dword [0x2e90a6c], eax
lea eax, [esp]
push eax
push 0x40
push ecx
push edx
mov byte [0x45c5f6], 0
mov byte [0x45c5ef], 0x50
mov byte [0x45c5ed], 0x61
mov byte [0x45c5e8], 0x60
mov byte [0x45c5f0], 0x7c
mov byte [0x45c5f1], 0x6f
mov byte [0x45c5f5], 0x74
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret
Function at 0x40b660
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40b67f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40b686
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x40b69d
mov ecx, dword [ebp - 4]
push ecx
call fcn.00411960
add esp, 4
or eax, 0xffffffff
jmp 0x40b69f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4127d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45b3a4]
jne 0x4127da
repz ret
jmp fcn.0041ea80
Function at 0x469240
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5e000]
push edi
or ebp, 0xffffffff
jmp 0x469262
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x469269
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x469258
mov eax, 1
add ebx, ebx
jne 0x46927b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x469270
jne 0x46928c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x469270
xor ecx, ecx
sub eax, 3
jb 0x4692a0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x469312
mov ebp, eax
add ebx, ebx
jne 0x4692ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4692b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4692dc
inc ecx
add ebx, ebx
jne 0x4692c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4692bd
jne 0x4692d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4692bd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4692fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4692ed
jmp 0x46925e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4692fc
add edi, ecx
jmp 0x46925e
pop esi
mov edi, esi
mov ecx, 0x483
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46931a
cmp byte [edi], 6
jne 0x46931a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x46931f
lea edi, [esi + 0x67000]
mov eax, dword [edi]
or eax, eax
je 0x46938e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6b0f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6b164]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46934c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6b16c]
or eax, eax
je 0x469388
mov dword [ebx], eax
add ebx, 4
jmp 0x469369
call dword [esi + 0x6b168]
mov ebp, dword [esi + 0x6b170]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4693c2
sub esp, 0xffffff80
jmp 0x406f00
Function at 0x4056c0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x16a59f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.FKP1
lea edi, [esi - 0x1272000]
push edi
or ebp, 0xffffffff
jmp 0x16a5a12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a5a19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a08
mov eax, 1
add ebx, ebx
jne 0x16a5a2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a5a3c
jne 0x16a5a5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a5b
dec eax
add ebx, ebx
jne 0x16a5a48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a5a20
add ebx, ebx
jne 0x16a5a57
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x16a5aad
xor ecx, ecx
sub eax, 3
jb 0x16a5a73
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a5ae2
sar eax, 1
mov ebp, eax
jmp 0x16a5a7e
add ebx, ebx
jne 0x16a5a7e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a4c
inc ecx
add ebx, ebx
jne 0x16a5a8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a4c
add ebx, ebx
jne 0x16a5a99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a5a8e
jne 0x16a5aaa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a5a8e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x16a5acc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a5abe
jmp 0x16a5a0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a5acc
add edi, ecx
jmp 0x16a5a0e
pop esi
mov edi, esi
mov ecx, 0x34f3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a5aea
cmp byte [edi], 0x16
jne 0x16a5aea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x16a5aef
lea edi, [esi + 0x12a2000]
mov eax, dword [edi]
or eax, eax
je 0x16a5b5e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a67a0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a6890]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a5b1c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a6894]
or eax, eax
je 0x16a5b58
mov dword [ebx], eax
add ebx, 4
jmp 0x16a5b39
call dword [esi + 0x12a68a4]
mov ebp, dword [esi + 0x12a6898]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x16a5b92
sub esp, 0xffffff80
jmp 0x46c1ac
Function at 0x40517e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x40518d
pop dword [ebp - 0x28]
mov eax, 0x26908fc5
sub eax, 0x26503e38
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x3fb11
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x5485
xor edi, edi
add edi, eax
mov ebx, 0x917ac4a8
add ebx, 0x6ec86958
add ebx, dword [ebp - 0x28]
mov esi, 0x13895cb6
add dword [ebp - 8], ebx
mov edx, dword [ebx]
sub edx, esi
xor dword [ebp - 4], 0x4b5d17d7
mov dword [edi], edx
xor dword [ebp - 0x18], 0xd3a7e4b3
add edi, 0x5a9d0a08
add edi, 0xa562f5fc
add ebx, 4
loop 0x4051dd
add eax, 0x89d2c826
sub eax, 0x89d1833f
mov ebx, eax
add eax, 0x19a051cc
add eax, 0xe65fae39
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x405308
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.004055e0
mov byte [esp], al
cmp byte [esp], 0
jne 0x405494
test edi, edi
je 0x405494
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4053d4
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
lea eax, [esp + 0xc]
call fcn.00405070
test ebp, ebp
jle 0x4053af
cmp edi, 0xffffffff
je 0x405370
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405370
mov byte [esp], 0
jmp 0x405494
cmp dword [esi], 1
jg 0x4053af
cmp dword [esi], 0
jne 0x4053a1
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4053a1
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405494
lea eax, [esp + 0xc]
call fcn.00405078
dec ebp
test ebp, ebp
jg 0x405355
cmp edi, 0xffffffff
je 0x4053d4
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4053d2
mov byte [esp], 0
jmp 0x405494
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405316
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4053d4
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405500
mov edx, eax
mov ebx, dword [0x4438f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405438
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405436
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405438
xor edi, edi
cmp byte [esp], 0
je 0x40545e
mov ebx, dword [esi]
test bl, 1
jne 0x405474
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40543e
mov byte [esp + 1], 1
jmp 0x405474
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40545e
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4053eb
cmp byte [esp], 0
je 0x405494
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 0x406064
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x443054], 0
je 0x4060cb
cmp word [0x443340], 0xd7b2
jne 0x40608d
cmp dword [0x443348], 0
jbe 0x40608d
mov eax, 0x44333c
call dword [0x443358]
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, 0x4060f8
call fcn.00406ab8
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x440032], 0
jne 0x4060e7
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4088d0
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 0x408a35
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406300
cmp si, word [0x440a00]
jb 0x408968
cmp si, word [0x440c00]
ja 0x408968
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408968
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x440a00]
jae 0x408942
mov edi, ebx
dec edi
jmp 0x408963
cmp si, word [ebx*8 + 0x440a00]
jbe 0x408952
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408963
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x440a04]
call fcn.004087f4
jmp 0x408968
cmp edi, dword [ebp - 8]
jae 0x40892c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408a17
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408a17
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.00406da4
push dword [ebp - 0x160]
push 0x408a50
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00406da4
push dword [ebp - 0x164]
push 0x408a60
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00406da4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00406fdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a3c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406360
ret
Function at 0x408be8
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 0x408cec
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x445c0c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x445c24]
jne 0x408c34
mov eax, esi
mov edx, 0x445c26
mov ecx, 0x55
call fcn.00406da4
push 0x445c0c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408cd6
push 0x445c0c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406300
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408ca3
cmp byte [0x445c08], 0
je 0x408c68
mov edx, esi
mov eax, ebx
call fcn.00408acc
jmp 0x408ca3
mov edx, esi
mov eax, ebx
call fcn.004088d0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408ca3
cmp dword [esi], 0
je 0x408c8c
mov eax, esi
mov edx, 0x408d04
call fcn.00406efc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004088d0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406efc
push 0x445c0c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x445c24], bx
mov eax, dword [esi]
call fcn.00406d04
mov ecx, eax
mov eax, 0x445c26
mov edx, 0xaa
call fcn.00408758
push 0x445c0c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408cf3
lea eax, [ebp - 4]
call fcn.00406300
ret