joyce8/EMBER2024-capa huggingface dataset:
Function at 0x115fe
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
mov edx, dword [ebp + 0xc]
add eax, ecx
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
cmp edx, dword [ecx + 0xc]
jae 0x1161f
mov eax, edx
jmp 0x1164a
push ebx
push esi
movzx esi, word [eax + 6]
push edi
xor edi, edi
test esi, esi
jbe 0x11644
mov eax, dword [ecx + 0xc]
cmp edx, eax
jb 0x1163c
mov ebx, dword [ecx + 8]
add ebx, eax
cmp edx, ebx
jb 0x1164e
add ecx, 0x28
inc edi
cmp edi, esi
jb 0x1162c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
add eax, edx
jmp 0x11647

Function at 0x117fe
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
push esi
push edi
push 0x18
pop edi
push 0x820
mov dword [ebp - 0x1c], eax
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
xor esi, esi
push 0x120089
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
test eax, eax
jge 0x1184f
xor eax, eax
jmp 0x118c0
push 5
push edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jge 0x11872
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x1184b
push esi
push dword [ebp - 0x34]
push esi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
cmp edi, esi
je 0x11867
push esi
push esi
push dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push edi
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
push dword [ebp - 4]
test eax, eax
jge 0x118b0
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push esi
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x1184b
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
leave
ret 8
Function at 0x11946
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x1a670]
sub esp, 0x14
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x11987
mov ecx, dword [0x1a674]
cmp ecx, edi
je 0x11987
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [edx], ecx
mov ecx, 0x1a678
sub esi, ecx
movzx edx, word [ecx]
mov word [esi + ecx], dx
inc ecx
inc ecx
cmp dx, di
jne 0x11974
jmp 0x11a6c
mov esi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push ebx
push edi
push 0xa
push edi
call esi
mov ebx, eax
lea eax, [ebp - 4]
push eax
push edi
push ebx
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
push edi
push ebx
cmp eax, 0xc0000004
jne 0x11a63
mov ebx, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
call ebx
push edi
push dword [ebp - 4]
push edi
call esi
mov esi, eax
cmp esi, edi
je 0x11a69
push edi
push dword [ebp - 4]
push esi
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jge 0x119e2
push edi
push esi
call ebx
jmp 0x11a69
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [0x1a674], eax
lea eax, [esi + 0x20]
push 0x5c
push eax
mov dword [0x1a670], edi
call dword [sym.imp.ntoskrnl.exe_strrchr]
pop ecx
pop ecx
inc eax
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
push 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
sub eax, ecx
movzx edx, word [ecx]
mov word [eax + ecx], dx
inc ecx
inc ecx
test dx, dx
jne 0x11a2a
mov eax, dword [ebp - 8]
mov edx, 0x1a678
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x11a42
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
push 0
push esi
call ebx
mov eax, edi
jmp 0x11a6b
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x11a78
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push edi
xor ebx, ebx
push ebx
push 0xa
push ebx
call esi
mov edi, eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
push ebx
push edi
cmp eax, 0xc0000004
jne 0x11b18
mov edi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
call edi
push ebx
push dword [ebp - 4]
push ebx
call esi
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, ebx
je 0x11b1e
push ebx
push dword [ebp - 4]
push esi
push 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jge 0x11ad7
push ebx
push esi
call edi
jmp 0x11b1e
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, esi
add eax, 0x38
jmp 0x11af6
mov eax, dword [esi]
cmp eax, ebx
je 0x11b0c
add esi, eax
lea eax, [esi + 0x38]
push 1
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
jne 0x11aeb
mov esi, dword [esi + 0x44]
jmp 0x11b0e
mov esi, ebx
push ebx
push dword [ebp - 8]
call edi
mov eax, esi
jmp 0x11b20
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x12590
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x1a62c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x204]
push eax
xor esi, esi
call fcn.00012278
cmp word [ebp - 0x204], si
jne 0x125c4
xor eax, eax
jmp 0x1268b
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push esi
push esi
push 0x820
push 3
push 3
push 0x80
lea eax, [ebp - 0x238]
mov dword [ebp - 0x228], eax
push esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x230]
push eax
push 0x120116
lea eax, [ebp - 0x208]
push eax
mov dword [ebp - 0x230], 0x18
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x224], 0x40
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jl 0x12689
mov eax, dword [ebp + 8]
push esi
push esi
push 8
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x218], 0x58
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
test eax, eax
jl 0x1267d
mov esi, dword [ebp - 0x20c]
push dword [ebp - 0x208]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00017570
leave
ret 4
Function at 0x32a56
Capabilities:
Get system information on windows

Disassembly:
push 0x20
push 0x19818
call fcn.000175b0
mov byte [ebp - 0x19], 1
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x20]
push eax
push edi
push edi
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
je 0x32a8d
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x32b9d
mov esi, 0x50764476
push esi
push dword [ebp - 0x20]
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
call edi
mov ebx, eax
test ebx, ebx
je 0x32abc
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push ebx
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jge 0x32abc
mov byte [ebp - 0x19], 0
cmp byte [ebp - 0x19], 0
jne 0x32ad1
test ebx, ebx
je 0x32a7f
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x32a7f
push esi
mov esi, 0x208
push esi
push 0
call edi
mov edi, dword [ebp + 8]
mov dword [edi], eax
test eax, eax
jne 0x32af3
mov eax, dword [ebp + 0xc]
and dword [eax], 0
mov eax, dword [ebp + 0x10]
and dword [eax], 0
jmp 0x32a7f
movzx eax, word [ebx + 0x1e]
lea eax, [eax + ebx + 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
push 1
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
push esi
push 0
push dword [edi]
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov edi, dword [edi]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x32b27
push 0xb
pop ecx
mov eax, 0x33c62
mov esi, eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x32b41
sub eax, ecx
sar eax, 1
movzx ecx, word [ebp - 0x28]
push ecx
push dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
lea eax, [ecx + eax*2]
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
jmp 0x32b94
mov dword [ebp - 4], 0xfffffffe
mov al, 1
call fcn.000175f5
ret 0xc
Function at 0x32d70
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push 0x50764476
mov esi, 0x208
push esi
xor ebx, ebx
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
cmp edi, ebx
je 0x32e96
push esi
push ebx
push edi
call sub.ntoskrnl.exe_memset
add esp, 0xc
push 0x33cae
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], 0x240
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenSymbolicLinkObject]
test eax, eax
jl 0x32e1a
xor eax, eax
mov word [ebp - 0x10], ax
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
mov word [ebp - 0xe], si
call dword [sym.imp.ntoskrnl.exe_ZwQuerySymbolicLinkObject]
test eax, eax
jl 0x32e1a
movzx eax, word [ebp - 0x10]
shr eax, 1
lea esi, [eax - 1]
jmp 0x32e16
cmp word [edi + esi*2], 0x5c
je 0x32e61
dec esi
cmp esi, ebx
jg 0x32e0e
push ebx
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push 0x7ffe0030
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x32e96
cmp word [0x7ffe0032], 0x3a
jne 0x32e96
cmp word [0x7ffe0034], 0x5c
jne 0x32e96
mov eax, 0x7ffe0034
movzx ecx, word [eax]
mov edx, dword [ebp + 8]
mov word [edx + eax - 0x7ffe0034], cx
inc eax
inc eax
cmp cx, bx
jne 0x32e4a
jmp 0x32e92
mov ecx, dword [ebp + 8]
sub eax, esi
add eax, eax
mov dword [ebp - 8], eax
add eax, ecx
push eax
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x32e1a
push dword [ebp - 8]
lea eax, [edi + esi*2]
push eax
push dword [ebp + 8]
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
push ebx
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, 1
jmp 0x32e98
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x3315c
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
sub esp, 0x18
cmp word [eax], cx
je 0x33178
xor al, al
jmp 0x33270
push esi
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
je 0x3318d
xor al, al
jmp 0x3326f
mov eax, dword [esi + 0x3c]
movzx ecx, word [esi + 6]
push ebx
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x38]
push eax
push dword [esi + 0x50]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x54]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
call fcn.0003313c
push 0x50764476
mov ebx, eax
push ebx
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x331ce
xor al, al
jmp 0x3326e
push edi
push ebx
push 0
push eax
call sub.ntoskrnl.exe_memset
movzx eax, word [esi + 0x14]
lea edi, [eax + esi + 0x18]
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
jbe 0x33212
lea esi, [edi + 8]
mov dword [ebp - 8], eax
push dword [ebp - 0xc]
push dword [esi + 8]
call fcn.0003313c
push dword [ebp - 0x10]
mov dword [esi + 8], eax
push dword [esi]
call fcn.0003313c
mov dword [esi], eax
add esi, 0x28
dec dword [ebp - 8]
jne 0x331f0
mov eax, dword [ebp - 4]
imul eax, eax, 0x28
add eax, edi
mov ecx, dword [eax - 0x1c]
mov edx, dword [eax - 0x18]
add edx, ecx
cmp edx, ebx
jbe 0x3322b
sub ebx, ecx
mov dword [eax - 0x18], ebx
push dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
push dword [ebp + 8]
push ebx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
cmp dword [ebp - 4], 0
jbe 0x33266
lea esi, [edi + 0x14]
mov edi, dword [ebp - 4]
mov eax, dword [esi]
add eax, dword [ebp + 8]
push dword [esi - 4]
push eax
mov eax, dword [esi - 8]
add eax, ebx
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
add esi, 0x28
dec edi
jne 0x33249
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov al, 1
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x337ac
Capabilities:
Parse pe header

Disassembly:
push 0x114
push 0x19838
call fcn.000175b0
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [0x1ab54]
cmp eax, ecx
je 0x33905
cmp dword [0x1ab48], ecx
je 0x33905
cmp dword [0x1ab50], ecx
je 0x33905
cmp dword [0x1ab4c], ecx
je 0x33905
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push ecx
call eax
lea eax, [ebp - 0x2c]
push eax
call dword [0x1ab50]
sub eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
add eax, ebx
mov esi, eax
push esi
call dword [0x1ab4c]
test al, al
je 0x33827
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x33944
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x3393b
mov eax, dword [ebx + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
jne 0x3393b
lea esi, [eax + 0x18]
push 0x38
pop ecx
lea edi, [ebp - 0x124]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0xc4]
lea esi, [eax + ebx]
mov edi, dword [esi + 0x1c]
add edi, ebx
mov ebx, dword [esi + 0x20]
add ebx, dword [ebp + 0x10]
mov ecx, dword [esi + 0x24]
add ecx, dword [ebp + 0x10]
mov dword [ebp - 0x34], ecx
mov eax, dword [esi + 0x10]
mov dword [ebp + 0xc], eax
xor edx, edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [esi + 0x14]
jae 0x3393b
mov eax, dword [ebx + edx*4]
add eax, dword [ebp + 0x10]
movzx ecx, word [ecx + edx*2]
mov edx, dword [ebp + 0xc]
lea ecx, [ecx + edx - 1]
mov ecx, dword [edi + ecx*4]
add ecx, dword [ebp + 0x10]
mov dword [ebp - 0x30], ecx
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
push 1
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
push dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
call dword [0x1ab54]
push 1
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [0x1ab48]
test eax, eax
lea eax, [ebp - 0x24]
push eax
jne 0x338f1
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x30]
jmp 0x33944
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
inc dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x1c]
jmp 0x3387c
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
sub eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
mov esi, eax
push esi
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x3393b
jmp 0x33819
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.000175f5
ret 0xc
Function at 0x33952
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [esi], ax
je 0x3396f
xor al, al
jmp 0x33a06
mov eax, dword [esi + 0x3c]
cmp dword [esi + eax], 0x4550
jne 0x33968
push 0
push 0x33cfe
push 1
push esi
call fcn.0003327a
test eax, eax
je 0x33968
sub eax, esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 5
push 1
push esi
call dword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
test eax, eax
je 0x33968
push ebx
push edi
jmp 0x339fb
and dword [ebp - 4], 0
lea edx, [esi - 8]
shr edx, 1
test edx, edx
jle 0x339f9
mov ecx, dword [ebp - 4]
movzx ecx, word [eax + ecx*2 + 8]
mov edi, ecx
and edi, 0xf000
mov ebx, 0x3000
cmp di, bx
jne 0x339f1
and ecx, 0xfff
add ecx, dword [eax]
add ecx, dword [ebp + 8]
mov edi, dword [ecx]
sub edi, dword [ebp + 0xc]
cmp edi, dword [ebp - 8]
jne 0x339f1
mov edi, 0x5c7
cmp word [ecx - 2], di
je 0x33a0b
inc dword [ebp - 4]
cmp dword [ebp - 4], edx
jl 0x339b7
add eax, esi
mov esi, dword [eax + 4]
test esi, esi
jne 0x339aa
xor al, al
pop edi
pop ebx
pop esi
leave
ret 0xc
mov eax, dword [ecx + 4]
sub eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
add eax, dword [ebp + 8]
mov dword [ecx], eax
mov al, 1
jmp 0x33a04

Function at 0x39141
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pushfd
pushal
lea esp, [esp + 0x28]
jne 0x64e8a
jmp 0x5bf5b

Function at 0x4796d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea esp, [esp + 0xc]
je 0x36872
jmp 0x56004
mov ax, word [0x1a6dc]
pushfd
jmp 0x5d26a

Function at 0x4afba
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pushal
mov dword [0x1aae8], 0x1ec
call fcn.00048d0b
pushfd
mov dword [0x1aae0], 0x1fe
lea esp, [esp + 0x44]
jne 0x68377
pushal
mov byte [esp + 0xc], 0x7b
mov dword [0x1aae4], 0x1f9
jmp 0x3c09b
pushal
cmp ah, 7
cmp eax, edi
push ebx
call fcn.00069a17
jmp 0x3602f
jmp 0x370b5
mov byte [esp], 0x3b
call fcn.0003556d
pushfd
cmp dword [ebp - 0x14], 5
jmp 0x6a5bf
push 0xc3f8eb33
cmp dword [ebp - 0x10], 2
mov dword [esp], 0xa136139a
lea esp, [esp + 4]
jne 0x621de
call fcn.00053af4
mov dword [0x1aadc], 0x20e
jmp 0x44d4c
jmp 0x5b310
cmc
test ah, 0x59
pushal
push ebp
cmp dword [ebp - 0x14], 6
pushfd
jmp 0x5d942
mov byte [esp + 4], 0xcc
mov word [esp], bx
mov dword [0x1aaf0], 0x229
jmp 0x4afb1
lea esp, [esp + 0x28]
jne 0x64e8a
btc ax, ax
cmp ch, ah
mov eax, dword [ebp - 0x10]
cmc
jmp 0x3ad7e
test cl, 0xe2
stc
cmp dword [0x1a9a0], edi
push esp
pushfd
lea esp, [esp + 8]
je 0x4c58c
jmp 0x5c4dc
lea esp, [esp + 4]
jne 0x59bd0
test ch, al
jmp 0x4fee4

Function at 0x69a17
Capabilities:
Resolve function by parsing pe exports

Disassembly:
bt edi, ebp
cmc
pushfd
jmp 0x65cd0
cmp eax, 1
pushfd
lea esp, [esp + 8]
jne 0x4c93d
push 0xcd983bb
mov dword [0x1a9a0], 0xd8
push 0xbb08a1b3
pushfd
lea esp, [esp + 0xc]
jmp 0x64ea0
pushal
mov dword [0x1a9a0], 0xd3
pushfd
mov byte [esp], dl
pushfd
push ebx
lea esp, [esp + 0x30]
jmp 0x64ea0
mov word [esp], bx
pushfd
lea esp, [esp + 0x2c]
jne 0x47e9d
pushfd
jmp 0x68e86
Function at 0x402ed8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004046ac
test esi, esi
jne 0x402f0f
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.0040479c
jmp 0x402f30
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d74
mov dword [esp], eax
test esi, esi
je 0x402f30
cmp dword [ebx], 0
je 0x402f30
dec esi
jmp 0x402f17
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4036c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4bc020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403760
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403740
xor eax, eax
push ebp
push 0x403739
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40377c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403740
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4bc020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4bc020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404528
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4bf04c], 0
je 0x404589
cmp word [0x4bf220], 0xd7b2
jne 0x404551
cmp dword [0x4bf228], 0
jbe 0x404551
mov eax, 0x4bf21c
call dword [0x4bf238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4bc06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4045b0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4bc030], 0
jne 0x4045a5
push 0
push 0x4bc064
push 0x4bc06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4068c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406926
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040491c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403234
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406910
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40692d
lea eax, [ebp - 0x10]
call fcn.004046ac
ret

Function at 0x40c584
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c5bd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040479c
jmp 0x40c5c6
mov eax, ebx
mov edx, esi
call fcn.00404700
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c5d0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c5f1
mov al, byte [esp]
jmp 0x40c5f3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40cc88
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40caf0
mov eax, dword [0x4be3d4]
cmp byte [eax], 0
je 0x40cd04
mov eax, dword [0x4be058]
call fcn.00402ff8
call fcn.00402ca0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409690
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40cd4c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cd3a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4bdfdc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4bf668]
call fcn.00405d10
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret