joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a91b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41db90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405b46
and dword [ebp - 0x14], 0
cmp dword [0x44bfe0], 0
mov dword [ebp - 0x18], eax
jne 0x40a9ce
push 0x40247c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40aa76
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402470
push ebx
call edi
test eax, eax
je 0x40aa76
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402460
push ebx
mov dword [0x44bfe0], eax
call edi
push eax
call esi
push 0x40244c
push ebx
mov dword [0x44bfe4], eax
call edi
push eax
call esi
push 0x402430
push ebx
mov dword [0x44bfe8], eax
call edi
push eax
call esi
mov dword [0x44bff0], eax
test eax, eax
je 0x40a9ce
push 0x402418
push ebx
call edi
push eax
call esi
mov dword [0x44bfec], eax
mov eax, dword [0x44bfec]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40aa27
cmp dword [0x44bff0], ecx
je 0x40aa27
push eax
call esi
push dword [0x44bff0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40aa27
test ebx, ebx
je 0x40aa27
call edi
test eax, eax
je 0x40aa1e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40aa1e
test byte [ebp - 8], 1
jne 0x40aa27
or dword [ebp + 0x10], 0x200000
jmp 0x40aa5a
mov eax, dword [0x44bfe4]
cmp eax, dword [ebp - 0x18]
je 0x40aa5a
push eax
call esi
test eax, eax
je 0x40aa5a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40aa5a
mov eax, dword [0x44bfe8]
cmp eax, dword [ebp - 0x18]
je 0x40aa5a
push eax
call esi
test eax, eax
je 0x40aa5a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44bfe0]
call esi
test eax, eax
je 0x40aa76
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40aa78
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ac95
leave
ret

Function at 0x40ac95
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41db90]
jne 0x40ac9f
repz ret
jmp fcn.00413cb4
Function at 0x41b060
Capabilities:
Delete file
Get uefi variable

Disassembly:
sub esp, 0xc18
cmp dword [0x2b75b44], 0x37
jne 0x41b0c8
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByteEx]
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
lea eax, [esp + 0x41c]
push eax
push 0x4035d8
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov ecx, dword [0x2b75f58]
mov eax, dword [0x2b75628]
mov dl, byte [ecx + esi + 0x38d6]
mov byte [eax + esi], dl
add esp, 0xc18
ret
Function at 0x403a7d
Capabilities:
Allocate or change rwx memory
Read .ini file

Disassembly:
mov eax, 0x447a4b
call fcn.00447958
sub esp, 0x178
push ebx
push esi
mov eax, 0xb2d3b
add dword [0x487314], eax
xor ebx, ebx
cmp dword [0x487314], 0x20a
jne 0x403b10
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.USER32.dll_ChildWindowFromPoint]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
lea eax, [ebp - 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x402c08
push ebx
push 0x402c2c
push 0x402c54
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
call fcn.00403030
lea eax, [ebp - 0x3c]
call fcn.00403d4d
push ebx
mov dword [ebp - 4], ebx
call fcn.00404be2
push ebx
push ebx
push ebx
call fcn.004051dd
or dword [ebp - 4], 0xffffffff
add esp, 0x10
lea edi, [ebp - 0x3c]
call fcn.00403d72
pop edi
xor eax, eax
cmp eax, 0xf027935
jg 0x403b21
inc eax
cmp eax, 0x736251e2
jl 0x403b12
push 0x45ab08
mov byte [0x45ab0d], 0x6c
mov byte [0x45ab0f], 0x32
mov byte [0x45ab10], 0x2e
mov byte [0x45ab0b], 0x6e
mov byte [0x45ab0c], 0x65
mov byte [0x45ab11], 0x64
mov byte [0x45ab0e], 0x33
mov byte [0x45ab12], 0x6c
mov byte [0x45ab13], 0x6c
mov byte [0x45ab14], bl
mov byte [0x45ab08], 0x6b
mov byte [0x45ab09], 0x65
mov byte [0x45ab0a], 0x72
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push dword [0x487314]
mov dword [0x487284], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push dword [0x487314]
mov dword [0x487280], eax
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x45503c]
xor esi, esi
mov dword [0x4873ec], eax
cmp dword [0x487314], ebx
jbe 0x403c12
mov eax, dword [0x4873ec]
mov dword [ebp - 0x14], eax
mov eax, 0xb2d3b
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov al, byte [eax + esi]
mov ecx, dword [0x487280]
mov byte [ecx + esi], al
cmp dword [0x487314], 0x44
jne 0x403c09
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalCompact]
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
inc esi
cmp esi, dword [0x487314]
jb 0x403bc4
call fcn.004039c0
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetAtomNameA]
cmp esi, 0x770e
jne 0x403c36
call fcn.00403a57
inc esi
cmp esi, 0x286c535
jl 0x403c19
push 0x7b
pop esi
cmp dword [0x487314], 0xd
jne 0x403c77
push 0x30
lea eax, [ebp - 0x6c]
push ebx
push eax
mov dword [ebp - 0x70], ebx
call fcn.00405d80
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetDefaultCommConfigW]
push 0x402c98
call dword [sym.imp.KERNEL32.dll_lstrlenW]
dec esi
jne 0x403c42
call fcn.00403a71
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4059bb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x454168]
jne 0x4059c5
repz ret
jmp fcn.0040c76c
Function at 0x40ccfe
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.00408f1d
and dword [ebp - 4], 0
cmp dword [0x45a9f4], 0
mov ebx, eax
jne 0x40cdaf
push 0x401ae4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ce60
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401ad8
push edi
call esi
test eax, eax
je 0x40ce60
push eax
call fcn.00408eab
mov dword [esp], 0x401ac8
push edi
mov dword [0x45a9f4], eax
call esi
push eax
call fcn.00408eab
mov dword [esp], 0x401ab4
push edi
mov dword [0x45a9f8], eax
call esi
push eax
call fcn.00408eab
mov dword [esp], 0x401a98
push edi
mov dword [0x45a9fc], eax
call esi
push eax
call fcn.00408eab
pop ecx
mov dword [0x45aa04], eax
test eax, eax
je 0x40cdaf
push 0x401a80
push edi
call esi
push eax
call fcn.00408eab
pop ecx
mov dword [0x45aa00], eax
mov eax, dword [0x45aa00]
cmp eax, ebx
je 0x40ce07
cmp dword [0x45aa04], ebx
je 0x40ce07
push eax
call fcn.00408f26
push dword [0x45aa04]
mov esi, eax
call fcn.00408f26
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ce07
test edi, edi
je 0x40ce07
call esi
test eax, eax
je 0x40cdfe
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40cdfe
test byte [ebp - 0xc], 1
jne 0x40ce07
or dword [ebp + 0x10], 0x200000
jmp 0x40ce40
mov eax, dword [0x45a9f8]
cmp eax, ebx
je 0x40ce40
push eax
call fcn.00408f26
pop ecx
test eax, eax
je 0x40ce40
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ce40
mov eax, dword [0x45a9fc]
cmp eax, ebx
je 0x40ce40
push eax
call fcn.00408f26
pop ecx
test eax, eax
je 0x40ce40
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45a9f4]
call fcn.00408f26
pop ecx
test eax, eax
je 0x40ce60
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ce62
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4042b0
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14cc
call fcn.0040b1b0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x496598]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x49659c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x1c], edx
call fcn.004042a0
mov ecx, dword [0x4965a0]
mov edx, dword [0x4965a4]
add dword [ebp - 8], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], 0x20
jmp 0x404320
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x49dd1c]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x40434c
mov dword [0x49dd18], 0xedeb2e40
jmp 0x404367
cmp eax, 0x3eb
jne 0x404367
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x49d7a8], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x49dd1c], 0x9e6
mov dword [0x49dd14], 0xf4ea3dee
jne 0x4043a2
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x49dd1c], 0x213
jne 0x40444a
push 0
lea eax, [ebp - 0x4cc]
push eax
push 0
push 0
push 0
push 0
call ebx
lea ecx, [ebp - 0xccc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x14cc]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
lea ecx, [ebp - 0x8cc]
push ecx
push 0
push 0x403f08
push 0x403f4c
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea edx, [ebp - 0x30]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub edi, dword [ebp - 4]
cmp dword [0x49dd1c], 0xc
jne 0x40445e
push 0
call dword [sym.imp.KERNEL32.dll_GlobalWire]
mov edx, dword [ebp - 8]
mov eax, edi
shr eax, 5
lea ecx, [edx + edi]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, edi
shl edx, 4
add edx, dword [ebp - 0x1c]
xor edx, dword [ebp - 4]
xor edx, ecx
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 8], eax
sub dword [ebp - 0x14], 1
jne 0x404320
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4044b0
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Get thread local storage value
Read pipe
Set environment variable
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1808
call fcn.0040b1b0
mov eax, dword [0x49dd1c]
mov ecx, dword [0x49d7ac]
shr eax, 3
test eax, eax
jbe 0x4045cc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x49dd1c], 0x959
jne 0x4045b2
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
call ebx
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push 0
push 0
push 0
call esi
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [ebp - 0x1008]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0
lea eax, [ebp - 0x1808]
push eax
push 0
call esi
mov ecx, dword [ebp - 4]
push ecx
call fcn.004042b0
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x4044f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407f60
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4957a8]
jne 0x407f6a
repz ret
jmp fcn.0040d0ee

Function at 0x40cd15
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.004091fb
and dword [ebp - 4], 0
cmp dword [0x49b798], 0
mov ebx, eax
jne 0x40cdc6
push 0x401cb4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ce77
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401ca8
push edi
call esi
test eax, eax
je 0x40ce77
push eax
call fcn.00409189
mov dword [esp], 0x401c98
push edi
mov dword [0x49b798], eax
call esi
push eax
call fcn.00409189
mov dword [esp], 0x401c84
push edi
mov dword [0x49b79c], eax
call esi
push eax
call fcn.00409189
mov dword [esp], 0x401c68
push edi
mov dword [0x49b7a0], eax
call esi
push eax
call fcn.00409189
pop ecx
mov dword [0x49b7a8], eax
test eax, eax
je 0x40cdc6
push 0x401c50
push edi
call esi
push eax
call fcn.00409189
pop ecx
mov dword [0x49b7a4], eax
mov eax, dword [0x49b7a4]
cmp eax, ebx
je 0x40ce1e
cmp dword [0x49b7a8], ebx
je 0x40ce1e
push eax
call fcn.00409204
push dword [0x49b7a8]
mov esi, eax
call fcn.00409204
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ce1e
test edi, edi
je 0x40ce1e
call esi
test eax, eax
je 0x40ce15
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ce15
test byte [ebp - 0xc], 1
jne 0x40ce1e
or dword [ebp + 0x10], 0x200000
jmp 0x40ce57
mov eax, dword [0x49b79c]
cmp eax, ebx
je 0x40ce57
push eax
call fcn.00409204
pop ecx
test eax, eax
je 0x40ce57
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ce57
mov eax, dword [0x49b7a0]
cmp eax, ebx
je 0x40ce57
push eax
call fcn.00409204
pop ecx
test eax, eax
je 0x40ce57
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49b798]
call fcn.00409204
pop ecx
test eax, eax
je 0x40ce77
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ce79
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408d50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x408d7b
mov edx, dword [ebp + 8]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x408d64
pop edi
mov eax, edx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret

Function at 0x409100
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45712d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push edi
mov edi, dword [ebp + 0x14]
mov eax, ecx
mov dword [ebp - 0x10], eax
test edi, edi
jne 0x40913d
xor al, al
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [edi + 4]
push esi
mov esi, dword [edi]
cmp esi, ebx
je 0x409160
mov ecx, esi
call fcn.004086e0
add esi, 0xd0
cmp esi, ebx
jne 0x409147
mov eax, dword [edi]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x10]
add eax, 0x10
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00408da0
mov ebx, eax
test ebx, ebx
jne 0x409192
xor bl, bl
jmp 0x409298
mov edi, dword [ebp + 0x14]
mov eax, 0x4ec4ec4f
mov esi, dword [ebx + 8]
mov dword [ebp + 0x10], esi
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jbe 0x4091cf
cmp esi, 0x13b13b1
ja 0x4092ba
lea eax, [ebp + 0x10]
mov ecx, edi
push eax
call fcn.00409f90
mov edi, dword [ebp + 0x14]
mov esi, dword [ebx + 0x40]
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
jne 0x409296
nop
movzx eax, byte [esi + 0x1c]
lea edx, [esi + 0x1c]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, ebx
push eax
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.0040ab10
mov eax, dword [eax + 4]
test eax, eax
je 0x40924d
cmp eax, dword [ebx + 4]
je 0x40924d
cmp dword [eax + 0x50], 0
lea ecx, [eax + 0x10]
jne 0x409229
cmp byte [eax + 0xc0], 0
je 0x40924d
mov eax, dword [edi + 4]
push ecx
cmp eax, dword [edi + 8]
je 0x409242
mov ecx, eax
call fcn.00409390
add dword [edi + 4], 0xd0
jmp 0x40924a
push eax
mov ecx, edi
call fcn.0040ab80
mov edi, dword [ebp + 0x14]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x409274
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x409270
nop
cmp esi, dword [eax + 8]
jne 0x409270
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x409260
mov esi, eax
jmp 0x40928c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x40928c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x409280
cmp byte [esi + 0xd], 0
je 0x4091e0
mov bl, 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
call fcn.00409860
int3
Function at 0x409870
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 4], ebx
mov eax, edi
shl eax, cl
cmp edx, eax
ja 0x4099ba
mov esi, dword [ebx + 4]
lea eax, [edx - 1]
or eax, edi
mov dword [ebp + 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.00409ae0
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x40998d
movzx edx, byte [eax + 8]
mov ecx, dword [ecx]
xor edx, 0x811c9dc5
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
imul edx, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, edx
mov edx, dword [ebx + 0xc]
lea edx, [edx + edi*8]
mov edi, dword [edx]
mov dword [ebp - 8], edx
cmp edi, esi
jne 0x40990e
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x409983
mov edx, dword [edx + 4]
movzx ebx, word [eax + 8]
cmp bx, word [edx + 8]
jne 0x40994a
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
cmp edx, eax
je 0x409942
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 0xc]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
jmp 0x409980
cmp edi, edx
je 0x40995d
nop
mov edx, dword [edx + 4]
cmp bx, word [edx + 8]
je 0x409996
cmp edi, edx
jne 0x409950
mov ebx, dword [eax + 4]
mov dword [ebp - 0xc], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 0xc]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 8]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 4]
mov eax, ecx
cmp ecx, esi
jne 0x4098d2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x409980
push str.invalid_hash_bucket_count
call fcn.0041b633
int3
Function at 0x414240
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx + 0x58]
test edx, edx
je 0x414269
mov eax, dword [ebp + 8]
test eax, eax
je 0x414269
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x414269
push edx
push ecx
push 1
push eax
call fcn.0043bbf1
add esp, 0x10
pop ebp
ret 8
xor eax, eax
pop ebp
ret 8

Function at 0x41d5fe
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x41d625
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x41d628
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0041d5da
pop esi
leave
ret 8

Function at 0x43307b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.0043d40e
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4330be
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x4330be
sub eax, 1
je 0x4330b9
sub eax, 1
je 0x4330b5
xor eax, eax
leave
ret
push 3
jmp 0x4330c0
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x4344b8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4344f7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4344f7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4344f7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4344f7
cmp dword [ecx + 0x74], 0xe
jbe 0x4344f7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret