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

Disassembly:
sub esp, 0x804
mov eax, dword [0x42f370]
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.004145e0
mov edx, dword [esp + 0x814]
lea ecx, [esp + 0x818]
push ecx
push edx
lea eax, [esp + 0x14]
push 0x7ff
push eax
call fcn.00412dea
lea eax, [esp + 0x1c]
add esp, 0x1c
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c473
sub eax, edx
cmp byte [esp + eax - 1], 0xa
je 0x40c4a5
push edi
lea edi, [esp + 4]
add edi, 0xffffffff
lea ecx, [ecx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40c490
mov cx, word [0x42753c]
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.004110f4
add esp, 0x804
ret

Function at 0x40c4d0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1004
call fcn.0041c300
mov eax, dword [0x42f370]
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.004145e0
mov edx, dword [esp + 0x1014]
lea ecx, [esp + 0x1018]
push ecx
push edx
lea eax, [esp + 0x14]
push 0x7ff
push eax
call fcn.00412bf6
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 0x40c530
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 - 2], 0xa
je 0x40c565
push edi
lea edi, [esp + 4]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40c550
mov ecx, dword [0x427540]
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.004110f4
add esp, 0x1004
ret

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

Disassembly:
sub esp, 0x804
mov eax, dword [0x42f370]
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.004145e0
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.0041252d
add esp, 8
test eax, eax
je 0x40c5e5
mov word [eax], 0
push 0x427544
lea eax, [esp + 4]
push eax
push 0x4258b8
push 0x104
push 0x431768
call fcn.004110d8
add esp, 0x14
push 0x431768
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c63a
push eax
push 0x431768
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40c63a
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.004110f4
add esp, 0x804
ret
mov ecx, dword [esp + 0x800]
xor ecx, esp
mov eax, 1
call fcn.004110f4
add esp, 0x804
ret
Function at 0x40c660
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x42f370]
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.004145e0
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 0x40c766
push esi
push edi
push 0x427544
lea edx, [esp + 0xc]
push edx
push 0x4258b8
push 0x104
push 0x431970
call fcn.004110d8
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x14
push 0x431970
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jne 0x40c6ef
push 0
push 0x431970
call edi
test eax, eax
je 0x40c731
push 0x427550
push 0x104
push 0x431970
call fcn.00412e05
push 0x4321c0
push 0x104
push 0x431970
call fcn.00412e05
add esp, 0x18
push 0x431970
call esi
test eax, eax
jne 0x40c74a
push eax
push 0x431970
call edi
test eax, eax
jne 0x40c74a
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004110f4
add esp, 0x20c
ret
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004110f4
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor ecx, esp
xor eax, eax
call fcn.004110f4
add esp, 0x20c
ret

Function at 0x40c7f0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x804
mov eax, dword [0x42f370]
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.004145e0
mov edx, dword [esp + 0x814]
lea ecx, [esp + 0x818]
push ecx
push edx
lea eax, [esp + 0x14]
push 0x7ff
push eax
call fcn.00412dea
lea eax, [esp + 0x1c]
add esp, 0x1c
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c843
sub eax, edx
cmp byte [esp + eax - 1], 0xa
je 0x40c875
push edi
lea edi, [esp + 4]
add edi, 0xffffffff
lea ecx, [ecx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40c860
mov cx, word [0x42753c]
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.00411846
int3
Function at 0x40c900
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x288
mov eax, dword [0x42f370]
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 0x40c961
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 0x40c961
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40c968
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40ca99
push 0x260
xor esi, esi
lea eax, [esp + 0x30]
push esi
push eax
call fcn.004145e0
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.00408770
push 0x5c
push ebx
call fcn.0041252d
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x40c9b3
mov esi, ebx
jmp 0x40c9b6
add esi, 2
push str.Mixin.SFX
push esi
call fcn.0041285c
add esp, 8
test eax, eax
jne 0x40ca11
push esi
lea eax, [esp + 0x34]
push 0x104
push eax
call fcn.00411bf4
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 0x40c961
cmp dword [esp + 0x10], 0x264
jne 0x40c961
mov esi, 0x100000
cmp edi, esi
jae 0x40ca1c
mov esi, edi
push esi
call fcn.00410f8e
add esp, 4
xor ebp, ebp
test edi, edi
mov ebx, eax
jbe 0x40ca89
mov eax, edi
sub eax, ebp
cmp esi, eax
jbe 0x40ca37
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 0x40cac1
cmp dword [esp + 0x10], esi
jne 0x40cac1
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 0x40cab2
cmp dword [esp + 0x18], esi
jne 0x40cab2
add ebp, esi
cmp ebp, edi
jb 0x40ca2d
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.004110f4
add esp, 0x288
ret
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40ca99
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40ca99

Function at 0x40cb20
Capabilities:
Check mutex on windows

Disassembly:
push str.MXTERM
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x40cb43
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x40cb3d
xor eax, eax
ret
Function at 0x40cb60
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 0x40cb82
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40cb8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40cbd6
xor eax, eax
lea ecx, [esp]
mov word [esp], 0
mov dword [esp + 2], eax
mov word [esp + 6], ax
call fcn.0040cdb0
mov ax, word [esp]
cmp ax, 3
jne 0x40cbd4
mov ax, word [esp + 2]
cmp ax, 2
jne 0x40cbdf
mov ax, word [esp + 4]
cmp ax, 0x2a
jne 0x40cbdf
cmp word [esp + 6], 2
jae 0x40cbd6
xor eax, eax
add esp, 0xc
ret
jbe 0x40cbe1
mov eax, 1
add esp, 0xc
ret
ja 0x40cbd6
xor eax, eax
add esp, 0xc
ret

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

Disassembly:
sub esp, 0x108
mov eax, dword [0x42f370]
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 0x40cc7b
sub eax, 1
jne 0x40ccc2
push 0x103
push eax
mov byte [esp + 0xc], al
lea eax, [esp + 0xd]
push eax
call fcn.004145e0
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x12c
call fcn.0040cbf0
push str.Agent
lea edx, [esp + 0x20]
push edx
push str._s_s
push esi
call fcn.00411287
add esp, 0x28
mov eax, esi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004110f4
add esp, 0x108
ret
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call fcn.004145e0
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 0x40ccc2
push 0x4275f8
lea edx, [esp + 8]
push edx
push str._s_s
push esi
call fcn.00411287
add esp, 0x10
mov ecx, dword [esp + 0x108]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004110f4
add esp, 0x108
ret

Function at 0x40cce0
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x40cda7
test esi, esi
je 0x40cda7
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 0x40cd1b
pop edi
pop ebp
add esp, 8
ret
lea ecx, [edi + 1]
push ebx
push ecx
call fcn.00410f8e
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 0x40cd4d
push ebx
call fcn.00410f70
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 0x427550
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 0x40cd95
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.00410f70
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 0x40d3e0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, ebx
call fcn.0040cef0
test eax, eax
jl 0x40d61a
mov edx, dword [ebx + 0xf0]
add edx, edx
push esi
add edx, edx
xor esi, esi
test edx, edx
push edi
jle 0x40d44d
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 0x40d410
pop ebp
mov edx, 1
cmp dword [ebx + 0xf0], edx
jle 0x40d616
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 + 0x42a778]
and edi, 0xff
xor esi, dword [edi*4 + 0x42af78]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x42b378]
movzx ecx, byte [eax]
mov ecx, dword [ecx*4 + str.ccccwwww]
movzx edi, byte [eax + 3]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x42ab78]
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 + 0x42a778]
and edi, 0xff
xor esi, dword [edi*4 + 0x42af78]
movzx edi, byte [eax + 4]
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
xor esi, dword [edi*4 + 0x42ab78]
movzx edi, byte [eax + 7]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x42b378]
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 + 0x42a778]
and edi, 0xff
xor esi, dword [edi*4 + 0x42af78]
movzx edi, byte [eax + 8]
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
xor esi, dword [edi*4 + 0x42ab78]
movzx edi, byte [eax + 0xb]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x42b378]
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 + 0x42a778]
and edi, 0xff
xor esi, dword [edi*4 + 0x42af78]
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 + 0x42ab78]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x42b378]
add edx, 1
mov dword [eax + 0xa], esi
cmp edx, dword [ebx + 0xf0]
jl 0x40d461
pop edi
xor eax, eax
pop esi
ret
Function at 0x40ead0
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 0x40eb72
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 0x40eb07
mov ebx, dword [esp + 0x120]
mov ecx, ebx
sub ecx, edx
je 0x40ebe7
mov ecx, ebx
and ecx, 7
add eax, ecx
add ecx, 0xffffffff
xor edi, edi
xor edx, edx
cmp ecx, 7
ja case.default.0x40eb8b
jmp dword [ecx*4 + 0x40ec90]
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 0x40ec10
mov edx, dword [ebp + ecx*4]
sub edx, 0x61c88647
mov dword [ebp + ecx*4 + 4], edx
add ecx, 1
cmp ecx, 0x12
jl 0x40ec10
cmp eax, 0x12
jge 0x40ec30
mov eax, 0x12
lea ecx, [eax + eax*2]
xor eax, eax
xor esi, esi
xor ebx, ebx
xor edi, edi
test ecx, ecx
jle 0x40ec85
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 0x40ec73
xor esi, esi
add eax, 1
cmp eax, dword [esp + 0x14]
jl 0x40ec7e
xor eax, eax
sub dword [esp + 0x10], 1
jne 0x40ec43
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x4110f4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f370]
jne 0x4110fe
repz ret
jmp fcn.00415e0f
Function at 0x417c8d
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 + 0x42fb78]
je 0x417ca8
inc edi
cmp edi, 0x17
jb 0x417c99
cmp edi, 0x17
jae 0x417e28
push ebp
push 3
call fcn.0041e2ec
cmp eax, 1
pop ecx
je 0x417df4
push 3
call fcn.0041e2ec
test eax, eax
pop ecx
jne 0x417cdc
cmp dword [0x42f350], 1
je 0x417df4
cmp ebx, 0xfc
je 0x417e27
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x430de0
push ebp
call fcn.00415f13
add esp, 0xc
test eax, eax
je 0x417d12
push esi
push esi
push esi
push esi
push esi
call fcn.00411eda
add esp, 0x14
push 0x104
mov esi, 0x430df9
push esi
push 0
mov byte [0x430efd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x417d56
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00415f13
add esp, 0xc
test eax, eax
je 0x417d56
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00411eda
add esp, 0x14
push esi
call fcn.00413270
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x417d9b
push esi
call fcn.00413270
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4310f4
push 0x42447c
sub ecx, eax
push ecx
push eax
call fcn.0041b966
add esp, 0x14
test eax, eax
je 0x417d9b
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00411eda
add esp, 0x14
jmp 0x417d9d
xor esi, esi
push 0x424478
push ebx
push ebp
call fcn.0041b8a5
add esp, 0xc
test eax, eax
je 0x417dbd
push esi
push esi
push esi
push esi
push esi
call fcn.00411eda
add esp, 0x14
push dword [edi*8 + 0x42fb7c]
push ebx
push ebp
call fcn.0041b8a5
add esp, 0xc
test eax, eax
je 0x417ddf
push esi
push esi
push esi
push esi
push esi
call fcn.00411eda
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041e12f
add esp, 0xc
jmp 0x417e27
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x417e27
cmp ebp, 0xffffffff
je 0x417e27
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x42fb7c]
push dword [esi]
call fcn.00413270
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 0x41e12f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00417336
xor ebx, ebx
cmp dword [0x4314ec], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41e205
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41e2e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42528c
push edi
call esi
cmp eax, ebx
je 0x41e2e5
push eax
call fcn.004172c8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4314ec], eax
call esi
push eax
call fcn.004172c8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4314f0], eax
call esi
push eax
call fcn.004172c8
mov dword [0x4314f4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041165f
test eax, eax
pop ecx
pop ecx
je 0x41e1d3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00411eda
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41e205
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004172c8
cmp eax, ebx
pop ecx
mov dword [0x4314fc], eax
je 0x41e205
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004172c8
pop ecx
mov dword [0x4314f8], eax
mov eax, dword [0x4314f8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41e28a
cmp dword [0x4314fc], ecx
je 0x41e28a
push eax
call fcn.0041733f
push dword [0x4314fc]
mov esi, eax
call fcn.0041733f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41e28a
cmp edi, ebx
je 0x41e28a
call esi
cmp eax, ebx
je 0x41e257
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41e257
test byte [ebp - 0x18], 1
jne 0x41e28a
lea eax, [ebp - 0x10]
push eax
call fcn.00411696
test eax, eax
pop ecx
je 0x41e272
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00411eda
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41e281
or dword [ebp + 0x10], 0x200000
jmp 0x41e2c5
or dword [ebp + 0x10], 0x40000
jmp 0x41e2c5
mov eax, dword [0x4314f0]
cmp eax, dword [ebp - 8]
je 0x41e2c5
push eax
call fcn.0041733f
cmp eax, ebx
pop ecx
je 0x41e2c5
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41e2c5
mov eax, dword [0x4314f4]
cmp eax, dword [ebp - 8]
je 0x41e2c5
push eax
call fcn.0041733f
cmp eax, ebx
pop ecx
je 0x41e2c5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4314ec]
call fcn.0041733f
cmp eax, ebx
pop ecx
je 0x41e2e5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41e2e7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4237d0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041c396
and dword [ebp - 4], 0
cmp dword [0x43be50], 0
mov ebx, eax
jne 0x423881
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x423932
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x423932
push eax
call fcn.0041c324
mov dword [esp], 0x42f074
push edi
mov dword [0x43be50], eax
call esi
push eax
call fcn.0041c324
mov dword [esp], 0x42f060
push edi
mov dword [0x43be54], eax
call esi
push eax
call fcn.0041c324
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43be58], eax
call esi
push eax
call fcn.0041c324
pop ecx
mov dword [0x43be60], eax
test eax, eax
je 0x423881
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041c324
pop ecx
mov dword [0x43be5c], eax
mov eax, dword [0x43be5c]
cmp eax, ebx
je 0x4238d9
cmp dword [0x43be60], ebx
je 0x4238d9
push eax
call fcn.0041c39f
push dword [0x43be60]
mov esi, eax
call fcn.0041c39f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4238d9
test edi, edi
je 0x4238d9
call esi
test eax, eax
je 0x4238d0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4238d0
test byte [ebp - 0xc], 1
jne 0x4238d9
or dword [ebp + 0x10], 0x200000
jmp 0x423912
mov eax, dword [0x43be54]
cmp eax, ebx
je 0x423912
push eax
call fcn.0041c39f
pop ecx
test eax, eax
je 0x423912
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x423912
mov eax, dword [0x43be58]
cmp eax, ebx
je 0x423912
push eax
call fcn.0041c39f
pop ecx
test eax, eax
je 0x423912
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43be50]
call fcn.0041c39f
pop ecx
test eax, eax
je 0x423932
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x423934
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43b651
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43b3c1
and edx, edx
and edx, edx
or edi, edi
call fcn.0043b6a0
sub edi, 0xb00e732e
sub edx, 0x4333c3a6
add edi, edi
xor dword [ecx], eax
add edi, edi
mov edi, edi
or edi, edi
inc ecx
add edx, edx
or edi, edi
cmp ecx, esi
jne fcn.0043b651
sub edi, 0x7f0757d1
add edi, 0xc4c014b9
mov edi, edx
ret