joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b840
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x804
mov eax, dword [0x42c2f0]
xor eax, esp
mov dword [esp + 0x800], eax
push 0x7ff
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.00412200
mov edx, dword [esp + 0x814]
lea ecx, [esp + 0x818]
push ecx
push edx
lea eax, [esp + 0x14]
push 0x7ff
push eax
call fcn.0041161b
lea eax, [esp + 0x1c]
add esp, 0x1c
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40b893
sub eax, edx
cmp byte [esp + eax - 1], 0xa
je 0x40b8c5
push edi
lea edi, [esp + 4]
add edi, 0xffffffff
lea ecx, [ecx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40b8b0
mov cx, word [0x4263dc]
mov word [edi], cx
pop edi
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.0040fbc6
add esp, 0x804
ret

Function at 0x40b8f0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1004
call fcn.00419e40
mov eax, dword [0x42c2f0]
xor eax, esp
mov dword [esp + 0x1000], eax
push 0xffe
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call fcn.00412200
mov edx, dword [esp + 0x1014]
lea ecx, [esp + 0x1018]
push ecx
push edx
lea eax, [esp + 0x14]
push 0x7ff
push eax
call fcn.0040fca7
lea eax, [esp + 0x1c]
add esp, 0x1c
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b950
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 - 2], 0xa
je 0x40b985
push edi
lea edi, [esp + 4]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40b970
mov ecx, dword [0x4263e0]
mov dword [edi], ecx
pop edi
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0040fbc6
add esp, 0x1004
ret

Function at 0x40b9b0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
sub esp, 0x804
mov eax, dword [0x42c2f0]
xor eax, esp
mov dword [esp + 0x800], eax
push 0x7fe
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call fcn.00412200
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp]
push 0x5c
push edx
call fcn.00410470
add esp, 8
test eax, eax
je 0x40ba05
mov word [eax], 0
push 0x4263e4
lea eax, [esp + 4]
push eax
push 0x423af4
push 0x104
push 0x42e6e8
call fcn.004107e1
add esp, 0x14
push 0x42e6e8
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ba5a
push eax
push 0x42e6e8
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40ba5a
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.0040fbc6
add esp, 0x804
ret
mov ecx, dword [esp + 0x800]
xor ecx, esp
mov eax, 1
call fcn.0040fbc6
add esp, 0x804
ret
Function at 0x40ba80
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x42c2f0]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x206
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call fcn.00412200
add esp, 0xc
push 1
push 0x1a
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40bb86
push esi
push edi
push 0x4263e4
lea edx, [esp + 0xc]
push edx
push 0x423af4
push 0x104
push 0x42e8f0
call fcn.004107e1
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x14
push 0x42e8f0
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jne 0x40bb0f
push 0
push 0x42e8f0
call edi
test eax, eax
je 0x40bb51
push 0x4263f0
push 0x104
push 0x42e8f0
call fcn.00411636
push 0x42f140
push 0x104
push 0x42e8f0
call fcn.00411636
add esp, 0x18
push 0x42e8f0
call esi
test eax, eax
jne 0x40bb6a
push eax
push 0x42e8f0
call edi
test eax, eax
jne 0x40bb6a
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0040fbc6
add esp, 0x20c
ret
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0040fbc6
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor ecx, esp
xor eax, eax
call fcn.0040fbc6
add esp, 0x20c
ret

Function at 0x40bc10
Capabilities:
Terminate process

Disassembly:
sub esp, 0x804
mov eax, dword [0x42c2f0]
xor eax, esp
mov dword [esp + 0x800], eax
push 0x7ff
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.00412200
mov edx, dword [esp + 0x814]
lea ecx, [esp + 0x818]
push ecx
push edx
lea eax, [esp + 0x14]
push 0x7ff
push eax
call fcn.0041161b
lea eax, [esp + 0x1c]
add esp, 0x1c
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40bc63
sub eax, edx
cmp byte [esp + eax - 1], 0xa
je 0x40bc95
push edi
lea edi, [esp + 4]
add edi, 0xffffffff
lea ecx, [ecx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40bc80
mov cx, word [0x4263dc]
mov word [edi], cx
pop edi
push 0x10
push str.Fatal_error
lea edx, [esp + 8]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.00410ec8
int3
Function at 0x40bd20
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x288
mov eax, dword [0x42c2f0]
xor eax, esp
mov dword [esp + 0x284], eax
push ebx
push ebp
mov ebp, dword [esp + 0x294]
test ebp, ebp
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x1c], ebp
je 0x40bd81
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
je 0x40bd81
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40bd88
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40beb9
push 0x260
xor esi, esi
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00412200
lea ecx, [esp + 0x290]
push ecx
lea edx, [esp + 0x30]
push edx
mov eax, ebx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.00408680
push 0x5c
push ebx
call fcn.00410470
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x40bdd3
mov esi, ebx
jmp 0x40bdd6
add esi, 2
push str.Mixin.SFX
push esi
call fcn.004109e7
add esp, 8
test eax, eax
je 0x40be31
push esi
lea eax, [esp + 0x34]
push 0x104
push eax
call fcn.0040fdf8
add esp, 0xc
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x264
lea edx, [esp + 0x34]
push edx
push ebp
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40bd81
cmp dword [esp + 0x10], 0x264
jne 0x40bd81
mov esi, 0x100000
cmp edi, esi
jae 0x40be3c
mov esi, edi
push esi
call fcn.00410406
add esp, 4
xor ebp, ebp
test edi, edi
mov ebx, eax
jbe 0x40bea9
mov eax, edi
sub eax, ebp
cmp esi, eax
jbe 0x40be57
mov esi, eax
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x14]
push eax
push esi
push ebx
push ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40bee1
cmp dword [esp + 0x10], esi
jne 0x40bee1
mov eax, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x1c]
push edx
push esi
push ebx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40bed2
cmp dword [esp + 0x18], esi
jne 0x40bed2
add ebp, esi
cmp ebp, edi
jb 0x40be4d
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x294]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040fbc6
add esp, 0x288
ret
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40beb9
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40beb9

Function at 0x40bf40
Capabilities:
Check mutex on windows

Disassembly:
push str.MXTERM
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x40bf63
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x40bf5d
xor eax, eax
ret
Function at 0x40bf80
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0xc
push str.IGTERM
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x40bfa2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40bfad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40bff6
xor eax, eax
lea ecx, [esp]
mov word [esp], 0
mov dword [esp + 2], eax
mov word [esp + 6], ax
call fcn.0040c1d0
mov ax, word [esp]
cmp ax, 3
jne 0x40bff4
mov ax, word [esp + 2]
cmp ax, 2
jne 0x40bfff
mov ax, word [esp + 4]
cmp ax, 0x2a
jne 0x40bfff
cmp word [esp + 6], 2
jae 0x40bff6
xor eax, eax
add esp, 0xc
ret
jbe 0x40c001
mov eax, 1
add esp, 0xc
ret
ja 0x40bff6
xor eax, eax
add esp, 0xc
ret

Function at 0x40c010
Capabilities:
Get common file path
Get program files directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x42c2f0]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
sub eax, 0x12c
push esi
mov esi, dword [esp + 0x114]
mov byte [esi], 0
je 0x40c09b
sub eax, 1
jne 0x40c0e2
push 0x103
push eax
mov byte [esp + 0xc], al
lea eax, [esp + 0xd]
push eax
call fcn.00412200
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x12c
call fcn.0040c010
push str.Agent
lea edx, [esp + 0x20]
push edx
push str._s_s
push esi
call fcn.0040fac5
add esp, 0x28
mov eax, esi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0040fbc6
add esp, 0x108
ret
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call fcn.00412200
add esp, 0xc
push 1
push 0x26
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
cmp eax, 1
jne 0x40c0e2
push 0x426498
lea edx, [esp + 8]
push edx
push str._s_s
push esi
call fcn.0040fac5
add esp, 0x10
mov ecx, dword [esp + 0x108]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040fbc6
add esp, 0x108
ret

Function at 0x40c100
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x40c1c7
test esi, esi
je 0x40c1c7
xor eax, eax
mov dword [esi], eax
push edi
mov dword [esi + 4], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x40c13b
pop edi
pop ebp
add esp, 8
ret
lea ecx, [edi + 1]
push ebx
push ecx
call fcn.00410406
mov edx, dword [esp + 0x1c]
add esp, 4
mov ebx, eax
push ebx
push edi
push edx
push ebp
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x40c16d
push ebx
call fcn.0040f9b2
add esp, 4
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 8
ret
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x4263f0
xor ebp, ebp
push ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call sub.VERSION.dll_VerQueryValueW
mov edi, eax
cmp edi, ebp
je 0x40c1b5
mov eax, dword [esp + 0xc]
movzx edx, word [eax + 0xa]
mov cx, word [eax + 8]
mov word [esi], dx
movzx edx, word [eax + 0xe]
mov ax, word [eax + 0xc]
mov word [esi + 2], cx
mov word [esi + 4], dx
mov word [esi + 6], ax
push ebx
call fcn.0040f9b2
add esp, 4
pop ebx
mov eax, edi
pop edi
pop ebp
add esp, 8
ret
xor eax, eax
pop ebp
add esp, 8
ret
Function at 0x40c800
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, ebx
call fcn.0040c310
test eax, eax
jl 0x40ca3a
mov edx, dword [ebx + 0xf0]
add edx, edx
push esi
add edx, edx
xor esi, esi
test edx, edx
push edi
jle 0x40c86d
lea ecx, [ebx + edx*4 + 8]
lea eax, [ebx + 8]
push ebp
lea esp, [esp]
mov ebp, dword [ecx - 8]
mov edi, dword [eax - 8]
mov dword [eax - 8], ebp
mov ebp, dword [ecx - 4]
mov dword [ecx - 8], edi
mov edi, dword [eax - 4]
mov dword [eax - 4], ebp
mov ebp, dword [ecx]
mov dword [ecx - 4], edi
mov edi, dword [eax]
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [eax + 4], ebp
mov dword [ecx + 4], edi
add esi, 4
sub edx, 4
add eax, 0x10
sub ecx, 0x10
cmp esi, edx
jl 0x40c830
pop ebp
mov edx, 1
cmp dword [ebx + 0xf0], edx
jle 0x40ca36
lea eax, [ebx + 2]
mov ecx, dword [eax + 0xe]
movzx edi, byte [eax + 0xf]
mov edi, dword [edi*4 + str.ccccwwww]
add eax, 0x10
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + str.ccccwwww]
and esi, 0xff
mov esi, dword [esi*4 + 0x4278c0]
and edi, 0xff
xor esi, dword [edi*4 + 0x4280c0]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x4284c0]
movzx ecx, byte [eax]
mov ecx, dword [ecx*4 + str.ccccwwww]
movzx edi, byte [eax + 3]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x427cc0]
mov ecx, dword [eax + 2]
mov dword [eax - 2], esi
mov edi, dword [edi*4 + str.ccccwwww]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + str.ccccwwww]
and esi, 0xff
mov esi, dword [esi*4 + 0x4278c0]
and edi, 0xff
xor esi, dword [edi*4 + 0x4280c0]
movzx edi, byte [eax + 4]
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
xor esi, dword [edi*4 + 0x427cc0]
movzx edi, byte [eax + 7]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x4284c0]
mov ecx, dword [eax + 6]
mov dword [eax + 2], esi
mov edi, dword [edi*4 + str.ccccwwww]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + str.ccccwwww]
and esi, 0xff
mov esi, dword [esi*4 + 0x4278c0]
and edi, 0xff
xor esi, dword [edi*4 + 0x4280c0]
movzx edi, byte [eax + 8]
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
xor esi, dword [edi*4 + 0x427cc0]
movzx edi, byte [eax + 0xb]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x4284c0]
mov ecx, dword [eax + 0xa]
mov dword [eax + 6], esi
mov edi, dword [edi*4 + str.ccccwwww]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + str.ccccwwww]
and esi, 0xff
mov esi, dword [esi*4 + 0x4278c0]
and edi, 0xff
xor esi, dword [edi*4 + 0x4280c0]
movzx edi, byte [eax + 0xc]
mov edi, dword [edi*4 + str.ccccwwww]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and edi, 0xff
xor esi, dword [edi*4 + 0x427cc0]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x4284c0]
add edx, 1
mov dword [eax + 0xa], esi
cmp edx, dword [ebx + 0xf0]
jl 0x40c881
pop edi
xor eax, eax
pop esi
ret
Function at 0x40d710
Capabilities:
Encrypt data using rc6

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [esp + 0x114]
push ebp
mov ebp, dword [esp + 0x114]
push esi
lea ecx, [ebx - 8]
xor esi, esi
xor edx, edx
test ecx, ecx
push edi
mov dword [ebp], 8
jl 0x40d7b2
lea edi, [ecx + 8]
shr edi, 3
lea edx, [edi*8]
movzx ecx, byte [eax]
xor ebx, ebx
mov bh, byte [eax + 1]
add eax, 1
add eax, 1
add eax, 1
add eax, 1
add eax, 1
add eax, 1
or ecx, ebx
movzx ebx, byte [eax - 4]
shl ebx, 0x10
or ecx, ebx
movzx ebx, byte [eax - 3]
shl ebx, 0x18
or ecx, ebx
mov dword [esp + esi*4 + 0x18], ecx
movzx ecx, byte [eax - 2]
xor ebx, ebx
mov bh, byte [eax - 1]
add eax, 1
add esi, 1
add eax, 1
add esi, 1
or ecx, ebx
movzx ebx, byte [eax - 2]
shl ebx, 0x10
or ecx, ebx
movzx ebx, byte [eax - 1]
shl ebx, 0x18
or ecx, ebx
sub edi, 1
mov dword [esp + esi*4 + 0x14], ecx
jne 0x40d747
mov ebx, dword [esp + 0x120]
mov ecx, ebx
sub ecx, edx
je 0x40d827
mov ecx, ebx
and ecx, 7
add eax, ecx
add ecx, 0xffffffff
xor edi, edi
xor edx, edx
cmp ecx, 7
ja case.default.0x40d7cb
jmp dword [ecx*4 + 0x40d8d0]
movzx edi, byte [eax - 1]
sub eax, 1
shl edi, 0x18
movzx edx, byte [eax - 1]
sub eax, 1
shl edx, 0x10
or edi, edx
sub eax, 1
xor ecx, ecx
mov ch, byte [eax]
or edi, ecx
movzx edx, byte [eax - 1]
sub eax, 1
or edi, edx
movzx edx, byte [eax - 1]
sub eax, 1
shl edx, 0x18
movzx ecx, byte [eax - 1]
sub eax, 1
shl ecx, 0x10
or edx, ecx
sub eax, 1
xor ecx, ecx
mov ch, byte [eax]
or edx, ecx
movzx eax, byte [eax - 1]
or edx, eax
mov dword [esp + esi*4 + 0x18], edx
mov dword [esp + esi*4 + 0x1c], edi
lea eax, [ebx + 3]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x14], eax
mov dword [ebp + 4], 0xb7e15163
mov ecx, 1
jmp 0x40d850
mov edx, dword [ebp + ecx*4]
sub edx, 0x61c88647
mov dword [ebp + ecx*4 + 4], edx
add ecx, 1
cmp ecx, 0x12
jl 0x40d850
cmp eax, 0x12
jge 0x40d870
mov eax, 0x12
lea ecx, [eax + eax*2]
xor eax, eax
xor esi, esi
xor ebx, ebx
xor edi, edi
test ecx, ecx
jle 0x40d8c5
mov dword [esp + 0x10], ecx
mov edx, dword [esp + eax*4 + 0x18]
lea ecx, [ebx + edi]
add ecx, dword [ebp + esi*4 + 4]
add edx, ebx
rol ecx, 3
mov edi, ecx
mov dword [ebp + esi*4 + 4], ecx
lea ecx, [ebx + edi]
and ecx, 0x1f
add edx, edi
rol edx, cl
add esi, 1
cmp esi, 0x12
mov dword [esp + eax*4 + 0x18], edx
mov ebx, edx
jl 0x40d8b3
xor esi, esi
add eax, 1
cmp eax, dword [esp + 0x14]
jl 0x40d8be
xor eax, eax
sub dword [esp + 0x10], 1
jne 0x40d883
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x40fbc6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42c2f0]
jne 0x40fbd0
repz ret
jmp fcn.00412fce
Function at 0x416d33
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x42cbf0]
je 0x416d4e
inc edi
cmp edi, 0x17
jb 0x416d3f
cmp edi, 0x17
jae 0x416ece
push ebp
push 3
call fcn.0041d2f1
cmp eax, 1
pop ecx
je 0x416e9a
push 3
call fcn.0041d2f1
test eax, eax
pop ecx
jne 0x416d82
cmp dword [0x42c2e0], 1
je 0x416e9a
cmp ebx, 0xfc
je 0x416ecd
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x42dec0
push ebp
call fcn.0041227a
add esp, 0xc
test eax, eax
je 0x416db8
push esi
push esi
push esi
push esi
push esi
call fcn.0040fefc
add esp, 0x14
push 0x104
mov esi, 0x42ded9
push esi
push 0
mov byte [0x42dfdd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x416dfc
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041227a
add esp, 0xc
test eax, eax
je 0x416dfc
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040fefc
add esp, 0x14
push esi
call fcn.00411aa0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x416e41
push esi
call fcn.00411aa0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42e1d4
push 0x421cfc
sub ecx, eax
push ecx
push eax
call fcn.0041c396
add esp, 0x14
test eax, eax
je 0x416e41
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040fefc
add esp, 0x14
jmp 0x416e43
xor esi, esi
push 0x421cf8
push ebx
push ebp
call fcn.0041c2d5
add esp, 0xc
test eax, eax
je 0x416e63
push esi
push esi
push esi
push esi
push esi
call fcn.0040fefc
add esp, 0x14
push dword [edi*8 + 0x42cbf4]
push ebx
push ebp
call fcn.0041c2d5
add esp, 0xc
test eax, eax
je 0x416e85
push esi
push esi
push esi
push esi
push esi
call fcn.0040fefc
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041d134
add esp, 0xc
jmp 0x416ecd
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x416ecd
cmp ebp, 0xffffffff
je 0x416ecd
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x42cbf4]
push dword [esi]
call fcn.00411aa0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x41d134
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00413b30
xor ebx, ebx
cmp dword [0x42e468], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41d20a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41d2ea
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4232e4
push edi
call esi
cmp eax, ebx
je 0x41d2ea
push eax
call fcn.00413ac2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42e468], eax
call esi
push eax
call fcn.00413ac2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42e46c], eax
call esi
push eax
call fcn.00413ac2
mov dword [0x42e470], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00410ce1
test eax, eax
pop ecx
pop ecx
je 0x41d1d8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040fefc
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41d20a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00413ac2
cmp eax, ebx
pop ecx
mov dword [0x42e478], eax
je 0x41d20a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00413ac2
pop ecx
mov dword [0x42e474], eax
mov eax, dword [0x42e474]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41d28f
cmp dword [0x42e478], ecx
je 0x41d28f
push eax
call fcn.00413b39
push dword [0x42e478]
mov esi, eax
call fcn.00413b39
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41d28f
cmp edi, ebx
je 0x41d28f
call esi
cmp eax, ebx
je 0x41d25c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41d25c
test byte [ebp - 0x18], 1
jne 0x41d28f
lea eax, [ebp - 0x10]
push eax
call fcn.00410d18
test eax, eax
pop ecx
je 0x41d277
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040fefc
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41d286
or dword [ebp + 0x10], 0x200000
jmp 0x41d2ca
or dword [ebp + 0x10], 0x40000
jmp 0x41d2ca
mov eax, dword [0x42e46c]
cmp eax, dword [ebp - 8]
je 0x41d2ca
push eax
call fcn.00413b39
cmp eax, ebx
pop ecx
je 0x41d2ca
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41d2ca
mov eax, dword [0x42e470]
cmp eax, dword [ebp - 8]
je 0x41d2ca
push eax
call fcn.00413b39
cmp eax, ebx
pop ecx
je 0x41d2ca
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42e468]
call fcn.00413b39
cmp eax, ebx
pop ecx
je 0x41d2ea
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41d2ec
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ed64
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x40eae0
mov edi, 0xa963d5d2
call fcn.0040ed8d
sub ebx, edi
xor dword [edx], ecx
add edi, ebx
inc edi
add edx, 1
inc edi
mov ebx, edi
cmp edx, eax
jne fcn.0040ed64
add ebx, ebx
ret