joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ccfe0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
lea ecx, [ebp - 4]
call fcn.004cce80
lea ecx, [ebp - 4]
call fcn.004ccfb0
movzx eax, al
test eax, eax
jne 0x4cd01d
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 4]
call fcn.004ccea0
mov eax, dword [ebp - 0x18]
jmp 0x4cd145
lea ecx, [ebp - 4]
call fcn.004ccf80
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004ccf40
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x10]
sar edx, 1
mov dword [ebp - 0x14], edx
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 4]
call fcn.004ccf80
push eax
push 0
push 0
call fcn.004c7390
add esp, 0x20
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4cd083
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 4]
call fcn.004ccea0
mov eax, dword [ebp - 0x20]
jmp 0x4cd145
push 0x66
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00497210
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.0044dc70
lea ecx, [ebp - 8]
call fcn.0044dcf0
movzx edx, al
test edx, edx
jne 0x4cd0cc
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 8]
call fcn.0044dcb0
lea ecx, [ebp - 4]
call fcn.004ccea0
mov eax, dword [ebp - 0x24]
jmp 0x4cd145
lea ecx, [ebp - 8]
call fcn.0044ddb0
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 4]
call fcn.004ccf80
mov dword [ebp - 0x2c], eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
call fcn.004c7390
add esp, 0x20
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4cd127
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 8]
call fcn.0044dcb0
lea ecx, [ebp - 4]
call fcn.004ccea0
mov eax, dword [ebp - 0x34]
jmp 0x4cd145
lea ecx, [ebp - 8]
call fcn.00497b70
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 8]
call fcn.0044dcb0
lea ecx, [ebp - 4]
call fcn.004ccea0
mov eax, dword [ebp - 0x38]
mov esp, ebp
pop ebp
ret
Function at 0x4cd150
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
lea ecx, [ebp - 4]
call fcn.004cce80
lea ecx, [ebp - 4]
call fcn.004ccec0
movzx eax, al
test eax, eax
jne 0x4cd18d
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 4]
call fcn.004ccea0
mov eax, dword [ebp - 0x14]
jmp 0x4cd247
lea ecx, [ebp - 4]
call fcn.004ccf80
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004ccf40
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0xc]
sar edx, 1
mov dword [ebp - 0x10], edx
push 0x40
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
call fcn.00497210
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.004994e0
lea ecx, [ebp - 8]
call fcn.004aab00
movzx ecx, al
test ecx, ecx
jne 0x4cd1fd
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 8]
call fcn.00499500
lea ecx, [ebp - 4]
call fcn.004ccea0
mov eax, dword [ebp - 0x1c]
jmp 0x4cd247
lea ecx, [ebp - 4]
call fcn.004ccf80
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 8]
call fcn.00499810
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x10]
shl edx, 1
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0044c0d0
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.004a3f80
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 8]
call fcn.00499500
lea ecx, [ebp - 4]
call fcn.004ccea0
mov eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret
Function at 0x4de7b0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
lea ecx, [ebp - 0x4c]
call fcn.004a2f20
lea ecx, [ebp - 0x34]
call fcn.004a2f20
call fcn.004b3650
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a2e70
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4de803
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x34]
call fcn.004a2fc0
lea ecx, [ebp - 0x4c]
call fcn.004a2fc0
mov eax, dword [ebp - 8]
jmp 0x4de878
call fcn.004b3650
push eax
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004a2e70
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4de83e
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x34]
call fcn.004a2fc0
lea ecx, [ebp - 0x4c]
call fcn.004a2fc0
mov eax, dword [ebp - 0x10]
jmp 0x4de878
lea ecx, [ebp - 0x34]
call fcn.004a32b0
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x4c]
call fcn.004a32b0
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x34]
call fcn.004a2fc0
lea ecx, [ebp - 0x4c]
call fcn.004a2fc0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x40610d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x40611c
pop dword [ebp - 8]
mov eax, 0x40611c
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x1e14e4a9
add dword [ebp - 0x18], 0x303d60a2
mov dword [ebp - 0x14], 0x582c4ad3
add dword [ebp - 0x14], 0xda070172
mov dword [ebp - 0x10], 0xc8f15a0
add dword [ebp - 0x10], 0x3fbd2e8e
mov dword [ebp - 0xc], 0x2219c861
add dword [ebp - 0xc], 0xdde6379f
lea eax, [ebp - 0x18]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x8c7930cc
add dword [ebp - 0x18], 0xe7f9388a
mov dword [ebp - 0x14], 0x3a208b8e
sub dword [ebp - 0x14], 0xf8b42a19
mov dword [ebp - 0x10], 0xec1bc478
add dword [ebp - 0x10], 0x7753a7f4
mov dword [ebp - 0xc], 0xc19fa5ad
sub dword [ebp - 0xc], 0xc19fa5ad
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x332fb
push 0
call eax
mov ecx, 0x3a50
mov edx, eax
mov ebx, 0x846319b0
sub ebx, 0x842219b0
add ebx, dword [ebp - 8]
mov esi, 0x588ef736
sub dword [ebp - 4], edx
mov edi, dword [ebx]
xor dword [ebp - 4], eax
add edi, esi
mov dword [ebp - 4], 0x60ff87b3
mov dword [edx], edi
mov dword [ebp - 4], 0x5e49febf
add edx, 0x6766a40b
add edx, 0x98995bf9
add ebx, 0x83c85772
add ebx, 0x7c37a892
loop 0x406223
add eax, 0xdc13
xor ebx, ebx
add ebx, eax
add eax, 0xab36db82
sub eax, 0xab36db7d
mov ecx, 0x9abf1c6d
sub ecx, 0x9a7f1c6d
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x4029c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
test eax, eax
mov dword [ebp - 0x1c], 0x40152c
mov dword [ebp - 0x18], 0x40149c
mov dword [ebp - 0x14], 0x4014a4
je 0x4029ec
and byte [eax], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push edi
lea eax, [ebp - 0x124]
push 0x4012a4
push eax
call ebx
and dword [ebp - 8], 0
lea edi, [ebp - 0x1c]
mov esi, dword [edi]
lea eax, [ebp - 0x124]
push esi
push eax
call fcn.00403529
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x124]
push 0
push eax
push SysStringLen
add byte [eax], al
cmp bh, 0x15
or byte [eax], dl
inc eax
add byte [ebp - 0x7a7af040], al
add byte [eax], al
invalid
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x104
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push 0
push 0x401520
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402ab1
lea eax, [ebp - 0x228]
push 0x4014ac
push eax
call fcn.00403529
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.004035ba
test eax, eax
je 0x402ab1
push dword [ebp + 8]
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402ab1
cmp dword [ebp + 0xc], eax
je 0x402aaa
push esi
push dword [ebp + 0xc]
call ebx
mov dword [ebp - 4], 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 1
je 0x402adc
lea eax, [ebp - 0x124]
push eax
call fcn.00403560
inc dword [ebp - 8]
add edi, 4
cmp dword [ebp - 8], 3
jb 0x402a0a
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x402ae6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea eax, [ebp - 0x20c]
push 0x4012a4
push eax
call ebx
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
jne 0x402b12
mov eax, 0x40152c
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00403529
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
push edi
push 2
push edi
push edi
lea eax, [ebp - 0x20c]
push edi
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402ba8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp + 8]
call esi
inc eax
push eax
push dword [ebp + 8]
push 1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x401520
push dword [ebp - 4]
call edi
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call ebx
lea eax, [ebp - 0x108]
push eax
call fcn.00403560
lea eax, [ebp - 0x108]
push eax
call esi
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push 0x401530
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x402ccb
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor ebx, ebx
push eax
push 0x20019
push ebx
mov esi, SysStringLen
push 0x4012a4
push esi
mov dword [ebp - 8], ebx
call edi
cmp eax, ebx
jne 0x402d2c
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push ebx
push eax
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x402d21
cmp dword [ebp - 0xc], ebx
jne 0x402d21
mov dword [ebp - 8], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402d3c
cmp eax, 2
jne 0x402dcb
mov dword [ebp - 8], 1
cmp dword [ebp - 8], ebx
je 0x402dcb
call fcn.00402dd0
test eax, eax
mov ebx, 0x20006
je 0x402d8b
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 0x40132c
push esi
call edi
test eax, eax
jne 0x402d8b
push 0x401358
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x401360
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 0x4012a4
push esi
call edi
test eax, eax
jne 0x402db5
push 0x401300
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x40132c
push esi
call fcn.00404233
push 0x401314
push esi
call fcn.00404233
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4034ba
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
je 0x40351d
mov edi, 0x104
lea eax, [ebp - 0x104]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x40351d
lea eax, [ebp - 0x104]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x403520
push 1
pop ebx
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 4
Function at 0x403677
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 1
mov al, byte [edi]
cmp al, 0x61
jl 0x403697
cmp al, 0x7a
jle 0x4036a7
cmp al, 0x41
jl 0x4037db
cmp al, 0x5a
jg 0x4037db
cmp byte [edi + 1], 0x3a
jne 0x4037db
cmp byte [edi + 2], 0x5c
jne 0x4037db
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
call esi
cmp eax, 0xffffffff
je 0x4037c0
push edi
call esi
test al, 0x10
je 0x4037c0
push edi
call fcn.004034ba
test eax, eax
jne 0x4037db
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push edi
push eax
call esi
lea eax, [ebp - 0x108]
push 0x40142c
push eax
call fcn.00403529
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [ebp + eax - 0x108]
push 0x401634
push ebx
call esi
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4037ab
lea eax, [ebp - 0x21c]
push 0x401498
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x403788
lea eax, [ebp - 0x21c]
push 0x401630
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x403788
lea eax, [ebp - 0x21c]
push eax
push ebx
call esi
lea eax, [ebp - 0x108]
push eax
call fcn.00403677
test eax, eax
jne 0x403788
and dword [ebp - 4], eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40373f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4037d6
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4037d3
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x4037dd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40391a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push esi
lea eax, [ebp - 0x140]
push edi
push eax
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x403966
jmp loc.0041c320
mov eax, esi
pop edi
pop esi
leave
ret 4
Function at 0x403bc3
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
xor esi, esi
push esi
push esi
mov dword [ebp - 4], esi
call fcn.0040396e
test eax, eax
je 0x403c18
lea eax, [ebp - 8]
push eax
push 1
push esi
push 0x401688
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403c4a
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push 0x40166c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403c4a
lea eax, [ebp - 0x10c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x10c]
push 0x401660
push eax
call fcn.00403529
lea eax, [ebp - 0x10c]
push eax
call fcn.0040391a
mov dword [ebp - 4], eax
jmp 0x41caf0

Function at 0x403c50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
mov esi, dword [ebp + 0x14]
push edi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
mov dword [ebp - 4], 0x80004005
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [ebp - 0x58], 0x44
cmp esi, edi
je 0x403c7b
mov dword [esi], edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403cf7
cmp esi, edi
mov dword [ebp - 4], edi
je 0x403ca3
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
cmp dword [ebp + 0xc], edi
je 0x403ce2
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call fcn.00403d19
test eax, eax
jne 0x403cbe
mov dword [ebp - 4], 0x80070102
cmp dword [ebp - 4], edi
jl 0x403ce2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x403ce2
mov dword [ebp - 4], edi
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 4]
jmp 0x403d13
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x403d07
call esi
jmp 0x403d13
call esi
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
leave
ret 0x10

Function at 0x403e57
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp byte [edi], 0x25
jne 0x403ed4
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
call fcn.00403093
lea eax, [ebp + eax - 0x105]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x25
jne 0x403ebc
and byte [eax], 0
push dword [ebp + 0x1c]
lea eax, [ebp - 0x104]
push dword [ebp + 0x18]
push edi
jmp loc.0041c4b0
pop edi
pop esi
leave
ret 0x18
Function at 0x402865
Capabilities:
Get keyboard layout
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414ac8
push 0x40f860
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
sub esp, 0x208
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0xd
call dword [sym.imp.KERNEL32.dll_AddAtomA]
movzx eax, ax
cmp eax, 0xd
je 0x4028a8
push 0
call dword [sym.imp.msvcrt.dll__exit]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call dword [sym.imp.KERNEL32.dll_GetACP]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
or eax, 0xb03
imul eax, eax, 0x1e
imul esi, eax
mov edi, dword [ebp - 0x34]
sub edi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
or eax, 0x311
imul eax, eax, 0xf
xor edi, eax
mov dword [ebp - 0x34], edi
push 0xd
call dword [sym.imp.KERNEL32.dll_AddAtomA]
movzx eax, ax
cmp eax, 0xd
je 0x4028f9
push 0
call dword [sym.imp.msvcrt.dll__exit]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
fld qword [0x414a60]
call sub.msvcrt.dll__CIsin
fstp dword [ebp - 0x218]
fld dword [ebp - 0x218]
fcomp qword [0x414a58]
fnstsw ax
test ah, 0x41
jne 0x40292c
cli
jmp section..htext

Function at 0x407005
Capabilities:
Get keyboard layout
Set environment variable

Disassembly:
mov dword [0x417004], eax
call fcn.00403549
jmp fcn.00402865

Function at 0x100197ae
Capabilities:
Read file on windows

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

Function at 0x1001f450
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001f47d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001f47d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0xe86370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xe8638e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xeaf074
push ecx
mov edi, eax
call fcn.00e9a198
mov esi, eax
add esp, 8
test esi, esi
jne 0xe863cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00e9a02e
push esi
call fcn.00e99fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xe89850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xe898ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xeb4720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xe898ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00e9a1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xe898ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xeb4720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xe8992a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00e9b082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xe89957
mov word [eax], si
add eax, 2
push eax
call fcn.00e9b030
add esp, 4
jmp 0xe89959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xe898ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xe898b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xe89ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret