joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100014e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push 0x289fbd13
call fcn.100026d0
add esp, 4
mov dword [ebp - 0x84], eax
mov byte [ebp - 0x90], 0x73
mov byte [ebp - 0x8f], 0x63
mov byte [ebp - 0x8e], 0x20
mov byte [ebp - 0x8d], 0x73
mov byte [ebp - 0x8c], 0x74
mov byte [ebp - 0x8b], 0x6f
mov byte [ebp - 0x8a], 0x70
mov byte [ebp - 0x89], 0x20
mov byte [ebp - 0x88], 0
mov byte [ebp - 0x9c], 0x73
mov byte [ebp - 0x9b], 0x63
mov byte [ebp - 0x9a], 0x20
mov byte [ebp - 0x99], 0x64
mov byte [ebp - 0x98], 0x65
mov byte [ebp - 0x97], 0x6c
mov byte [ebp - 0x96], 0x65
mov byte [ebp - 0x95], 0x74
mov byte [ebp - 0x94], 0x65
mov byte [ebp - 0x93], 0x20
mov byte [ebp - 0x92], 0
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x80]
push ecx
call dword [0x1000a090]
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x80]
push eax
call dword [0x1000a070]
push 0
lea ecx, [ebp - 0x80]
push ecx
call dword [ebp - 0x84]
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0x80]
push eax
call dword [0x1000a090]
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x80]
push edx
call dword [0x1000a070]
push 0
lea eax, [ebp - 0x80]
push eax
call dword [ebp - 0x84]
mov esp, ebp
pop ebp
ret

Function at 0x100015f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov byte [ebp - 0x1c], 0x41
mov byte [ebp - 0x1b], 0x64
mov byte [ebp - 0x1a], 0x76
mov byte [ebp - 0x19], 0x61
mov byte [ebp - 0x18], 0x70
mov byte [ebp - 0x17], 0x69
mov byte [ebp - 0x16], 0x33
mov byte [ebp - 0x15], 0x32
mov byte [ebp - 0x14], 0x2e
mov byte [ebp - 0x13], 0x64
mov byte [ebp - 0x12], 0x6c
mov byte [ebp - 0x11], 0x6c
mov byte [ebp - 0x10], 0
push 0x3777cccb
call fcn.100026d0
add esp, 4
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x1c]
push eax
call dword [ebp - 0x48]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x10001664
push 0x94c4c32
call fcn.100026d0
add esp, 4
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x1c]
push ecx
call dword [ebp - 0x50]
mov dword [ebp - 0x40], eax
push 0x4927ac50
mov edx, dword [ebp - 0x40]
push edx
call fcn.100025e0
add esp, 8
mov dword [ebp - 0x20], eax
push 0x4842adf4
mov eax, dword [ebp - 0x40]
push eax
call fcn.100025e0
add esp, 8
mov dword [ebp - 0x4c], eax
push 0x42f77b2b
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.100025e0
add esp, 8
mov dword [ebp - 0x44], eax
mov byte [ebp - 8], 0x61
mov byte [ebp - 7], 0x61
mov byte [ebp - 6], 0x76
mov byte [ebp - 5], 0
push 0xf003f
push 0
push 0
call dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
push 0xf01ff
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [ebp - 0x4c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100016f9
lea ecx, [ebp - 0x3c]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
call dword [0x1000a010]
mov eax, dword [ebp - 4]
push eax
call dword [0x1000a01c]
mov ecx, dword [ebp - 4]
push ecx
call dword [ebp - 0x44]
mov esp, ebp
pop ebp
ret
Function at 0x10002550
Capabilities:
Hash data using rshash

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0x5c6b7
mov dword [ebp - 4], 0xf8c9
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x100025c8
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
cmp eax, 0x41
jl 0x100025a1
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
cmp edx, 0x5a
jg 0x100025a1
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
lea eax, [eax + edx + 0x20]
mov dword [ebp - 0xc], eax
jmp 0x100025b3
mov ecx, dword [ebp - 0xc]
imul ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
add ecx, eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 4]
imul ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
jmp 0x1000256b
mov eax, dword [ebp - 0xc]
and eax, 0x7fffffff
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], 1
jmp 0x10002616
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x10002674
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x20]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add edx, dword [eax + ecx*4]
push edx
call fcn.10002550
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
jne 0x10002672
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov eax, dword [ebp - 0x10]
mov cx, word [edx + eax*2]
mov word [ebp - 0x18], cx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
movzx ecx, word [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, dword [eax + ecx*4]
mov eax, edx
jmp 0x10002676
jmp 0x1000260d
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10002680
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov byte [ebp - 0x10], 0x6b
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xe], 0x72
mov byte [ebp - 0xd], 0x6e
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 0xb], 0x6c
mov byte [ebp - 0xa], 0x33
mov byte [ebp - 9], 0x32
mov byte [ebp - 8], 0x2e
mov byte [ebp - 7], 0x64
mov byte [ebp - 6], 0x6c
mov byte [ebp - 5], 0x6c
mov byte [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call dword [0x1000a03c]
mov esp, ebp
pop ebp
ret

Function at 0x43b646
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x43b3c1
sub edi, 0xb5669ce6
mov edi, eax
mov eax, 0xc6407c9d
call fcn.0043b696
inc eax
xor dword [edx], ecx
or eax, eax
add eax, eax
inc edx
sub edi, 1
push 0x2defd6be
mov eax, dword [esp]
add esp, 4
sub eax, 0x9600f4f2
cmp edx, esi
jne fcn.0043b646
mov eax, edi
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x436008]
jne 0x40100a
repz ret
jmp fcn.00401878

Function at 0x407c90
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403d87
and dword [ebp - 4], 0
cmp dword [0x438108], 0
mov ebx, eax
jne 0x407d41
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407df2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407df2
push eax
call fcn.00403d15
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x438108], eax
call esi
push eax
call fcn.00403d15
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43810c], eax
call esi
push eax
call fcn.00403d15
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x438110], eax
call esi
push eax
call fcn.00403d15
pop ecx
mov dword [0x438118], eax
test eax, eax
je 0x407d41
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403d15
pop ecx
mov dword [0x438114], eax
mov eax, dword [0x438114]
cmp eax, ebx
je 0x407d99
cmp dword [0x438118], ebx
je 0x407d99
push eax
call fcn.00403d90
push dword [0x438118]
mov esi, eax
call fcn.00403d90
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407d99
test edi, edi
je 0x407d99
call esi
test eax, eax
je 0x407d90
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407d90
test byte [ebp - 0xc], 1
jne 0x407d99
or dword [ebp + 0x10], 0x200000
jmp 0x407dd2
mov eax, dword [0x43810c]
cmp eax, ebx
je 0x407dd2
push eax
call fcn.00403d90
pop ecx
test eax, eax
je 0x407dd2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407dd2
mov eax, dword [0x438110]
cmp eax, ebx
je 0x407dd2
push eax
call fcn.00403d90
pop ecx
test eax, eax
je 0x407dd2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x438108]
call fcn.00403d90
pop ecx
test eax, eax
je 0x407df2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407df4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d190
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb000]
push edi
or ebp, 0xffffffff
jmp 0x40d1b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40d1b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40d1a8
mov eax, 1
add ebx, ebx
jne 0x40d1cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40d1c0
jne 0x40d1dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40d1c0
xor ecx, ecx
sub eax, 3
jb 0x40d1f0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40d262
mov ebp, eax
add ebx, ebx
jne 0x40d1fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40d208
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40d22c
inc ecx
add ebx, ebx
jne 0x40d218
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40d20d
jne 0x40d229
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40d20d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40d24c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40d23d
jmp 0x40d1ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40d24c
add edi, ecx
jmp 0x40d1ae
pop esi
mov edi, esi
mov ecx, 0xa8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40d26a
cmp byte [edi], 4
jne 0x40d26a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40d26f
lea edi, [esi + 0xb000]
mov eax, dword [edi]
or eax, eax
je 0x40d2de
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40d29c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd054]
or eax, eax
je 0x40d2d8
mov dword [ebx], eax
add ebx, 4
jmp 0x40d2b9
call dword [esi + 0xd064]
mov ebp, dword [esi + 0xd058]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40d312
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x403640
Capabilities:
Delete file
Enumerate gui resources

Disassembly:
mov eax, dword [0x49d4bc]
mov ecx, dword [0x49a3c4]
sub esp, 0xc2c
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x403733
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
cmp dword [0x49d4bc], 0x959
jne 0x403719
push 0
push 0
call esi
push 0
lea eax, [esp + 0x43c]
push eax
push 0
call edi
push 0
push 0
call ebx
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
lea ecx, [esp + 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
push 0
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommState]
push 0
push 0x402cc0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov eax, dword [esp + 0x14]
push eax
call fcn.00403490
add dword [esp + 0x14], 8
sub dword [esp + 0x18], 1
jne 0x403680
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc2c
ret
Function at 0x4040f0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42e818
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp dword [0x49d4bc], 0x84
jne 0x404187
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedFlushSList]
push ebx
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push ebx
push 0x433368
call fcn.00405a9e
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
push ebx
mov dword [esp + 0x34], ebx
call fcn.00405829
push ebx
push ebx
call fcn.004058b7
add esp, 0x14
mov dword [esp + 0x28], 0xffffffff
cmp dword [esp + 0x1c], 0x10
jb 0x404177
mov eax, dword [esp + 8]
push eax
call fcn.00405b63
add esp, 4
mov dword [esp + 0x1c], 0xf
mov dword [esp + 0x18], ebx
mov byte [esp + 8], bl
cmp byte [0x433368], bl
jle 0x404197
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [0x432514]
mov edx, dword [0x4324e8]
mov dword [0x49d4bc], ecx
mov dword [0x49de5c], edx
call fcn.00403840
mov ecx, dword [esp + 0x20]
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 0x10

Function at 0x40713c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430238]
jne 0x407146
repz ret
jmp fcn.0040c275
Function at 0x40cd6f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004099d6
and dword [ebp - 4], 0
cmp dword [0x433258], 0
mov ebx, eax
jne 0x40ce20
push 0x4024c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ced1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024b8
push edi
call esi
test eax, eax
je 0x40ced1
push eax
call fcn.00409964
mov dword [esp], 0x4024a8
push edi
mov dword [0x433258], eax
call esi
push eax
call fcn.00409964
mov dword [esp], 0x402494
push edi
mov dword [0x43325c], eax
call esi
push eax
call fcn.00409964
mov dword [esp], 0x402478
push edi
mov dword [0x433260], eax
call esi
push eax
call fcn.00409964
pop ecx
mov dword [0x433268], eax
test eax, eax
je 0x40ce20
push 0x402460
push edi
call esi
push eax
call fcn.00409964
pop ecx
mov dword [0x433264], eax
mov eax, dword [0x433264]
cmp eax, ebx
je 0x40ce78
cmp dword [0x433268], ebx
je 0x40ce78
push eax
call fcn.004099df
push dword [0x433268]
mov esi, eax
call fcn.004099df
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ce78
test edi, edi
je 0x40ce78
call esi
test eax, eax
je 0x40ce6f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ce6f
test byte [ebp - 0xc], 1
jne 0x40ce78
or dword [ebp + 0x10], 0x200000
jmp 0x40ceb1
mov eax, dword [0x43325c]
cmp eax, ebx
je 0x40ceb1
push eax
call fcn.004099df
pop ecx
test eax, eax
je 0x40ceb1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ceb1
mov eax, dword [0x433260]
cmp eax, ebx
je 0x40ceb1
push eax
call fcn.004099df
pop ecx
test eax, eax
je 0x40ceb1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x433258]
call fcn.004099df
pop ecx
test eax, eax
je 0x40ced1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ced3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403300
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404f30
test esi, esi
jne 0x403336
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405020
jmp 0x403354
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403204
mov edi, eax
test esi, esi
je 0x403354
cmp dword [ebx], 0
je 0x403354
dec esi
jmp 0x40333d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403ebc
Capabilities:
Query or enumerate registry value

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

Function at 0x404db0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a304c], 0
je 0x404e11
cmp word [0x4a3220], 0xd7b2
jne 0x404dd9
cmp dword [0x4a3228], 0
jbe 0x404dd9
mov eax, 0x4a321c
call dword [0x4a3238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404e38
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a002c], 0
jne 0x404e2d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406718
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 0xf0019
push 0
push 0x406948
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40679b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406948
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40679b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406964
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406824
xor eax, eax
push ebp
push 0x40681d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406554
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406802
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406984
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406802
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406824
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
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 0x40693e
cmp byte [ebp - 0xd], 0
jne 0x40686b
cmp byte [ebp - 0x12], 0
je 0x40693e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406884
dec ebx
cmp byte [ebx], 0x2e
je 0x406893
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406883
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40693e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4068d0
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40693e
cmp byte [ebp - 0xd], 0
je 0x40693e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40693e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
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 0x409054
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4090a6
test eax, edx
je 0x4090a9
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409069
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40908f
add ecx, 4
js 0x40907f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40908c
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4090b5
test edx, edx
jne 0x40905c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40995c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004053c0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40997a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x40999b
cmp ebx, 3
je 0x40999b
cmp ebx, 0x7b
je 0x40999b
mov eax, esi
call fcn.0040991c
test al, al
jne 0x40999f
xor eax, eax
jmp 0x4099a1
mov al, 1
pop esi
pop ebx
ret

Function at 0x40c64c
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 0x40c685
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405020
jmp 0x40c68e
mov eax, ebx
mov edx, esi
call fcn.00404f84
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c698
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 0x40c6ba
movzx eax, byte [esp]
jmp 0x40c6bc
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40cd4c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cbc4
mov eax, dword [0x4a20b0]
cmp byte [eax], 0
je 0x40cdc8
mov eax, dword [0x4a1e34]
call fcn.004036d8
call fcn.00403064
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.00409d38
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 0x40ce10
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cdfe
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4a1dcc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4a57f8]
call fcn.004064fc
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