joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c255
Capabilities:
Encode data using xor

Disassembly:
push 0x844
mov eax, 0x42fa6e
call fcn.00410531
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x840], eax
mov edi, 0xff
mov ecx, esi
mov dword [ebp - 0x850], esi
lea eax, [ebp - 0x844]
mov dword [ebp - 0x84c], ecx
mov dword [ebp - 0x848], edi
mov dword [ebp - 0x844], 0x4fd7e7d
mov dword [ebp - 0x824], esi
mov dword [ebp - 0x830], eax
push 0x20
pop ebx
or eax, 0xffffffff
shr eax, 1
dec ebx
mov dword [ebp - 0x82c], ebx
mov dword [ebp - 0x828], eax
cmp eax, 0x7ffffffd
ja 0x40c2aa
mov dword [ebp - 0x834], eax
add edi, 0x80000000
lea eax, [ecx - 0x80000000]
mov dword [ebp - 0x838], ebx
sub edi, eax
mov dword [ebp - 0x83c], eax
cmp edi, 0xffffffff
jne 0x40c30f
mov edi, esi
mov dword [ebp - 0x818], esi
lea ecx, [ebp - 0x830]
call fcn.0040c5ef
lea ecx, [ebx - 1]
add esi, ebx
shl edi, cl
add edi, edi
or edi, eax
cmp esi, 0x20
jb 0x40c2ed
xor esi, esi
jmp 0x40c3b7
lea eax, [edi + 1]
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x814], esi
mov eax, esi
mov dword [ebp - 0x820], eax
test edi, edi
je 0x40c37a
mov esi, dword [ebp - 0x834]
lea eax, [ebx - 1]
mov ebx, dword [ebp - 0x814]
mov dword [ebp - 0x81c], eax
lea ecx, [ebp - 0x830]
call fcn.0040c5ef
mov ecx, dword [ebp - 0x81c]
shl ebx, cl
add ebx, ebx
or ebx, eax
mov eax, dword [ebp - 0x820]
shl eax, cl
add eax, eax
or eax, esi
mov dword [ebp - 0x820], eax
cmp eax, edi
jb 0x40c33f
mov dword [ebp - 0x814], ebx
xor esi, esi
mov ebx, dword [ebp - 0x838]
xor edx, edx
lea ecx, [edi + 1]
div ecx
mov ecx, eax
mov dword [ebp - 0x81c], edx
mov eax, dword [ebp - 0x814]
xor edx, edx
div dword [ebp - 0x818]
cmp eax, ecx
jb 0x40c3a7
cmp dword [ebp - 0x81c], edi
jne 0x40c318
mov eax, dword [ebp - 0x814]
xor edx, edx
div dword [ebp - 0x818]
mov edi, edx
mov ecx, dword [ebp - 0x824]
mov eax, dword [ebp - 0x83c]
add eax, edi
add eax, 0x80000000
mov byte [ebp + ecx - 0x810], al
inc ecx
mov dword [ebp - 0x824], ecx
cmp ecx, 0x800
jge 0x40c3f1
mov edi, dword [ebp - 0x848]
mov ecx, dword [ebp - 0x84c]
jmp 0x40c2a4
push 0x800
lea ecx, [ebp - 0x830]
call fcn.0040c4a5
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov edi, dword [ebp - 0x830]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cmp eax, 0x800
jne 0x40c43a
lea ebx, [ebp - 0x810]
sub ebx, edi
mov eax, dword [ecx]
lea edx, [edi + esi]
mov cl, byte [ebx + edx]
xor cl, byte [eax + esi]
inc esi
mov byte [edx], cl
mov ecx, dword [ebp + 0xc]
cmp esi, 0x800
jl 0x40c421
mov ecx, dword [ebp - 0x840]
push edi
call fcn.0040a19d
lea ecx, [ebp - 0x830]
call fcn.00408d5e
mov eax, dword [ebp - 0x840]
call fcn.004104db
ret 8
Function at 0x40c719
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x42fa9e
call fcn.004104fd
mov ebx, ecx
and dword [ebp - 0x18], 0
cmp dword [ebx], 0
je 0x40c7f6
cmp dword [ebx], 0xffffffff
je 0x40c7f6
push 0x40
pop esi
push esi
lea ecx, [ebp - 0x24]
call fcn.0040c8d8
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x40c75a
mov ecx, dword [eax]
jmp 0x40c75c
mov ecx, eax
mov edi, dword [ebp - 0x24]
lea eax, [esi + esi]
mov dword [ebp - 0x14], eax
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push esi
push ecx
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c7b0
cmp dword [ebp - 0x10], 1
je 0x40c78f
cmp dword [ebp - 0x10], 2
je 0x40c78f
push 0xd
pop eax
jmp 0x40c7b0
test edi, edi
je 0x40c7ae
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40c7a9
test al, 1
jne 0x40c78a
shr eax, 1
cmp word [edi + eax*2 - 2], si
je 0x40c7ae
jmp 0x40c78a
xor eax, eax
mov word [edi], ax
mov eax, esi
mov dword [ebx + 0xc], eax
cmp eax, 0xea
jne 0x40c7cd
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
sub esi, edi
and esi, 0xfffffffe
push esi
call fcn.0040c877
jmp 0x40c74d
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 8]
cmp dword [ebx + 0xc], esi
je 0x40c7ee
push dword [ebp + 0x10]
call fcn.0040446b
lea ecx, [ebp - 0x24]
call fcn.0040c911
jmp 0x40c801
push edi
call fcn.0040192c
jmp 0x40c7e4
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
call fcn.0040446b
mov eax, dword [ebp + 8]
call fcn.004104c6
ret 0xc

Function at 0x40c80c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x40c872
cmp dword [edi], 0xffffffff
je 0x40c872
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 8
jb 0x40c827
mov ecx, dword [ecx]
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x40c833
mov esi, dword [esi]
test ecx, ecx
jne 0x40c83c
push 0xd
pop eax
jmp 0x40c86e
and dword [ebp + 0xc], 0
mov edx, ecx
push ebx
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp + 0xc]
jne 0x40c846
sub edx, ebx
sar edx, 1
lea eax, [edx*2 + 2]
push eax
push ecx
push 1
xor eax, eax
push eax
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebx
mov dword [edi + 0xc], eax
pop esi
pop edi
pop ebp
ret 8

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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x40cb1d
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40cb30
shr eax, 4
and eax, 1
ret
xor al, al
ret
Function at 0x40cb33
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x1c
mov eax, 0x42f06c
call fcn.00410531
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x40cb4b
mov edi, dword [esi]
jmp 0x40cb4d
mov edi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40cb60
shr al, 4
and al, 1
jmp 0x40cbde
push ecx
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.0040d3bf
pop ecx
and dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x40cb7a
mov eax, dword [esi]
jmp 0x40cb7c
mov eax, esi
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push dword [esi + 0x10]
cmovae ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
push eax
call fcn.00404e39
pop ecx
pop ecx
test eax, eax
je 0x40cbce
lea ecx, [ebp - 0x28]
call fcn.0040cb33
test al, al
je 0x40cbce
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40cbca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40cbce
mov ecx, esi
call fcn.0040cb15
test al, al
je 0x40cbce
mov bl, 1
jmp 0x40cbd0
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040195d
mov al, bl
call fcn.004104db
ret

Function at 0x40cc34
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ecx + 0x14], 8
push esi
mov esi, edx
jb 0x40cc47
mov ecx, dword [ecx]
push 0x43cfc0
push ecx
lea eax, [ebp - 4]
push eax
call fcn.0041b4f6
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x40cc68
call fcn.0041ba4f
mov eax, dword [eax]
jmp 0x40cca3
push 2
push 0
push dword [ebp - 4]
call fcn.0041b8ed
push dword [ebp - 4]
call fcn.0041b908
add esp, 0x10
mov ecx, esi
push 3
call fcn.0040c45f
push dword [ebp - 4]
push 3
push 1
push dword [esi]
call fcn.0041bc2e
push dword [ebp - 4]
call fcn.0041b5b3
add esp, 0x14
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d08c
Capabilities:
Create process on windows

Disassembly:
push 0x74
mov eax, 0x42fb45
call fcn.00410531
mov esi, edx
mov edi, ecx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x7c]
push 0x40
push 0
push eax
call fcn.00412e40
add esp, 0xc
mov dword [ebp - 0x80], 0x44
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xorps xmm0, xmm0
mov edx, edi
push ecx
lea ecx, [ebp - 0x28]
movups xmmword [ebp - 0x38], xmm0
call fcn.0040570c
and dword [ebp - 4], 0
mov dword [esp], 0x43ca10
call fcn.00401124
pop ecx
push eax
push 0x43ca10
lea ecx, [ebp - 0x28]
call fcn.00404f53
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
call fcn.00404ff7
xor edx, edx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov esi, edx
cmovae eax, dword [ebp - 0x28]
cmp dword [edi + 0x14], 8
jb 0x40d115
mov edi, dword [edi]
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push edx
push edx
push edx
push edx
push edx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40d13b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x40d158
mov ecx, dword [ebp + 8]
cmp byte [ecx], 0
je 0x40d158
push 0xffffffffffffffff
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040195d
mov eax, esi
call fcn.004104db
ret

Function at 0x40d6de
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push dword [ebp + 0xc]
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40d77e
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x40d717
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40d77e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x40d72e
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40d77d
push edi
lea ecx, [ebp - 0xc]
call fcn.0040c4a5
push edi
mov edi, dword [ebp - 0xc]
push ebx
push edi
call fcn.004128c0
mov edx, dword [ebp + 8]
lea eax, [ebp - 0xc]
add esp, 0xc
cmp edx, eax
je 0x40d76e
mov eax, dword [edx]
mov dword [edx], edi
mov ecx, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov ecx, dword [edx + 8]
mov dword [edx + 8], eax
mov dword [ebp - 4], ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0xc]
call fcn.00408d5e
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40d786
Capabilities:
Get file version info

Disassembly:
push 0x90
mov eax, 0x42fc81
call fcn.00410531
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x88], esi
and dword [ebp - 0x9c], 0
and dword [ebp - 0x7c], 0
cmp dword [edi + 0x14], 8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
jb 0x40d7ba
mov eax, dword [edi]
jmp 0x40d7bc
mov eax, edi
lea ecx, [ebp - 0x7c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x40d7df
and dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x40d98c
push ebx
lea ecx, [ebp - 0x94]
call fcn.0040c4a5
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 8
jb 0x40d7f7
mov edi, dword [edi]
push dword [ebp - 0x94]
push ebx
push dword [ebp - 0x7c]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40d820
and dword [esi + 0x10], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x40d981
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x88]
xor ebx, ebx
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x94]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x98], ebx
call edi
test eax, eax
jne 0x40d85b
mov dword [esi + 0x10], ebx
jmp 0x40d80f
xor eax, eax
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], ax
push 0x40
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
push ebx
push eax
call fcn.00412e40
mov ecx, dword [ebp - 0x88]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x50]
push str.StringFileInfo_04x_04x
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x50]
push eax
call fcn.00401124
add esp, 0x20
lea ecx, [ebp - 0x68]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004019b4
mov ebx, 0x43c8f0
push ebx
call fcn.00401124
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x68]
call fcn.00404f53
push 0xffffffffffffffff
xor ebx, ebx
lea ecx, [ebp - 0x68]
push ebx
push dword [ebp - 0x6c]
call fcn.00404ff7
cmp dword [ebp - 0x54], 8
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x80]
lea eax, [ebp - 0x68]
cmovae eax, dword [ebp - 0x68]
push ecx
push eax
push dword [ebp - 0x94]
call edi
test eax, eax
jne 0x40d90a
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
jmp 0x40d976
mov ecx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x84]
mov byte [ebp - 0x6c], bl
push dword [ebp - 0x6c]
mov dword [ebp - 0x78], ebx
lea eax, [ecx + eax*2]
mov dword [ebp - 0x74], ebx
push eax
push ecx
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x70], ebx
call fcn.0040d9eb
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
cmp eax, ecx
jne 0x40d94e
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
jmp 0x40d96e
cmp word [ecx - 2], bx
je 0x40d966
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], ebx
push eax
lea ecx, [ebp - 0x78]
call fcn.0040d994
mov eax, dword [ebp - 0x78]
push eax
mov ecx, esi
call fcn.0040192c
lea ecx, [ebp - 0x78]
call fcn.0040c911
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.0040195d
lea ecx, [ebp - 0x94]
call fcn.00408d5e
mov eax, esi
call fcn.004104db
ret
Function at 0x40ddd6
Capabilities:
Create directory

Disassembly:
push 0x24
mov eax, 0x42fd45
call fcn.00410531
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
mov esi, dword [ebp + 8]
lea ecx, [ebx + 4]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x30], ebx
mov dword [ebx], 0x43d19c
call fcn.00407bed
and dword [ebp - 4], 0
lea ecx, [ebx + 0x14]
push esi
call fcn.0040446b
push edi
lea esi, [ebx + 0x2c]
mov byte [ebp - 4], 1
push esi
call fcn.0040df1a
push ecx
mov edx, esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0040d3bf
pop ecx
cmp dword [eax + 0x14], 8
jb 0x40de31
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040195d
mov eax, ebx
call fcn.004104db
ret 8

Function at 0x40de72
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ee03
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x442070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x2c]
mov dword [edi], 0x43d19c
cmp dword [esi + 0x14], 8
jb 0x40deb2
mov eax, dword [esi]
jmp 0x40deb4
mov eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call ebx
push ecx
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.0040d3bf
pop ecx
cmp dword [eax + 0x14], 8
jb 0x40ded1
mov eax, dword [eax]
push eax
call ebx
xor ebx, ebx
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.0040195d
push ebx
push 1
mov ecx, esi
call fcn.0040195d
push ebx
push 1
lea ecx, [edi + 0x14]
call fcn.0040195d
lea ecx, [edi + 4]
call fcn.00407ccf
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040fb4f
mov esp, ebp
pop ebp
ret
Function at 0x423e11
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00423c90

Function at 0x427fc8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00427c88
Function at 0x401040
Capabilities:
Create process on windows
Terminate process

Disassembly:
push 5
push str.calc
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x401060
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1140
call fcn.00401e50
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 2
push esi
mov esi, dword [ebp + 0xc]
je 0x4010a4
push dword [esi]
push str.Usage:__s__file_path__n
call fcn.00401010
add esp, 8
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004011c1
mov esp, ebp
pop ebp
ret
push edi
push 0x1000
lea eax, [ebp - 0x1140]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x402138
push dword [esi + 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4010f0
push str.Error_opening_file
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
add esp, 4
lea eax, [edi + 2]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004011c1
mov esp, ebp
pop ebp
ret
push edi
push 1
lea eax, [ebp - 0x3c]
push 0x36
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov eax, 0x4d42
add esp, 0x10
cmp word [ebp - 0x3c], ax
je 0x401137
push str.Not_a_BMP_file.
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 8
mov eax, 3
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004011c1
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x20], 0x18
je 0x401168
push str.This_program_only_supports_24_bit_BMP_files.
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 8
mov eax, 4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004011c1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x26]
imul eax, dword [ebp - 0x2a]
push 0
push dword [ebp - 0x32]
push edi
lea esi, [eax + eax*2]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push edi
push 1
push dword [ebp - 0x1a]
lea eax, [ebp - 0x1140]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push esi
lea eax, [ebp - 0x1140]
push eax
lea eax, [ebp - 0x140]
push eax
call sub.VCRUNTIME140.dll_memcpy
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [ebp - 4]
add esp, 0x2c
xor ecx, ebp
xor eax, eax
pop edi
pop esi
call fcn.004011c1
mov esp, ebp
pop ebp
ret
Function at 0x45064c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x45065b
pop dword [ebp - 0x10]
mov eax, 0x61d308e6
add eax, 0x9e71fd75
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x24003d66
add dword [ebp - 0x20], 0x2a5207e5
mov dword [ebp - 0x1c], 0x90158ede
sub dword [ebp - 0x1c], 0x5de24299
mov dword [ebp - 0x18], 0x8fa80fbd
add dword [ebp - 0x18], 0xbca43471
mov dword [ebp - 0x14], 0x829467a2
sub dword [ebp - 0x14], 0x829467a2
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x7a81dc2b
add dword [ebp - 0x20], 0xf9f08d2b
mov dword [ebp - 0x1c], 0x19b55aee
add dword [ebp - 0x1c], 0x27b70687
mov dword [ebp - 0x18], 0x2e657594
add dword [ebp - 0x18], 0x3509f6d8
mov dword [ebp - 0x14], 0xf4e33620
sub dword [ebp - 0x14], 0xf4e33620
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x2f76970f
add eax, 0xd0cf1971
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x53de6
push 0
call eax
mov ecx, 0x5dcd
xor ebx, ebx
add ebx, eax
mov esi, 0x476000
add esi, dword [ebp - 0x10]
mov edi, 0xeab92f91
sub edi, 0xa9de80c3
add dword [ebp - 8], 0x66f7b543
mov edx, dword [esi]
xor dword [ebp - 0xc], ebx
xor edx, edi
mov dword [ebp - 0xc], 0x153a7848
mov dword [ebx], edx
add dword [ebp - 0xc], 0x47f47c98
add ebx, 0x384ed7d2
sub ebx, 0x384ed7ce
add esi, 0xd7b4babf
add esi, 0x284b4545
loop 0x45076e
add eax, 0xc51ffd37
add eax, 0x3ae16cd0
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x7691821f
add ecx, 0x89ae7de1
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x40105b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x452004]
jne 0x401065
repz ret
jmp fcn.00401708

Function at 0x406f5a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x452004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404664
and dword [ebp - 0x14], 0
cmp dword [0x45494c], 0
mov dword [ebp - 0x18], eax
jne 0x40700d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4070b5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4070b5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x45494c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x454950], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x454954], eax
call edi
push eax
call esi
mov dword [0x45495c], eax
test eax, eax
je 0x40700d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x454958], eax
mov eax, dword [0x454958]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407066
cmp dword [0x45495c], ecx
je 0x407066
push eax
call esi
push dword [0x45495c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407066
test ebx, ebx
je 0x407066
call edi
test eax, eax
je 0x40705d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40705d
test byte [ebp - 8], 1
jne 0x407066
or dword [ebp + 0x10], 0x200000
jmp 0x407099
mov eax, dword [0x454950]
cmp eax, dword [ebp - 0x18]
je 0x407099
push eax
call esi
test eax, eax
je 0x407099
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407099
mov eax, dword [0x454954]
cmp eax, dword [ebp - 0x18]
je 0x407099
push eax
call esi
test eax, eax
je 0x407099
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45494c]
call esi
test eax, eax
je 0x4070b5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4070b7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040105b
leave
ret
Function at 0x409cc0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 8]
push esi
xor esi, esi
test eax, eax
jle 0x409d6f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
push edi
mov edi, dword [esp + 0x18]
cmp eax, 0x2d
jne 0x409d01
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x2b78b48]
imul ecx, ecx, 0x343fd
add ecx, 0x269ec3
mov dword [0x2b78b48], ecx
mov dl, byte [0x2b78b4a]
mov ecx, dword [esp + 0x14]
xor byte [esi + ecx], dl
cmp eax, 0xf
jne 0x409d63
push 0
push 0
push 0
call ebx
push str.jucoyasiletarapifefixud
call ebp
push str.rotumigapuliji
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
push edi
push str.tejuwitemufo
push 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x409ce2
pop edi
pop ebp
pop ebx
pop esi
cmp eax, 0x2d
jne 0x409d89
mov dword [0x2b78e30], 0xa62e7790
mov dword [0x2b78e34], 0xffffffff
ret

Function at 0x409d90
Capabilities:
Set console window title

Disassembly:
sub esp, 0xc0c
mov eax, dword [0x452004]
xor eax, esp
mov dword [esp + 0xc08], eax
mov eax, dword [0x2b78e24]
push ebx
mov ebx, dword [0x2b78b4c]
push edi
mov edi, eax
cmp eax, 0x5dd
jne 0x409ddc
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
mov eax, dword [0x2b78e24]
push esi
mov esi, dword [0x452ed0]
cmp eax, 0x930
jne 0x409df7
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2b78e24]
mov dword [0x2b78b48], esi
pop esi
cmp eax, 0x114e
jne 0x409e20
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov eax, dword [0x2b78e24]
cmp eax, 0x2f
jne 0x409e52
push 0
lea eax, [esp + 0x414]
push eax
push 0
push str.Giy_zusud_huhapilovaf_sarusamuyul
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
push 0
lea ecx, [esp + 0x14]
push ecx
push str.Sugivoyayuj_yiwicohawufufa_xalumapacib_musihobifuv_juj
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push edi
push ebx
call fcn.00409cc0
mov ecx, dword [esp + 0xc18]
add esp, 8
pop edi
pop ebx
xor ecx, esp
call fcn.0040105b
add esp, 0xc0c
ret