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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0xbbd72f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e321
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e30a
test esi, esi
jbe 0x41e321
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408868
test eax, eax
jne 0x41e2fc
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e321
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e2d9
jmp 0x41e321
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e321
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xbbd736
ret
Function at 0x41eb80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0xbbe12f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404c94
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41ebbb
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41ebd4
lea eax, [ebp - 0x10]
mov edx, dword [0xbd3188]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404cf4
jmp 0x41ebe7
lea eax, [ebp - 0x10]
mov edx, dword [0xbd3188]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404cf4
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ebf3
adc edx, 0
mov edx, dword [edx*4 + 0xbd1ca8]
call fcn.00404ee4
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404ec8
push eax
call fcn.00406ab8
mov esi, eax
cmp esi, 0xffffffff
je 0x41ed01
mov eax, 0x40
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d00
test eax, eax
je 0x41ecf4
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ecf4
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d58
mov eax, edi
call fcn.00403270
mov eax, 0x18
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d00
test eax, eax
je 0x41ecf4
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ecf4
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ecf4
cmp dx, 0x150
ja 0x41ecf4
mov eax, edi
call fcn.00403270
mov eax, 0xe0
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d00
test eax, eax
je 0x41ecf4
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ecf4
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404cd0
mov eax, edi
call fcn.00403270
push esi
call fcn.00406a70
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.00404ff0
jne 0x41ed19
inc ebx
cmp ebx, 0x19
jne 0x41ebad
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xbbe136
lea eax, [ebp - 0x10]
call fcn.00404c94
ret
Function at 0x1054a
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push 0x18
mov eax, dword [ebp + 8]
pop esi
push 0x100
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push 0x20
push 1
push 1
push 0x80
mov dword [ebp - 0x20], eax
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x80000000
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], 0x200
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ntoskrnl.exe_IoCreateFile]
test eax, eax
jl 0x10633
push 5
push esi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jl 0x1062a
mov eax, dword [ebp - 0x38]
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 0x10]
jb 0x1062a
push 0x5f454c5f
push eax
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x1062a
push ebx
push ebx
push dword [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
jl 0x1061c
xor eax, eax
push edi
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
lea esi, [eax + edx]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x10619
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0x10]
inc eax
cmp eax, ecx
jbe 0x105fa
jmp 0x1061b
mov bl, 1
pop edi
push 0x5f454c5f
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop esi
mov al, bl
pop ebx
leave
ret 0xc

Function at 0x10640
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 4
pop eax
cmp dword [ebp + 0x10], eax
je 0x1068f
mov eax, dword [ebp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10662
mov ecx, dword [ebp + 0x14]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
leave
ret 0x10
lea ecx, [ebp + 0x14]
jmp 0x10677
Function at 0x108fa
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp + 8]
push eax
push 0xfffffffffffffffe
xor ebx, ebx
push esi
mov byte [ebp - 1], bl
call fcn.000108ac
add dword [ebp + 8], 0xa
mov edi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push 0x5f454c5f
push dword [ebp + 8]
push ebx
call edi
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x10a4c
cmp word [esi], 0x5c
jne 0x10960
cmp word [esi + 2], 0x3f
jne 0x10960
cmp word [esi + 4], 0x3f
jne 0x10960
cmp word [esi + 6], 0x5c
jne 0x10960
push esi
push dword [ebp + 8]
push eax
call fcn.0001082a
jmp 0x1097a
push 0x13210
push dword [ebp + 8]
push eax
call fcn.0001082a
push esi
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.00010866
push dword [ebp - 0xc]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x100
push ebx
push ebx
push ebx
push ebx
push 0x20
push 1
push 1
push 0x80
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x80000000
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], 0x200
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ntoskrnl.exe_IoCreateFile]
mov esi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test eax, eax
jl 0x10a42
push 5
push 0x18
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jl 0x10a39
mov eax, dword [ebp - 0x44]
push 0x5f454c5f
push eax
push ebx
mov dword [ebp + 8], eax
call edi
mov edi, eax
cmp edi, ebx
je 0x10a39
push ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push edi
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
jl 0x10a39
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call fcn.00011322
push 0x1320a
push edi
mov byte [ebp - 1], al
call esi
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push 0x1320a
push dword [ebp - 0xc]
call esi
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10a5c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
xor edi, edi
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov esi, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
lea eax, [ebp - 8]
push eax
push edi
push edi
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call esi
mov dword [ebp + 0xc], eax
cmp eax, 0xc0000023
jne 0x10b2a
push ebx
mov ebx, 0x5f454c5f
push ebx
push dword [ebp - 8]
push edi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
test edi, edi
je 0x10b29
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push edi
push 2
push eax
push dword [ebp + 8]
call esi
mov dword [ebp + 0xc], eax
test eax, eax
jl 0x10b21
mov eax, dword [edi + 4]
test eax, eax
jbe 0x10b1a
cmp eax, 2
jbe 0x10ae2
cmp eax, 7
jne 0x10b1a
lea eax, [ebp - 4]
push eax
push 0xfffffffffffffffe
lea esi, [edi + 0xc]
push esi
call fcn.000108ac
add dword [ebp - 4], 2
push ebx
push dword [ebp - 4]
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
test eax, eax
je 0x10b1a
push esi
push dword [ebp - 4]
push eax
call fcn.0001082a
and dword [ebp + 0xc], 0
jmp 0x10b21
mov dword [ebp + 0xc], 0xc0000001
push ebx
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop ebx
mov eax, dword [ebp + 0xc]
pop edi
pop esi
leave
ret 0xc
Function at 0x1139a
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
mov edx, 0x80
push edx
xor ebx, ebx
push ebx
xor ecx, ecx
call fcn.00011374
test eax, eax
jne 0x114f5
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x114f5
mov ecx, dword [edi + 0x3c]
mov eax, dword [ebp + 8]
push 0x18
push edx
call fcn.00011374
test eax, eax
jne 0x114f5
lea eax, [ecx + edi]
cmp dword [eax], 0x4550
mov dword [ebp - 4], eax
jne 0x114f5
mov eax, dword [ebp + 8]
push 2
add ecx, 0x18
push ebx
call fcn.00011374
test eax, eax
jne 0x114f5
lea edx, [ecx + edi]
movzx eax, word [edx]
cmp eax, 0x10b
je 0x1144b
cmp eax, 0x20b
jne 0x114f5
mov eax, dword [ebp + 8]
push 0x70
push ebx
call fcn.00011374
test eax, eax
jne 0x114f5
mov eax, edx
sub eax, edi
add eax, 0x40
mov dword [esi + 4], eax
mov eax, dword [edx + 0x3c]
mov dword [esi], eax
mov eax, dword [edx + 0x6c]
add ecx, 0x70
jmp 0x11473
mov eax, dword [ebp + 8]
push 0x60
push ebx
call fcn.00011374
test eax, eax
jne 0x114f5
mov eax, edx
sub eax, edi
add eax, 0x40
mov dword [esi + 4], eax
mov eax, dword [edx + 0x3c]
mov dword [esi], eax
mov eax, dword [edx + 0x5c]
add ecx, 0x60
mov edx, dword [esi]
mov dword [esi + 0xc], eax
cmp ecx, edx
jae 0x114f5
cmp edx, dword [ebp + 8]
jae 0x114f5
sub edx, ecx
shr edx, 3
cmp eax, edx
ja 0x114f5
lea ebx, [ecx + eax*8]
lea edx, [ecx + edi]
mov eax, edx
sub eax, edi
add eax, 0x20
mov dword [esi + 8], eax
mov eax, dword [edx + 0x24]
mov dword [esi + 0x14], eax
mov ecx, dword [edx + 0x20]
mov dword [ebp - 8], ebx
test ecx, ecx
je 0x114ee
mov eax, dword [edx + 0x24]
test eax, eax
je 0x114ee
push eax
push dword [esi]
mov eax, dword [ebp + 8]
call fcn.00011374
test eax, eax
jne 0x114f5
mov dword [esi + 0x18], ecx
mov eax, dword [edx + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 6]
mov eax, dword [esi]
sub eax, ebx
push 0x28
xor edx, edx
pop ebx
div ebx
mov dword [esi + 0x10], ecx
cmp ecx, eax
ja 0x114f5
mov eax, dword [ebp - 8]
add eax, edi
mov dword [esi + 0x20], eax
xor eax, eax
jmp 0x114f8
mov eax, 0xffffff7f
jmp 0x114f8
push 0xffffffffffffffb0
pop eax
pop ebx
leave
ret 4

Function at 0x122b4
Capabilities:
Hash data using sha1

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
pop ebp
ret 4
Function at 0x122f8
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x14c
push ebx
push esi
xor edx, edx
lea ecx, [eax + 0x1d]
push edi
movzx esi, byte [ecx - 1]
movzx edi, byte [ecx]
shl esi, 8
or esi, edi
movzx edi, byte [ecx + 1]
shl esi, 8
or esi, edi
movzx edi, byte [ecx + 2]
shl esi, 8
or esi, edi
mov dword [ebp + edx*4 - 0x14c], esi
inc edx
add ecx, 4
cmp edx, 0x10
jl 0x1230e
push 0x40
lea ecx, [ebp - 0x144]
pop edx
mov esi, dword [ecx + 0x2c]
xor esi, dword [ecx + 0x18]
xor esi, dword [ecx - 8]
xor esi, dword [ecx]
add ecx, 4
dec edx
rol esi, 1
mov dword [ecx + 0x34], esi
jne 0x12345
mov esi, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [eax + 8]
and dword [ebp + 8], 0
mov dword [ebp - 4], esi
mov esi, dword [eax + 0x10]
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 8]
mov edi, ecx
not edi
and edi, dword [ebp - 4]
mov ebx, edx
and ebx, ecx
or edi, ebx
rol esi, 5
add esi, edi
mov edi, dword [ebp + 8]
add esi, dword [ebp + edi*4 - 0x14c]
mov edi, dword [ebp - 0xc]
inc dword [ebp + 8]
lea esi, [esi + edi + 0x5a827999]
mov edi, dword [ebp - 4]
ror ecx, 2
cmp dword [ebp + 8], 0x14
mov dword [ebp - 4], edx
mov edx, ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
jl 0x12376
mov dword [ebp + 8], 0x14
mov ebx, dword [ebp - 4]
xor ebx, edx
xor ebx, ecx
rol esi, 5
add esi, ebx
mov ebx, dword [ebp + 8]
add esi, dword [ebp + ebx*4 - 0x14c]
inc dword [ebp + 8]
lea esi, [esi + edi + 0x6ed9eba1]
mov edi, dword [ebp - 4]
ror ecx, 2
cmp dword [ebp + 8], 0x28
mov dword [ebp - 4], edx
mov edx, ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 8], esi
jl 0x123c3
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], 0x28
mov edi, edx
or edi, ecx
and edi, dword [ebp - 4]
mov ebx, edx
and ebx, ecx
or edi, ebx
mov ebx, dword [ebp + 8]
add edi, dword [ebp + ebx*4 - 0x14c]
rol esi, 5
add esi, dword [ebp - 0xc]
inc dword [ebp + 8]
lea esi, [edi + esi - 0x70e44324]
mov edi, dword [ebp - 4]
ror ecx, 2
push 0x3c
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edx
pop edi
cmp dword [ebp + 8], edi
mov edx, ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 8], esi
jl 0x12404
mov dword [ebp + 8], edi
mov edi, dword [ebp - 4]
mov ebx, dword [ebp + 8]
xor edi, edx
xor edi, ecx
add edi, dword [ebp + ebx*4 - 0x14c]
mov ebx, dword [ebp - 4]
rol esi, 5
add esi, dword [ebp - 0xc]
inc dword [ebp + 8]
ror ecx, 2
cmp dword [ebp + 8], 0x50
mov dword [ebp - 4], edx
lea esi, [edi + esi - 0x359d3e2a]
mov edx, ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
jl 0x1244a
mov edi, dword [eax]
add edi, esi
mov esi, dword [eax + 4]
add esi, ecx
mov ecx, dword [eax + 8]
add ecx, edx
mov edx, dword [ebp - 4]
mov dword [eax + 8], ecx
mov ecx, dword [eax + 0xc]
add ecx, edx
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [eax], edi
pop edi
add ecx, ebx
and dword [eax + 0x5c], 0
mov dword [eax + 4], esi
pop esi
mov dword [eax + 0x10], ecx
pop ebx
leave
ret 4
Function at 0x403154
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x464020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4031ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4031cc
xor eax, eax
push ebp
push 0x4031c5
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 0x403208
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 0x4031cc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x464020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x464020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403eb8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46604c], 0
je 0x403f19
cmp word [0x466220], 0xd7b2
jne 0x403ee1
cmp dword [0x466228], 0
jbe 0x403ee1
mov eax, 0x46621c
call dword [0x466238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46406c
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 0x403f40
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x464030], 0
jne 0x403f35
push 0
push 0x464064
push 0x46406c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405f54
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 0x405fba
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.004042a4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d18
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405fa4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405fc1
lea eax, [ebp - 0x10]
call fcn.00404034
ret

Function at 0x40b0b4
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 0x40b0ed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404124
jmp 0x40b0f6
mov eax, ebx
mov edx, esi
call fcn.00404088
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b100
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 0x40b121
mov al, byte [esp]
jmp 0x40b123
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b7a8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b620
mov eax, dword [0x465a0c]
cmp byte [eax], 0
je 0x40b824
mov eax, dword [0x465770]
call fcn.00402b84
call fcn.004028ac
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.004088f4
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 0x40b86c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b85a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x465708]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x466668]
call fcn.0040544c
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
Function at 0x40c114
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c1ea
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004040cc
lea eax, [ebp - 8]
call fcn.00404544
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004044f4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c1d4
mov eax, ebx
call fcn.00402744
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c1cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004044f4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c1b7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c1fc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c1b7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c1d4
mov eax, dword [ebp - 0x10]
call fcn.00402764
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c1f1
lea eax, [ebp - 8]
call fcn.00404034
ret

Function at 0x40c770
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c7d4
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004042a4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040841c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c7db
lea eax, [ebp - 0xc]
call fcn.00404034
ret

Function at 0x41e0d4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x466888
cmp dword [edi], 0
jne 0x41e150
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x466884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4643fc
mov ecx, 2
call fcn.00402940
mov edx, 0x41e0ac
lea eax, [esi + 5]
call fcn.0041e0cc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041e0cc
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41e125
mov dword [0x466884], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41f76c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41f772
ret
Function at 0x421c08
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x421c59
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x421c40
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x421c30
jmp 0x421c59
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x421c41
pop ebx
mov esp, ebp
pop ebp
ret