joyce8/EMBER2024-capa huggingface dataset:
Function at 0x507344
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x507544
push dword fs:[eax]
mov dword fs:[eax], esp
mov cl, 1
mov dl, 1
mov eax, dword [0x506acc]
call fcn.00418b50
mov ebx, eax
mov byte [ebx + 0xe], 0
xor eax, eax
mov dword [ebx + 0x30], eax
mov eax, ebx
call fcn.00418c84
xor edi, edi
jmp 0x5073d3
push 0x32
call sub.kernel32.dll_Sleep
inc edi
push 0x50755c
mov eax, edi
mov ecx, 0x14
cdq
idiv ecx
lea edx, [ebp - 8]
call fcn.00409478
push dword [ebp - 8]
push 0x50757c
lea eax, [ebp - 4]
mov edx, 3
call fcn.0040408c
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x344]
call fcn.004327c8
mov eax, dword [0x55cde4]
mov eax, dword [eax]
call fcn.00450a3c
cmp dword [ebx + 0x30], 0
je 0x507385
cmp dword [ebx + 0x30], 0xfffffffe
jne 0x507468
push 0
lea eax, [ebp - 0xc]
mov ecx, dword [ebx + 0x34]
mov edx, 0x507588
call fcn.00404018
mov eax, dword [ebp - 0xc]
mov cx, word [0x5075bc]
mov dl, 1
call fcn.00456d48
push 1
push 0
push 0
mov eax, dword [ebx + 0x34]
call fcn.00404190
push eax
push 0
mov eax, esi
call fcn.0043899c
push eax
call sub.shell32.dll_ShellExecuteA
mov edx, 0x5075c8
mov eax, dword [esi + 0x344]
call fcn.004327c8
xor edx, edx
mov eax, dword [esi + 0x2d8]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov dl, 1
mov eax, dword [esi + 0x2dc]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov dl, 1
mov eax, dword [esi + 0x2e8]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov dl, 1
mov eax, dword [esi + 0x2ec]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
cmp dword [ebx + 0x30], 0xffffffff
jne 0x5074c0
lea eax, [ebp - 0x10]
mov ecx, dword [ebx + 0x34]
mov edx, 0x5075e0
call fcn.00404018
mov edx, dword [ebp - 0x10]
mov eax, dword [esi + 0x344]
call fcn.004327c8
mov dl, 1
mov eax, dword [esi + 0x2d8]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov dl, 1
mov eax, dword [esi + 0x2dc]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov dl, 1
mov eax, dword [esi + 0x2e8]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov dl, 1
mov eax, dword [esi + 0x2ec]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
cmp dword [ebx + 0x30], 1
jne 0x507522
mov ecx, dword [0x55cd8c]
mov ecx, dword [ecx]
lea eax, [ebp - 0x14]
mov edx, 0x5075f4
call fcn.00404018
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 0x344]
call fcn.004327c8
call fcn.004f6f64
xor edx, edx
mov eax, dword [esi + 0x2d8]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
xor edx, edx
mov eax, dword [esi + 0x2dc]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov dl, 1
mov eax, dword [esi + 0x2e0]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
xor edx, edx
mov eax, dword [esi + 0x33c]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov eax, ebx
call fcn.00402ff0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50754b
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00403d60
ret
Function at 0x507610
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x507810
push dword fs:[eax]
mov dword fs:[eax], esp
mov cl, 1
mov dl, 1
mov eax, dword [0x506b40]
call fcn.00418b50
mov ebx, eax
mov byte [ebx + 0xe], 0
xor eax, eax
mov dword [ebx + 0x30], eax
mov eax, ebx
call fcn.00418c84
xor edi, edi
jmp 0x50769f
push 0x32
call sub.kernel32.dll_Sleep
inc edi
push 0x507828
mov eax, edi
mov ecx, 0x14
cdq
idiv ecx
lea edx, [ebp - 8]
call fcn.00409478
push dword [ebp - 8]
push 0x507848
lea eax, [ebp - 4]
mov edx, 3
call fcn.0040408c
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x344]
call fcn.004327c8
mov eax, dword [0x55cde4]
mov eax, dword [eax]
call fcn.00450a3c
cmp dword [ebx + 0x30], 0
je 0x507651
cmp dword [ebx + 0x30], 0xfffffffe
jne 0x507734
push 0
lea eax, [ebp - 0xc]
mov ecx, dword [ebx + 0x34]
mov edx, 0x507854
call fcn.00404018
mov eax, dword [ebp - 0xc]
mov cx, word [0x507888]
mov dl, 1
call fcn.00456d48
push 1
push 0
push 0
mov eax, dword [ebx + 0x34]
call fcn.00404190
push eax
push 0
mov eax, esi
call fcn.0043899c
push eax
call sub.shell32.dll_ShellExecuteA
mov edx, 0x507894
mov eax, dword [esi + 0x344]
call fcn.004327c8
xor edx, edx
mov eax, dword [esi + 0x2d8]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov dl, 1
mov eax, dword [esi + 0x2dc]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov dl, 1
mov eax, dword [esi + 0x2e8]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov dl, 1
mov eax, dword [esi + 0x2ec]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
cmp dword [ebx + 0x30], 0xffffffff
jne 0x50778c
lea eax, [ebp - 0x10]
mov ecx, dword [ebx + 0x34]
mov edx, 0x5078ac
call fcn.00404018
mov edx, dword [ebp - 0x10]
mov eax, dword [esi + 0x344]
call fcn.004327c8
mov dl, 1
mov eax, dword [esi + 0x2d8]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov dl, 1
mov eax, dword [esi + 0x2dc]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov dl, 1
mov eax, dword [esi + 0x2e8]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov dl, 1
mov eax, dword [esi + 0x2ec]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
cmp dword [ebx + 0x30], 1
jne 0x5077ee
mov ecx, dword [0x55c9c4]
mov ecx, dword [ecx]
lea eax, [ebp - 0x14]
mov edx, 0x5078c0
call fcn.00404018
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 0x344]
call fcn.004327c8
call fcn.004f6f64
xor edx, edx
mov eax, dword [esi + 0x2d8]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
xor edx, edx
mov eax, dword [esi + 0x2dc]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov dl, 1
mov eax, dword [esi + 0x2e0]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
xor edx, edx
mov eax, dword [esi + 0x33c]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov eax, ebx
call fcn.00402ff0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x507817
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00403d60
ret
Function at 0x51fe58
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
test dl, dl
je 0x51fe6f
add esp, 0xfffffff0
call fcn.00403330
mov ebx, ecx
mov byte [ebp - 1], dl
mov esi, eax
xor eax, eax
push ebp
push 0x51ff20
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.004f6ac0
mov edx, dword [ebp - 8]
mov eax, 0x55fb4c
mov ecx, 0x51ff50
call fcn.00404018
lea eax, [ebp - 0xc]
call fcn.004f6ac0
mov edx, dword [ebp - 0xc]
mov eax, 0x55fb50
mov ecx, 0x51ff68
call fcn.00404018
xor eax, eax
mov dword [esi + 0x30], eax
xor eax, eax
mov dword [esi + 0xb88], eax
xor eax, eax
xor edx, edx
mov dword [esi + eax*4 + 0x868], edx
inc eax
cmp eax, 0x64
jne 0x51fec7
mov dl, 1
mov eax, dword [0x4106d8]
call fcn.00402fc0
mov dword [esi + 0xb9c], eax
mov dl, 1
mov eax, dword [0x4106d8]
call fcn.00402fc0
mov dword [esi + 0xba0], eax
mov ecx, ebx
xor edx, edx
mov eax, esi
call fcn.00418b50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51ff27
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403d60
ret
Function at 0x537d7c
Capabilities:
Delete directory

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, edx
mov ebx, eax
mov edi, dword [ebx + 4]
dec edi
test edi, edi
jl 0x537e61
inc edi
xor esi, esi
mov eax, dword [ebx + esi*4 + 8]
mov edx, ebp
call fcn.004040dc
jne 0x537e59
mov edi, dword [ebx + 4]
sub edi, 2
sub edi, esi
jl 0x537e47
inc edi
lea eax, [ebx + esi*4 + 8]
mov edx, dword [ebx + esi*4 + 0xc]
call fcn.00403d90
lea eax, [ebx + esi*4 + 0xfa08]
mov edx, dword [ebx + esi*4 + 0xfa0c]
call fcn.00403d90
lea eax, [ebx + esi*4 + 0x1f408]
mov edx, dword [ebx + esi*4 + 0x1f40c]
call fcn.00403d90
lea eax, [ebx + esi*4 + 0x2ee08]
mov edx, dword [ebx + esi*4 + 0x2ee0c]
call fcn.00403d90
mov eax, dword [ebx + esi*4 + 0x3e80c]
mov dword [ebx + esi*4 + 0x3e808], eax
mov eax, dword [ebx + esi*4 + 0x5208c]
mov dword [ebx + esi*4 + 0x52088], eax
mov al, byte [ebx + esi + 0x61a89]
mov byte [ebx + esi + 0x61a88], al
mov al, byte [ebx + esi + 0x65909]
mov byte [ebx + esi + 0x65908], al
mov al, byte [ebx + esi + 0x69789]
mov byte [ebx + esi + 0x69788], al
inc esi
dec edi
jne 0x537db3
dec dword [ebx + 4]
mov eax, ebp
call fcn.00404190
push eax
call sub.kernel32.dll_RemoveDirectoryA
jmp 0x537e61
inc esi
dec edi
jne 0x537d93
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5448a4
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov eax, 0x544464
call fcn.00407240
mov ebx, dword [0x55cde4]
xor eax, eax
push ebp
push 0x544ab2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x544ac0
push 0
push 0
call sub.kernel32.dll_CreateMutexA
mov esi, eax
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xb7
jne 0x5449a0
call fcn.00402978
dec eax
jl 0x544988
lea edx, [ebp - 0x10]
mov eax, 1
call fcn.004029d8
mov eax, dword [ebp - 0x10]
call fcn.00404190
mov edx, eax
mov eax, 0x6024e4
mov ecx, 0x1000
call fcn.00409b98
lea edx, [ebp - 0x14]
mov eax, 1
call fcn.004029d8
mov eax, dword [ebp - 0x14]
call fcn.00403fcc
inc eax
mov dword [0x6024dc], eax
mov eax, 0x6024e4
mov dword [0x6024e0], eax
push 0x544ac4
push 0x544acc
call sub.user32.dll_FindWindowA
test eax, eax
je 0x544970
push 0x6024d8
push 0
push 0x4a
push eax
call sub.user32.dll_SendMessageA
jmp 0x544a97
push 0
push 0x544ad8
push 0x544ae0
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x544a97
push 0
push 0x544ad8
push 0x544af0
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x544a97
call fcn.004f6a10
test al, al
jne 0x5449b4
push esi
call sub.kernel32.dll_CloseHandle_1
jmp 0x544a97
call fcn.004f2da4
call fcn.004e9e78
mov eax, dword [ebx]
call fcn.00450b50
mov eax, dword [ebx]
mov edx, 0x544b08
call fcn.00450754
mov ecx, dword [0x55cb34]
mov eax, dword [ebx]
mov edx, dword [0x518368]
call fcn.00450b68
mov ecx, dword [0x55c9ec]
mov eax, dword [ebx]
mov edx, dword [0x5066a8]
call fcn.00450b68
mov ecx, dword [0x55cef4]
mov eax, dword [ebx]
mov edx, dword [0x5080f4]
call fcn.00450b68
mov ecx, dword [0x55caf8]
mov eax, dword [ebx]
mov edx, dword [0x50b1e4]
call fcn.00450b68
mov ecx, dword [0x55d01c]
mov eax, dword [ebx]
mov edx, dword [0x503964]
call fcn.00450b68
mov ecx, dword [0x55cc74]
mov eax, dword [ebx]
mov edx, dword [0x50ccf8]
call fcn.00450b68
mov ecx, dword [0x55d074]
mov eax, dword [ebx]
mov edx, dword [0x51509c]
call fcn.00450b68
mov ecx, dword [0x55caf4]
mov eax, dword [ebx]
mov edx, dword [0x515318]
call fcn.00450b68
call fcn.00509ea0
cmp al, 1
jne 0x544a80
mov eax, dword [ebx]
call fcn.00450be8
call fcn.0050ad38
jmp 0x544a87
mov eax, dword [ebx]
call fcn.00450be8
call fcn.004ea09c
call fcn.004f2dbc
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x544ab9
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403d60
ret
Function at 0x407847
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x4291b0]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], eax
push ecx
mov esi, 0x104
mov dword [eax], edi
mov edx, esi
mov dword [eax + 4], edi
lea ecx, [esp + 0x1c]
call fcn.0040675d
push 0x401b00
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.00406792
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x4078cd
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x4078f7
mov ecx, dword [ebp + 4]
mov edx, 0xc9
push 0x401ac4
call fcn.0040752b
mov edi, eax
jmp 0x4078f7
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.00407724
mov ebx, eax
test ebx, ebx
jns 0x4078fd
mov ecx, dword [ebp + 4]
mov edx, 0xcf
push ebx
push 0x401ac4
call fcn.0040750c
mov edi, ebx
test esi, esi
je 0x407911
jmp 0x40790b
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
push esi
call fcn.004075a9
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00426d60
mov esp, ebp
pop ebp
ret 8
Function at 0x408ea4
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x10]
test esi, esi
je 0x409068
mov ax, word [edi + 2]
xor ecx, ecx
mov word [ebp - 0x20], ax
add esi, 0xa
mov al, byte [edi + 4]
mov bh, cl
mov byte [ebp - 0x1e], al
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov word [ebp - 0x18], ax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov byte [ebp - 1], bh
jmp 0x408f11
push dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push dword [ebp + 8]
call fcn.00408687
test eax, eax
js 0x408fee
lea eax, [ebp - 0x20]
mov ecx, edi
je 0x408fc5
push dword [ebp - 8]
push eax
call fcn.00408e11
mov esi, eax
push dword [edi + 0x14]
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea ecx, [ebp - 0x20]
call fcn.004087ea
mov bl, al
test bl, bl
jne 0x408ee5
mov esi, dword [ebp - 8]
mov dword [edi + 0x14], esi
xor edx, edx
test bh, bh
jne 0x408f56
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
and dword [ebp - 0x14], edx
mov word [ebp - 0x18], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], eax
call fcn.004086fa
mov edx, eax
mov ax, word [edi + 6]
lea ecx, [ebp - 0x34]
and dword [ebp - 0x28], 0
mov word [ebp - 0x34], ax
mov al, byte [edi + 8]
mov byte [ebp - 0x32], al
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov word [ebp - 0x2c], ax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
call fcn.004086fa
mov ebx, dword [edi + 0x18]
add eax, edx
mov dword [ebp - 0xc], eax
mov edx, ebx
mov eax, dword [edi + 0x14]
sub edx, eax
cmp eax, ebx
sbb ecx, ecx
and ecx, edx
mov edx, dword [ebp - 0xc]
cmp ecx, edx
jb 0x409068
sub ebx, edx
lea ecx, [edx + esi]
sub ebx, esi
sub eax, esi
je 0x40901f
test ecx, ecx
jne 0x408ffe
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
mov dword [eax], 0x16
call sub.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo
jmp 0x40901f
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 8]
push eax
call fcn.00408cdb
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x408fe7
mov al, 1
jmp 0x40906a
mov bh, 1
mov byte [ebp - 1], bh
jmp 0x408ff1
mov dword [ebp - 8], esi
test bl, bl
jne 0x408f2f
jmp 0x408f2c
test esi, esi
je 0x408fb2
cmp ebx, eax
jae 0x409014
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
mov dword [eax], 0x22
jmp 0x408fbe
push eax
push esi
push ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
add esp, 0xc
mov eax, dword [edi + 0x14]
add eax, dword [ebp - 0xc]
cmp byte [ebp - 1], 0
mov dword [edi + 0x14], eax
jne 0x40903d
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00408724
jmp 0x409050
cmp byte [ebp - 0x1e], 0
je 0x409050
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
inc eax
push eax
call fcn.004086b4
push dword [edi + 0x14]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00408724
mov byte [edi + 0x20], 1
jmp 0x408fe0
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40ae3d
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040b0d1

Function at 0x40bdee
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
xor esi, esi
push eax
push esi
push 0x10
push 0x401d80
push 0x401f18
push 0x80000001
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x40be28
cmp dword [ebp - 8], esi
je 0x40be4d
push esi
push esi
push esi
push 0x40b8b0
push esi
push esi
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__beginthreadex]
add esp, 0x18
test eax, eax
jne 0x40be46
mov eax, 0x80004005
jmp 0x40be4f
push eax
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
xor eax, eax
pop esi
leave
ret

Function at 0x40cae8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
mov dword [0x429ddc], 0x422010
push eax
push 0xd
push 0x400
mov dword [0x429de4], 0xc
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
cmp word [ebp - 4], 0x31
jne 0x40cb3c
mov eax, 0x3e8
mov dword [0x429da8], 0xa006
mov dword [0x429dc8], eax
mov dword [0x429dd0], eax
mov eax, 0x2ee
jmp 0x40cb5a
mov eax, 0x9c4
mov dword [0x429da8], 0xa00a
mov dword [0x429dc8], eax
mov dword [0x429dd0], eax
mov eax, 0x7d0
mov dword [0x429dcc], eax
mov dword [0x429dc4], eax
leave
ret

Function at 0x40cd08
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x4291b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [0x429e1c]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ecx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40cd83
push 0
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jle 0x40cd7c
mov edx, dword [ebp - 0x408]
test edx, edx
je 0x40cd7c
lea ecx, [ebp - 0x404]
call fcn.0040cc79
mov edi, eax
push esi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00426d60
leave
ret
Function at 0x40f555
Capabilities:
Open clipboard

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push ebx
push esi
push edi
push dword [0x42a92c]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetMenu]
mov edi, eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0xb0
push dword [0x42adac]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 4]
xor ebx, ebx
cmp eax, dword [ebp - 0xc]
sete bl
push ebx
push 0x300
push 1
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push ebx
push 0x301
push 1
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push ebx
push 0x303
push 1
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push ebx
push 0x1c
xor ebx, ebx
inc ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40f60e
push ebx
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
xor ecx, ecx
cmp dword [ebp - 8], ecx
sete cl
push ecx
push 0x302
push ebx
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 0
push 0
push 0xe
push dword [0x42adac]
call dword [sym.imp.USER32.dll_SendMessageW]
neg eax
sbb esi, esi
not esi
and esi, ebx
push esi
push 0x15
push ebx
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push esi
push 0x16
push ebx
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push esi
push 0x1d
push ebx
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
xor ebx, ebx
cmp dword [0x42ab94], ebx
push 1
push edi
setne bl
call dword [sym.imp.USER32.dll_GetSubMenu]
push ebx
push 0x18
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 0
push 0
push 0xc6
push dword [0x42adac]
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
test eax, eax
sete cl
push ecx
push 0x10
push 1
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov esi, dword [0x42ab94]
neg esi
push 2
sbb esi, esi
push edi
and esi, 8
call dword [sym.imp.USER32.dll_GetSubMenu]
push esi
push 0x20
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
push 3
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ecx, dword [0x42aba0]
neg ecx
sbb ecx, ecx
and ecx, 8
push ecx
push 0x1b
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4104d5
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], 1
mov ebx, 0x400
mov ecx, ebx
call fcn.0041048e
test eax, eax
je 0x410548
push 2
lea eax, [ebp - 4]
push eax
push 0x20001009
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
mov eax, dword [ebp - 4]
cmp eax, 1
jne 0x410526
call dword [sym.imp.api_ms_win_core_localization_obsolete_l1_2_0.dll_GetUserDefaultUILanguage]
movzx ecx, ax
call fcn.0041048e
mov ecx, dword [esi]
test eax, eax
je 0x41053c
jmp 0x410543
cmp eax, 6
je 0x410541
cmp eax, 0x17
je 0x410541
cmp eax, 0xa
je 0x410541
cmp eax, 8
je 0x410541
mov ecx, dword [esi]
or ecx, 0x10
jmp 0x410546
mov ecx, dword [esi]
or ecx, 0x20
mov dword [esi], ecx
pop esi
pop ebx
leave
ret

Function at 0x410686
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x4106b2
sub esi, edx
mov ax, word [edx]
movzx ecx, byte [edx + 1]
shl ax, 8
xor cx, ax
mov word [esi + edx], cx
lea edx, [edx + 2]
sub edi, 1
jne 0x410698
pop edi
pop esi
pop ebp
ret 4

Function at 0x4106be
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0x10], 0
mov eax, edx
mov ecx, dword [0x429d8c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jne 0x4106e2
xor eax, eax
inc eax
jmp 0x41076b
push esi
lea esi, [eax - 0xfde9]
neg esi
lea ecx, [ebp - 0x10]
sbb esi, esi
and esi, ecx
xor ecx, ecx
push esi
push ecx
push ecx
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
mov dword [ebp - 4], eax
test eax, eax
je 0x41076a
push edi
inc eax
push eax
push 0x40
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x41072c
push 8
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x410769
push esi
push 0
push dword [ebp - 4]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
mov esi, eax
test esi, esi
je 0x410760
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push edi
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
mov esi, eax
push edi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
mov eax, esi
pop edi
pop esi
leave
ret 0xc