joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d44c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x100d44fa
mov eax, dword [0x1039da5c]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x100d44ed
dec dword [eax + 0xa8]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100d452b
mov eax, dword [0x1039da5c]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x100d451e
dec dword [eax + 0xa8]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x100d455c
mov eax, dword [0x1039da5c]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x100d454f
dec dword [eax + 0xa8]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x100d45a9
mov eax, dword [0x1039da5c]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x100d459c
dec dword [eax + 0xa8]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x100d45da
mov eax, dword [0x1039da5c]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x100d45cd
dec dword [eax + 0xa8]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x100d460b
mov eax, dword [0x1039da5c]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x100d45fe
dec dword [eax + 0xa8]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.100d70f0
Function at 0x100f30b0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a5d75
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x1039b040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], edi
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, ebx
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
push edx
push eax
call fcn.100f3f90
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100f313a
mov dword [edi], eax
mov byte [edi + 4], 0
jmp 0x100f3280
cmp dword [ebx + 8], 0xfffffff
je 0x100f3296
lea eax, [ebx + 4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
push 0x10
mov dword [ebp - 0x28], 0
call fcn.10125858
mov edx, dword [ebp - 0x1c]
mov esi, eax
add esp, 4
mov dword [ebp - 0x28], esi
mov ecx, dword [edx]
mov edx, dword [edx + 4]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
inc eax
movss xmm3, dword [ebx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1038e2d0]
mov eax, dword [ebx + 0x1c]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x1038e2d0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x100f3233
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x18]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.1019ea00
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x100f3215
cmp eax, 0x200
jae 0x100f3213
shl eax, 3
cmp eax, ecx
jae 0x100f3215
mov eax, ecx
push eax
mov ecx, ebx
call fcn.10033ee0
push dword [ebp - 0x20]
lea eax, [esi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.100f3f90
mov edx, dword [eax]
jmp 0x100f3236
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov edi, dword [ebp - 0x2c]
mov dword [esi + 4], eax
mov dword [esi], edx
mov dword [eax], esi
mov dword [edx + 4], esi
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x18]
and eax, dword [ebp - 0x20]
mov ebx, dword [ecx + eax*8]
cmp ebx, dword [edi]
jne 0x100f3261
mov dword [ecx + eax*8], esi
jmp 0x100f3273
cmp ebx, edx
jne 0x100f326a
mov dword [ecx + eax*8], esi
jmp 0x100f3277
mov edx, dword [ebp - 0x1c]
cmp dword [ecx + eax*8 + 4], edx
jne 0x100f3277
mov dword [ecx + eax*8 + 4], esi
mov edi, dword [ebp - 0x24]
mov dword [edi], esi
mov byte [edi + 4], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.10186e2c
int3
Function at 0x100f3500
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fffffff
sub esp, 0x10
bsr ecx, eax
push ebx
push esi
push edi
mov edi, 1
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x100f366d
lea eax, [ecx - 1]
mov esi, dword [0x103c61c8]
or eax, edi
mov dword [ebp - 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x103c61d0
lea eax, [edi + edi]
push eax
call fcn.10018d70
mov eax, dword [0x103c61c8]
lea ebx, [edi - 1]
mov dword [0x103c61dc], ebx
mov dword [0x103c61e0], edi
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x100f3664
nop word [eax + eax]
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
mov edx, dword [0x103c61d0]
imul edi, edi, 0x1000193
and edi, ebx
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 0xc], edx
cmp ebx, esi
jne 0x100f35c2
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x100f362f
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x100f35fc
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x100f35f4
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
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 - 0xc]
mov dword [edx + 4], eax
jmp 0x100f362f
cmp ebx, edx
je 0x100f360c
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x100f3640
cmp ebx, edx
jne 0x100f3600
mov ebx, dword [eax + 4]
mov dword [ebp - 4], 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 - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edi
mov dword [edx], eax
mov eax, ecx
cmp ecx, esi
je 0x100f3664
mov ebx, dword [0x103c61dc]
jmp 0x100f3570
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], 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 0x100f362f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.invalid_hash_bucket_count
call fcn.10186e2c
int3
Function at 0x10124280
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a6a70
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x1039b040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax + 0x30]
test eax, eax
je 0x10124403
mov edx, dword [0x1039b798]
mov edi, dword [edx + 0x48]
lea esi, [edx + 0x48]
mov ecx, dword [esi + 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], eax
cmp edi, ecx
jne 0x10124310
inc edi
test ecx, ecx
je 0x101242fb
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x10124300
mov eax, 8
cmp eax, edi
mov ecx, esi
cmovg edi, eax
push edi
call fcn.100bf2b0
mov edx, dword [ebp - 0x20]
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov edi, dword [ebp - 0x18]
mov dword [eax + ecx*4], edi
mov ecx, edx
inc dword [esi]
mov dword [edx + 0x70], edi
call fcn.100d4760
mov eax, dword [ebx + 0x10]
mov edi, dword [0x1039b798]
mov edx, dword [eax]
mov eax, edx
shr eax, 0x10
mov esi, edx
movzx ecx, al
shr esi, 0x18
mov eax, esi
shl eax, 8
add ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
add ecx, eax
movzx eax, dl
shl ecx, 8
add eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 8]
bswap esi
movss xmm0, dword [eax]
movss dword [ebp - 0x24], xmm0
movss xmm0, dword [eax + 4]
mov eax, dword [ebp - 0x1c]
movss dword [ebp - 0x20], xmm0
movss xmm2, dword [eax + 0x10]
test esi, esi
je 0x101243e3
mov edx, dword [ebx + 0x14]
mov ecx, edx
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10124390
sub ecx, esi
add ecx, edx
cmp edx, ecx
je 0x101243e3
xorps xmm0, xmm0
ucomiss xmm2, xmm0
lahf
test ah, 0x44
jp 0x101243b3
mov eax, dword [edi + 0x2c]
movss xmm2, dword [eax + 0xc]
push dword [ebp - 0x20]
movups xmm0, xmmword [edi + 0x60]
lea eax, [ebp - 0x34]
push dword [ebp - 0x24]
movups xmmword [ebp - 0x34], xmm0
push 0
push ecx
mov dword [esp], 0
push ecx
mov ecx, dword [ebp - 0x1c]
push edx
push eax
push dword [ebp - 0x18]
push edi
call fcn.100d9190
mov edi, dword [0x1039b798]
mov ecx, dword [edi + 0x48]
sub ecx, 1
mov dword [edi + 0x48], ecx
jne 0x101243f2
xor eax, eax
jmp 0x101243f9
mov eax, dword [edi + 0x50]
mov eax, dword [eax + ecx*4 - 4]
mov ecx, edi
mov dword [edi + 0x70], eax
call fcn.100d4760
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1012583c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x14
Function at 0x101247ca
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [0x1039b6d0]
mov eax, 0x2aaaaaab
push edi
mov edi, dword [0x1039b6d4]
mov ecx, edi
sub ecx, esi
imul ecx
mov ecx, dword [ebp + 0xc]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ecx
jbe 0x101248e1
push ebx
lea ebx, [ecx + ecx*2]
mov ecx, dword [sym.imp.VCRUNTIME140.dll___std_type_info_compare]
shl ebx, 4
add ebx, 8
add ebx, esi
jne 0x10124789
xor ebx, ebx
jmp 0x101247b7
mov eax, dword [ebx + 0x24]
and eax, 0xfffffffc
je 0x101247af
add eax, 4
push 0x1039b870
push eax
call ecx
mov edi, dword [0x1039b6d4]
add esp, 8
mov esi, dword [0x1039b6d0]
test eax, eax
je 0x101247b1
xor ebx, ebx
mov ecx, dword [sym.imp.VCRUNTIME140.dll___std_type_info_compare]
mov edx, dword [ebx]
pop ebx
cmp edx, 3
ja case.0x101247c3.0
jmp dword [edx*4 + 0x101248ec]
sub edi, esi
mov eax, 0x2aaaaaab
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp + 8]
cmp eax, edx
jbe 0x101248e1
lea eax, [edx + edx*2]
shl eax, 4
add eax, 8
add esi, eax
je 0x1012480f
mov eax, dword [esi + 0x24]
and eax, 0xfffffffc
je 0x1012480f
add eax, 4
push 0x1039b870
push eax
call ecx
add esp, 8
test eax, eax
je 0x10124811
xor esi, esi
push dword [esi]
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
pop edi
setne al
pop esi
pop ebp
ret 8
sub edi, esi
mov eax, 0x2aaaaaab
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp + 8]
cmp eax, edx
jbe 0x101248e1
lea eax, [edx + edx*2]
shl eax, 4
add eax, 8
add esi, eax
je 0x1012486a
mov eax, dword [esi + 0x24]
and eax, 0xfffffffc
je 0x1012486a
add eax, 4
push 0x1039b870
push eax
call ecx
add esp, 8
test eax, eax
je 0x1012486c
xor esi, esi
mov eax, dword [esi]
cmp eax, 0x100
jae 0x101248e6
mov al, byte [eax + 0x1039d8a8]
pop edi
pop esi
pop ebp
ret 8
sub edi, esi
mov eax, 0x2aaaaaab
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp + 8]
cmp eax, edx
jbe 0x101248e1
lea eax, [edx + edx*2]
shl eax, 4
add eax, 8
add esi, eax
je 0x101248c2
mov eax, dword [esi + 0x24]
and eax, 0xfffffffc
je 0x101248c2
add eax, 4
push 0x1039b870
push eax
call ecx
add esp, 8
test eax, eax
je 0x101248c4
xor esi, esi
mov eax, dword [esi]
cmp eax, 0x100
jae 0x101248e6
mov al, byte [eax + 0x1039d7a8]
pop edi
pop esi
pop ebp
ret 8
pop edi
mov al, 1
pop esi
pop ebp
ret 8
call fcn.10023530
call fcn.10124900
nop
invalid
Function at 0x1012c4e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x78]
test eax, eax
je 0x1012c504
push dword [edi + 0x74]
call eax
add esp, 4
mov esi, dword [edi + 0x54]
test esi, esi
je 0x1012c569
nop dword [eax + eax]
mov ebx, dword [esi + 4]
xor edx, edx
mov eax, dword [ebx + 0x60]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x1012c562
mov ecx, dword [eax + 8]
cmp eax, esi
je 0x1012c536
mov edx, eax
mov eax, ecx
test eax, eax
jne 0x1012c525
jmp 0x1012c562
test edx, edx
jne 0x1012c53f
mov dword [ebx + 0x54], ecx
jmp 0x1012c542
mov dword [edx + 8], ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1012c54f
push esi
call eax
add esp, 4
push esi
call fcn.1012c940
mov eax, dword [ebp - 4]
push esi
push eax
mov eax, dword [eax + 8]
call eax
add esp, 0xc
mov esi, dword [edi + 0x54]
test esi, esi
jne 0x1012c510
mov ebx, dword [ebp + 8]
lea eax, [edi + 0x6c]
mov dword [ebp - 8], eax
test eax, eax
je 0x1012c5f4
test ebx, ebx
je 0x1012c5f4
mov ebx, dword [eax]
test ebx, ebx
je 0x1012c5e4
mov edi, dword [ebp + 8]
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x1012c599
push esi
call eax
add esp, 4
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x1012c5ac
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x1012c5bd
push eax
mov eax, dword [edi + 8]
push edi
call eax
add esp, 8
mov dword [esi + 0x28], 0
mov eax, dword [edi + 8]
push esi
push edi
call eax
mov eax, dword [edi + 8]
push ebx
push edi
call eax
mov eax, dword [ebp - 4]
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x1012c583
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [edi + 0x30]
mov dword [edi + 0x58], 0
test eax, eax
je 0x1012c608
push edi
call eax
add esp, 4
push ebx
push edi
call fcn.1012c450
mov eax, dword [ebp - 0xc]
add esp, 8
mov eax, dword [eax + 0x34]
test eax, eax
je 0x1012c622
push edi
call eax
add esp, 4
mov esi, dword [edi + 0x68]
mov eax, dword [edi + 8]
mov dword [ebp + 0xc], eax
test esi, esi
je 0x1012c658
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
mov dword [ebp + 0x10], eax
test ecx, ecx
je 0x1012c645
push esi
call ecx
mov eax, dword [ebp + 0x10]
add esp, 4
test dword [ebp + 0xc], 0x400
jne 0x1012c658
push esi
push eax
mov eax, dword [eax + 8]
call eax
add esp, 8
mov eax, dword [edi + 0x80]
mov dword [edi + 0x68], 0
test eax, eax
je 0x1012c67d
push eax
mov eax, dword [ebx + 8]
push ebx
call eax
add esp, 8
mov dword [edi + 0x80], 0
mov eax, dword [ebx + 8]
push edi
push ebx
call eax
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10181e70
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x10181e86
lea eax, [esi + 0x28]
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10181eb5
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 8], eax
je 0x10181faf
mov ecx, dword [ebp - 8]
test ecx, ecx
jg 0x10181faf
mov eax, dword [ebp - 0xc]
jl 0x10181eec
cmp eax, 0x7fffffff
ja 0x10181faf
or eax, ecx
je 0x10181faf
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
je 0x10181faf
mov ecx, dword [ebp - 0xc]
push 0
push 0
push 0
push 4
push edi
mov dword [esi + 4], ecx
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov dword [esi], eax
call dword [ebp + 8]
cmp dword [esi], 0
je 0x10181f3d
mov eax, 0x10182010
jmp 0x10181f7e
push dword [esi + 4]
mov eax, dword [esi + 0x1c]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x10181faf
xor edi, edi
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 4]
sub eax, edi
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10181fa0
add edi, dword [ebp - 4]
cmp edi, dword [esi + 4]
jne 0x10181f55
mov eax, 0x10181fe0
push ebx
mov dword [esi + 0x18], eax
call dword [ebp + 8]
mov eax, dword [esi]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
pop edi
mov dword [esi + 0x10], eax
xor eax, eax
pop ebx
mov dword [esi + 0x14], 0
pop esi
mov esp, ebp
pop ebp
ret
push dword [esi]
mov eax, dword [esi + 0x1c]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call dword [ebp + 8]
pop edi
pop ebx
mov dword [esi], 0
mov eax, 0x51
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10183320
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
test edx, edx
jne 0x10183333
xor eax, eax
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
not eax
cmp esi, 8
jb 0x101833ee
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x101c37e0]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x101c37e0]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x101c37e0]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x101c37e0]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x101c37e0]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x101c37e0]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x101c37e0]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x101c37e0]
sub edi, 1
jne 0x10183347
pop edi
test esi, esi
je 0x1018340c
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x101c37e0]
sub esi, 1
jne 0x101833f2
not eax
pop esi
pop ebp
ret
Function at 0x101899e8
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 0x10189a0f
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x10189a12
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.101899c4
pop esi
leave
ret 8

Function at 0x1019dc9d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call sub.api_ms_win_crt_locale_l1_1_0.dll____lc_locale_name_func
mov eax, dword [eax + 0x14]
test eax, eax
je 0x1019dce0
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 0x1019dce0
sub eax, 1
je 0x1019dcdb
sub eax, 1
je 0x1019dcd7
xor eax, eax
leave
ret
push 3
jmp 0x1019dce2
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x409368
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40941c
jmp 0x409411
cmp dword [esi + 0x10], 0x1000
jne 0x4093fd
test byte [esi + 0x15], 1
jne 0x4093fd
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x4093bc
cmp eax, 2
je 0x4093bc
cmp eax, 0x10
je 0x4093bc
cmp eax, 0x20
jne 0x4093d1
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4093d1
mov bl, 1
xor ebp, ebp
jmp 0x4093e2
mov eax, dword [esi]
add eax, ebp
call fcn.00409360
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jl 0x4093d5
test bl, bl
je 0x4093fd
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40941c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409394
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401720
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, esp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4050d2], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4051c4], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x405154], eax
mov dword [0x4050ca], eax
mov dword [0x405140], 0x30
mov dword [0x405144], 2
jmp 0x401765
mov dword [0x405148], 0x40319b
mov dword [0x40514c], 0
mov dword [0x405150], 0
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x40515c], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x405158], eax
mov dword [0x40516c], eax
mov dword [0x405168], 0x4041b8
mov dword [0x405160], 0xf
push 0x405140
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4050ca]
push 0
push 0
push 0x1e0
push 0x1fe
push 0xfffff862
push 0xfffff8f8
push 0xcf0000
push str.smform
push str.cl2307
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x4051bc], eax
push 5
push dword [0x4051bc]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x4051bc]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x405170]
jmp 0x401839
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x40182b
mov eax, dword [0x405178]
jmp 0x401854
call 0x402ccf
ret