joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4096f0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov word [0x413000], 0
mov word [0x412620], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
test esi, esi
je 0x4098f7
mov ax, word [esi]
test ax, ax
je 0x4098f7
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
cmp ax, 0x20
je 0x40974e
push esi
call ebx
mov esi, eax
mov ax, word [esi]
test ax, ax
jne 0x40973b
cmp word [esi], 0
je 0x4098f7
mov ebp, dword [sym.imp.USER32.dll_CharPrevW]
push esi
call ebx
mov esi, eax
mov ax, word [esi]
test ax, ax
je 0x409883
cmp ax, 0x21
jne 0x40986e
push esi
call ebx
mov cx, word [eax]
test cx, cx
je 0x4098f7
cmp cx, 0x44
jne 0x409807
push eax
call ebx
mov cx, word [eax]
test cx, cx
je 0x4097aa
cmp cx, 0x20
jne 0x4097aa
push eax
call ebx
mov cx, word [eax]
test cx, cx
jne 0x409799
mov cx, word [eax]
mov edi, eax
test cx, cx
je 0x4098f7
cmp cx, 0x21
je 0x4097c9
push eax
call ebx
mov cx, word [eax]
test cx, cx
jne 0x4097b8
push eax
push edi
call ebp
mov esi, eax
mov cx, word [esi]
test cx, cx
je 0x4097e9
cmp cx, 0x20
jne 0x4097e9
push eax
push edi
call ebp
mov cx, word [eax]
test cx, cx
jne 0x4097d7
sub eax, edi
sar eax, 1
add eax, 2
push eax
push edi
push 0x413000
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [esp + 0x10], 1
jmp 0x40986e
cmp cx, 0x50
jne 0x4098b8
push eax
call ebx
mov cx, word [eax]
test cx, cx
je 0x40982d
cmp cx, 0x20
jne 0x40982d
push eax
call ebx
mov cx, word [eax]
test cx, cx
jne 0x40981c
mov cx, word [eax]
mov edi, eax
test cx, cx
je 0x4098f7
cmp cx, 0x21
je 0x40984c
push eax
call ebx
mov cx, word [eax]
test cx, cx
jne 0x40983b
push eax
push edi
call ebp
mov esi, eax
sub eax, edi
sar eax, 1
add eax, 2
push eax
push edi
push 0x412620
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [esp + 0x14], 1
cmp word [esi], 0
jne 0x40975e
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4098f7
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40989f
mov ax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0x413000
call fcn.00409910
add esp, 4
mov ax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ax, word [eax]
cmp ax, 0x4c
jne 0x4098cd
mov ax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp ax, 0x53
jne 0x4098df
mov ax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
xor ecx, ecx
cmp ax, 0x4e
setne cl
dec ecx
and ecx, 4
mov ax, cx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 8
ret
Function at 0x409ca0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x40f688]
mov cx, word [0x40f68c]
push esi
lea edx, [esp + 8]
push edi
push edx
mov dword [esp + 0x10], eax
mov word [esp + 0x14], cx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [esp + 0x22c]
mov esi, eax
lea eax, [esp + 0xc]
push esi
push eax
push edi
call fcn.0040a890
add esp, 0xc
test eax, eax
jne 0x409ce7
lea edi, [edi + esi*2]
lea ecx, [esp + 0x1c]
push 0x40f710
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 0x1c]
push 0x40f70c
push edx
call esi
lea eax, [esp + 0x1c]
push edi
push eax
call esi
lea ecx, [esp + 0x1c]
push str.PSW
push ecx
call esi
mov esi, dword [esp + 0x234]
mov ecx, dword [esp + 0x228]
mov edi, dword [esp + 0x238]
lea edx, [esp + 8]
push edx
push 0x20019
lea eax, [esp + 0x24]
push 0
push eax
push ecx
mov dword [esi], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409d7e
mov ecx, dword [esp + 0x230]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push ecx
push edx
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x409d7e
mov dword [esi], edi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 0x21c
ret

Function at 0x409da0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
lea eax, [esp + 0xc]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x40f710
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [esp + 0x18]
push 0x40f70c
push ecx
call esi
mov edx, dword [esp + 0x224]
lea eax, [esp + 0x18]
push edx
push eax
call esi
lea ecx, [esp + 0x18]
push str.PSW
push ecx
call esi
mov ebx, dword [esp + 0x230]
mov esi, dword [esp + 0x22c]
push ebx
push esi
call edi
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
push edx
push 0x20019
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409e60
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x22c]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x28], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x409e4d
push ebx
jmp 0x409e52
lea eax, [esp + 0x18]
push eax
push esi
call edi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x214
ret
Function at 0x409e70
Capabilities:
Set registry value

Disassembly:
sub esp, 0x224
mov eax, dword [0x40f688]
mov cx, word [0x40f68c]
push esi
lea edx, [esp + 8]
push edi
push edx
mov dword [esp + 0x10], eax
mov word [esp + 0x14], cx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [esp + 0x234]
mov esi, eax
lea eax, [esp + 0xc]
push esi
push eax
push edi
call fcn.0040a890
add esp, 0xc
test eax, eax
jne 0x409eb7
lea edi, [edi + esi*2]
lea ecx, [esp + 0x24]
push 0x40f710
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 0x24]
push 0x40f70c
push edx
call esi
lea eax, [esp + 0x24]
push edi
push eax
call esi
lea ecx, [esp + 0x24]
push str.PSW
push ecx
call esi
xor edx, edx
lea eax, [esp + 0x20]
mov dword [esp + 0x14], edx
lea ecx, [esp + 8]
mov dword [esp + 0x18], edx
push eax
mov dword [esp + 0x20], edx
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x238]
xor esi, esi
push edx
push 0x20006
push esi
push 0x412098
lea eax, [esp + 0x3c]
push esi
push eax
push ecx
mov dword [esp + 0x38], 0xc
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x409f4a
xor eax, eax
pop edi
pop esi
add esp, 0x224
ret
mov eax, dword [esp + 0x238]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x23c]
push 4
push edx
push 4
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
je 0x409f79
xor eax, eax
pop edi
pop esi
add esp, 0x224
ret
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 0x224
ret
Function at 0x40a460
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x428
lea eax, [esp + 0x18]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
push edi
push str.SoftwareCanonCAP4SOUND
push eax
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [esp + 0x24]
push 0x40f70c
push ecx
call esi
mov edx, dword [esp + 0x438]
lea eax, [esp + 0x24]
push edx
push eax
call esi
lea ecx, [esp + 0x18]
xor edi, edi
push ecx
push 0x20019
lea edx, [esp + 0x2c]
push edi
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40a5b5
mov eax, 0x208
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x1c]
push 0
lea eax, [esp + 0x240]
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
test esi, esi
mov dword [esp + 0x20], esi
jne 0x40a57c
lea eax, [esp + 0x230]
push eax
call fcn.0040a5d0
add esp, 4
mov dword [esp + 0x24], eax
test ax, ax
jbe 0x40a57c
mov ecx, dword [esp + 0x10]
lea edx, [ecx + ecx + 2]
push edx
push 0x40
call ebx
mov edx, dword [esp + 0x440]
mov ecx, edi
and ecx, 0xffff
lea ecx, [ecx + ecx*2]
lea esi, [edx + ecx*4]
lea ecx, [esp + 0x230]
push ecx
push eax
mov dword [esi + 4], eax
call ebp
mov edx, dword [esp + 0x18]
lea eax, [edx + edx + 2]
push eax
push 0x40
call ebx
lea ecx, [esp + 0x28]
mov dword [esi + 8], eax
push ecx
push eax
call ebp
mov edx, dword [esp + 0x24]
dec edx
inc edi
mov word [esi], dx
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov eax, 0x208
inc ecx
mov dword [esp + 0x10], eax
test esi, esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
je 0x40a4d9
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x428
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x428
ret
Function at 0x40a660
Capabilities:
Create thread

Disassembly:
sub esp, 0x20c
mov eax, dword [0x412db0]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [esp + 0x10], esi
jne 0x40a686
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
mov edi, dword [esp + 0x220]
cmp edi, esi
jne 0x40a69e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x14]
push 0x412098
push eax
call ebp
mov ebx, dword [esp + 0x224]
mov eax, esi
and eax, 0xffff
lea ecx, [eax + eax*2]
mov eax, dword [edi + ecx*4 + 4]
test eax, eax
je 0x40a6d7
push ebx
push eax
call fcn.0040a8d0
add esp, 8
test eax, eax
je 0x40a6e4
inc esi
cmp si, 3
jb 0x40a6b7
mov esi, dword [esp + 0x10]
jmp 0x40a6ff
and esi, 0xffff
lea ecx, [esp + 0x14]
lea edx, [esi + esi*2]
mov eax, dword [edi + edx*4 + 8]
lea esi, [edi + edx*4]
push eax
push ecx
call ebp
mov si, word [esi]
cmp word [esp + 0x14], 0
je 0x40a77b
mov eax, dword [esp + 0x228]
mov ecx, dword [0x413218]
or al, 1
test ecx, ecx
jne 0x40a729
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.WINMM.dll_PlaySoundW]
jmp 0x40a748
cmp ecx, 1
jne 0x40a743
cmp si, cx
jne 0x40a743
push eax
lea eax, [esp + 0x18]
push 0
push eax
call dword [sym.imp.WINMM.dll_PlaySoundW]
jmp 0x40a748
mov eax, 1
test eax, eax
jne 0x40a77b
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_AddAtomW]
test ax, ax
je 0x40a77b
lea edx, [esp + 0x10]
and eax, 0xffff
push edx
push 0
push eax
push 0x40a790
push 0x4000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20c
ret
Function at 0x40a980
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e008
push 0x40bab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x4120e4], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x4120e0], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4120dc], ecx
shr eax, 0x10
mov dword [0x4120d8], eax
call fcn.0040b980
test eax, eax
jne 0x40a9ea
push 0x1c
call fcn.0040ab20
add esp, 4
mov dword [ebp - 4], 0
call fcn.0040b780
call fcn.0040b770
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4134f0], eax
call fcn.0040b340
mov dword [0x4120a4], eax
test eax, eax
je 0x40aa1d
mov eax, dword [0x4134f0]
test eax, eax
jne 0x40aa27
push 0xffffffffffffffff
call fcn.0040aca0
add esp, 4
call fcn.0040b090
call fcn.0040afa0
call fcn.0040ac70
mov esi, dword [0x4134f0]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x40ab06
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40aa6e
test al, al
je 0x40aa6e
and eax, 0xff
push eax
call fcn.0040af40
add esp, 4
test eax, eax
je 0x40aa48
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40aa48
cmp byte [esi], 0x22
jne 0x40aa77
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x40aa87
cmp al, 0x20
ja 0x40aa87
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40aa77
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40aaa8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40aaad
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.0040aca0
jmp 0x40aaeb
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40aa77
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40ab06

Function at 0x40ace0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x412114]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40acff
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x412110], 1
mov byte [0x41210c], bl
jne 0x40ad59
mov ecx, dword [0x4134e8]
test ecx, ecx
je 0x40ad47
mov esi, dword [0x4134e4]
sub esi, 4
cmp esi, ecx
jb 0x40ad47
mov eax, dword [esi]
test eax, eax
je 0x40ad40
call eax
mov ecx, dword [0x4134e8]
sub esi, 4
cmp esi, ecx
jae 0x40ad32
push 0x40f014
push 0x40f010
call fcn.0040ad90
add esp, 8
push 0x40f01c
push 0x40f018
call fcn.0040ad90
add esp, 8
test ebx, ebx
jne 0x40ad80
push ebp
mov dword [0x412114], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x40b340
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x412228]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x40b382
call edi
mov esi, eax
test esi, esi
je 0x40b36c
mov eax, 1
jmp 0x40b37d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40b48f
mov eax, 2
mov dword [0x412228], eax
cmp eax, 1
jne 0x40b422
test esi, esi
jne 0x40b39b
call edi
mov esi, eax
test esi, esi
je 0x40b48f
cmp word [esi], 0
mov eax, esi
je 0x40b3b5
add eax, 2
cmp word [eax], 0
jne 0x40b3a3
add eax, 2
cmp word [eax], 0
jne 0x40b3a3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40b414
push edi
call fcn.0040c1a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40b414
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40b406
push ebx
call fcn.0040c150
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40b48f
test ebx, ebx
jne 0x40b433
call ebp
mov ebx, eax
test ebx, ebx
je 0x40b48f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40b44b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40b43b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40b43b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.0040c1a0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40b46d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x40bbd0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x40f968
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x40bbf4
add eax, 8
inc ebp
cmp eax, 0x40f9f8
jb 0x40bbe5
cmp ecx, dword [ebp*8 + 0x40f968]
jne 0x40bd9b
mov eax, dword [0x4120ac]
cmp eax, 1
je 0x40bd5d
test eax, eax
jne 0x40bc20
cmp dword [0x40f7c0], 1
je 0x40bd5d
cmp ecx, 0xfc
je 0x40bd9b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40bc5b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40bca4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x40e2e8
add ebx, ecx
push ebx
call fcn.0040ca00
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40e2c8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40f96c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040c970
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x4133e0]
test eax, eax
je 0x40bd6e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x40bd78
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40f96c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x12a1754
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, 0x5a4d
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
cmp word [esi], ax
jne 0x12a18b7
mov ebx, dword [esi + 0x3c]
add ebx, esi
cmp dword [ebx], 0x4550
jne 0x12a18b7
mov eax, dword [edi + 0x688]
test eax, eax
je 0x12a18b7
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
push 0xffffffffffffffff
call eax
test eax, eax
je 0x12a18b7
mov eax, 0x1c0
cmp word [ebp - 4], ax
je 0x12a17bc
mov eax, 0xaa64
cmp word [ebp - 4], ax
jne 0x12a18b7
cmp dword [ebx + 8], 0x27debf2c
jne 0x12a17e7
push 0x4b2e8f83
push 0x4b2e8de3
push 0x4b280000
mov edx, esi
mov ecx, edi
call fcn.012a16ce
add esp, 0xc
xor eax, eax
jmp 0x12a18bc
cmp dword [ebx + 8], 0x88330560
jne 0x12a17fc
push 0x4b3fabde
push 0x4b3fa92b
jmp 0x12a17cf
cmp dword [ebx + 8], 0xe892dd44
jne 0x12a1811
push 0x4b406b8e
push 0x4b4068db
jmp 0x12a17cf
and dword [ebp - 0xc], 0
lea edx, [ebp - 0xc]
push 0
push 1
push ecx
push 0x2bcd03a7
push esi
mov ecx, edi
call fcn.012a1dc7
test eax, eax
js 0x12a18bc
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x12a18b7
lea eax, [ebx - 0x140]
mov dword [ebp - 0x1c], 0x3f3f3fe8
push 8
lea ecx, [ebp - 0x1c]
mov word [ebp - 0x18], 0x843f
push ecx
mov edx, 0x140
mov byte [ebp - 0x16], 0xc0
mov ecx, eax
mov dword [ebp - 0x24], 0x1b8
mov word [ebp - 0x20], 0x8400
mov byte [ebp - 0x1e], 0xc0
mov dword [ebp - 0x10], eax
call fcn.012a232b
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x12a1887
mov ecx, dword [ebp - 0x10]
mov edx, 0x140
jmp 0x12a18a4
push 7
lea eax, [ebp - 0x1c]
mov edx, 0x200
push eax
mov ecx, ebx
call fcn.012a232b
test eax, eax
jne 0x12a18c1
mov edx, 0x200
mov ecx, ebx
push 8
lea eax, [ebp - 0x24]
push eax
call fcn.012a232b
test eax, eax
jne 0x12a17e0
mov eax, 0xe0010001
pop edi
pop esi
pop ebx
leave
ret
push eax
push dword [ebp - 0x14]
push esi
jmp 0x12a17d4

Function at 0x12a21b3
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x12a21d1
mov eax, dword [ecx + 0x3c]
cmp eax, 0x400
jg 0x12a21d1
add eax, ecx
cmp dword [eax], 0x4550
je 0x12a21d3
xor eax, eax
ret
Function at 0x12a5584
Capabilities:
Encode data using xor
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov edx, 1
push ebx
push esi
push edi
xor esi, esi
mov eax, edx
mov dword [ebp + esi*4 - 0x808], edx
and al, 0x80
mov dword [ebp + edx*4 - 0x408], esi
movzx ecx, al
lea eax, [edx + edx]
neg ecx
sbb ecx, ecx
inc esi
and ecx, 0x1b
xor ecx, eax
xor ecx, edx
movzx edx, cl
cmp esi, 0x100
jl 0x12a5597
mov esi, 1
mov edx, 0x12ac264
nop dword [eax]
mov eax, esi
mov dword [edx], esi
and al, 0x80
movzx ecx, al
lea eax, [esi + esi]
neg ecx
sbb ecx, ecx
add edx, 4
and ecx, 0x1b
xor ecx, eax
movzx esi, cl
cmp edx, 0x12ac28c
jl 0x12a55d4
mov eax, 1
mov byte [0x12aa064], 0x63
mov byte [0x12ab1c7], 0
mov dword [ebp - 4], eax
nop dword [eax]
mov ecx, dword [ebp + eax*4 - 0x408]
lea eax, [ebp - 0x40c]
shl ecx, 2
sub eax, ecx
mov ebx, dword [eax]
mov ecx, ebx
sar ecx, 7
lea eax, [ebx + ebx]
or ecx, eax
movzx eax, cl
xor ebx, eax
mov ecx, eax
shr ecx, 7
add eax, eax
or ecx, eax
movzx eax, cl
xor ebx, eax
mov ecx, eax
add eax, eax
shr ecx, 7
or ecx, eax
movzx edx, cl
mov ecx, edx
shr ecx, 7
lea eax, [edx + edx]
or ecx, eax
xor ecx, 0x63
movzx eax, cl
xor eax, edx
xor ebx, eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x12aa064], bl
mov byte [ebx + 0x12ab164], al
inc eax
mov dword [ebp - 4], eax
cmp eax, 0x100
jl 0x12a5614
mov ebx, 0xff
xor esi, esi
mov dword [ebp - 8], ebx
movzx edx, byte [esi + 0x12aa064]
mov eax, edx
and al, 0x80
movzx ecx, al
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
movzx eax, cl
mov ecx, eax
xor ecx, edx
shl ecx, 8
xor ecx, edx
shl ecx, 8
xor ecx, edx
shl ecx, 8
xor ecx, eax
mov dword [esi*4 + 0x12aa164], ecx
rol ecx, 8
mov dword [esi*4 + 0x12aa564], ecx
rol ecx, 8
mov dword [esi*4 + 0x12aa964], ecx
rol ecx, 8
mov dword [esi*4 + 0x12aad64], ecx
movzx ecx, byte [esi + 0x12ab164]
test ecx, ecx
je 0x12a5743
mov ecx, dword [ebp + ecx*4 - 0x408]
mov eax, dword [ebp - 0x3d0]
add eax, ecx
cdq
idiv ebx
mov eax, dword [ebp - 0x3e4]
add eax, ecx
mov edi, dword [ebp + edx*4 - 0x808]
cdq
idiv ebx
mov eax, dword [ebp - 0x3d4]
add eax, ecx
mov ebx, dword [ebp + edx*4 - 0x808]
cdq
idiv dword [ebp - 8]
mov eax, dword [ebp + edx*4 - 0x808]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x3dc]
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov eax, dword [ebp + edx*4 - 0x808]
jmp 0x12a574c
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ebx
xor eax, eax
shl eax, 8
xor eax, dword [ebp - 4]
shl eax, 8
xor eax, ebx
mov ebx, 0xff
shl eax, 8
xor eax, edi
mov dword [esi*4 + 0x12ab264], eax
rol eax, 8
mov dword [esi*4 + 0x12ab664], eax
rol eax, 8
mov dword [esi*4 + 0x12aba64], eax
rol eax, 8
mov dword [esi*4 + 0x12abe64], eax
inc esi
cmp esi, 0x100
jl 0x12a5689
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret