joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b0d64
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b0ed5
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b0eb0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00405820
lea eax, [ebp - 0x118]
mov edx, 0x4b0eec
call fcn.00405914
mov eax, dword [ebp - 0x118]
call fcn.00405ad8
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4b0e22
lea eax, [ebp - 0x111]
call fcn.0040dbe8
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00405728
jmp 0x4b0e29
mov eax, esi
call fcn.00405638
cmp bl, 0x61
jae 0x4b0e4a
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.00412814
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.0040568c
jmp 0x4b0e64
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.00412780
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.0040568c
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x4b0ef8
call fcn.0040e374
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.0040568c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0eb7
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4b5928
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x170]
mov edx, ebx
mov eax, edi
call fcn.004b5a2c
mov esi, eax
mov dword [edi + 0x170], esi
and esi, 0xff
add dword [edi + 0x174], esi
imul esi, dword [edi + 0x174], 0x8088405
inc esi
mov dword [edi + 0x174], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x178]
mov eax, edi
call fcn.004b5a2c
mov dword [edi + 0x178], eax
pop edi
pop esi
pop ebx
ret
Function at 0x4b665c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b6842
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x4b67fe
mov eax, dword [ebp - 4]
call fcn.004b7e48
cmp ebx, eax
jge 0x4b67fe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
mov edx, ebx
call fcn.004a5efc
mov edx, dword [0x4a84a0]
call fcn.004048a4
mov esi, eax
mov eax, esi
call fcn.004a9b84
test al, al
je 0x4b67f4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x4b67e8
xor eax, eax
push ebp
push 0x4b67e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004b6b30
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.0042475c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [esi + 0x34]
push dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx eax, word [ebp - 0x2a]
movzx edx, word [ebp - 0x28]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00405d68
mov eax, dword [ebp - 8]
call fcn.00405b38
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx eax, byte [eax + 0x28]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004b69d8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx edx, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b682c
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x4b67e0
mov eax, dword [ebp - 4]
call fcn.004b6bb4
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0040de84
jmp 0x4b682c
mov eax, dword [ebp - 8]
call fcn.00405638
jmp 0x4b682c
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
push 0
lea edx, [ebp - 0x54]
mov eax, 0xb3
call fcn.0040d288
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x41f004]
call fcn.00411988
call fcn.00404fa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b6849
lea eax, [ebp - 0x54]
call fcn.00405638
ret
Function at 0x4bdc74
Capabilities:
Get disk size

Disassembly:
push ebx
add esp, 0xffffffc4
mov ebx, eax
call fcn.004bdb1c
test al, al
je 0x4bdca1
lea edx, [esp + 0x10]
mov eax, ebx
call fcn.004bdc14
test al, al
jne 0x4bdc97
call fcn.004131f0
mov eax, dword [esp + 0x14]
imul dword [esp + 0x18]
jmp 0x4bdcd2
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
mov eax, ebx
call fcn.00405ad8
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
jne 0x4bdccb
call fcn.004131f0
mov eax, dword [esp]
imul dword [esp + 4]
add esp, 0x3c
pop ebx
ret

Function at 0x4c02b8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4c0395
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4c0367
inc ebx
xor esi, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp word [eax + 0x20a], 0
je 0x4c0333
mov byte [ebp - 1], 0
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov edi, dword [eax - 4]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov eax, dword [edi + 0x20c]
call dword [edi + 0x208]
cmp byte [ebp - 1], 0
jne 0x4c0363
lea ecx, [ebp - 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x10]
call fcn.00405ad8
push eax
call sub.kernel32.dll_DeleteFileA_1
cmp eax, 1
sbb eax, eax
inc eax
inc esi
dec ebx
jne 0x4c02f0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.004046f4
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 0xc], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c039c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0040565c
ret
Function at 0x4c1ec0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c2076
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x1d8]
movzx eax, byte [eax + 0x21]
test al, al
je 0x4c205b
cmp al, 1
jne 0x4c1fa6
mov eax, dword [ebx + 0x284]
call fcn.004046f4
xor eax, eax
mov dword [ebx + 0x284], eax
mov eax, ebx
call fcn.004c1de8
lea ecx, [ebx + 0x2a8]
mov edx, dword [ebx + 0x12c]
add edx, 2
mov eax, ebx
call fcn.004b7f04
cmp dword [ebx + 0x2a8], 0
jne 0x4c1f4c
lea edx, [ebp - 8]
mov eax, 0xbb
call fcn.0040d288
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4b499c]
call fcn.0041194c
call fcn.00404fa8
inc dword [ebx + 0x12c]
mov eax, dword [ebx + 0x2a8]
call fcn.0040d3dc
test al, al
je 0x4c1f72
mov eax, dword [ebx + 0x2a8]
call fcn.00405ad8
push eax
call sub.kernel32.dll_DeleteFileA_1
cmp word [ebx + 0x232], 0
je 0x4c1f91
mov ecx, dword [ebx + 0x12c]
inc ecx
mov edx, ebx
mov eax, dword [ebx + 0x234]
call dword [ebx + 0x230]
mov eax, ebx
call fcn.004c1d24
mov dword [ebx + 0x260], eax
mov dword [ebx + 0x264], edx
jmp 0x4c200e
mov eax, dword [ebx + 0x284]
call fcn.004046f4
xor eax, eax
mov dword [ebx + 0x284], eax
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x2a8]
call fcn.004056d0
lea eax, [ebx + 0x2a8]
mov edx, dword [ebx + 0x1a8]
call fcn.0040568c
push 1
mov ecx, dword [ebx + 0x12c]
add ecx, 2
lea edx, [ebx + 0x2a8]
mov eax, ebx
call fcn.004b8094
inc dword [ebx + 0x12c]
mov eax, dword [ebx + 0x1d8]
mov edx, dword [eax + 8]
mov dword [ebx + 0x260], edx
mov edx, dword [eax + 0xc]
mov dword [ebx + 0x264], edx
push 0xffff
movzx eax, byte [ebx + 0x105]
push eax
mov eax, dword [ebx + 0x108]
push eax
mov ecx, dword [ebx + 0x2a8]
mov dl, 1
mov eax, dword [0x4a6a90]
call fcn.004a6c08
mov dword [ebx + 0x284], eax
mov dword [ebx + 0x258], 0
mov dword [ebx + 0x25c], 0
xor edx, edx
mov eax, dword [ebx + 0x2a0]
call fcn.004aa3d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c207d
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040565c
ret
Function at 0x4c3d88
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffed0
mov esi, edx
mov ebx, eax
cmp dword [ebx + 0x1e0], 0
je 0x4c3dac
mov eax, dword [ebx + 0x1e0]
call fcn.004a7a88
test al, al
jne 0x4c3dc2
push esp
push 0x12d
call sub.kernel32.dll_GetTempPathA
mov edx, esi
mov eax, esp
call fcn.004a7e10
jmp 0x4c3dcf
mov eax, esi
mov edx, dword [ebx + 0x1e0]
call fcn.0040568c
add esp, 0x130
pop esi
pop ebx
ret

Function at 0x4c4d78
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4c4d80
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4c4f27
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 0
mov dl, 1
mov eax, dword [0x41f898]
call fcn.004046c4
mov dword [ebp - 0x10], eax
movzx edx, byte [esi + 0x40]
mov ecx, dword [ebp - 0x10]
mov eax, esi
call fcn.004c4cb8
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4c4e9c
inc ebx
mov dword [ebp - 0xc], 0
xor eax, eax
push ebp
push 0x4c4e7d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, dword [esi + 0x10]
add edx, 0x66
call fcn.004058ac
mov eax, dword [ebp - 0x18]
call fcn.0040d424
test al, al
jne 0x4c4e18
lea eax, [ebp - 0x1c]
mov edx, dword [esi + 0x10]
add edx, 0x66
call fcn.004058ac
mov eax, dword [ebp - 0x1c]
call fcn.0040d448
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0040d93c
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
mov edx, dword [esi + 0x10]
add edx, 0x66
call fcn.004058ac
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 4]
pop ecx
call fcn.00405960
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 4]
call fcn.004c4cd4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c4e92
inc dword [ebp - 0xc]
dec ebx
jne 0x4c4dda
cmp byte [ebp - 0x11], 0
je 0x4c4eef
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4c4ee7
inc ebx
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x30]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x34], esi
mov eax, dword [ebp - 0x34]
call fcn.00405ad8
push eax
call sub.kernel32.dll_DeleteFileA_1
cmp eax, 1
sbb eax, eax
inc eax
inc dword [ebp - 0xc]
dec ebx
jne 0x4c4eb9
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x10]
call fcn.004046f4
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
setg bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c4f2e
lea eax, [ebp - 0x30]
mov edx, 7
call fcn.0040565c
lea eax, [ebp - 4]
call fcn.00405638
ret
Function at 0x4c4f38
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x4c4fb6
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4c4f98
inc ebx
xor esi, esi
lea ecx, [ebp - 0xc]
mov edx, esi
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x10]
call fcn.00405ad8
push eax
call sub.kernel32.dll_DeleteFileA_1
cmp eax, 1
sbb eax, eax
inc eax
inc esi
dec ebx
jne 0x4c4f6d
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c4fbd
lea eax, [ebp - 0xc]
call fcn.00405638
ret

Function at 0x4ead87
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareBorlandDatabase_Engine
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4eaddf
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push str.DLLPATH
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4eadd5
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4eade3
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x4011c0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x201c
call fcn.00418fc0
mov eax, dword [0x424040]
xor eax, esp
mov dword [esp + 0x2018], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x202c]
lea eax, [esp + 0xc]
push eax
mov ebx, edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x1a]
push 0x425590
push dword [esi*4 + 0x421cf0]
push eax
movzx eax, word [esp + 0x24]
push eax
movzx eax, word [esp + 0x26]
push eax
movzx eax, word [esp + 0x28]
push eax
push dword [0x425698]
lea eax, [esp + 0x3c]
push str._02d:_02d:_02d._03d__s___s_
push 0xffffffffffffffff
push 0x2000
push eax
call fcn.004012d0
add esp, 0x2c
lea ecx, [esp + 0x20]
mov esi, eax
mov edx, ebx
add ecx, esi
push edi
call fcn.004010a0
add esi, eax
add esp, 4
test esi, esi
jle 0x401266
push 0
lea eax, [esp + 0x20]
push eax
push esi
lea eax, [esp + 0x2c]
push eax
push dword [0x425690]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x2024]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040279b
add esp, 0x201c
ret

Function at 0x401800
Capabilities:
Get process image filename

Disassembly:
sub esp, 0xc
mov eax, dword [0x424040]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push ecx
mov ebx, edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x40189d
push dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push 0x400
call edi
mov esi, eax
test esi, esi
jne 0x401856
push dword [esp + 0xc]
push eax
push 0x1000
call edi
mov esi, eax
test esi, esi
je 0x40189d
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x104
push eax
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
mov edi, eax
test edi, edi
jne 0x401882
push 0x104
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0040279b
add esp, 0xc
ret
mov ecx, dword [esp + 0x14]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040279b
add esp, 0xc
ret
Function at 0x4022c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402318
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402318
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402306
cmp esi, edx
jae 0x402318
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4022f4
cmp esi, edx
jae 0x402318
xor eax, eax
cmp word [esi], ax
pop edi
cmove esi, eax
mov eax, esi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x4033b9
Capabilities:
Parse pe header

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

Function at 0x40ebd7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040f1db
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40ec46
cmp esi, dword [ebp - 4]
je 0x40ec41
cmp dword [ebp + 0xc], 0
je 0x40ec41
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40ec1e
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0040e729
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x40ec48
xor eax, eax
inc eax
jmp 0x40ec48
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40ecad
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x424040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0040f1db
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040f1db
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x40ed24
cmp word [ecx], dx
je 0x40ed24
mov eax, dword [0x41d514]
push edi
dec eax
push eax
push 0x41d400
call fcn.0040ec4c
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x40ed97
cmp word [eax], dx
je 0x40ed97
mov eax, dword [edi]
test eax, eax
je 0x40ed48
cmp word [eax], dx
je 0x40ed48
lea eax, [ebp - 0x10]
push eax
call fcn.0040e62f
jmp 0x40ed51
lea eax, [ebp - 0x10]
push eax
call fcn.0040e6ca
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x40edc1
mov eax, dword [0x41d3fc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x41d0f0
call fcn.0040ec4c
add esp, 0xc
test al, al
je 0x40edc1
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x40ed8c
cmp word [eax], di
je 0x40ed8c
lea eax, [ebp - 0x10]
push eax
call fcn.0040e62f
pop ecx
jmp 0x40edc3
lea eax, [ebp - 0x10]
push eax
call fcn.0040e6ca
jmp 0x40ed89
mov eax, dword [edi]
test eax, eax
je 0x40edae
cmp word [eax], dx
je 0x40edae
lea eax, [ebp - 0x10]
push eax
call fcn.0040e5e4
pop ecx
jmp 0x40edc1
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x40ee8c
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0040ead1
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40ee8c
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x40ee8c
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x40ee8c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40ee19
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0040fad3
test ebx, ebx
je 0x40ee87
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0040fad3
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40ee8c
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40ee8c
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00412a84
add esp, 0x10
xor eax, eax
inc eax
jmp 0x40ee8e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040279b
leave
ret
Function at 0x40f8d6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41e4e4
push 0x41e4dc
push str.FlsAlloc
push 0x1f
call fcn.0040f7bd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f90a
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b18c]
call esi
jmp 0x40f910
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40f954
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41e4f4
push 0x41e4ec
push str.FlsGetValue
push 0x21
call fcn.0040f7bd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f98b
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b18c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40f993
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41e4fc
push 0x41e4f4
push str.FlsSetValue
push 0x22
call fcn.0040f7bd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f9cd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41b18c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]