joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001d4cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x1001d4f3
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x1001d4f6
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1001d4a8
pop esi
leave
ret 8

Function at 0x100201c0
Capabilities:
Get process heap force flags

Disassembly:
call fcn.100200f0
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov edx, dword [ecx + 0xa4]
shl edx, 0x10
or edx, dword [ecx + 0xa8]
cmp edx, 0x50001
jae 0x100201ea
add eax, 0x74
ret
cmp edx, 0x60000
jae 0x100201f6
add eax, 0x78
ret
add eax, 0x88
ret

Function at 0x10020200
Capabilities:
Get process heap force flags

Disassembly:
call fcn.100200f0
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov edx, dword [ecx + 0xa4]
shl edx, 0x10
or edx, dword [ecx + 0xa8]
cmp edx, 0x60000
jae 0x1002022a
add eax, 0x7c
ret
add eax, 0x8c
ret

Function at 0x10020660
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x1003e500]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x10020687
mov ecx, 5
int 0x29
push 2
call fcn.1001fc4c
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x10020792
test esi, esi
jne 0x10020792
push 2
call fcn.1001fc4c
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1001f14e
mov esp, ebp
pop ebp
ret
Function at 0x10023750
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x1003e500]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1002384b
push 0x2d
push esi
call sub.msvcrt.dll_strchr
add esp, 8
test eax, eax
je 0x1002384b
xor ecx, ecx
mov al, byte [ecx + esi]
lea edx, [ecx + ecx]
test al, al
je 0x100237aa
cbw
inc ecx
mov word [ebp + edx - 0x204], ax
cmp ecx, 0x100
jne 0x10023788
jmp 0x1002384b
cmp edx, 0x200
jae 0x100238b1
xor eax, eax
mov word [ebp + edx - 0x204], ax
lea eax, [ebp - 0x204]
push 0x2d
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x1002384b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x504]
push 0xff
push eax
push 0x1001
lea eax, [ebp - 0x204]
push eax
call edi
test eax, eax
je 0x1002384a
lea edx, [ebp - 0x504]
mov ecx, 0x5f
lea edx, [edx + eax*2]
mov word [edx - 2], cx
mov ecx, 0x100
sub ecx, eax
lea eax, [ebp - 0x204]
push ecx
push edx
push 0x1002
push eax
call edi
test eax, eax
je 0x1002384a
lea edi, [ebp - 0x504]
xor eax, eax
nop
movzx ecx, word [edi + eax*2]
lea edx, [ebp - 0x304]
test cx, cx
je 0x10023893
mov byte [edx + eax], cl
inc eax
cmp eax, 0x100
jne 0x10023830
pop edi
mov eax, dword [0x1003fc68]
test eax, eax
jne 0x10023871
push str.setlocale
call fcn.100257a0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1002386c
or eax, 0xffffffff
mov dword [0x1003fc68], eax
lea ecx, [eax + 1]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x1002389f
push esi
push ebx
call ecx
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001f14e
mov esp, ebp
pop ebp
ret
mov byte [edx + eax], 0
lea esi, [ebp - 0x304]
jmp 0x1002384a
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1001f14e
mov esp, ebp
pop ebp
ret
call fcn.1001fd76
int3
Function at 0x100241e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.10024210
mov esi, dword [ebp + 8]
test al, al
je 0x100241fe
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.10024220
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10028810
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002883d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002883d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x428cf2
Capabilities:
Check mutex on windows

Disassembly:
push 0xa8
mov eax, 0x458f50
call fcn.00441eb1
push str.Global_MSIExecute
xor esi, esi
push esi
push 0x100000
call dword [sym.imp.kernel32.dll_OpenMutexA]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 1
mov dword [ebp - 4], esi
cmp eax, esi
je 0x428dc4
push dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 8], esi
je 0x428da4
cmp dword [0x47d500], 1
jg 0x428da4
lea eax, [ebp - 0xb4]
push eax
call fcn.00409545
lea eax, [ebp - 0xb4]
push str.finish_waiting_for_mutex:
push eax
mov byte [ebp - 4], 1
call fcn.0040b58e
pop ecx
pop ecx
push dword [ebp - 0x14]
lea eax, [ebp - 0xb4]
push eax
call fcn.0040df0e
lea eax, [ebp - 0xb4]
push eax
push 0x1c8
push 1
mov ebx, str.msi::waitForInstallationCompletion
mov edi, str.c:_ade_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u241_331_install_src_windows_common_MsiUtils.cpp
mov esi, 0x47d500
call fcn.004078b6
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 0
call fcn.0040789c
cmp dword [ebp - 0x14], 0x102
jne 0x428dc4
xor bl, bl
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x1c]
call fcn.0043a470
pop ecx
mov al, bl
call fcn.00441f89
ret
mov bl, 1
jmp 0x428daf

Function at 0x434134
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x240
lea ebp, [esp - 4]
mov eax, dword [0x479630]
xor eax, ebp
mov dword [ebp + 0x240], eax
push 0x14
mov eax, 0x4566fc
call fcn.00441eb1
xor esi, esi
lea eax, [ebp + 0x38]
push eax
push esi
push esi
push 0x2c
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.shell32.dll_SHGetFolderPathW]
cmp eax, esi
je 0x43418a
push 0xc8
lea esi, [ebp - 0x20]
call fcn.0043a470
push 0x46d720
mov eax, esi
push eax
call fcn.0043a470
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp]
call fcn.00414d60
push 0x4695b4
push eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 4], esi
call fcn.0043a470
push ebx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00432e7f
add esp, 0xc
push 1
xor edi, edi
lea esi, [ebp + 0x1c]
call fcn.00414e32
push 1
lea esi, [ebp]
call fcn.00414e32
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x240]
xor ecx, ebp
call fcn.0043a455
add ebp, 0x244
leave
ret

Function at 0x43a455
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x479630]
jne 0x43a45f
repz ret
jmp fcn.004446c5
Function at 0x43a470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x43a47f
pop dword [ebp - 0x18]
mov eax, 0xb2dd7daa
add eax, 0x4d6626d5
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x4a22a
push 0
mov eax, 0xb40d04ff
sub eax, 0xb3c7345b
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x385e57e6
sub ecx, 0x385e01a4
xor edx, edx
add edx, eax
mov esi, 0x358ddfd0
add esi, 0xcabc2630
add esi, dword [ebp - 0x18]
mov ebx, 0x6c0c67de
add ebx, 0x44b13380
add dword [ebp - 8], 0xd0362981
mov edi, dword [esi]
add dword [ebp - 0x14], 0x6e649b96
xor edi, ebx
add dword [ebp - 4], edx
mov dword [edx], edi
xor dword [ebp - 0x10], edx
add edx, 0x232973b
sub edx, 0x2329737
add esi, 0x9fc584cb
add esi, 0x603a7b39
loop 0x43a4e0
add eax, 0x21a08bf
sub eax, 0x218bce4
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x4031a1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x4031b0
pop dword [ebp - 0x4c]
mov eax, 0x880195b2
add eax, 0x783e9bfe
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xcde4bee8
sub dword [ebp - 0x5c], 0x7f92799d
mov dword [ebp - 0x58], 0x87740785
sub dword [ebp - 0x58], 0x5540bb40
mov dword [ebp - 0x54], 0xdedce878
sub dword [ebp - 0x54], 0x9290a44a
mov dword [ebp - 0x50], 0xcd39ed3
add dword [ebp - 0x50], 0xf32c612d
lea eax, [ebp - 0x5c]
push eax
mov eax, 0xb0275abc
sub eax, 0xafe71a50
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x6a4dbc44
sub dword [ebp - 0x5c], 0xf5db52ee
mov dword [ebp - 0x58], 0x113b3438
sub dword [ebp - 0x58], 0xcfced2c3
mov dword [ebp - 0x54], 0x57c597a7
add dword [ebp - 0x54], 0xba9d4c5
mov dword [ebp - 0x50], 0x8c79aff6
sub dword [ebp - 0x50], 0x8c79aff6
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x7ba0d10a
sub eax, 0x7b609086
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x34e70
push 0
call eax
mov ecx, 0x411d
xor edi, edi
add edi, eax
mov ebx, 0x7b323b32
sub ebx, 0x7af13332
add ebx, dword [ebp - 0x4c]
mov esi, 0xd5d9add7
sub dword [ebp - 0x30], esi
mov edx, dword [ebx]
add dword [ebp - 0x3c], ebx
sub edx, esi
sub dword [ebp - 0x3c], 0x4b3761a0
mov dword [edi], edx
xor dword [ebp - 0x30], 0xbe2df3f1
add edi, 4
add ebx, 0xe7100edb
add ebx, 0x18eff129
loop 0x4032c8
add eax, 0xf747
mov ebx, eax
add eax, 5
mov ecx, 0x4dd7eb3
add ecx, 0xfb62814d
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x4184e8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x418515
call fcn.0040609e
mov dword [eax], esi
call fcn.0040608b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040b9a4
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x418533
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004060b1
pop ecx
jmp 0x418510
test byte [esp + 0xc], 0x80
je 0x41853f
and eax, 0xfffffffe
jmp 0x418542
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x418524
xor eax, eax
pop esi
ret

Function at 0x16a4120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.GVD1
lea edi, [esi - 0x1270000]
push edi
or ebp, 0xffffffff
jmp 0x16a4142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a4149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x16a4138
mov eax, 1
add ebx, ebx
jne 0x16a415d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a416e
jne 0x16a417e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a417e
dec eax
add ebx, ebx
jne 0x16a417a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a4152
xor ecx, ecx
sub eax, 3
jb 0x16a4196
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a420a
sar eax, 1
mov ebp, eax
jmp 0x16a41a1
add ebx, ebx
jne 0x16a41a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x16a41ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x16a41d2
inc ecx
add ebx, ebx
jne 0x16a41be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a41b3
jne 0x16a41cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a41b3
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x16a41f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a41e6
jmp 0x16a413e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a41f4
add edi, ecx
jmp 0x16a413e
pop esi
mov edi, esi
mov ecx, 0x346a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a4212
cmp byte [edi], 0x16
jne 0x16a4212
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 eax, ebx
loop 0x16a4217
lea edi, [esi + 0x12a1000]
mov eax, dword [edi]
or eax, eax
je 0x16a4286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a57f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a58e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a4244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a58ec]
or eax, eax
je 0x16a4280
mov dword [ebx], eax
add ebx, 4
jmp 0x16a4261
call dword [esi + 0x12a58f0]
popal
jmp 0x46b748
Function at 0x1001d471
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10048aac], 0
push esi
push edi
jne 0x1001d3e7
call fcn.1001d353
test eax, eax
je 0x1001d42c
mov eax, dword [0x10048aac]
cmp eax, 1
jne 0x1001d408
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x1001d42c
jmp 0x1001d46e
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x1001d46e
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1001d430
xor eax, eax
jmp 0x1001d46e
mov eax, dword [esi]
push dword [0x10048aac]
call edi
mov edi, eax
test edi, edi
je 0x1001d452
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x1001d46e
lea edi, [esi + 0xff0]
push esi
push dword [0x10048aac]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1001d458
mov eax, esi
pop edi
pop esi
ret
jmp 0x1001d3d3

Function at 0x1001d742
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10047578]
jne 0x1001d74c
repz ret
jmp fcn.10023329

Function at 0x1001fa50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x1001fa5f
pop dword [ebp - 8]
mov eax, 0x11240f50
add eax, 0xfeddeb0f
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x40cf2
push 0
mov eax, 0x8d7f0d11
sub eax, 0x7d7b8a41
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x61a3bc3e
add ecx, 0x9e5c8cd0
xor ebx, ebx
add ebx, eax
mov esi, 0xe4bbdab5
add esi, 0x2b4b9f4b
add esi, dword [ebp - 8]
mov edx, 0xeefe8262
sub dword [ebp - 4], ebx
mov edi, dword [esi]
sub dword [ebp - 4], 0xa22784a9
xor edi, edx
add dword [ebp - 4], ecx
mov dword [ebx], edi
add dword [ebp - 4], 0x5ae0bc1c
add ebx, 0x5ae21eed
add ebx, 0xa51de117
add esi, 0x7b0831ae
add esi, 0x84f7ce56
loop 0x1001faba
add eax, 0x1170b
mov ebx, eax
add eax, 0x4fd77407
sub eax, 0x4fd77402
mov ecx, 0xa66d76bb
add ecx, 0x69928945
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0
Function at 0x401d70
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp byte [ecx], 0x26
push esi
push edi
mov edi, edx
jne 0x401df7
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ecx + 1]
push str._p:_u
push eax
call fcn.00401090
add esp, 0x10
cmp eax, 2
jne 0x401df7
push dword [ebp - 4]
push 0
push 0
push 4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x401df7
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
mov edx, eax
mov ecx, edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], eax
call fcn.0048e340
test al, al
je 0x401dff
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push str.Serialised_configuration_data_was_invalid
call fcn.00409890
int3

Function at 0x403790
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4fc040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x14
lea eax, [ebp - 0x18]
push eax
push 0x1004
movzx eax, cx
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [ebp - 0x18]
push eax
call fcn.0049e9f6
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov dword [0x4fda38], eax
call fcn.00495b16
mov esp, ebp
pop ebp
ret
Function at 0x408bd0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 4], edx
lea eax, [ebx + 1]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x408c4b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x408c4a
push ebx
push dword [ebp - 4]
push edi
call fcn.00497c70
add esp, 0xc
mov byte [edi + ebx], 0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x4fcbe0]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x408c43
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409f90
Capabilities:
Hide graphical window

Disassembly:
push ecx
call fcn.00409d20
test al, al
je 0x409faa
push 9
push dword [0x4fcbe0]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ecx
ret
push dword [0x4fcbe0]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x409fc1
call fcn.00409dd0
pop ecx
ret
push 0
push 0
push 0x8003
push dword [0x4fcbe0]
call dword [sym.imp.USER32.dll_SendMessageA]
push 3
push dword [0x4fcbe0]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ecx
ret
Function at 0x40a800
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x4fc040]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
xor edi, edi
mov byte [esp + 0xf], 0
or ebx, 0xffffffff
cmp byte [0x4feb9a], 0
jne 0x40a976
lea eax, [esp + 0x20]
mov byte [0x4feb9a], 1
push eax
push 0x106
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40a976
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push edi
push eax
mov dword [esp + 0x28], eax
xorps xmm0, xmm0
lea eax, [esp + 0x2c]
movlpd qword [esp + 0x1c], xmm0
push eax
push str._sputty__lu__llu.chm
call fcn.00490340
add esp, 0x14
mov edi, eax
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40a90e
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], eax
nop dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x40a976
mov ecx, edi
call fcn.00490070
mov eax, dword [esp + 0x10]
add eax, 1
mov dword [esp + 0x10], eax
adc esi, 0
push esi
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x2c]
push eax
push str._sputty__lu__llu.chm
call fcn.00490340
add esp, 0x14
mov edi, eax
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40a8b0
mov eax, dword [0x4fec44]
xor esi, esi
mov ecx, dword [0x4fec38]
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x40a962
nop dword [eax]
nop word [eax + eax]
push 0
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0
push edx
sub eax, esi
push eax
lea eax, [esi + ecx]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a9a2
add esi, dword [esp + 0x10]
mov eax, dword [0x4fec44]
mov ecx, dword [esp + 0x1c]
cmp esi, eax
jb 0x40a930
mov dword [0x4fec40], edi
xor edi, edi
mov byte [0x4fec3d], 1
mov byte [esp + 0xf], 1
mov ecx, edi
call fcn.00490070
cmp ebx, 0xffffffff
je 0x40a989
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x12c]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40a976
Function at 0x418d80
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [ecx]
push 0x418c10
call fcn.0048ecb0
add esp, 4
ret

Function at 0x418d90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ecx + 4]
mov dword [ebp - 4], edx
lea edx, [ebp - 4]
push 0x418c30
call fcn.0048ecb0
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x41d050
Capabilities:
Hide graphical window

Disassembly:
push esi
push 0
push 0x41ca10
push 0
push 0x6f
push dword [0x500398]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov esi, eax
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
pop esi
ret