joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10023720
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x58
mov eax, dword [0x1007c654]
xor eax, esp
mov dword [esp + 0x54], eax
xor al, al
cmp byte [esp + 0x5c], 2
mov dl, 0x5f
mov cl, 0x65
jne 0x10023849
mov byte [esp + 0x25], dl
mov byte [esp + 0x30], dl
mov dl, 0x30
mov byte [esp + 0x1d], al
mov byte [esp + 0x1f], al
mov byte [esp + 0x20], al
mov byte [esp + 0x21], al
mov byte [esp + 0x27], cl
mov byte [esp + 0x2d], cl
mov cl, 0x31
mov byte [esp + 0x34], al
mov byte [esp + 0x37], dl
mov byte [esp + 0x38], dl
mov byte [esp + 0x3a], al
mov byte [esp + 0x41], al
mov byte [esp + 0x43], dl
mov byte [esp + 0x44], dl
mov dl, 0x32
mov byte [esp + 0x46], al
mov byte [esp + 0x4e], al
mov byte [esp + 0x50], al
mov byte [esp + 0x52], al
push 0x37
lea eax, [esp + 0x20]
mov byte [esp + 0x20], 5
mov byte [esp + 0x22], 9
mov byte [esp + 0x26], 0x59
mov byte [esp + 0x27], 0x52
mov byte [esp + 0x28], 0x42
mov byte [esp + 0x2a], 0x4e
mov byte [esp + 0x2c], 0x77
mov byte [esp + 0x2d], 0x51
mov byte [esp + 0x2e], 0x69
mov byte [esp + 0x2f], 0x63
mov byte [esp + 0x30], 0x68
mov byte [esp + 0x32], 0x6e
mov byte [esp + 0x33], 0x67
mov byte [esp + 0x35], 0x45
mov byte [esp + 0x36], 0x61
mov byte [esp + 0x37], 0x74
mov byte [esp + 0x39], 3
mov byte [esp + 0x3a], cl
mov byte [esp + 0x3d], cl
mov byte [esp + 0x3f], 0x36
mov byte [esp + 0x40], 0x35
mov byte [esp + 0x41], 0x35
mov byte [esp + 0x42], 0x33
mov byte [esp + 0x43], 0x36
mov byte [esp + 0x44], 0x34
mov byte [esp + 0x46], cl
mov byte [esp + 0x49], dl
mov byte [esp + 0x4b], 0x37
mov byte [esp + 0x4c], 0x37
mov byte [esp + 0x4d], dl
mov byte [esp + 0x4e], 0x36
mov byte [esp + 0x4f], 0x33
mov byte [esp + 0x50], 0x34
mov byte [esp + 0x51], dl
mov byte [esp + 0x53], cl
mov byte [esp + 0x55], cl
push eax
jmp 0x100238cc
mov byte [esp + 0xe], cl
mov byte [esp + 0x12], cl
mov cl, 0x31
mov byte [esp + 0x17], cl
mov byte [esp + 0x19], cl
push 0x1b
lea ecx, [esp + 4]
mov byte [esp + 4], 5
mov byte [esp + 5], al
mov byte [esp + 6], 9
mov byte [esp + 7], al
mov byte [esp + 8], al
mov byte [esp + 9], al
mov byte [esp + 0xa], 0x5a
mov byte [esp + 0xb], 0x43
mov byte [esp + 0xc], 0x4d
mov byte [esp + 0xd], dl
mov byte [esp + 0xe], 0x71
mov byte [esp + 0xf], 0x69
mov byte [esp + 0x10], 0x63
mov byte [esp + 0x11], 0x68
mov byte [esp + 0x13], 0x6e
mov byte [esp + 0x14], 0x67
mov byte [esp + 0x15], dl
mov byte [esp + 0x17], 0x61
mov byte [esp + 0x18], 0x74
mov byte [esp + 0x19], al
mov byte [esp + 0x1a], 1
mov byte [esp + 0x1c], al
mov byte [esp + 0x1e], al
push ecx
call fcn.10001270
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1002d7d3
add esp, 0x58
ret 4
Function at 0x10024d30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x24
mov eax, dword [0x1007c654]
xor eax, esp
mov dword [esp + 0x20], eax
xor al, al
mov dl, 0x47
mov byte [esp + 1], al
mov byte [esp + 3], al
mov byte [esp + 4], al
mov byte [esp + 5], al
mov cl, 0x5f
mov byte [esp + 0x18], al
mov byte [esp + 0x1b], al
mov byte [esp + 0x1d], al
mov byte [esp + 6], dl
mov byte [esp + 0xd], dl
mov byte [esp + 0xf], dl
mov dl, 0x74
push 0x1e
lea eax, [esp + 4]
push eax
mov byte [esp + 8], 5
mov byte [esp + 0xa], 9
mov byte [esp + 0xf], 0x58
mov byte [esp + 0x10], 0x54
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], 0x46
mov byte [esp + 0x13], 0x59
mov byte [esp + 0x14], 0x5a
mov byte [esp + 0x16], cl
mov byte [esp + 0x18], 0x65
mov byte [esp + 0x19], dl
mov byte [esp + 0x1a], cl
mov byte [esp + 0x1b], 0x50
mov byte [esp + 0x1c], 0x6f
mov byte [esp + 0x1d], 0x69
mov byte [esp + 0x1e], 0x6e
mov byte [esp + 0x1f], dl
mov byte [esp + 0x21], 1
mov byte [esp + 0x22], 0x31
mov byte [esp + 0x24], 0x32
call fcn.10001270
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1002d7d3
add esp, 0x24
ret
Function at 0x1002c9e0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x12c
mov eax, dword [0x1007c654]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x140]
call fcn.100246a0
push eax
push str.__wndtschool_d.ini
push 0xff
lea eax, [esp + 0x44]
push 0xff
push eax
call fcn.1002ede3
push 0xa0
xor esi, esi
push esi
push 0x100806d8
call fcn.1002de60
add esp, 0x20
lea ecx, [esp + 0x38]
push ecx
push 0xa0
push 0x100806d8
push str.dtcfg
push str.dtschool
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
push 6
mov dword [0x1008073c], esi
call fcn.10001020
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x43a
push edi
mov ebp, eax
call ebx
push 0x43f
push edi
mov dword [esp + 0x18], eax
call ebx
push 0x442
push edi
mov dword [esp + 0x1c], eax
call ebx
push 0x447
push edi
mov dword [esp + 0x20], eax
call ebx
push 0x44a
push edi
mov dword [esp + 0x24], eax
call ebx
push 0x43b
push edi
mov dword [esp + 0x28], eax
call ebx
push 0x440
push edi
mov dword [esp + 0x2c], eax
call ebx
push 0x443
push edi
mov dword [esp + 0x30], eax
call ebx
push 0x448
push edi
mov dword [esp + 0x34], eax
call ebx
push 0x44b
push edi
mov dword [esp + 0x38], eax
call ebx
mov dword [esp + 0x34], eax
nop
push ebp
lea eax, [esi + 0x100806d8]
push 0
lea edx, [eax + 0x14]
push edx
push eax
mov eax, dword [esp + esi + 0x34]
push eax
call fcn.1002b820
mov ecx, dword [esi + 0x10080714]
mov edx, dword [esp + esi + 0x10]
push 0
push ecx
push 0xf1
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
add esi, 4
cmp esi, 0x14
jb 0x1002cae0
mov eax, dword [0x10080740]
push 0
push eax
push 0xf1
push 0x400
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x10080744
push 0x4ce
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1002d7d3
add esp, 0x12c
ret 4

Function at 0x1002d7d3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1007c654]
jne 0x1002d7dd
repz ret
jmp fcn.1003108f
Function at 0x1003a1d7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100346a1
xor ebx, ebx
cmp dword [0x10081f20], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1003a2ac
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1003a217
xor eax, eax
jmp 0x1003a370
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100712cc
push edi
call esi
cmp eax, ebx
je 0x1003a210
push eax
call fcn.1003463e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10081f20], eax
call esi
push eax
call fcn.1003463e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10081f24], eax
call esi
push eax
call fcn.1003463e
mov dword [0x10081f28], eax
lea eax, [ebp - 8]
push eax
call fcn.1002eb18
test eax, eax
pop ecx
pop ecx
je 0x1003a27a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1002ee8b
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1003a2ac
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1003463e
cmp eax, ebx
pop ecx
mov dword [0x10081f30], eax
je 0x1003a2ac
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1003463e
pop ecx
mov dword [0x10081f2c], eax
mov eax, dword [0x10081f2c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1003a325
cmp dword [0x10081f30], esi
je 0x1003a325
push eax
call fcn.100346aa
pop ecx
call eax
cmp eax, ebx
je 0x1003a2f2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x10081f30]
call fcn.100346aa
pop ecx
call eax
test eax, eax
je 0x1003a2f2
test byte [ebp - 0x18], 1
jne 0x1003a325
lea eax, [ebp - 0xc]
push eax
call fcn.1002eb4f
test eax, eax
pop ecx
je 0x1003a30d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1002ee8b
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1003a31c
or dword [ebp + 0x10], 0x200000
jmp 0x1003a356
or dword [ebp + 0x10], 0x40000
jmp 0x1003a356
mov eax, dword [0x10081f24]
cmp eax, esi
je 0x1003a356
push eax
call fcn.100346aa
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1003a356
mov eax, dword [0x10081f28]
cmp eax, esi
je 0x1003a356
push dword [ebp - 4]
push eax
call fcn.100346aa
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x10081f20]
call fcn.100346aa
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x495b54
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
xor ebx, ebx
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x495b98
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
dec ecx
je 0x495b96
dec ecx
jne 0x495b98
cmp eax, 5
jne 0x495b8d
test edx, edx
jne 0x495b8d
xor ebx, ebx
jmp 0x495b98
cmp eax, 5
jl 0x495b98
mov bl, 1
jmp 0x495b98
xor ebx, ebx
mov eax, ebx
add esp, 0x94
pop ebx
ret
Function at 0x10001714
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [ebp + 0xc]
xor edx, edx
push 3
pop ebx
mov ecx, dword [ebp + 0x14]
lea eax, [edi + 2]
div ebx
lea eax, [eax*4 + 1]
cmp dword [ecx], eax
jae 0x10001740
push 6
mov dword [ecx], eax
pop eax
jmp 0x10001847
xor edx, edx
mov eax, edi
div ebx
mov ebx, dword [ebp + 0x18]
xor ecx, ecx
imul eax, eax, 3
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
test eax, eax
je 0x100017ca
xor edx, edx
dec eax
push 3
pop ecx
div ecx
inc eax
imul edx, eax, 3
mov edi, eax
mov dword [ebp - 4], edx
mov edx, dword [ebp + 8]
movzx ecx, byte [edx]
shr ecx, 2
push 3
mov al, byte [ecx + ebx]
mov byte [esi], al
movzx ecx, byte [edx]
pop eax
and ecx, eax
movzx eax, byte [edx + 1]
shr eax, 4
shl ecx, 4
add ecx, ebx
push 3
mov al, byte [eax + ecx]
mov byte [esi + 1], al
movzx eax, byte [edx + 2]
movzx ecx, byte [edx + 1]
shr eax, 6
and ecx, 0xf
add eax, ebx
mov al, byte [eax + ecx*4]
mov byte [esi + 2], al
movzx eax, byte [edx + 2]
and eax, 0x3f
mov al, byte [eax + ebx]
mov byte [esi + 3], al
add esi, 4
pop eax
add edx, eax
sub edi, 1
jne 0x1000176d
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
jmp 0x100017cd
mov edx, dword [ebp + 8]
cmp ecx, edi
jae 0x10001839
movzx eax, byte [edx]
mov dword [ebp + 0xc], eax
lea eax, [ecx + 1]
cmp eax, edi
jae 0x100017e4
movzx ecx, byte [edx + 1]
jmp 0x100017e6
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov eax, edx
shr eax, 2
shl edx, 4
mov al, byte [eax + ebx]
mov byte [esi], al
mov eax, ecx
shr eax, 4
add eax, edx
and eax, 0x3f
mov al, byte [eax + ebx]
mov byte [esi + 1], al
add esi, 2
mov eax, dword [ebp - 4]
inc eax
cmp dword [ebp + 0x1c], 0
je 0x1000182c
cmp eax, edi
jae 0x1000181f
and ecx, 0xf
mov al, byte [ebx + ecx*4]
jmp 0x10001821
mov al, 0x3d
mov byte [esi], al
mov byte [esi + 1], 0x3d
add esi, 2
jmp 0x10001839
cmp eax, edi
jae 0x10001839
and ecx, 0xf
mov al, byte [ebx + ecx*4]
mov byte [esi], al
inc esi
mov eax, dword [ebp + 0x14]
mov byte [esi], 0
sub esi, dword [ebp + 0x10]
mov dword [eax], esi
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret
Function at 0x5d8ab2
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x5d87dc
add eax, 1
call fcn.005d8af1
or eax, eax
sub edx, 1
xor dword [esi], ebx
inc edx
mov edx, 0xc4ec42a9
add esi, 2
mov edx, eax
mov eax, 0x48e22bf2
cmp esi, ecx
jl fcn.005d8ab2
or eax, edx
sub eax, 0x7025ccf5
ret
Function at 0x401000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x401032
xor eax, eax
jmp 0x4010ed
push 0
lea ecx, [ebp - 0x24]
push ecx
push 0xe
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40106d
cmp dword [ebp - 0x24], 0xe
jne 0x40106d
mov ecx, dword [ebp - 0x14]
and ecx, 0xffff
xor edx, edx
mov dx, word [0x40f038]
cmp ecx, edx
je 0x40107b
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4010ed
mov ecx, dword [ebp - 0x12]
sub ecx, 0xe
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004047c6
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4010a7
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4010ed
push 0
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0
je 0x4010da
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 4]
je 0x4010ea
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00404797
add esp, 4
xor eax, eax
jmp 0x4010ed
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x403af7
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push str.HardwareDescriptionSystemCentralProcessor0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x403b71
mov dword [ebp - 0x10], 4
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0
push str.MHz
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x403b71
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 0
fild qword [ebp - 0x20]
fstp qword [ebp - 0xc]
cmp dword [ebp - 0x18], 0
je 0x403b81
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
fld qword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x403fc0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.004047c6
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403fed
push str.malloc
call fcn.004052ef
add esp, 4
push 1
call fcn.004050e9
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40432a
Capabilities:
Check mutex on windows
Create process on windows
Get file size
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
push str.PatchEIOffice
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x20c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40436c
mov eax, dword [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x404563
mov ecx, dword [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea edx, [ebp - 0x208]
push edx
call fcn.00404278
add esp, 8
test eax, eax
jne 0x40439b
mov eax, 1
jmp 0x404563
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x310]
push ecx
call fcn.00404850
add esp, 8
push str.UpgradeOnUpgrade.ini
lea edx, [ebp - 0x208]
push edx
call fcn.00404860
add esp, 8
push 0x40fa3c
lea eax, [ebp - 0x208]
push eax
call fcn.00405074
add esp, 8
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x314], 0
je 0x404561
mov ecx, dword [ebp - 0x314]
push ecx
call fcn.00404e06
add esp, 4
lea edx, [ebp - 0x208]
push edx
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0x4107f4
push str.filename
push 0x40fa4c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.Upgradepatch_
lea ecx, [ebp - 0x310]
push ecx
call fcn.00404860
add esp, 8
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x310]
push eax
call fcn.00404860
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 1
push 3
push 0
push 0
push 0x80000000
lea ecx, [ebp - 0x310]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0xffffffff
jne 0x40449c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x404495
mov eax, 1
jmp 0x404563
xor eax, eax
jmp 0x404563
push 0
mov edx, dword [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x318], eax
mov eax, dword [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x208]
push ecx
push 0x104
lea edx, [ebp - 0x41c]
push edx
push 0x4107f8
push str.filesize
push str.Patch
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x41c]
push eax
call fcn.004053b7
add esp, 4
cmp eax, dword [ebp - 0x318]
jne 0x404561
push 0x44
push 0
lea ecx, [ebp - 0x474]
push ecx
call fcn.00404e60
add esp, 0xc
mov dword [ebp - 0x474], 0x44
push 0x10
push 0
lea edx, [ebp - 0x430]
push edx
call fcn.00404e60
add esp, 0xc
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 0x474]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x310]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x404561
mov eax, 1
jmp 0x404563
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x408781
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40ff60
cmp edx, dword [eax]
je 0x4087a3
add eax, 8
inc ecx
cmp eax, 0x40fff0
jl 0x408794
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40ff60]
jne 0x4088d1
mov eax, dword [0x410858]
cmp eax, 1
je 0x4088ab
test eax, eax
jne 0x4087d4
cmp dword [0x40fbc4], 1
je 0x4088ab
cmp edx, 0xfc
je 0x4088d1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40880b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404850
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404940
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40884e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404940
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d894
push edi
call fcn.0040aab0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404850
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404860
lea eax, [ebp - 0xa0]
push 0x40d874
push eax
call fcn.00404860
push dword [esi + 0x40ff64]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404860
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040aa1a
add esp, 0x2c
pop edi
jmp 0x4088d1
lea eax, [ebp + 8]
lea esi, [esi + 0x40ff64]
push 0
push eax
push dword [esi]
call fcn.00404940
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 0x75c370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x75c38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x785074
push ecx
mov edi, eax
call fcn.00770198
mov esi, eax
add esp, 8
test esi, esi
jne 0x75c3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0077002e
push esi
call fcn.0076ffb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x75f850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x75f8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x78a720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x75f8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.007701e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x75f8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x78a720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x75f92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00771082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x75f957
mov word [eax], si
add eax, 2
push eax
call fcn.00771030
add esp, 4
jmp 0x75f959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x75f8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x75f8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x75fff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x760080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x7600c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x785458
push ecx
call fcn.007701e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.007701e1
add esp, 0x10
jmp 0x7600d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0077020b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.0076fdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00760050
mov eax, dword [0x78a728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x76013b
push esi
call fcn.0075ffb0
add esp, 4
mov dword [0x78a728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x76014c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.0075fff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x763440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x7634b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x76348e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x763471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x76347e
add edx, ecx
cmp ebx, edx
jb 0x76348a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x763467
xor ecx, ecx
jmp 0x7634a2
test eax, eax
jne 0x763492
xor ecx, ecx
jmp 0x7634a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.007633c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret