joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4058f8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x110], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x405983
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x105]
call fcn.00405858
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x10c]
call fcn.0040586c
mov edx, dword [ebp - 0x10c]
mov eax, ebx
mov ecx, 0x405998
call fcn.00402808
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40598a
lea eax, [ebp - 0x110]
mov edx, 2
call fcn.0040258c
ret

Function at 0x40599c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
mov eax, esp
call fcn.00405858
add esp, 0x108
pop ebx
ret

Function at 0x4059c4
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffff004
push eax
add esp, 0xfffffff8
mov ebx, eax
mov dword [esp], 0x1000
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x1001
call fcn.00402790
add esp, 0x1008
pop ebx
ret

Function at 0x405b30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004029a4
mov eax, dword [ebp - 8]
call fcn.004029a4
mov eax, dword [ebp + 0xc]
call fcn.004029a4
xor eax, eax
push ebp
push 0x405c12
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.004025bc
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.004029b4
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405bef
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.004029b4
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x405be6
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.00402ae0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx]
call fcn.004029b4
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
mov edx, dword [ebp - 0x14]
dec edx
mov eax, ebx
call fcn.00402ae0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405c19
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040258c
lea eax, [ebp + 0xc]
call fcn.00402568
ret
Function at 0x405de0
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00402568
push esp
push esi
call sub.user32.dll_GetActiveWindow
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.00403c10
test eax, eax
je 0x405e35
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x405e2c
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00402790
mov eax, dword [esp]
push eax
call sub.ole32.dll_CoTaskMemFree
cmp dword [ebx], 0
je 0x405e56
mov eax, dword [ebx]
call fcn.004027bc
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x405e56
mov eax, ebx
mov edx, 0x405e68
call fcn.004027c4
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x405ed8
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push ebx
mov edi, edx
mov esi, eax
xor ebx, ebx
mov eax, 0xffffffff
mov ecx, edi
shr ecx, 2
jecxz 0x405f2f
mov edx, dword [esi]
mov bl, al
xor bl, dl
shr eax, 8
xor eax, dword [ebx*4 + 0x40d770]
mov bl, al
xor bl, dh
shr eax, 8
xor eax, dword [ebx*4 + 0x40d770]
shr edx, 0x10
mov bl, al
xor bl, dl
shr eax, 8
xor eax, dword [ebx*4 + 0x40d770]
mov bl, al
xor bl, dh
shr eax, 8
xor eax, dword [ebx*4 + 0x40d770]
add esi, 4
loop 0x405eed
mov ecx, edi
and ecx, 3
jecxz 0x405f47
mov bl, al
xor bl, byte [esi]
shr eax, 8
inc esi
xor eax, dword [ebx*4 + 0x40d770]
loop 0x405f36
xor eax, 0xffffffff
pop ebx
pop edi
pop esi
ret
Function at 0x407088
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4071d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00402568
xor eax, eax
mov dword [ebp - 0xc], eax
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
call sub.advapi32.dll_CryptAcquireContextA
test eax, eax
je 0x4071bf
xor edx, edx
push ebp
push 0x4071b8
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8003
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CryptCreateHash
test eax, eax
je 0x407185
push 0
mov eax, esi
call fcn.004027bc
push eax
mov eax, esi
call fcn.004029b4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptHashData
test eax, eax
je 0x407185
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptGetHashParam
test eax, eax
je 0x407185
mov eax, dword [ebp - 0x14]
call fcn.00401238
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptGetHashParam
test eax, eax
je 0x407185
mov esi, dword [ebp - 0x14]
test esi, esi
jbe 0x407185
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
mov edx, 2
call fcn.00407060
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.004027c4
inc dword [ebp - 0x10]
dec esi
jne 0x407162
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4071bf
cmp dword [ebp - 0xc], 0
je 0x4071a3
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00401250
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptDestroyHash
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CryptReleaseContext
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4071dc
lea eax, [ebp - 0x18]
call fcn.00402568
ret
Function at 0x407d08
Capabilities:
Get file version info

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov byte [esp], cl
mov edi, edx
mov ebp, eax
mov byte [esp + 1], 0
mov eax, edi
mov edx, 8
call fcn.00403c04
lea eax, [esp + 0xc]
push eax
mov eax, ebp
call fcn.004029b4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jbe 0x407de6
mov eax, ebx
call fcn.00401238
mov esi, eax
push esi
push ebx
push 0
mov eax, ebp
call fcn.004029b4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x407ddd
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0x407df4
push esi
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x407ddd
mov ebp, dword [esp + 8]
mov byte [esp + 1], 1
cmp byte [esp], 0
je 0x407db6
mov eax, dword [ebp + 8]
shr eax, 0x10
mov word [edi], ax
mov ax, word [ebp + 8]
and ax, 0xffff
mov word [edi + 2], ax
mov eax, dword [ebp + 0xc]
shr eax, 0x10
mov word [edi + 4], ax
mov ax, word [ebp + 0xc]
and ax, 0xffff
mov word [edi + 6], ax
jmp 0x407ddd
mov ax, word [ebp + 8]
mov word [edi], ax
mov eax, dword [ebp + 8]
call fcn.00403bf8
mov word [edi + 2], ax
mov ax, word [ebp + 0xc]
mov word [edi + 4], ax
mov eax, dword [ebp + 0xc]
call fcn.00403bf8
mov word [edi + 6], ax
mov edx, ebx
mov eax, esi
call fcn.00401250
mov al, byte [esp + 1]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x408b74
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffbc
mov edi, edx
mov esi, eax
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, esi
call fcn.00402c94
push eax
call sub.kernel32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x408c01
push 0
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [esp + 4]
push eax
push 0x40
lea eax, [esp + 0x10]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
cmp word [esp + 4], 0x5a4d
jne 0x408bfb
push 0
push 0
mov eax, dword [esp + 0x48]
push eax
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [esp + 4]
push eax
push 0xf8
push edi
push esi
call sub.kernel32.dll_ReadFile_1
cmp dword [edi], 0x4550
jne 0x408bfb
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
add esp, 0x44
pop edi
pop esi
pop ebx
ret

Function at 0x408c0c
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, esi
call fcn.004029b4
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x408c4f
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
cmp edi, eax
jne 0x408c49
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x408c80
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408d34
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, esi
call fcn.004029b4
push eax
call sub.kernel32.dll_CreateFileA_1
mov edi, eax
cmp edi, 0xffffffff
je 0x408d16
push 0
push edi
call sub.kernel32.dll_GetFileSize_1
mov esi, eax
lea eax, [ebp - 8]
mov edx, esi
call fcn.00402ae0
push 0
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
call fcn.00402a08
push eax
push edi
call sub.kernel32.dll_ReadFile_1
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00407088
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00402900
jne 0x408d10
mov bl, 1
push edi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d3b
lea eax, [ebp - 0x10]
call fcn.00402568
lea eax, [ebp - 8]
call fcn.00402568
ret
Function at 0x40902c
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdb8
mov edi, edx
mov esi, eax
xor ebx, ebx
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
mov eax, esi
call fcn.004029b4
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x40914c
push 0
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [esp + 4]
push eax
push 0x40
lea eax, [esp + 0x10]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
cmp word [esp + 4], 0x5a4d
jne 0x409146
push 0
push 0
mov eax, dword [esp + 0x48]
push eax
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [esp + 4]
push eax
push 0xf8
lea eax, [esp + 0x50]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
push 0
push 0
mov eax, dword [esp + 0x48]
push eax
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [esp + 4]
push eax
push 0x108
lea eax, [esp + 0x14c]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
cmp dword [esp + 0x44], 0x4550
jne 0x409146
mov bl, 1
mov ax, word [esp + 0x5c]
sub ax, 0x10b
je 0x4090fd
sub ax, 0x100
je 0x40911e
jmp 0x409142
mov byte [edi + 1], 1
mov ax, word [esp + 0x5a]
test ah, 0x20
je 0x409110
mov byte [edi], 2
jmp 0x409146
test al, 2
je 0x409119
mov byte [edi], 1
jmp 0x409146
mov byte [edi], 0
jmp 0x409146
mov byte [edi + 1], 2
mov ax, word [esp + 0x156]
test ah, 0x20
je 0x409134
mov byte [edi], 2
jmp 0x409146
test al, 2
je 0x40913d
mov byte [edi], 1
jmp 0x409146
mov byte [edi], 0
jmp 0x409146
mov byte [edi + 1], 0
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
add esp, 0x248
pop edi
pop esi
pop ebx
ret

Function at 0x409184
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004029a4
xor eax, eax
push ebp
push 0x409208
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, 0x104
call fcn.00402ae0
push 0x104
mov eax, dword [ebp - 8]
call fcn.004029b4
push eax
mov eax, dword [ebp - 4]
call fcn.004029b4
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
test eax, eax
jle 0x4091e3
mov edx, eax
dec edx
lea eax, [ebp - 8]
call fcn.00402ae0
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004025bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40920f
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040258c
ret
Function at 0x409b54
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004029a4
xor eax, eax
push ebp
push 0x409c07
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.004054d4
test al, al
je 0x409bad
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.004029b4
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
jmp 0x409bcf
push 0
push 0x80
push 1
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.004029b4
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x409bf1
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push edi
push esi
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x409beb
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409c0e
lea eax, [ebp - 4]
call fcn.00402568
ret
Function at 0x409fd8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x409fe0
push ebx
xor eax, eax
push ebp
push 0x40a16f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa
push 0x40a17c
mov eax, dword [0x40d670]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [0x40d670]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
je 0x40a154
push ebx
call sub.kernel32.dll_LockResource
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 5]
mov ecx, 5
call fcn.00403bfc
add dword [ebp - 0xc], 5
xor edx, edx
mov dl, byte [ebp - 5]
lea eax, [ebp - 0x10]
call fcn.00402ae0
xor ecx, ecx
mov cl, byte [ebp - 5]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.00403bfc
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.004014a4
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00405428
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.004027c4
mov eax, dword [ebp - 0x14]
call fcn.004054d4
test al, al
jne 0x40a0cb
push 0x30
push 0x40a180
push 0x40a190
push dword [ebp - 0x10]
push 0x40a1a0
push 0x40a1ac
push 0x40a1d0
push 0x40a1dc
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.0040287c
mov eax, dword [ebp - 0x1c]
call fcn.004029b4
push eax
push 0
call sub.user32.dll_MessageBoxA
push 0
call sub.kernel32.dll_ExitProcess_1
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.004014a4
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00405428
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x10]
call fcn.004027c4
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.00408c58
test al, al
jne 0x40a147
cmp dword [ebp - 4], 0
je 0x40a147
push 0x30
push 0x40a180
push 0x40a1a0
push dword [ebp - 0x10]
push 0x40a1a0
push 0x40a214
push 0x40a1d0
push 0x40a22c
lea eax, [ebp - 0x28]
mov edx, 6
call fcn.0040287c
mov eax, dword [ebp - 0x28]
call fcn.004029b4
push eax
push 0
call sub.user32.dll_MessageBoxA
push 0
call sub.kernel32.dll_ExitProcess_1
mov eax, ebx
call fcn.00403c0c
push ebx
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a176
lea eax, [ebp - 0x28]
mov edx, 7
call fcn.0040258c
ret
Function at 0x40a25c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
lea eax, [ebp - 0x17]
mov edx, dword [0x407540]
call fcn.00402d14
xor eax, eax
push ebp
push 0x40a375
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa
push 0x40a384
mov eax, dword [0x40d670]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [0x40d670]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
je 0x40a359
push ebx
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x17]
mov ecx, 0xb
call fcn.00403bfc
add dword [ebp - 8], 0xb
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00402754
mov eax, dword [ebp - 0xc]
call fcn.004027bc
inc eax
add dword [ebp - 8], eax
call fcn.004060d0
mov word [ebp - 2], ax
mov al, byte [ebp - 0x16]
sub al, 1
jb 0x40a2f3
je 0x40a2fd
dec al
je 0x40a307
jmp 0x40a311
mov al, byte [ebp - 2]
cmp al, byte [ebp - 0x17]
je 0x40a311
jmp 0x40a324
mov al, byte [ebp - 2]
cmp al, byte [ebp - 0x17]
jae 0x40a311
jmp 0x40a324
mov al, byte [ebp - 2]
cmp al, byte [ebp - 0x17]
ja 0x40a311
jmp 0x40a324
mov al, byte [ebp - 0x15]
mov edx, eax
sub dl, 2
jb 0x40a31f
je 0x40a359
jmp 0x40a324
cmp al, byte [ebp - 1]
je 0x40a359
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
push eax
push 0x40a388
mov eax, dword [ebp - 0xc]
call fcn.004029b4
push eax
push 0
call sub.user32.dll_MessageBoxA
cmp eax, 6
je 0x40a359
push 0
call sub.kernel32.dll_ExitProcess_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a37c
lea eax, [ebp - 0x17]
mov edx, dword [0x407540]
call fcn.00402dd8
ret

Function at 0x40a390
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, edi
call fcn.004029b4
push eax
call sub.kernel32.dll_CreateFileA_1
mov edi, eax
cmp edi, 0xffffffff
je 0x40a466
push 0
push 0
push 0
push 2
push 0
push edi
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40a407
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x40a466
mov al, byte [ebp + 8]
sub al, 1
jb 0x40a412
je 0x40a431
jmp 0x40a44e
test esi, esi
jl 0x40a44e
inc esi
push dword [ebx + 4]
push dword [ebx]
mov eax, dword [ebp - 8]
call fcn.00405c7c
mov dword [ebx], eax
mov dword [ebx + 4], edx
add ebx, 8
dec esi
jne 0x40a417
jmp 0x40a44e
test esi, esi
jl 0x40a44e
inc esi
push dword [ebx + 4]
push dword [ebx]
mov eax, dword [ebp - 8]
call fcn.00405d34
mov dword [ebx], eax
mov dword [ebx + 4], edx
add ebx, 8
dec esi
jne 0x40a436
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
push edi
call sub.kernel32.dll_CloseHandle_1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x40a480
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff14
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov esi, edx
lea edi, [ebp - 0xec]
push ecx
mov ecx, 0x33
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, eax
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ecx
xor eax, eax
push ebp
push 0x40a5d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_SuspendThread
lea eax, [ebp - 0xec]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GetThreadContext
xor eax, eax
mov al, byte [0x40dcc5]
cmp eax, 7
ja case.default.0x40a4e6
jmp dword [eax*4 + 0x40a4ed]
mov ebx, dword [ebp - 0x3c]
jmp case.default.0x40a4e6
mov ebx, dword [ebp - 0x40]
jmp case.default.0x40a4e6
mov ebx, dword [ebp - 0x44]
jmp case.default.0x40a4e6
mov ebx, dword [ebp - 0x48]
jmp case.default.0x40a4e6
mov ebx, dword [ebp - 0x28]
jmp case.default.0x40a4e6
mov ebx, dword [ebp - 0x38]
jmp case.default.0x40a4e6
mov ebx, dword [ebp - 0x4c]
jmp case.default.0x40a4e6
mov ebx, dword [ebp - 0x50]
cmp byte [0x40dccf], 1
jne 0x40a571
lea eax, [ebp - 8]
mov edx, 0x64
call fcn.00402cb0
lea eax, [ebp - 4]
push eax
push 0xc8
mov eax, dword [ebp - 8]
call fcn.00402c94
push eax
push ebx
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_ReadProcessMemory
mov eax, esi
mov edx, dword [ebp - 8]
call fcn.004027a8
jmp 0x40a5b3
lea eax, [ebp - 0xc]
mov edx, 0x64
call fcn.00402ae0
lea eax, [ebp - 4]
push eax
push 0x64
lea eax, [ebp - 0xc]
call fcn.00402a08
push eax
push ebx
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_ReadProcessMemory
mov eax, dword [ebp - 0xc]
call fcn.004029b4
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00402754
mov eax, esi
mov edx, dword [ebp - 0x10]
call fcn.004025bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a5dd
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040258c
lea eax, [ebp - 8]
call fcn.00402b74
ret

Function at 0x40a90c
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, eax
xor ebx, ebx
mov eax, ebp
call fcn.00403408
mov esi, eax
test esi, esi
jl 0x40a946
inc esi
xor edi, edi
push 0
mov eax, dword [ebp + edi*4]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
inc edi
dec esi
jne 0x40a924
mov eax, ebp
call fcn.00403400
test eax, eax
jle 0x40a95d
mov eax, ebp
call fcn.00403400
cmp edi, eax
sete bl
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40a9a4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004029a4
xor eax, eax
push ebp
push 0x40aa28
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
mov eax, dword [ebp - 4]
call fcn.004029b4
push eax
push 0
call sub.kernel32.dll_FindResourceA
mov ebx, eax
push ebx
push 0
call sub.kernel32.dll_SizeofResource
mov esi, eax
push ebx
push 0
call sub.kernel32.dll_LoadResource
mov ebx, eax
push ebx
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push esi
push 0
call sub.gdi32.dll_ExtCreateRegion
mov esi, eax
mov eax, ebx
call fcn.00403c0c
push ebx
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aa2f
lea eax, [ebp - 4]
call fcn.00402568
ret