joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f6dfc
Capabilities:
Get file system object information

Disassembly:
push 0x4c8
mov eax, 0x580f42
call fcn.0055661d
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.004043d0
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x597418
call fcn.00407c10
cmp eax, 0xffffffff
jne 0x4f6eb0
push 0
push 0x5a17a8
lea ecx, [ebp - 0x4d0]
call fcn.00407c10
cmp eax, 0xffffffff
jne 0x4f6eb0
push 0
push 0x597394
lea ecx, [ebp - 0x4d0]
call fcn.00407c10
cmp eax, 0xffffffff
jne 0x4f6eb0
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.004043d0
pop ecx
lea edi, [eax + 0x10]
mov dword [ebp - 0x4d4], edi
xor ecx, ecx
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0x218]
push eax
push 0x104
push ecx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4f6e8c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
lea ecx, [edi - 0x10]
mov ebx, eax
call fcn.00404fe0
jmp 0x4f6edf
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.00405150
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 0
call fcn.00404fe0
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4f6ed6
mov ebx, dword [ebp - 0x4cc]
jmp 0x4f6edf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.00404fe0
mov eax, ebx
call fcn.005565cc
ret
Function at 0x5664a8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5f4900]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0055a9d3
mov dword [ebp - 0x14], eax
cmp dword [0x602450], esi
jne 0x56659b
push 0x800
push esi
push 0x5c7340
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x566528
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x56667b
push esi
push esi
push 0x5c7340
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x56667b
push 0x5c7358
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x56667b
push eax
call ebx
push 0x5c7364
push edi
mov dword [0x602450], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5c7374
push edi
mov dword [0x602454], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x602458], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x602460], eax
test eax, eax
je 0x566598
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x60245c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5665c0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5665b3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x5665d5
push 4
pop eax
jmp 0x56667d
cmp dword [ebp - 0x14], esi
je 0x5665d5
push dword [0x602450]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5665ba
mov eax, dword [0x60245c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x566633
cmp dword [0x602460], edi
je 0x566633
push eax
call ebx
push dword [0x602460]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x566633
test eax, eax
je 0x566633
call ecx
test eax, eax
je 0x566628
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x566628
test byte [ebp - 8], 1
jne 0x566633
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x566663
mov eax, dword [0x602454]
cmp eax, edi
je 0x566660
push eax
call ebx
test eax, eax
je 0x566660
call eax
mov esi, eax
test esi, esi
je 0x566660
mov eax, dword [0x602458]
cmp eax, edi
je 0x566660
push eax
call ebx
test eax, eax
je 0x566660
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x602450]
call ebx
test eax, eax
je 0x56667b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x56667d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005502f8
mov esp, ebp
pop ebp
ret
Function at 0x56c570
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585635
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5f4900]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x56c5cf
mov ecx, dword [ebp - 0x10]
and ecx, 1
je 0x56c5cf
mov edx, dword [ebp - 0x10]
and edx, 0xfffffffe
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x1c], 5
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.0056e470
mov byte [ebp - 4], 2
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x18]
call fcn.004146c0
mov byte [ebp - 4], 3
mov eax, dword [str.xmlnsurn:www.corel.com_ipm_dynamicmessages_xmlns:dmurn:www.corel.com_ipm_dynamicmessages_xmlns:wmurn:www.corel.com_ipm_workflowmessages]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004146c0
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x68]
call fcn.0056d8c0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x68]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
mov edx, dword [str.SelectionNamespaces]
push edx
call fcn.004146c0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 6
lea ecx, [ebp + 0xc]
call fcn.0041f590
mov byte [ebp - 4], 5
mov ecx, eax
call fcn.0056ddd0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x68]
call fcn.004097b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00414940
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x78]
call fcn.0056d8c0
mov byte [ebp - 4], 7
lea edx, [ebp - 0x78]
push edx
lea ecx, [ebp + 0xc]
call fcn.0041f590
mov ecx, eax
call fcn.00420050
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x78]
call fcn.004097b0
cmp dword [ebp - 0x30], 0
jl 0x56c6d8
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x50]
call fcn.0056e470
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x48]
call fcn.0056d980
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x50]
call fcn.0056d930
jmp 0x56c707
mov dword [ebp - 0x38], 4
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x58]
call fcn.0056e470
mov byte [ebp - 4], 9
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x48]
call fcn.0056d980
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.0056d930
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0056d850
mov edx, dword [ebp - 0x14]
or edx, 1
mov dword [ebp - 0x14], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00414940
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.0056d930
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0041f250
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x56e180
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5f4900]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [0x602514]
test eax, eax
jne 0x56e279
cmp dword [0x602510], 0
jne 0x56e272
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x5cc408
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.00554507
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x602510], eax
cmp dword [0x602510], 0
je 0x56e272
push str.GetDpiForMonitor
mov ecx, dword [0x602510]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x60250c], eax
push str.GetProcessDpiAwareness
mov edx, dword [0x602510]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x602504], eax
push str.SetProcessDpiAwareness
mov eax, dword [0x602510]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x602508], eax
cmp dword [0x602504], 0
je 0x56e254
cmp dword [0x602508], 0
je 0x56e254
cmp dword [0x60250c], 0
jne 0x56e272
mov dword [0x60250c], 0
mov dword [0x602504], 0
mov dword [0x602508], 0
mov byte [0x602514], 1
mov al, byte [0x602514]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005502f8
mov esp, ebp
pop ebp
ret
Function at 0x570650
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov byte [ebp - 1], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x5ce100
push 0x17
push 0
push 0x5ccd30
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x5706d0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [eax + 0x34]
call edx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x5706c0
mov eax, dword [ebp - 0x10]
and eax, 0x40
jne 0x5706b6
mov ecx, dword [ebp - 0x10]
and ecx, 0x400
jne 0x5706b6
mov byte [ebp - 2], 0
jmp 0x5706ba
mov byte [ebp - 2], 1
mov dl, byte [ebp - 2]
mov byte [ebp - 1], dl
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ecx + 8]
call eax
jmp 0x5706f7
mov dword [ebp - 0x14], 0
push 0
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x5706ed
mov byte [ebp - 3], 1
jmp 0x5706f1
mov byte [ebp - 3], 0
mov dl, byte [ebp - 3]
mov byte [ebp - 1], dl
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x57168a
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x585ed6
call fcn.005565ea
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.005717fa
and dword [ebp - 4], 0
mov dword [ebx], vtable.CHttpConnection.0
call fcn.004290a7
push eax
lea ecx, [ebx + 0x18]
call fcn.004038e0
push dword [ebp + 0xc]
lea ecx, [ebx + 0x18]
mov byte [ebp - 4], 1
call fcn.00405150
push dword [ebx + 8]
push 0
push 3
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [edi + 8]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebx + 4], eax
test eax, eax
jne 0x571700
push eax
push dword [ebx + 8]
call fcn.00571c9f
push dword [ebx + 0xc]
mov ecx, 0x60251c
push eax
call fcn.00572782
mov eax, ebx
call fcn.005565b8
ret 0x18

Function at 0x571718
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x585ed6
call fcn.005565ea
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push dword [ebp + 0x20]
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.005717fa
and dword [ebp - 4], 0
mov dword [ebx], vtable.CHttpConnection.0
call fcn.004290a7
push eax
lea ecx, [ebx + 0x18]
call fcn.004038e0
push dword [ebp + 0xc]
lea ecx, [ebx + 0x18]
mov byte [ebp - 4], 1
call fcn.00405150
push dword [ebx + 8]
push dword [ebp + 0x10]
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [edi + 8]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebx + 4], eax
test eax, eax
jne 0x57178f
push eax
push dword [ebx + 8]
call fcn.00571c9f
push dword [ebx + 0xc]
mov ecx, 0x60251c
push eax
call fcn.00572782
mov eax, ebx
call fcn.005565b8
ret 0x1c

Function at 0x571900
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x571929
call fcn.0043695c
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
je 0x571956
push esi
push eax
mov ecx, 0x60251c
call fcn.00572782
mov eax, esi
pop esi
pop ebp
ret 0x18
push 0
push dword [esi + 4]
call fcn.00571c9f
int3
Function at 0x1ed8f60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19c3000]
push edi
or ebp, 0xffffffff
jmp 0x1ed8f82
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1ed8f89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1ed8f78
mov eax, 1
add ebx, ebx
jne 0x1ed8f9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1ed8fac
jne 0x1ed8fcb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1ed8fcb
dec eax
add ebx, ebx
jne 0x1ed8fb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1ed8f90
add ebx, ebx
jne 0x1ed8fc7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1ed901d
xor ecx, ecx
sub eax, 3
jb 0x1ed8fe3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1ed9052
sar eax, 1
mov ebp, eax
jmp 0x1ed8fee
add ebx, ebx
jne 0x1ed8fee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1ed8fbc
inc ecx
add ebx, ebx
jne 0x1ed8ffc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1ed8fbc
add ebx, ebx
jne 0x1ed9009
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1ed8ffe
jne 0x1ed901a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1ed8ffe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1ed903c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1ed902e
jmp 0x1ed8f7e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1ed903c
add edi, ecx
jmp 0x1ed8f7e
pop esi
mov edi, esi
mov ecx, 0x121b2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1ed905a
cmp byte [edi], 0x82
jne 0x1ed905a
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 0x1ed905f
lea edi, [esi + 0x1abe000]
mov eax, dword [edi]
or eax, eax
je 0x1ed90d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1ad9f9c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1ada108]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1ed908c
mov ecx, edi
jns 0x1ed90bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1ada110]
or eax, eax
je 0x1ed90d1
mov dword [ebx], eax
add ebx, 4
jmp 0x1ed90a9
call dword [esi + 0x1ada10c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1ed9108
cmp al, 0xef
ja 0x1ed90fb
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1ed90dd
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1ed90ea
mov ebp, dword [esi + 0x1ada114]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
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 0x1ed913c
sub esp, 0xffffff80
jmp 0x65f4b3
Function at 0x100020a9
Capabilities:
Terminate process

Disassembly:
jmp 0x100b5ee3
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x100b5ef4
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.10001438
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x10003134
Capabilities:
Query environment variable

Disassembly:
jmp 0x100bc0dc
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100bc0f0
xor edi, edi
jmp 0x100bc127
push ebx
push esi
call fcn.100bbfe4
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10002487
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100bc117
push ebx
push esi
push edi
call fcn.10003224
add esp, 0xc
push 0
call fcn.1000150f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x10077d00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
movsd xmm6, qword [0x100e48c8]
movsd xmm3, qword [ebp + 0x28]
comisd xmm6, xmm3
movsd xmm2, qword [ebp + 0x20]
movsd xmm4, qword [ebp + 0x18]
movsd xmm5, qword [ebp + 0x10]
jae 0x10077d7d
movsd xmm7, qword [0x100e4908]
nop dword [eax]
movaps xmm0, xmm4
subsd xmm3, xmm6
mulsd xmm0, xmm7
movaps xmm1, xmm5
xorps xmm1, xmmword [0x100e4a20]
comisd xmm6, xmm3
subsd xmm1, xmm0
movaps xmm0, xmm2
mulsd xmm0, qword [0x100e4928]
mulsd xmm2, xmm7
subsd xmm1, xmm0
movaps xmm0, xmm4
addsd xmm0, xmm4
addsd xmm4, xmm2
addsd xmm5, xmm0
addsd xmm5, xmm2
movaps xmm2, xmm1
jb 0x10077d30
xorps xmm0, xmm0
jmp 0x10077d82
movsd xmm0, qword [ebp + 8]
mulsd xmm2, xmm3
addsd xmm2, xmm4
mulsd xmm2, xmm3
addsd xmm2, xmm5
mulsd xmm2, xmm3
addsd xmm2, xmm0
movsd qword [ebp + 0x20], xmm2
fld qword [ebp + 0x20]
pop ebp
ret
Function at 0x402b54
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.00404970
test esi, esi
jne 0x402b8a
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.00404a60
jmp 0x402ba8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a08
mov edi, eax
test esi, esi
je 0x402ba8
cmp dword [ebx], 0
je 0x402ba8
dec esi
jmp 0x402b91
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4039b0
Capabilities:
Query or enumerate registry value

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

Function at 0x4047f4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4dc04c], 0
je 0x404855
cmp word [0x4dc220], 0xd7b2
jne 0x40481d
cmp dword [0x4dc228], 0
jbe 0x40481d
mov eax, 0x4dc21c
call dword [0x4dc238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4d5098
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 0x40487c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d5030], 0
jne 0x404871
push 0
push 0x4d5090
push 0x4d5098
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406418
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 0x406648
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40649b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406648
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40649b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406664
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406524
xor eax, eax
push ebp
push 0x40651d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406260
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 0x406502
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406684
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406502
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 0x406524
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 0x40663e
cmp byte [ebp - 0xd], 0
jne 0x40656b
cmp byte [ebp - 0x12], 0
je 0x40663e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406584
dec ebx
cmp byte [ebx], 0x2e
je 0x406593
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406583
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40663e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4065d0
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 0x40663e
cmp byte [ebp - 0xd], 0
je 0x40663e
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 0x40663e
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