joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x401bd7
pop dword [ebp - 0x38]
mov eax, 0x6e552290
sub eax, 0x6e1506b9
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xdff97867
sub dword [ebp - 0x48], 0x91a7331c
mov dword [ebp - 0x44], 0x25af97fc
sub dword [ebp - 0x44], 0xf37c4bb7
mov dword [ebp - 0x40], 0x660c328b
add dword [ebp - 0x40], 0xe64011a3
mov dword [ebp - 0x3c], 0x1a7775cb
add dword [ebp - 0x3c], 0xe5888a35
lea eax, [ebp - 0x48]
push eax
mov eax, 0xdc54abe5
sub eax, 0xdc143b85
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xdecc5fc2
add dword [ebp - 0x48], 0x95a60994
mov dword [ebp - 0x44], 0x8ff7d93f
sub dword [ebp - 0x44], 0x4e8b77ca
mov dword [ebp - 0x40], 0x8d1a83f1
sub dword [ebp - 0x40], 0x29ab1785
mov dword [ebp - 0x3c], 0xa1b42fad
sub dword [ebp - 0x3c], 0xa1b42fad
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x530f0c74
add eax, 0xad31648c
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x377e3
push 0
call eax
mov ecx, 0x5263549a
sub ecx, 0x526308ee
mov edi, eax
mov ebx, 0x410000
add ebx, dword [ebp - 0x38]
mov edx, 0x653f6512
sub edx, 0xa98a662e
mov dword [ebp - 0x14], 0xff779f15
mov esi, dword [ebx]
sub dword [ebp - 4], 0x8890bdaa
add esi, edx
xor dword [ebp - 0x1c], ecx
mov dword [edi], esi
add edi, 0xc1d78a19
add edi, 0x3e2875eb
add ebx, 0xa1f17ed2
add ebx, 0x5e0e8132
loop 0x401cf3
add eax, 0x12183
mov ebx, eax
add eax, 0xd31e0f9a
sub eax, 0xd31e0f95
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x401030
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43abad
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x5d00
call fcn.00425eb0
mov eax, dword [0x44b7a0]
xor eax, esp
mov dword [esp + 0x5cfc], eax
push esi
push edi
mov eax, dword [0x44b7a0]
xor eax, esp
push eax
lea eax, [esp + 0x5d10]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x50]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40109c
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40110c
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.00407d33
push 0
call fcn.00408fe6
add esp, 4
push str.Local_AppWizard_Generated_Applications
mov ecx, esi
call fcn.00409522
lea edx, [esp + 0x14]
push edx
call fcn.004011f0
lea eax, [esp + 0x14]
mov dword [esp + 0x5d18], 0
mov ecx, eax
mov dword [esi + 0x20], eax
call fcn.00409ef9
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x5d1c], 0xffffffff
call fcn.00401140
xor eax, eax
mov ecx, dword [esp + 0x5d10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x5cfc]
xor ecx, esp
call fcn.0042461c
mov esp, ebp
pop ebp
ret
Function at 0x4024c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x44b7a0]
xor eax, esp
mov dword [esp + 0x20c], eax
push edi
push 0x1ff
xor edi, edi
lea eax, [esp + 0x15]
push edi
push eax
mov byte [esp + 0x1c], 0
call fcn.00425cd0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0x20019
push edi
push str.SoftwareAdobeAcrobatExe
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402560
push 0x200
push eax
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x14], 0x200
call fcn.00425cd0
mov edx, dword [esp + 0x10]
add esp, 0xc
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
push edi
push 0x441858
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402560
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402550
sub eax, edx
je 0x402560
mov edi, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x4025a1
test byte [esp + 0x214], 0x20
push 0x20
je 0x40258c
lea ecx, [esi + 0x407c]
push ecx
lea edx, [esi + 0x3c7c]
push edx
jmp 0x40259a
lea eax, [esi + 0x407c]
push eax
lea ecx, [esi + 0x387c]
push ecx
mov ecx, esi
call fcn.0040db0d
mov ecx, dword [esp + 0x20c]
xor ecx, esp
mov eax, 1
call fcn.0042461c
add esp, 0x210
ret 4

Function at 0x4025f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.0040a131
Function at 0x403aa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43a848
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push edi
mov eax, dword [0x44b7a0]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push eax
call edi
push eax
call fcn.0040ece9
push eax
lea ecx, [esp + 0x30]
call fcn.00412454
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0
mov edx, dword [esi + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x1c]
push edx
push eax
call edi
push eax
call fcn.0040ece9
mov ecx, eax
call fcn.0041215c
cmp dword [esi + 0x130], 0
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
jne 0x403bc1
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x12c]
call fcn.004123bc
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
lea edi, [esi + 0x13c]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call fcn.0041268e
test edi, edi
je 0x403b7b
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x130]
push edi
push eax
call fcn.0041271d
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0xc]
push 0xcc0020
push edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x144], eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [esi + 0x130]
push ecx
push 0
push 0
push eax
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub eax, dword [esp + 0x10]
sub ecx, dword [esp + 0xc]
lea edx, [esi + 0x12c]
test edx, edx
je 0x403bde
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
push eax
push ecx
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx + 4]
push 0
push 0
push edx
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], 0xffffffff
call fcn.004124a8
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x44
ret 4

Function at 0x404400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404419
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404454
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404450
lea ebx, [ebx]
cmp esi, eax
jae 0x404454
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404440
cmp esi, eax
jb 0x40445a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x407160
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2004
call fcn.00425eb0
mov eax, dword [0x44b7a0]
xor eax, esp
mov dword [esp + 0x2000], eax
push ebx
push esi
push 0x2000
xor ebx, ebx
lea eax, [esp + 0xc]
push ebx
push eax
mov esi, ecx
call fcn.00425cd0
add esp, 0xc
add esi, 4
push esi
push 0x2000
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
cmp eax, 0x2000
jbe 0x4071cb
call dword [sym.imp.KERNEL32.dll_DebugBreak]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0042461c
add esp, 0x2004
ret
lea esi, [esp + 8]
cmp word [esp + 8], bx
je 0x407235
mov ecx, edi
mov eax, esi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407206
test dx, dx
je 0x407202
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407206
add eax, 4
add ecx, 4
test dx, dx
jne 0x4071e0
xor eax, eax
jmp 0x40720b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407230
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407214
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], bx
lea esi, [esi + eax*2 + 2]
jne 0x4071d6
jmp 0x407235
mov ebx, 1
mov ecx, dword [esp + 0x2008]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0042461c
add esp, 0x2004
ret

Function at 0x408b17
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x408b5f
call fcn.0040c366
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x408b5f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x408ba2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x408b8b
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x408b8b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x408b9f
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x411b42
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x411b89
call fcn.0040c366
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x411b89
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x411ba5
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004116ba
mov esi, eax
test edi, edi
je 0x411ba3
test ebx, ebx
je 0x411ba3
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4134c9
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x439bbf
call fcn.0042573f
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4134ee
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x413534
lea ecx, [ebp - 0x10]
call fcn.004026f0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041290c
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402760
mov eax, esi
call fcn.00425817
ret 8
Function at 0x42461c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44b7a0]
jne 0x424626
repz ret
jmp fcn.00429b13

Function at 0x431a22
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.00429522
and dword [ebp - 4], 0
cmp dword [0x44f5f0], 0
mov ebx, eax
jne 0x431ad3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x431b84
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x431b84
push eax
call fcn.004294b0
mov dword [esp], 0x43f8a4
push edi
mov dword [0x44f5f0], eax
call esi
push eax
call fcn.004294b0
mov dword [esp], 0x43f890
push edi
mov dword [0x44f5f4], eax
call esi
push eax
call fcn.004294b0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44f5f8], eax
call esi
push eax
call fcn.004294b0
pop ecx
mov dword [0x44f600], eax
test eax, eax
je 0x431ad3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004294b0
pop ecx
mov dword [0x44f5fc], eax
mov eax, dword [0x44f5fc]
cmp eax, ebx
je 0x431b2b
cmp dword [0x44f600], ebx
je 0x431b2b
push eax
call fcn.0042952b
push dword [0x44f600]
mov esi, eax
call fcn.0042952b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x431b2b
test edi, edi
je 0x431b2b
call esi
test eax, eax
je 0x431b22
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x431b22
test byte [ebp - 0xc], 1
jne 0x431b2b
or dword [ebp + 0x10], 0x200000
jmp 0x431b64
mov eax, dword [0x44f5f4]
cmp eax, ebx
je 0x431b64
push eax
call fcn.0042952b
pop ecx
test eax, eax
je 0x431b64
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x431b64
mov eax, dword [0x44f5f8]
cmp eax, ebx
je 0x431b64
push eax
call fcn.0042952b
pop ecx
test eax, eax
je 0x431b64
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44f5f0]
call fcn.0042952b
pop ecx
test eax, eax
je 0x431b84
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x431b86
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4607e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x460805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x460878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x46083a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x46086d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x46086b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x460831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4607fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x4071f0
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.00409c7c
test esi, esi
jne 0x407226
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.00409e04
jmp 0x407244
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407134
mov edi, eax
test esi, esi
je 0x407244
cmp dword [ebx], 0
je 0x407244
dec esi
jmp 0x40722d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408914
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.00408da0
mov byte [esp], al
cmp byte [esp], 0
jne 0x408a9d
test edi, edi
je 0x408a9d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4089dd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4089b8
cmp edi, 0xffffffff
je 0x408979
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408979
mov byte [esp], 0
jmp 0x408a9d
cmp dword [esi], 1
jg 0x4089b8
cmp dword [esi], 0
jne 0x4089aa
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4089aa
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408a9d
lea eax, [esp + 0xc]
call fcn.004085d0
dec ebp
test ebp, ebp
jg 0x40895e
cmp edi, 0xffffffff
je 0x4089dd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4089db
mov byte [esp], 0
jmp 0x408a9d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408922
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4089dd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408b0c
mov edx, eax
mov ebx, dword [0x5e48fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408a41
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408a3f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408a41
xor edi, edi
cmp byte [esp], 0
je 0x408a67
mov ebx, dword [esi]
test bl, 1
jne 0x408a7d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a47
mov byte [esp + 1], 1
jmp 0x408a7d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a67
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4089f4
cmp byte [esp], 0
je 0x408a9d
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 0x409914
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5e405c], 0
je 0x40997b
cmp word [0x5e4348], 0xd7b2
jne 0x40993d
cmp dword [0x5e4350], 0
jbe 0x40993d
mov eax, 0x5e4344
call dword [0x5e4360]
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, 0x4099a8
call fcn.0040a424
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5de032], 0
jne 0x409997
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409b3c
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 [0x5de034], 0
je 0x409b67
mov edx, edi
mov eax, esi
call dword [0x5de034]
mov ebx, eax
jmp 0x409b78
mov eax, 8
call fcn.00406e70
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5e405d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409b04
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 0x409ba8
mov eax, ebx
call fcn.00406e8c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c820
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 0x40c985
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409c7c
cmp si, word [0x5dea00]
jb 0x40c8b8
cmp si, word [0x5dec00]
ja 0x40c8b8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c8b8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5dea00]
jae 0x40c892
mov edi, ebx
dec edi
jmp 0x40c8b3
cmp si, word [ebx*8 + 0x5dea00]
jbe 0x40c8a2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c8b3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5dea04]
call fcn.0040c740
jmp 0x40c8b8
cmp edi, dword [ebp - 8]
jae 0x40c87c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c967
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c967
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.0040a7c4
push dword [ebp - 0x160]
push 0x40c9a0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a7c4
push dword [ebp - 0x164]
push 0x40c9b0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a7c4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a9fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c98c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409cdc
ret
Function at 0x40cb38
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 0x40cc3c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5e6c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5e6c2c]
jne 0x40cb84
mov eax, esi
mov edx, 0x5e6c2e
mov ecx, 0x55
call fcn.0040a7c4
push 0x5e6c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40cc26
push 0x5e6c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409c7c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40cbf3
cmp byte [0x5e6c10], 0
je 0x40cbb8
mov edx, esi
mov eax, ebx
call fcn.0040ca1c
jmp 0x40cbf3
mov edx, esi
mov eax, ebx
call fcn.0040c820
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40cbf3
cmp dword [esi], 0
je 0x40cbdc
mov eax, esi
mov edx, 0x40cc54
call fcn.0040a91c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c820
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a91c
push 0x5e6c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5e6c2c], bx
mov eax, dword [esi]
call fcn.0040a720
mov ecx, eax
mov eax, 0x5e6c2e
mov edx, 0xaa
call fcn.0040c6a0
push 0x5e6c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc43
lea eax, [ebp - 4]
call fcn.00409c7c
ret