joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x20c
mov eax, dword [0x413238]
push ebx
push ebp
push esi
push edi
push 0x410044
push 0x89
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, dword [0x413238]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ebp, 0x4b4
mov eax, 0x410948
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], eax
mov ecx, dword [eax]
mov dword [esp + 0x14], 1
cmp ecx, 1
jl 0x4010f9
push 0x410040
push edi
call fcn.004091b0
mov ebx, eax
lea edx, [esp + 0x24]
mov esi, ebx
sub esi, edi
push esi
push edi
push edx
call fcn.004090b0
lea eax, [esp + 0x30]
mov byte [esp + esi + 0x30], 0
push eax
call fcn.0040909f
lea edi, [ebx + 2]
push 0x410040
push edi
mov dword [ebp + 0x413290], eax
call fcn.004091b0
mov ebx, eax
lea ecx, [esp + 0x3c]
mov esi, ebx
sub esi, edi
push esi
push edi
push ecx
call fcn.004090b0
lea edx, [esp + 0x48]
mov byte [esp + esi + 0x48], 0
push edx
call fcn.0040909f
lea edx, [ebx + 2]
mov dword [ebp + 0x4aa700], eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
add esp, 0x30
mov dword [ebp + 0x45be78], edx
add ebp, 4
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x14]
not ecx
dec ecx
inc eax
mov dword [esp + 0x14], eax
lea edi, [edx + ecx + 2]
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx]
jle 0x40105c
mov eax, ecx
mov ebp, dword [esp + 0x18]
add eax, 4
add ebp, 0x4b4
cmp eax, 0x410b0c
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ebp
jle 0x401049
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
Function at 0x402c10
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x14]
sub esp, 0x214
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
xor esi, esi
test eax, eax
je 0x402c32
push eax
lea eax, [esp + 0x18]
push eax
call ebx
jmp 0x402c37
mov byte [esp + 0x14], 0
mov ecx, dword [esp + 0x228]
mov edx, dword [esp + 0x224]
push ecx
push edx
lea eax, [esp + 0x120]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x230]
add esp, 0x10
cmp eax, 0x80000000
je 0x402c8b
cmp eax, 0x80000001
je 0x402c8b
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
je 0x402c8b
cmp eax, 0x80000003
je 0x402c8b
pop esi
xor eax, eax
pop ebx
add esp, 0x214
ret
lea ecx, [esp + 8]
push edi
push ecx
push 0x20019
lea edx, [esp + 0x124]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [esp + 0x238]
test eax, eax
jne 0x402d2e
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x234]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402d1f
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x18]
push edx
call esi
mov ecx, eax
mov eax, dword [esp + 0x23c]
inc ecx
cmp ecx, eax
jge 0x402d0d
lea edx, [esp + 0x18]
push edx
call esi
inc eax
push eax
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov esi, 1
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x402d36
lea edx, [esp + 0x18]
push edx
push edi
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x214
ret

Function at 0x402d50
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
sub esp, 0x114
lea edx, [esp + 0x10]
push esi
mov esi, dword [esp + 0x12c]
push eax
push ecx
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x12c]
add esp, 0x10
cmp eax, 0x80000000
je 0x402d9e
cmp eax, 0x80000001
je 0x402d9e
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
je 0x402d9e
cmp eax, 0x80000003
jne 0x402dfe
lea ecx, [esp + 4]
lea edx, [esp + 0x14]
push ecx
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402dfe
mov eax, 4
lea ecx, [esp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
lea edx, [esp + 8]
push eax
mov eax, dword [esp + 0x12c]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402df3
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x114
ret
Function at 0x402e10
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
sub esp, 0x10c
lea edx, [esp + 8]
push edi
push eax
push ecx
push str._s_s
push edx
xor edi, edi
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x124]
add esp, 0x10
cmp eax, 0x80000000
je 0x402e63
cmp eax, 0x80000001
je 0x402e63
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
je 0x402e63
cmp eax, 0x80000003
je 0x402e63
xor eax, eax
pop edi
add esp, 0x10c
ret
lea ecx, [esp + 8]
lea edx, [esp + 4]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
lea ecx, [esp + 0x24]
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402ec8
push esi
mov esi, dword [esp + 0x128]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x124]
inc eax
push eax
mov eax, dword [esp + 0xc]
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
jne 0x402ebd
mov edi, 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
add esp, 0x10c
ret

Function at 0x402ee0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
sub esp, 0x110
lea edx, [esp + 0xc]
push esi
push eax
push ecx
push str._s_s
push edx
xor esi, esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x128]
add esp, 0x10
cmp eax, 0x80000000
je 0x402f33
cmp eax, 0x80000001
je 0x402f33
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
je 0x402f33
cmp eax, 0x80000003
je 0x402f33
xor eax, eax
pop esi
add esp, 0x110
ret
lea ecx, [esp + 0xc]
lea edx, [esp + 4]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
lea ecx, [esp + 0x28]
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402f97
mov edx, dword [esp + 0x128]
mov ecx, dword [esp + 0x124]
lea eax, [esp + 8]
push 4
push eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xc]
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x402f8c
mov esi, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x110
ret
Function at 0x4033e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x200
mov ecx, 0x78
xor eax, eax
mov edx, 0x484aa8
push ebx
push ebp
push esi
push edi
mov edi, 0x410948
rep stosd dword es:[edi], eax
mov ecx, 0x78
mov eax, 0x410914
mov edi, 0x4ce338
rep stosd dword es:[edi], eax
mov edi, edx
add edx, 0x4b4
mov ecx, 0x12c
mov eax, str.Not_Found
cmp edx, 0x4a7a54
rep stosd dword es:[edi], eax
jle 0x40340e
mov eax, dword [0x413238]
push 0x410044
push 0x82
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, dword [0x413238]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4034be
xor ebp, ebp
cmp byte [esi], 0x7e
je 0x4034be
push 0x410040
push esi
call fcn.004091b0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4034be
mov edi, ebx
lea edx, [esp + 0x10]
sub edi, esi
push edi
push esi
push edx
call fcn.004090b0
lea eax, [esp + 0x1c]
mov byte [esp + edi + 0x1c], 0
push eax
call fcn.0040909f
lea edx, [ebx + 2]
mov dword [ebp + 0x410948], eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
mov dword [ebp + 0x4ce338], edx
add ebp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [edx + ecx + 2]
test esi, esi
jne 0x40345d
push 0
push str.Bahasa
push str.SETTING
push str.SOFTWARESSGROUPQURAN
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00402d50
add esp, 0x14
mov dword [0x4ce550], eax
neg eax
mov ecx, dword [0x413238]
push 0x410044
sbb eax, eax
and eax, 2
add eax, 0x83
and eax, 0xffff
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edx, dword [0x413238]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4035e3
cmp byte [esi], 0x7e
je 0x4035e3
push 0x410040
push esi
call fcn.004091b0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4035e3
mov edi, ebp
lea eax, [esp + 0x10]
sub edi, esi
push edi
push esi
push eax
call fcn.004090b0
lea ecx, [esp + 0x1c]
mov byte [esp + edi + 0x1c], 0
push ecx
call fcn.0040909f
lea edi, [ebp + 2]
push 0x410040
push edi
mov ebx, eax
call fcn.004091b0
mov ebp, eax
add esp, 0x18
test ebp, ebp
je 0x4035e3
mov esi, ebp
lea edx, [esp + 0x10]
sub esi, edi
push esi
push edi
push edx
call fcn.004090b0
lea eax, [esp + 0x1c]
mov byte [esp + esi + 0x1c], 0
push eax
call fcn.0040909f
lea esi, [ebp + 2]
push 0x410040
push esi
mov edi, eax
call fcn.004091b0
add esp, 0x18
test eax, eax
je 0x4035b6
mov byte [eax], 0
lea eax, [ebx + ebx*2]
add edi, ebx
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
xor eax, eax
lea edx, [edi + ecx*4]
mov edi, esi
or ecx, 0xffffffff
mov dword [edx*4 + 0x4845f0], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esi + ecx + 2]
test esi, esi
jne 0x403524
call section..text
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200
ret
Function at 0x403600
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x200
mov edx, 0x438a08
push ebx
push ebp
push esi
push edi
mov edi, edx
add edx, 0x4b4
mov ecx, 0x12c
mov eax, 0x410914
cmp edx, 0x45b9b4
rep stosd dword es:[edi], eax
jle 0x40360f
mov eax, dword [0x413238]
push 0x410044
push 0x86
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, dword [0x413238]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40370d
cmp byte [esi], 0x7e
je 0x40370d
push 0x410040
push esi
call fcn.004091b0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x40370d
mov edi, ebp
lea edx, [esp + 0x10]
sub edi, esi
push edi
push esi
push edx
call fcn.004090b0
lea eax, [esp + 0x1c]
mov byte [esp + edi + 0x1c], 0
push eax
call fcn.0040909f
add ebp, 2
push 0x410040
push ebp
mov edi, eax
call fcn.004091b0
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x40370d
mov esi, ebx
lea ecx, [esp + 0x10]
sub esi, ebp
push esi
push ebp
push ecx
call fcn.004090b0
lea edx, [esp + 0x1c]
mov byte [esp + esi + 0x1c], 0
push edx
lea esi, [ebx + 2]
call fcn.0040909f
mov ecx, eax
lea eax, [edi + edi*2]
add esp, 0x10
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
lea eax, [edi + edx*4]
mov edi, esi
add ecx, eax
xor eax, eax
mov dword [ecx*4 + 0x438550], esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esi + ecx + 2]
test esi, esi
jne 0x403660
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200
ret
Function at 0x405760
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x454
push edi
push 0x4ce01c
lea eax, [esp + 0x5c]
push str.__s_tajwid.exe_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x10]
add esp, 0xc
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x48]
lea edx, [esp + 4]
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
push eax
lea eax, [esp + 0x78]
mov dword [esp + 0x24], 0x44
push eax
push 0
mov word [esp + 0x5c], 3
mov dword [esp + 0x58], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
add esp, 0x454
ret
Function at 0x405820
Capabilities:
Create process on windows
Create thread

Disassembly:
mov eax, 0x2858
call fcn.00409250
mov eax, dword [0x436cb0]
push ebx
push ebp
push esi
push edi
push str.Stop
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [0x41323c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
push ebx
push ebx
push 0x147
push ecx
call edi
mov edx, dword [0x413288]
push ebx
push ebx
mov esi, eax
push 0x147
push edx
inc esi
call edi
lea ecx, [esi + esi*2]
inc eax
add eax, esi
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea esi, [eax + ecx*4]
shl esi, 2
mov edx, dword [esi + 0x45be74]
push edx
push 0x4ce01c
push str._smp3_s
push 0x436bac
call ebp
mov eax, dword [0x4ce328]
add esp, 0x10
mov dword [0x4ce52c], ebx
push ebx
push ebx
push 0xf0
push eax
call edi
dec eax
mov dword [0x4ce54c], ebx
mov ebx, dword [esi + 0x41328c]
neg eax
sbb eax, eax
inc eax
mov dword [0x4384cc], eax
je 0x405950
mov eax, 0x10624dd3
imul ebx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
push edx
push 0x436bac
push 0x4ce01c
lea edx, [esp + 0x74]
push str.__sp2.exe____s___i_0
push edx
call ebp
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x38]
add esp, 0x14
rep stosd dword es:[edi], eax
mov word [esp + 0x54], ax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x84]
push 0
push edx
push 0
mov dword [esp + 0x4c], 0x44
mov dword [esp + 0x78], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esp + 0x10]
mov dword [0x4ce530], eax
jmp 0x4059e5
mov esi, dword [esi + 0x4aa6fc]
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov ecx, edx
mov eax, 0x10624dd3
shr ecx, 0x1f
add edx, ecx
lea ecx, [esp + 0x68]
push edx
imul ebx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
push 0x436bac
push 0x4ce01c
push str.__sp2.exe____s___i__i
push ecx
call ebp
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x3c]
add esp, 0x18
rep stosd dword es:[edi], eax
mov word [esp + 0x54], ax
lea edx, [esp + 0x10]
lea eax, [esp + 0x24]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x84]
push 0
push ecx
push 0
mov dword [esp + 0x4c], 0x44
mov dword [esp + 0x78], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [esp + 0x10]
mov dword [0x4ce530], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
mov dword [0x436ba8], eax
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0x405800
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x413264]
push 0
push 0x3e8
push 0x64
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2858
ret
Function at 0x408290
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
mov esi, ecx
lea eax, [esp + 0x28]
push 0
push eax
lea ecx, [esp + 0x1c]
push 0xe
push ecx
push ebx
mov word [esp + 0x28], 0
call ebp
test eax, eax
jne 0x4082d6
lea edx, [esp + 0x10]
push 0x40e798
push edx
mov dword [esp + 0x18], 4
call fcn.00409dff
cmp dword [esp + 0x28], 0xe
je 0x4082f4
lea eax, [esp + 0x10]
push 0x40e798
push eax
mov dword [esp + 0x18], 4
call fcn.00409dff
mov ecx, dword [esp + 0x16]
lea edi, [ecx - 0xe]
test edi, edi
jg 0x408316
lea edx, [esp + 0x10]
push 0x40e798
push edx
mov dword [esp + 0x18], 6
call fcn.00409dff
cmp word [esp + 0x14], 0x4d42
je 0x408336
lea eax, [esp + 0x10]
push 0x40e798
push eax
mov dword [esp + 0x18], 9
call fcn.00409dff
mov ecx, dword [esi + 0x68]
push ecx
call fcn.00409230
push edi
call fcn.0040923b
add esp, 8
lea edx, [esp + 0x28]
mov dword [esi + 0x68], eax
push 0
push edx
push edi
push eax
push ebx
call ebp
test eax, eax
jne 0x408385
mov eax, dword [esi + 0x68]
push eax
call fcn.00409230
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esi + 0x68], 0
mov dword [esp + 0x10], 4
push 0x40e798
push ecx
call fcn.00409dff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x40c351
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x410780
cmp edx, dword [eax]
je 0x40c373
add eax, 8
inc ecx
cmp eax, 0x410810
jl 0x40c364
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x410780]
jne 0x40c4a1
mov eax, dword [0x4ce588]
cmp eax, 1
je 0x40c47b
test eax, eax
jne 0x40c3a4
cmp dword [0x4104a0], 1
je 0x40c47b
cmp edx, 0xfc
je 0x40c4a1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40c3db
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040ca80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040cb70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40c41e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040cb70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40e670
push edi
call fcn.004090b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040ca80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040ca90
lea eax, [ebp - 0xa0]
push 0x40e650
push eax
call fcn.0040ca90
push dword [esi + 0x410784]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040ca90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040cbeb
add esp, 0x2c
pop edi
jmp 0x40c4a1
lea eax, [ebp + 8]
lea esi, [esi + 0x410784]
push 0
push eax
push dword [esi]
call fcn.0040cb70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x401099
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
call 0x401099
pop ecx
push 0x8b04c483
inc ebp
or al, 0x8b
dec ebp
or byte [ebx + 0x4598d10], cl
mov dword [ecx], edx
mov edi, dword [eax]
lea esi, [eax + 4]
mov dword [ebp + 0xc], ebx
xor ecx, ecx
sub ebx, esi
mov eax, dword [esi]
add esi, 4
mov edx, eax
sub eax, ecx
xor edx, edi
add eax, edi
mov edi, ecx
mov dword [ebx + esi - 4], edx
imul edi, ecx
xor eax, edi
inc ecx
cmp ecx, 7
mov edi, eax
jl 0x4010b5
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0x4e4e4f4b
je 0x4010e7
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
jmp 0x4010eb
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret

Function at 0x401136
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
call 0x401136
push 0x8b04c483
inc ebp
or byte [ebp + 0x5e0375c0], al
pop ebp
ret
Function at 0x402b3a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4014
call fcn.0046c790
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x4014]
push edi
mov edi, dword [ebp + 8]
mov ecx, 0x4000
and dword [ebp + 8], 0
mov dword [ebp - 0x14], ecx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov esi, dword [esi + 4]
mov dword [ebp - 4], esi
call sub.KERNEL32.dll_GetTickCount
and dword [ebp - 0xc], 0
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ebx
jmp 0x402b84
mov esi, dword [ebp - 4]
cmp ebx, esi
jge 0x402bc8
cmp dword [edi + 4], 0
ja 0x402bc8
lea eax, [ebp - 0x14]
sub esi, ebx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
call fcn.004018e2
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov esi, eax
push ebx
mov dword [edi + 4], esi
call fcn.0042b974
add ebx, esi
mov dword [edi], eax
mov eax, dword [ebp + 8]
cmp ebx, dword [ebp - 4]
push 3
pop ecx
cmovge eax, ecx
mov dword [ebp - 8], ebx
mov dword [ebp + 8], eax
jmp 0x402bcb
mov eax, dword [ebp + 8]
push eax
push edi
call fcn.0046dab0
mov esi, eax
pop ecx
pop ecx
cmp esi, 5
je 0x402c80
cmp esi, 7
je 0x402c80
cmp esi, 8
jle 0x402bf6
cmp esi, 0xb
jle 0x402c80
cmp dword [edi + 0x14], 0
jbe 0x402c01
cmp esi, 1
jne 0x402c39
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x4014]
mov ebx, 0x4000
sub ebx, dword [edi + 0x14]
push ebx
mov eax, dword [ecx]
push edx
mov eax, dword [eax]
call eax
test al, al
je 0x402c80
add dword [ebp - 0xc], ebx
lea eax, [ebp - 0x4014]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0x4000
cmp esi, 1
je 0x402c8e
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], 0
mov esi, dword [ebp - 4]
je 0x402b84
call sub.KERNEL32.dll_GetTickCount
mov esi, eax
push esi
push dword [ebp - 0x10]
call fcn.00459389
pop ecx
pop ecx
cmp eax, 0xc8
jbe 0x402b81
mov eax, dword [ebp - 0xc]
shl eax, 3
push eax
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 4]
push esi
push ebx
call dword [ebp + 0x14]
add esp, 0xc
test al, al
je 0x402b84
push edi
call fcn.0046dd60
xor al, al
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push edi
call fcn.0046dd60
mov al, 1
jmp 0x402c88

Function at 0x403081
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
je 0x4030df
mov eax, dword [ebp + 0xc]
cmp dword [eax + 8], 0x70b
jne 0x4030df
cmp dword [eax + 0xc], 0x202
jne 0x4030df
push dword [eax + 0x1c]
push dword [eax + 0x18]
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.004037e6
add esp, 0x10
mov eax, 0x49cb74
cmp dword [ebp - 0xc], 0
cmovne eax, dword [ebp - 0xc]
xor ecx, ecx
push 5
push ecx
push ecx
push eax
push 0x49cf40
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0xc]
call fcn.00426615
leave
ret