joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41960c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x48]
test eax, eax
jl 0x419640
cmp dword [ebp - 4], esi
jne 0x419681
call ebx
sub eax, dword [ebp - 0xc]
cmp eax, 0x7d0
ja 0x419681
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x41962a
push esi
push esi
push esi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x41962a
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x48]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x4196ec
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x4196e2
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x42b158
push eax
call dword [ecx]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x4196d9
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x4196d0
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp + 8], esi
jl 0x4196ec
cmp dword [ebp - 4], esi
jne 0x41973b
cmp dword [edi + 8], esi
je 0x41973b
cmp dword [edi + 0x18], esi
jne 0x41973b
mov eax, dword [edi + 0x14]
cmp eax, esi
je 0x41973b
push eax
mov ecx, edi
call fcn.0041944e
mov ebx, eax
cmp ebx, esi
je 0x41973b
push 0x204
push esi
push esi
push esi
push esi
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
call fcn.0041a4d6
pop ecx
xor eax, eax
cmp dword [ebp + 8], esi
pop edi
pop esi
setge al
pop ebx
leave
ret 8
Function at 0x419a6e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0x18]
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 0
push edi
mov dword [esi + 8], edi
mov byte [esi + 0x25], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.00419a07
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push 2
lea eax, [ebp - 0x10]
push eax
push edi
call ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x419ad5
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
push esi
push dword [esi]
sub edi, eax
push 0
push dword [ebp + 0xc]
lea ecx, [eax + 1]
dec edi
mov dword [ebp + 0x18], ecx
dec edi
call ebx
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
push edi
push dword [ebp - 0xc]
xor edi, edi
push dword [ebp + 0x18]
push 0x40000000
push edi
push str.RarHtmlClassName
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 4], eax
cmp dword [esi + 0x10], edi
jne 0x419b57
cmp dword [ebp + 0xc], edi
je 0x419b7a
cmp dword [esi + 0x18], edi
jne 0x419b7a
mov eax, dword [esi + 0x14]
cmp eax, edi
je 0x419b7a
push eax
mov ecx, esi
call fcn.0041944e
mov esi, eax
cmp esi, edi
je 0x419b7a
push 5
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.0041a4d6
pop ecx
jmp 0x419b7a
cmp eax, edi
je 0x419b6d
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0x20], 0x64
jbe 0x419b7a
mov ecx, esi
call fcn.004192a1
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x419b81
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x42b148
push 1
xor ebx, ebx
push ebx
push 0x42b1f8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x419c52
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x42b1e8
push eax
call dword [ecx]
test eax, eax
jl 0x419c49
cmp byte [ebp + 8], bl
je 0x419bd4
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x419bf1
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x419c03
push 0x42a73c
jmp 0x419c06
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x419c1b
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x419c2c
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x419c40
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x419c6c
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x41e6ae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430298]
jne 0x41e6b8
repz ret
jmp fcn.00423e53
Function at 0x4256e5
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.0041e72f
and dword [ebp - 4], 0
cmp dword [0x4501f0], 0
mov ebx, eax
jne 0x425796
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x425847
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x425847
push eax
call fcn.0041e6bd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4501f0], eax
call esi
push eax
call fcn.0041e6bd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4501f4], eax
call esi
push eax
call fcn.0041e6bd
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4501f8], eax
call esi
push eax
call fcn.0041e6bd
pop ecx
mov dword [0x450200], eax
test eax, eax
je 0x425796
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041e6bd
pop ecx
mov dword [0x4501fc], eax
mov eax, dword [0x4501fc]
cmp eax, ebx
je 0x4257ee
cmp dword [0x450200], ebx
je 0x4257ee
push eax
call fcn.0041e738
push dword [0x450200]
mov esi, eax
call fcn.0041e738
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4257ee
test edi, edi
je 0x4257ee
call esi
test eax, eax
je 0x4257e5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4257e5
test byte [ebp - 0xc], 1
jne 0x4257ee
or dword [ebp + 0x10], 0x200000
jmp 0x425827
mov eax, dword [0x4501f4]
cmp eax, ebx
je 0x425827
push eax
call fcn.0041e738
pop ecx
test eax, eax
je 0x425827
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x425827
mov eax, dword [0x4501f8]
cmp eax, ebx
je 0x425827
push eax
call fcn.0041e738
pop ecx
test eax, eax
je 0x425827
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4501f0]
call fcn.0041e738
pop ecx
test eax, eax
je 0x425847
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x425849
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147e
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x401499
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ed
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ed
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f1
xor eax, eax
jmp 0x401503
cmp dword [ebp - 4], edi
je 0x401500
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0xdace04
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdace0e
pushal
call 0xdace14
pop ebp
sub ebp, 0x10
sub ebp, 0x9ace04
jmp 0xdace2a
mov eax, 0x9ace04
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c3
mov edx, 0x82661d4b
xor byte [eax], dl
inc eax
dec ecx
jne 0xdace41
jmp 0xdace54
rol byte [esi + 0x4b77c2c0], 0x4b
dec ebx
retf 0xb38a
Function at 0x10013260
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001328d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001328d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10013720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 4]
push eax
push dword [edi]
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
xor eax, eax
test esi, esi
jle 0x10013756
nop
mov edx, dword [ebp - 4]
mov ecx, eax
and ecx, 7
mov cl, byte [ecx + str.ExcelDna]
xor byte [edx + eax], cl
inc eax
cmp eax, esi
jl 0x10013740
push dword [edi]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10013db3
test al, 0x10
jne 0x10013db3
mov al, 1
ret
xor al, al
ret
Function at 0x40b15a
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [pe_dos_header]
mov eax, dword ds:[eax + 0x34]
mov ebp, dword ds:[eax + 0xb8]
jmp 0x40b168
push eax
push ecx
push esi
push ebp
mov eax, dword fs:[0x30]
test eax, eax
js 0x40b14a
mov eax, dword ds:[eax + 0xc]
mov esi, dword ds:[eax + 0x1c]
lodsd eax, dword [esi]
mov ebp, dword ds:[eax + 8]
mov dword [ebx + 0x60], ebp
mov eax, ebp
cmp word [eax], 0x5a4d
jne 0x40b145
add eax, 0x3c
mov ecx, dword [eax]
add ecx, dword [ebx + 0x60]
cmp word [ecx], 0x4550
jne 0x40b145
add ecx, 0x78
mov esi, dword [ecx]
add esi, dword [ebx + 0x60]
add esi, 0x18
lodsd eax, dword [esi]
mov dword [ebx + 0x64], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x68], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x6c], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x70], eax
pop ebp
pop esi
pop ecx
pop eax
ret

Function at 0x408550
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7000]
push edi
jmp 0x40856a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x408571
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x408560
mov eax, 1
add ebx, ebx
jne 0x408583
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x408578
jne 0x408594
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408578
xor ecx, ecx
sub eax, 3
jb 0x4085a8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40861a
mov ebp, eax
add ebx, ebx
jne 0x4085b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4085c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4085e4
inc ecx
add ebx, ebx
jne 0x4085d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4085c5
jne 0x4085e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4085c5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x408604
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4085f5
jmp 0x408566
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x408604
add edi, ecx
jmp 0x408566
pop esi
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x408663
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x81b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x821c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x408621
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8224]
or eax, eax
je 0x40865d
mov dword [ebx], eax
add ebx, 4
jmp 0x40863e
call dword [esi + 0x8220]
mov ebp, dword [esi + 0x8228]
lea edi, [esi - 0x1000]
mov ebx, pe_overlay
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x408697
sub esp, 0xffffff80
jmp 0x401020
Function at 0x41b007
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004126ae
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x41b03f
xor eax, eax
jmp 0x41b06b
cmp esi, dword [ebp - 4]
je 0x41b068
cmp dword [ebp + 0xc], 0
je 0x41b068
push dword [edi + 0x9c]
call fcn.0041ac15
push dword [edi + 0x9c]
mov esi, eax
call fcn.0040d5b4
pop ecx
pop ecx
cmp esi, eax
je 0x41b03b
xor eax, eax
inc eax
pop edi
pop esi
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 0x409ea4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40f438
call fcn.0040a1f4
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x409f04
cmp eax, 0xffffffff
je 0x409f04
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x409efd
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x409efd
cmp edx, 0x10000000
jae 0x409efd
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x409efa
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.0040a239
ret 4

Function at 0x409f50
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x409f8e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x409f86
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x409f90
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x409f76
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40a060
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x40a076
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x40a091
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x40c782
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
ret

Function at 0x40c84d
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [0x4106cc]
push edi
mov edi, edx
test edi, edi
je 0x40c89c
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40c89b
and dword [ebp - 4], 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
and eax, 0xffff7fff
cmp eax, 2
lea eax, [ebp - 4]
push 0
push eax
jne 0x40c88f
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x40c89b
lea eax, [esi + esi]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d170
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x410358]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x4108f8]
jne 0x40d20c
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 6
push eax
push 1
xor edi, edi
push edi
push 0x403f30
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d20b
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x403fe8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x40d20b
push 3
push dword [edi*8 + 0x401270]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x40d1fd
inc edi
cmp edi, 0x1c
jb 0x40d1db
jmp 0x40d20b
mov ax, word [edi*8 + 0x401274]
mov word [0x4108f8], ax
pop edi
mov ecx, dword [ebp - 4]
mov ax, word [0x4108f8]
xor ecx, ebp
call fcn.00409a40
mov esp, ebp
pop ebp
ret
Function at 0xe110b8
Capabilities:
Encode data using xor

Disassembly:
jmp 0xe110c2
pushal
call 0xe110c8
pop ebp
sub ebp, 0x10
sub ebp, 0xa110b8
jmp 0xe110de
mov eax, 0xa110b8
add eax, ebp
add eax, 0x4c
mov ecx, 0x5df
mov edx, 0xf05129d9
xor byte [eax], dl
inc eax
dec ecx
jne 0xe110f5
jmp 0xe11108
push edx
adc al, 0x52
push eax
in eax, 0xd9
fstpnce st(1), st(0)
pop eax
sbb byte [ecx], ah
fstpnce st(1), st(0)
fstpnce st(2), st(0)
adc al, 0x61
fcompp
fstpnce st(1), st(0)
arpl cx, si
fstpnce st(1), st(0)
fldcw word [esi]
cmp ebx, edx
adc dword [edx + 0x58], edx
aad 0xd9
fstpnce st(1), st(0)
ficomp dword [esp + edx*2]
mov ebp, 0xdd5025fd
std
mov dword [ecx - 0x2607afd7], esi
mov cl, 0x11
pop edi
cmpsb byte [esi], byte es:[edi]
fstpnce st(0), st(0)
cmc
std
mov cl, 0x6d
jmp 0xe111a2
mov ebp, 0xf55025fd
std
lea eax, [esi - 0x53d92a54]
sal dword [ecx], 1
pop ebp
fstpnce st(1), st(0)
fst dword [edx + 0x64]
rcr ecx, 1
fstpnce st(1), st(0)
pop eax
sub byte [ebx], dl
sal ecx, 1
pop eax
sub byte [ebx], dl
sal ecx, 1
ljmp 0x307e
Function at 0x10002d2a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x10008508
call fcn.100081c0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.100037e5
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x10002d56
push edi
call esi
cmp eax, 0xffffffff
jne 0x10002d98
test ebx, ebx
je 0x10002d95
lea ecx, [ebp - 0x18]
call fcn.10001b8c
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.100038ee
test al, al
push dword [ebp - 0x18]
je 0x10002d8f
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.100021e1
pop ecx
mov eax, esi
jmp 0x10002d98
call fcn.100021e1
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x10003231
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10003257
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10003257
xor al, al
jmp 0x10003277
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.10008210
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x10007ba9
Capabilities:
Identify system language via api

Disassembly:
mov eax, 0x10008c98
call fcn.100081c0
sub esp, 0x28
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
cmp si, ax
jne 0x10007c87
mov ecx, eax
xor edi, edi
shr ax, 0xa
and ecx, 0x3ff
mov esi, eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
movzx ecx, cx
lea edx, [ebp - 0x1c]
mov dword [ebp - 4], edi
call fcn.10007cb5
lea ecx, [ebp - 0x34]
call fcn.100079f4
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], edi
movzx ebx, si
mov eax, dword [ebp - 0x10]
neg eax
sbb eax, eax
not eax
and eax, ebx
cmp eax, dword [ebp - 0x18]
jae 0x10007c69
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ecx + eax*4]
cmp dword [esi + 4], edi
je 0x10007c69
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x28]
push eax
call fcn.10001c5f
push dword [esi]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.10001ed8
lea ecx, [ebp - 0x28]
push str..txt
call fcn.10001ed8
mov edx, dword [ebp - 0x28]
mov ecx, 0x1000c0e0
call fcn.100079e8
test al, al
jne 0x10007c96
push dword [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.100021e1
pop ecx
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 2
jb 0x10007c09
push dword [ebp - 0x34]
call fcn.100021e1
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.1000270a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push dword [esi]
mov ecx, 0x1000c100
call fcn.10001d87
push dword [ebp - 0x28]
call fcn.100021e1
push dword [ebp - 0x34]
call fcn.100021e1
pop ecx
jmp 0x10007c7a