joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001300
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push 0x40
push 0x1000803c
push 0x10008138
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x10001320
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push 0x40
push 0x1000803c
push 0x10008144
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x10001340
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push 0x40
push 0x1000803c
push 0x10008150
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x10001360
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push 0x40
push 0x1000803c
push 0x1000815c
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x10001380
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push 0x40
push 0x1000803c
push 0x10008168
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x100013a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push 0x40
push 0x1000803c
push 0x10008170
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x100013c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push 0
push 0x80
push 4
push 0
push 1
push 0x80000000
push str.C:ProgramData3.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push 0x40
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea ecx, [ebp - 4]
push 0
push ecx
push edi
push eax
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 8]
call eax
popal
nop
nop
nop
nop
nop
nop
Function at 0x4087d9
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x41f0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
xor edi, edi
mov dword [ebp - 0x218], 0x104
inc edi
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x21c], 4
cmp dword [0x41f514], edi
jne 0x408a22
test esi, esi
je 0x408a22
lea eax, [ebp - 0x214]
mov edx, 0x402a50
push eax
push 0x20019
push ecx
mov ecx, 0x80000001
call fcn.00405576
test eax, eax
jne 0x408882
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push eax
push ebx
push ebx
push 0x402a88
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x408a0e
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x214], ebx
lea eax, [ebp - 0x210]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x408a0e
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4088a5
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x212], 0x5c
je 0x4088e4
push 0xffffffffffffffff
push 0x40261c
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcsncat_s]
add esp, 0x10
cmp eax, 0x50
je 0x408a0e
mov edx, dword [ebp - 0x218]
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call fcn.00408bce
test eax, eax
js 0x408a0e
mov edx, dword [ebp - 0x218]
mov ecx, esi
push 0x402aa8
call fcn.00408b7a
test eax, eax
js 0x408a0e
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40892c
mov edi, ebx
jmp 0x408a0e
mov edx, dword [ebp - 0x218]
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call fcn.00408bce
test eax, eax
js 0x408a0e
mov edx, dword [ebp - 0x218]
mov ecx, esi
push 0x402af0
call fcn.00408b7a
test eax, eax
js 0x408a0e
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408925
mov edx, dword [ebp - 0x218]
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call fcn.00408bce
test eax, eax
js 0x408a0e
mov edx, dword [ebp - 0x218]
mov ecx, esi
push 0x402b30
call fcn.00408b7a
test eax, eax
js 0x408a0e
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408925
lea eax, [ebp - 0x214]
mov edx, 0x402b70
push eax
push 0x20019
push ecx
mov ecx, 0x80000001
call fcn.00405576
test eax, eax
jne 0x408a0e
lea eax, [ebp - 0x218]
push eax
push esi
push ebx
push ebx
push 0x402bd4
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4089fc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408925
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x214], ebx
cmp dword [ebp - 0x214], ebx
je 0x408a22
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d020
leave
ret 8
Function at 0x40c860
Capabilities:
Delete file
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x41f0e4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push 0x80
push 2
mov ebx, ecx
mov dword [ebp - 0x23c], edi
push ecx
mov dword [ebp - 0x22c], ebx
call fcn.00405946
pop ecx
push eax
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40ca4f
mov eax, 0xfeff
mov ecx, ebx
mov word [ebp - 0x228], ax
mov eax, dword [0x402c14]
mov dword [ebp - 0x18], eax
mov ax, word [0x402c18]
mov word [ebp - 0x14], ax
mov eax, dword [0x402c1c]
mov dword [ebp - 0x10], eax
mov ax, word [0x402c20]
mov word [ebp - 0xc], ax
call fcn.0040f19b
push esi
push esi
push esi
push edi
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x220], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 0x224]
push eax
push 2
lea eax, [ebp - 0x228]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, esi
cmp dword [ebp - 0x230], ebx
jbe 0x40ca48
mov ecx, dword [ebp - 0x22c]
push ebx
call fcn.0040f426
test al, 4
jne 0x40ca3b
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x220]
push eax
push 2
push ebx
call fcn.0040f304
mov ecx, eax
test ecx, ecx
je 0x40ca3b
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x40ca3b
push eax
push ecx
mov edx, 0x100
lea ecx, [ebp - 0x21c]
call fcn.0040ebd4
mov eax, dword [ebp - 0x220]
cmp eax, 0xff
jbe 0x40c98d
mov eax, 0x1fe
jmp 0x40c99a
add eax, eax
cmp eax, 0x200
jae 0x40ca79
xor ecx, ecx
mov word [ebp + eax - 0x21c], cx
lea eax, [ebp - 0x238]
mov ecx, dword [ebp - 0x22c]
push eax
push 3
push ebx
call fcn.0040f304
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x224]
push esi
push eax
mov eax, dword [ebp - 0x220]
add eax, eax
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40ca4b
push esi
lea eax, [ebp - 0x224]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40ca4b
mov ecx, dword [ebp - 0x234]
test ecx, ecx
je 0x40ca22
push esi
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebp - 0x238]
add eax, eax
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40ca4b
push esi
lea eax, [ebp - 0x224]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40ca4b
inc ebx
cmp ebx, dword [ebp - 0x230]
jb 0x40c926
xor esi, esi
inc esi
test edi, edi
je 0x40ca66
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x40ca66
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d020
leave
ret 4
call fcn.0041d33e
int3
Function at 0x40fac5
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
sub eax, 0x2b
je 0x40fc25
sub eax, 1
je 0x40fc0a
sub eax, 0x22
jne 0x40fc3f
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebx + 0xc]
jne 0x40fc3f
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
cmp eax, 0xffffff9b
ja 0x40fb96
je 0x40fb87
cmp eax, 0xffffff64
je 0x40fb7c
cmp eax, 0xffffff65
je 0x40fb4b
cmp eax, 0xffffff8e
je 0x40fba9
cmp eax, 0xffffff94
jne 0x40fc3f
mov eax, dword [ebx]
push dword [ecx + 0x10]
mov esi, dword [eax + 0x38]
mov ecx, esi
call dword [0x420468]
mov ecx, ebx
call esi
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
jmp 0x40fc05
mov eax, dword [ebp + 0x14]
push 0x11
mov dword [ebp - 4], edi
mov dword [eax], edi
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
je 0x40fb67
mov dword [ebp - 4], 1
mov eax, dword [ebx]
push dword [ebp - 4]
mov esi, dword [eax + 0x84]
mov eax, dword [ebp + 0x10]
movzx eax, word [eax + 0xc]
push eax
jmp 0x40fbf5
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
jmp 0x40fc05
push edi
push edi
push 0x14
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x40fb41
cmp eax, 0xfffffffb
je 0x40fbea
cmp eax, 0xfffffffd
je 0x40fbca
cmp eax, 0xfffffffe
jne 0x40fc3f
cmp dword [ebx + 0x3c], edi
jne 0x40fb41
cmp dword [ecx + 0xc], edi
jl 0x40fb41
cmp dword [ecx + 0x10], edi
jl 0x40fb41
push dword [ecx + 0x10]
push dword [ecx + 0xc]
mov ecx, ebx
call fcn.0040fc5e
jmp 0x40fb41
cmp dword [ecx + 0xc], edi
jl 0x40fc3f
cmp dword [ecx + 0x10], edi
jl 0x40fc3f
mov eax, dword [ebx]
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x420468]
mov ecx, ebx
call esi
jmp 0x40fb41
mov eax, dword [ebx]
push dword [ecx + 0x24]
push dword [ecx + 0x20]
mov esi, dword [eax + 0x68]
mov ecx, esi
call dword [0x420468]
mov ecx, ebx
call esi
test eax, eax
je 0x40fc3f
xor edi, edi
inc edi
jmp 0x40fc3f
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebx + 0xc]
jne 0x40fc3f
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0x66
jne 0x40fc3f
mov eax, dword [ebx + 0x28]
add eax, 6
mov dword [ecx + 0x10], eax
jmp 0x40fc35
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebx + 0xc]
jne 0x40fc3f
push dword [ebp + 0x10]
call fcn.0040f6dc
mov eax, dword [ebp + 0x14]
xor ecx, ecx
inc ecx
mov edi, ecx
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40fe3b
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi + 0x3c], 0
je 0x40ff43
cmp dword [edi + 0x44], 0
je 0x40ff43
and dword [edi + 0x3c], 0
push ebx
push 0
push 0
push 0xb8
push dword [edi + 0x44]
xor ebx, ebx
inc ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40ff33
push 0
push 0
push 0xe
push dword [edi + 0x44]
call dword [sym.imp.USER32.dll_SendMessageW]
inc eax
mov ecx, edi
push eax
call fcn.0040f388
test eax, eax
je 0x40ff33
mov eax, dword [edi + 0x30]
xor ecx, ecx
push esi
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041cca0
mov esi, eax
mov dword [ebp - 4], esi
pop ecx
test esi, esi
je 0x40ff32
push esi
push dword [edi + 0x30]
push 0xd
push dword [edi + 0x44]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, eax
xor eax, eax
push ecx
push dword [ebp - 4]
mov word [esi + ecx*2], ax
mov eax, dword [edi]
push dword [edi + 0x38]
push dword [edi + 0x34]
mov esi, dword [eax + 0x7c]
mov ecx, esi
call dword [0x420468]
mov ecx, edi
call esi
test eax, eax
jne 0x40ff1c
push dword [ebp - 4]
mov ecx, edi
push dword [edi + 0x38]
push dword [edi + 0x34]
call fcn.0040f2b8
mov eax, dword [edi]
push dword [edi + 0x34]
mov esi, dword [eax + 0x80]
mov ecx, esi
call dword [0x420468]
mov ecx, edi
call esi
jmp 0x40ff28
js 0x40ff28
push eax
mov ecx, edi
call fcn.004104b9
xor ebx, ebx
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
pop esi
push 0
push dword [edi + 0x44]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, ebx
pop ebx
jmp 0x40ff46
xor eax, eax
inc eax
pop edi
leave
ret 4
Function at 0x410b15
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
push 3
push ecx
call fcn.00405946
pop ecx
push eax
xor edi, edi
inc edi
push edi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x410c16
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
cmp eax, 2
jae 0x410b73
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x20], ebx
jmp 0x410b97
call fcn.00405946
push ebx
push ebx
push ebx
push 2
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
test eax, eax
jne 0x410b9e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, ebx
or dword [esi], 0xffffffff
mov eax, edi
jmp 0x410c18
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
je 0x410c0f
mov eax, dword [esi + 8]
lea ecx, [eax + edx]
mov dword [esi + 0x10], ecx
mov cl, byte [edx]
cmp cl, 0xff
jne 0x410bda
cmp byte [edx + 1], 0xfe
jne 0x410bda
test al, 1
je 0x410bd1
dec eax
mov dword [esi + 8], eax
mov eax, edi
mov ecx, ebx
add edx, 2
jmp 0x410c01
cmp cl, 0xfe
jne 0x410be5
cmp byte [edx + 1], 0xff
je 0x410c0f
cmp eax, 3
jb 0x410bfb
cmp cl, 0xef
jne 0x410bfb
cmp byte [edx + 1], 0xbb
jne 0x410bfb
cmp byte [edx + 2], 0xbf
je 0x410c16
mov ecx, edx
mov eax, ebx
mov edx, ebx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], ebx
jmp 0x410b9a
mov ecx, esi
call fcn.00410c25
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x411fe1
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x41f0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x214], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x280]
push 0x44
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
lea edi, [ebp - 0x234]
stosd dword es:[edi], eax
add esp, 0xc
xor ecx, ecx
stosd dword es:[edi], eax
push 2
pop edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea edi, [esi + 0x104]
mov eax, edi
mov dword [ebp - 0x224], edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041cca0
mov ebx, eax
mov dword [ebp - 0x220], ebx
pop ecx
test ebx, ebx
je 0x4121b1
push 0x104
lea eax, [ebp - 0x210]
push eax
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4121a9
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
mov ecx, esi
call fcn.00408ba7
cmp eax, edi
jae 0x4121a9
push esi
mov edx, edi
mov ecx, ebx
call fcn.00408bce
test eax, eax
js 0x4121a9
xor eax, eax
mov edi, eax
push dword [edi + 0x40188c]
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x218], ecx
test ecx, ecx
je 0x412135
mov esi, dword [edi + 0x40188c]
mov ebx, esi
lea edx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, word [ebp - 0x214]
jne 0x4120d9
sub ebx, edx
sar ebx, 1
call fcn.00408ba7
mov ecx, eax
lea edx, [esi + 2]
sub ecx, ebx
xor ebx, ebx
mov dword [ebp - 0x21c], ecx
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x412100
mov ebx, dword [ebp - 0x218]
sub esi, edx
sar esi, 1
push ecx
lea eax, [ebx + esi*2]
push eax
push ebx
call sub.msvcrt.dll_memmove
mov eax, dword [ebp - 0x21c]
add esp, 0xc
xor ecx, ecx
mov word [ebx + eax*2], cx
mov ebx, dword [ebp - 0x220]
add edi, 4
cmp edi, 0xc
jb 0x4120b3
push dword [0x40188c]
mov edx, dword [ebp - 0x224]
mov ecx, ebx
call fcn.00408b7a
test eax, eax
js 0x4121a9
call fcn.00405946
mov esi, eax
call fcn.00405946
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x280]
push ecx
xor ecx, ecx
push ecx
push ecx
push 0x4000000
push 1
push esi
push eax
push ebx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4121a9
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d020
leave
ret
Function at 0x413fa3
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ecx
push 0x403018
mov edx, 0x403030
mov ecx, 0x80000001
call fcn.00413f37
movzx ecx, ax
test cx, cx
jne 0x414009
push 0x4030a0
mov edx, 0x4030c0
mov ecx, 0x80000002
call fcn.00413f37
cmp ax, 1
jne 0x413fe4
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
jmp 0x413ff8
push 0x40310c
mov edx, 0x403128
mov ecx, 0x80000002
call fcn.00413f37
movzx ecx, ax
test cx, cx
jne 0x414009
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov eax, 0x804
cmp ax, cx
je 0x414029
xor eax, eax
mov edx, 0x404
cmp dx, cx
setne al
dec eax
and eax, 0xfffffffb
add eax, 0x409
pop ecx
ret
Function at 0x4147f3
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 8
pop ebx
mov edi, ecx
push ebx
push 0x4031c0
mov esi, dword [edi + 8]
push esi
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x414852
mov eax, dword [esi + 0xc]
mov dword [edi + 0x114], eax
mov eax, dword [esi + 8]
mov dword [edi + 0x118], eax
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x120], eax
mov dword [edi + 0x110], ebx
mov eax, dword [esi + 0x10]
mov dword [edi + 0x11c], eax
mov dword [edi + 0x128], 1
jmp 0x414928
push ebx
push 0x4031cc
push esi
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x41495b
mov eax, dword [esi + 0xc]
lea edx, [edi + 0x90]
mov dword [edi + 0x114], eax
mov eax, dword [esi + 8]
push 4
pop ebx
mov dword [edi + 0x118], eax
mov dword [edi + 0x110], ebx
mov eax, dword [esi + 0x20]
mov dword [edi + 0x124], eax
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x1c]
add ecx, dword [edi + 8]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
push 0x20
mov dword [edi + 0x11c], eax
pop esi
mov eax, dword [ecx]
add ecx, ebx
mov dword [edx], eax
add edx, ebx
sub esi, 1
jne 0x4148ac
push 0xfffffffffffffff4
pop esi
push 0x1f
pop eax
lea ecx, [edi + 0x10]
mov dword [ebp - 4], eax
sub esi, edi
mov edx, dword [ecx + 0x80]
cmp edx, dword [ecx + 0x84]
jae 0x414901
mov ebx, dword [ecx]
lea eax, [esi + 4]
add eax, ecx
add edx, eax
inc ebx
mov eax, edx
and eax, 3
mov dword [ebp - 8], eax
je 0x4148f1
push 4
pop eax
sub eax, dword [ebp - 8]
add edx, eax
cmp edx, dword [ecx + 0x84]
jb 0x4148d7
mov eax, dword [ebp - 4]
push 4
mov dword [ecx], ebx
pop ebx
add ecx, ebx
sub eax, 1
mov dword [ebp - 4], eax
jne 0x4148c7
mov edx, dword [edi + 0xc]
xor eax, eax
cmp edx, 2
jb 0x414922
lea ecx, [edi + 0x14]
dec edx
add eax, dword [ecx]
add ecx, ebx
sub edx, 1
jne 0x414919
mov dword [edi + 0x120], eax
cmp dword [edi + 0x114], 0xe
ja 0x41495b
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [edi + 0x114]
mov esi, eax
mov ecx, edi
mov dword [edi + 0x12c], esi
call fcn.00414e29
xor ecx, ecx
cmp esi, eax
sete cl
mov eax, ecx
jmp 0x41495d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414ffa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [0x41f804]
test edi, edi
je 0x4150a2
push dword [ebp + 0x10]
mov esi, edx
sar edx, 4
and esi, 0xf
inc edx
movzx ebx, dx
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x415048
mov eax, 0x400
cmp word [ebp + 0x10], ax
je 0x4150a2
push eax
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x4150a2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4150a2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
test ecx, ecx
je 0x4150a2
test esi, esi
je 0x415073
movzx eax, word [ecx]
lea ecx, [ecx + eax*2]
add ecx, 2
sub esi, 1
jne 0x415065
mov ebx, dword [ebp + 8]
movzx edi, word [ecx]
test ebx, ebx
je 0x41509e
mov eax, dword [ebp + 0xc]
dec eax
cmp edi, eax
jl 0x415087
mov edi, eax
lea esi, [edi + edi]
add ecx, 2
push esi
push ecx
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
mov eax, edi
jmp 0x4150a4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41652e
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x41f0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x110]
xor ebx, ebx
push eax
push 0x20019
push ebx
push 0x4031d8
push 0x80000000
mov esi, ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
test eax, eax
jne 0x4165f3
push edi
lea eax, [ebp - 0x114]
mov dword [ebp - 0x10c], 1
push eax
lea eax, [ebp - 0x108]
mov edi, 0x104
push eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x114], edi
push eax
push ebx
push ebx
push dword [ebp - 0x110]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x4165e2
cmp dword [ebp - 0x10c], 2
lea eax, [ebp - 0x108]
mov byte [ebp - 5], bl
jne 0x4165d1
push edi
push esi
push eax
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb ebx, ebx
inc ebx
jmp 0x4165e2
push eax
mov edx, edi
mov ecx, esi
call fcn.004164ca
xor ebx, ebx
test eax, eax
setns bl
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
jmp 0x4165f5
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d020
leave
ret
Function at 0x416af2
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x138
mov eax, dword [0x41f0e4]
xor eax, esp
mov dword [esp + 0x134], eax
push esi
push edi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x11c
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetVersionExW]
test eax, eax
setne byte [esp + 0x134]
test eax, eax
je 0x416ba3
cmp dword [esp + 0x1c], 6
jb 0x416ba3
lea eax, [esp + 0xc]
xor edi, edi
push eax
push 0x20019
push edi
push 0x4032a8
xor esi, esi
mov dword [esp + 0x1c], edi
push 0x80000002
inc esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x416b9f
lea eax, [esp + 0x14]
mov dword [esp + 0x10], edi
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 4
push eax
push edi
push edi
push 0x40331c
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416b95
mov eax, dword [esp + 0x10]
neg eax
sbb eax, eax
and esi, eax
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x416ba5
xor eax, eax
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
xor ecx, esp
call fcn.0041d020
mov esp, ebp
pop ebp
ret