joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452858
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x464718]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x464ce0]
je 0x45288f
inc eax
cmp eax, 0x13
jb 0x452880
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x464ce0]
jne 0x4529b2
mov eax, dword [0x46641c]
cmp eax, 1
je 0x45298d
cmp eax, edx
jne 0x4528bf
cmp dword [0x46445c], 1
je 0x45298d
cmp ecx, 0xfc
je 0x4529b2
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4528f5
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.004493e0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00449350
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x452929
mov eax, edi
push eax
call fcn.00449350
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x45afd0
push edi
call fcn.004534a0
add esp, 0x10
push edi
call fcn.00449350
push dword [esi + 0x464ce4]
mov ebx, eax
call fcn.00449350
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0044b8a0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004493e0
push edi
push ebx
call fcn.004493f0
push 0x45afb0
push ebx
call fcn.004493f0
push dword [esi + 0x464ce4]
push ebx
call fcn.004493f0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00455a85
add esp, 0x2c
jmp 0x4529b2
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x464ce4]
push dword [esi]
call fcn.00449350
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0044c1fa
add ebp, 0x90
leave
ret
Function at 0x452d18
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x466894]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x452d61
call ebp
mov esi, eax
cmp esi, ebx
je 0x452d47
mov dword [0x466894], 1
jmp 0x452d66
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x452d5c
push 2
pop eax
mov dword [0x466894], eax
jmp 0x452d61
mov eax, dword [0x466894]
cmp eax, 1
jne 0x452dbe
cmp esi, ebx
jne 0x452d79
call ebp
mov esi, eax
cmp esi, ebx
jne 0x452d79
xor eax, eax
jmp 0x452e65
cmp word [esi], bx
mov eax, esi
je 0x452d8e
inc eax
inc eax
cmp word [eax], bx
jne 0x452d80
inc eax
inc eax
cmp word [eax], bx
jne 0x452d80
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0044932f
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x452db1
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x452e65
push ebp
push esi
push edi
call fcn.00449a60
add esp, 0xc
jmp 0x452da3
cmp eax, 2
je 0x452dc7
cmp eax, ebx
jne 0x452d72
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x452d72
cmp byte [ebp], bl
mov esi, ebp
je 0x452dfd
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x452d72
push esi
add edi, eax
call fcn.00449350
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x452dda
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0044932f
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x452e76
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x452e57
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x452e6c
push edi
call fcn.00449350
push esi
lea edi, [edi + eax + 1]
call fcn.00448c0c
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x452e1d
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.004494d8
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x452d72
Function at 0x452e82
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x466898]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x452ec2
call esi
test eax, eax
je 0x452ea7
mov dword [0x466898], 1
jmp 0x452ec7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x452ebe
mov dword [0x466898], 2
jmp 0x452ed0
xor eax, eax
jmp 0x452f1e
cmp eax, 1
jne 0x452ecb
call esi
jmp 0x452f1e
cmp eax, 2
jne 0x452ebe
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x452f16
lea eax, [esi + esi]
push eax
call fcn.0044932f
mov ebp, eax
test ebp, ebp
pop ecx
je 0x452f16
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x452f1a
push ebp
call fcn.004494d8
pop ecx
xor eax, eax
jmp 0x452f1c
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x454474
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4544a2
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4544a9
cmp ebx, dword [eax + 4]
jae 0x4544a9
xor eax, eax
jmp 0x454699
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4544ba
xor eax, eax
inc eax
jmp 0x454698
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4544d0
cmp ecx, edx
jae 0x454615
cmp dword [eax + 4], 0
je 0x4544d9
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4544c1
cmp dword [ebp + 8], 0
je 0x4544fb
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x454615
cmp eax, esi
jae 0x454615
mov eax, dword [0x466928]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x454520
cmp dword [esi*4 + 0x466930], edi
je 0x454619
inc esi
cmp esi, eax
jl 0x45450e
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x454695
cmp dword [ebp - 8], 0x1000000
jne 0x454695
test byte [ebp - 0xc], 0xcc
je 0x45459e
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x454695
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x454695
cmp word [eax + 0x18], 0x10b
jne 0x454695
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x454695
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x45459e
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x45459e
test byte [ecx + 0x27], 0x80
jne 0x454615
push 1
push 0x466970
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4544b2
mov ecx, dword [0x466928]
test ecx, ecx
mov edx, ecx
jle 0x4545d2
lea eax, [ecx*4 + 0x46692c]
cmp dword [eax], edi
je 0x4545d2
dec edx
sub eax, 4
test edx, edx
jg 0x4545c6
test edx, edx
jne 0x454603
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4545df
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4545f7
lea eax, [edx*4 + 0x466930]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4545e5
cmp ecx, 0x10
jge 0x454603
inc ecx
mov dword [0x466928], ecx
push 0
push 0x466970
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4544b2
xor eax, eax
jmp 0x454698
test esi, esi
jle 0x4544b2
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x466970
call ebx
test eax, eax
jne 0x4544b2
cmp dword [esi*4 + 0x466930], edi
je 0x45466f
mov eax, dword [0x466928]
lea esi, [eax - 1]
test esi, esi
jl 0x45465d
cmp dword [esi*4 + 0x466930], edi
je 0x454659
dec esi
jns 0x45464d
test esi, esi
jge 0x45466d
cmp eax, 0x10
jge 0x454668
inc eax
mov dword [0x466928], eax
lea esi, [eax - 1]
jmp 0x45466f
je 0x454687
xor ecx, ecx
test esi, esi
jl 0x454687
lea eax, [ecx*4 + 0x466930]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x454675
push 0
push 0x466970
call ebx
jmp 0x4544b2
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x455a85
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x46697c], ebx
push esi
push edi
jne 0x455b05
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x455b40
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x46697c], eax
je 0x455b40
push 0x45b444
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x466980], eax
call esi
cmp dword [0x4663cc], 2
mov dword [0x466984], eax
jne 0x455b05
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x46698c], eax
je 0x455b05
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x466988], eax
mov eax, dword [0x466988]
test eax, eax
je 0x455b4a
call eax
test eax, eax
je 0x455b31
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x46698c]
test eax, eax
je 0x455b31
test byte [ebp - 8], 1
jne 0x455b4a
cmp dword [0x4663d8], 4
jb 0x455b44
or byte [ebp + 0x12], 0x20
jmp 0x455b69
xor eax, eax
jmp 0x455b79
or byte [ebp + 0x12], 4
jmp 0x455b69
mov eax, dword [0x466980]
test eax, eax
je 0x455b69
call eax
mov ebx, eax
test ebx, ebx
je 0x455b69
mov eax, dword [0x466984]
test eax, eax
je 0x455b69
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x46697c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45695f
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0044b8a0
mov eax, dword [0x464718]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0044f085
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x456a94
push 2
push esi
push dword [ebp + 8]
call fcn.0044f085
add esp, 0xc
cmp eax, ebx
je 0x456a94
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x456a34
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00448eb0
push 0x8000
push dword [ebp + 8]
call fcn.0044aa5c
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x4569ea
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0044f380
add esp, 0xc
cmp eax, 0xffffffff
je 0x456a0a
sub edi, eax
test edi, edi
jg 0x4569e2
jmp 0x456a22
call fcn.0044d1ae
cmp dword [eax], 5
jne 0x456a1f
call fcn.0044d1a5
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0044aa5c
pop ecx
pop ecx
jmp 0x456a7c
jge 0x456a7c
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044f085
push dword [ebp + 8]
call fcn.0045012f
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x456a7c
call fcn.0044d1a5
mov dword [eax], 0xd
call fcn.0044d1ae
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0044f085
add esp, 0xc
mov eax, esi
pop edi
jmp 0x456a96
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c1fa
leave
ret
Function at 0x457767
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x457780
or eax, 0xffffffff
jmp 0x4577e1
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x4577dd
push 0x3d
push esi
call fcn.00457968
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4577dd
cmp esi, eax
je 0x4577dd
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x4663ec]
sete cl
cmp eax, dword [0x4663f0]
mov dword [ebp - 4], ecx
jne 0x4577c3
mov edi, eax
call fcn.00457706
mov dword [0x4663ec], eax
cmp eax, ebx
jne 0x45781c
cmp dword [ebp + 0xc], ebx
je 0x4577e5
cmp dword [0x4663f4], ebx
je 0x4577e5
call fcn.00456af2
test eax, eax
je 0x45781c
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x4577ee
xor eax, eax
jmp 0x4577e0
push 4
call fcn.0044932f
cmp eax, ebx
pop ecx
mov dword [0x4663ec], eax
je 0x4577dd
mov dword [eax], ebx
cmp dword [0x4663f4], ebx
jne 0x45781c
push 4
call fcn.0044932f
cmp eax, ebx
pop ecx
mov dword [0x4663f4], eax
je 0x4577dd
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x4663ec]
sub edi, esi
push esi
call fcn.004576b9
mov edi, eax
test edi, edi
pop ecx
jl 0x457883
cmp dword [ebx], 0
je 0x457883
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004494d8
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x457863
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x4578c4
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x45785a
mov eax, edi
shl eax, 2
push eax
push dword [0x4663ec]
call fcn.0044cdf0
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x4578c4
jmp 0x4578bf
cmp dword [ebp - 4], 0
jne 0x45792b
test edi, edi
jge 0x457893
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4663ec]
call fcn.0044cdf0
test eax, eax
pop ecx
pop ecx
je 0x4577dd
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x4663ec], eax
cmp dword [ebp + 0xc], 0
je 0x457916
push esi
call fcn.00449350
inc eax
inc eax
push eax
call fcn.0044932f
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x457916
push esi
push edi
call fcn.004493e0
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x45790f
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.004494d8
pop ecx
cmp dword [ebp - 4], 0
je 0x457923
push esi
call fcn.004494d8
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4577e0
push esi
call fcn.004494d8
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x4577ea
Function at 0x402868
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4028a5
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x108]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x4028c5
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.00403f24
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x402a84
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402ab3
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403ddc
jmp 0x402ad1
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004029ac
mov edi, eax
test ebx, ebx
je 0x402ad1
cmp dword [esi], 0
je 0x402ad1
dec ebx
jmp 0x402aba
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
imul edx, dword [0x4c2044], 0x8088405
inc edx
mov dword [0x4c2044], edx
mul edx
mov eax, edx
ret

Function at 0x402ea4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402f3c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402f1c
xor eax, eax
push ebp
push 0x402f15
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 0x402f58
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 0x402f1c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x405940
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405afc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4059a1
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405b18
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405a13
xor eax, eax
push ebp
push 0x405a0c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00405798
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4059f5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405b38
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a13
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405af4
cmp byte [ebp - 0xd], 0
jne 0x405a55
cmp byte [ebp - 0x12], 0
je 0x405af4
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405a6e
dec ebx
cmp byte [ebx], 0x2e
je 0x405a7d
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405a6d
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405af4
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405aaa
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405af4
cmp byte [ebp - 0xd], 0
je 0x405af4
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405af4
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b86c
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 0x40b8a5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403ddc
jmp 0x40b8ae
mov eax, ebx
mov edx, esi
call fcn.00403d48
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b8b8
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 0x40b8d9
mov al, byte [esp]
jmp 0x40b8db
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x419d44
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 0x419d4a
ret

Function at 0x41c514
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 0x41c565
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41c54c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41c53c
jmp 0x41c565
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 0x41c54d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42e6e0
Capabilities:
Open clipboard

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 4], 0
jne 0x42e734
mov eax, dword [0x4c1398]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebx + 8], eax
test eax, eax
jne 0x42e70c
push ebx
push 0x42e73c
call fcn.004497c0
mov dword [ebx + 8], eax
mov byte [ebx + 0xc], 1
mov eax, dword [ebx + 8]
push eax
call sub.user32.dll_OpenClipboard
test eax, eax
jne 0x42e730
mov ecx, dword [0x4c1100]
mov dl, 1
mov eax, dword [0x407cdc]
call fcn.0040c0bc
call fcn.004037c4
mov byte [ebx + 0xd], 0
inc dword [ebx + 4]
pop ebx
ret

Function at 0x42e75c
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0042e6e0
xor edx, edx
push ebp
push 0x42e82e
push dword fs:[edx]
mov dword fs:[edx], esp
push ebx
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x42e800
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
xor edx, edx
push ebp
push 0x42e7ef
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, edi
mov ecx, ebx
call fcn.0040296c
mov eax, dword [ebp - 4]
call fcn.0042e698
mov eax, dword [ebp - 8]
push eax
movzx eax, si
push eax
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e7f6
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret

Function at 0x42e840
Capabilities:
Read clipboard data

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, ecx
mov edi, edx
mov esi, eax
mov eax, esi
call fcn.0042e6e0
push 1
call sub.user32.dll_GetClipboardData
mov ebx, eax
test ebx, ebx
jne 0x42e862
xor edi, edi
jmp 0x42e881
push ebx
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov ecx, ebp
dec ecx
mov eax, edi
call fcn.00409574
call fcn.004094b8
mov edi, eax
push ebx
call sub.kernel32.dll_GlobalUnlock
mov eax, esi
call fcn.0042e6b4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42e8b0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0042e6e0
xor edx, edx
push ebp
push 0x42e952
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x42e925
mov edx, ebx
mov eax, dword [0x419818]
call fcn.0041dcdc
test al, al
je 0x42e915
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.0041dbec
call fcn.00403864
jmp 0x42e959
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x42e8e0
mov ecx, dword [0x4c1178]
mov dl, 1
mov eax, dword [0x407cdc]
call fcn.0040c0bc
call fcn.004037c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e959
mov eax, dword [ebp - 4]
call fcn.0042e6b4
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret