joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b40c0
Capabilities:
Terminate process

Disassembly:
push 0x5a438c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [0x5a4388]
test eax, eax
jne 0x4b411c
push 0x80
call fcn.004eb990
add esp, 4
test eax, eax
je 0x4b40f3
push str.fmod.dll
mov ecx, eax
call fcn.004b3d20
jmp 0x4b40f5
xor eax, eax
mov dword [0x5a4388], eax
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4b411c
push 0x10
push 0x537008
push str.Cant_find_fmod.dll.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.004fdaa0
ret

Function at 0x4b4570
Capabilities:
Access peb ldr_data
Get kernel32 base address
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516f38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
mov edx, 0x3ff00000
lea edi, [esi + 0xc]
mov dword [ebp - 4], ebx
mov dword [esi], 0x536fc4
mov dword [esi + 4], ecx
mov byte [esi + 0x12], bl
mov byte [esi + 0x10], bl
mov byte [esi + 0x11], bl
mov dword [esi + 8], eax
mov dword [edi], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x30], 0xac44
je 0x4b466b
mov ecx, dword [ecx + 0x1494]
mov edx, dword [ecx]
push edi
push eax
push ecx
call dword [edx + 0x14]
cmp eax, ebx
je 0x4b465f
cmp eax, 0x8878000a
jg 0x4b462c
je 0x4b461f
cmp eax, 0x8007000e
je 0x4b4612
cmp eax, 0x80070057
jne 0x4b4659
push ebx
push 0x5378d0
push str.DSERR_INVALIDPARAM
jmp 0x4b4652
push ebx
push 0x5378d0
push str.DSERR_OUTOFMEMORY
jmp 0x4b4652
push ebx
push 0x5378d0
push str.DSERR_ALLOCATED
jmp 0x4b4652
cmp eax, 0x88780032
je 0x4b4647
cmp eax, 0x887800aa
jne 0x4b4659
push ebx
push 0x5378d0
push str.DSERR_UNINITIALIZED
jmp 0x4b4652
push ebx
push 0x5378d0
push str.DSERR_INVALIDCALL
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.004fdaa0
mov edi, dword [edi]
mov ecx, dword [edi]
lea eax, [esi + 0x30]
push eax
push edi
call dword [ecx + 0x20]
mov ecx, esi
call fcn.004b3650
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x4b9d00
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
pop ebp
ret
Function at 0x4c4eb0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4c4ee3
push esi
call fcn.004d2fe0
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x4c4edc
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
pop ebp
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4c4f64
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x4c4f53
lea ebx, [ebx]
mov eax, dword [esi + 8]
test eax, eax
je 0x4c4f0d
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4c4f4e
cmp eax, 2
je 0x4c4f53
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4c4f00
cmp eax, 3
je 0x4c4f33
cmp eax, 1
jne 0x4c4f00
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x4c4f00
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4c4f00
xor al, al
pop esi
pop ebp
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.004c4d40
pop esi
pop ebp
ret
cmp eax, 0xcc
je 0x4c4f84
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
call fcn.004c4d40
pop esi
pop ebp
ret

Function at 0x4c5960
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
test edx, edx
push edi
mov edi, dword [ebp + 8]
je 0x4c59c0
push ebx
push esi
mov ecx, dword [edx]
mov ebx, dword [ecx]
mov esi, dword [edx + 4]
mov ecx, dword [edx + 8]
add esi, ebx
cmp edi, ecx
mov ebx, edi
jl 0x4c5984
mov ebx, ecx
xor ecx, ecx
test ebx, ebx
mov dword [ebp - 4], ebx
jle 0x4c59b2
lea ecx, [ecx]
movzx edi, byte [ecx + esi]
mov ebx, eax
shr ebx, 0x18
xor edi, ebx
mov edi, dword [edi*4 + 0x567e10]
shl eax, 8
xor eax, edi
mov edi, dword [ebp - 4]
inc ecx
cmp ecx, edi
jl 0x4c5990
mov edi, dword [ebp + 8]
mov edx, dword [edx + 0xc]
sub edi, ecx
test edx, edx
mov dword [ebp + 8], edi
jne 0x4c5970
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4cadc0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4cadce
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 8
not eax
jb 0x4caec1
push ebx
push edi
mov edi, esi
shr edi, 3
xor edx, edx
mov dl, byte [ecx]
mov ebx, eax
shr ebx, 8
sub esi, 8
xor edx, eax
and edx, 0xff
mov eax, dword [edx*4 + 0x53a1c0]
xor eax, ebx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x53a1c0]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x53a1c0]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x53a1c0]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x53a1c0]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x53a1c0]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x53a1c0]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x53a1c0]
shr eax, 8
xor eax, edx
inc ecx
dec edi
jne 0x4cade7
pop edi
pop ebx
test esi, esi
je 0x4caee1
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x53a1c0]
shr eax, 8
xor eax, edx
inc ecx
dec esi
jne 0x4caec5
not eax
pop esi
pop ebp
ret
Function at 0x4cfcb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebx + 0x24]
push esi
push edi
mov dword [ebp - 4], eax
jmp 0x4cfcc3
mov eax, dword [ebp - 4]
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x34]
mov esi, dword [ebx + 0x6c]
sub ecx, edx
sub ecx, esi
mov dword [ebp - 8], ecx
jne 0x4cfce4
test edx, edx
jne 0x4cfcf3
test esi, esi
jne 0x4cfcf3
mov ecx, eax
jmp 0x4cfd7c
cmp ecx, 0xffffffff
jne 0x4cfcf3
mov ecx, 0xfffffffe
jmp 0x4cfd7c
mov esi, dword [ebx + 0x24]
lea esi, [eax + esi - 0x106]
cmp edx, esi
jb 0x4cfd7c
mov edi, dword [ebx + 0x30]
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea esi, [edi + eax]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx + 0x68]
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x54]
sub esi, eax
sub edx, eax
sub ecx, eax
mov dword [ebx + 0x68], esi
mov esi, dword [ebx + 0x44]
mov dword [ebx + 0x54], ecx
mov ecx, dword [ebx + 0x3c]
mov dword [ebx + 0x64], edx
lea edx, [ecx + esi*2]
jmp 0x4cfd40
movzx ecx, word [edx - 2]
sub edx, 2
cmp ecx, eax
jb 0x4cfd4f
sub ecx, eax
jmp 0x4cfd51
xor ecx, ecx
dec esi
mov word [edx], cx
jne 0x4cfd40
mov edx, dword [ebx + 0x38]
mov esi, eax
lea edx, [edx + eax*2]
nop
movzx ecx, word [edx - 2]
sub edx, 2
cmp ecx, eax
jb 0x4cfd6f
sub ecx, eax
jmp 0x4cfd71
xor ecx, ecx
dec esi
mov word [edx], cx
jne 0x4cfd60
mov ecx, dword [ebp - 8]
add ecx, eax
mov eax, dword [ebx]
mov edx, dword [eax + 4]
test edx, edx
je 0x4cfde0
mov edx, dword [ebx + 0x6c]
mov edi, dword [ebx + 0x64]
mov esi, dword [ebx + 0x30]
add edx, edi
add edx, esi
push edx
push eax
call fcn.004cfa50
mov ecx, dword [ebx + 0x6c]
add ecx, eax
mov edx, ecx
add esp, 8
cmp edx, 3
mov dword [ebx + 0x6c], ecx
jb 0x4cfdcb
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [ebx + 0x50]
mov dword [ebx + 0x40], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp edx, 0x106
jae 0x4cfde0
mov edx, dword [ebx]
mov eax, dword [edx + 4]
test eax, eax
jne 0x4cfcc0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4fa6e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and byte [ebp - 4], 0
push edi
xor eax, eax
lea edi, [ebp - 3]
stosb byte es:[edi], al
push 2
lea eax, [ebp - 4]
push eax
push 0x22
call fcn.00500cca
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov al, byte [ebp - 4]
cmp al, 0x30
pop edi
jne 0x4fa712
push 2
pop eax
leave
ret
cmp al, 0x31
jne 0x4fa71b
xor eax, eax
inc eax
leave
ret
sub al, 0x32
neg al
sbb eax, eax
and eax, 0xfffffffd
add eax, 3
leave
ret

Function at 0x4fc1df
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x547120
call fcn.00503428
mov edi, 0x94
mov eax, edi
call fcn.004fdfb0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x5a4a2c], ecx
mov eax, dword [esi + 4]
mov dword [0x5a4a38], eax
mov edx, dword [esi + 8]
mov dword [0x5a4a3c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x5a4a30], esi
cmp ecx, 2
je 0x4fc23f
or esi, 0x8000
mov dword [0x5a4a30], esi
shl eax, 8
add eax, edx
mov dword [0x5a4a34], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4fc27a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4fc27a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4fc292
cmp eax, 0x20b
je 0x4fc27f
mov dword [ebp - 0x1c], esi
jmp 0x4fc2a6
cmp dword [ecx + 0x84], 0xe
jbe 0x4fc27a
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4fc2a0
cmp dword [ecx + 0x74], 0xe
jbe 0x4fc27a
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00505702
pop ecx
test eax, eax
jne 0x4fc2ba
push 0x1c
call fcn.004fc1bb
pop ecx
call fcn.00502fc7
test eax, eax
jne 0x4fc2cb
push 0x10
call fcn.004fc1bb
pop ecx
call fcn.00506be8
mov dword [ebp - 4], esi
call fcn.005069ea
test eax, eax
jge 0x4fc2e4
push 0x1b
call fcn.004fc196
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x5a6254], eax
call fcn.005068c8
mov dword [0x5a4a00], eax
call fcn.00506826
test eax, eax
jge 0x4fc30a
push 8
call fcn.004fc196
pop ecx
call fcn.005065f3
test eax, eax
jge 0x4fc31b
push 9
call fcn.004fc196
pop ecx
call fcn.004fd968
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4fc32e
push eax
call fcn.004fc196
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0050658a
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x4fc34f
movzx eax, word [ebp - 0x34]
jmp 0x4fc352
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.0040e210
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4fc370
push edi
call fcn.004fdaa0
call fcn.004fdac2
jmp 0x4fc3a2
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00503463
ret
Function at 0x4fc616
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x4fc632
call fcn.004fe1da
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x4fc6a4
push esi
push 0x88
push 1
call fcn.004fef51
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4fc68a
push esi
call fcn.00502dd8
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x4fc576
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x4fc682
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4fc6a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004fdb46
test ebx, ebx
pop ecx
je 0x4fc69c
push ebx
call fcn.004fe1ec
pop ecx
or eax, 0xffffffff
jmp 0x4fc6a3
mov eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0x4fd9cd
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.00500e15
xor esi, esi
inc esi
cmp dword [0x5a4a6c], esi
pop ecx
jne 0x4fd9f5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x5a4a68], esi
mov byte [0x5a4a64], al
jne 0x4fda5b
mov ecx, dword [0x5a624c]
test ecx, ecx
je 0x4fda3c
mov eax, dword [0x5a6248]
sub eax, 4
cmp eax, ecx
jmp 0x4fda35
mov eax, dword [eax]
test eax, eax
je 0x4fda27
call eax
mov eax, dword [0x5a6248]
sub eax, 4
cmp eax, dword [0x5a624c]
mov dword [0x5a6248], eax
jae 0x4fda1f
mov eax, 0x55f364
mov esi, 0x55f36c
cmp eax, esi
mov edi, eax
jae 0x4fda5b
mov eax, dword [edi]
test eax, eax
je 0x4fda54
call eax
add edi, 4
cmp edi, esi
jb 0x4fda4c
mov eax, 0x55f370
mov esi, 0x55f378
cmp eax, esi
mov edi, eax
jae 0x4fda7a
mov eax, dword [edi]
test eax, eax
je 0x4fda73
call eax
add edi, 4
cmp edi, esi
jb 0x4fda6b
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x4fda8b
push 8
call fcn.00500d81
jmp 0x4fda9d
push dword [ebp + 8]
mov dword [0x5a4a6c], 1
call fcn.004fd926
pop ecx
pop ebp
ret
Function at 0x4fe831
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x569f5c]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x4fe8ac
push ebx
call fcn.004fe7fa
test eax, eax
pop ecx
jne 0x4fe87e
call fcn.004fe1e3
mov dword [eax], 0xf
call fcn.004fe1da
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.004fb7a4
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x4fe8be
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4fe86e
inc eax
cmp eax, 0x104
ja 0x4fe86e
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4fe8f6
cmp eax, dword [ebp + 0x10]
jg 0x4fe8d9
mov eax, dword [ebp + 0x10]
push eax
call fcn.004fc184
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4fe90b
call fcn.004fe1da
mov dword [eax], 0xc
jmp 0x4fe86e
cmp eax, dword [ebp + 0x10]
jle 0x4fe90b
call fcn.004fe1da
mov dword [eax], 0x22
jmp 0x4fe86e
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.00503100
pop ecx
pop ecx
jmp 0x4fe870
Function at 0x506276
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x569f5c]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x56a868]
je 0x5062a3
inc eax
cmp eax, 0x12
jb 0x506294
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x56a868]
jne 0x5063d7
mov eax, dword [0x5a4a08]
cmp eax, 1
je 0x5063b2
cmp eax, edx
jne 0x5062d3
cmp dword [0x569fb4], 1
je 0x5063b2
cmp ecx, 0xfc
je 0x5063d7
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x50630c
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00503100
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004ff350
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x50634e
lea eax, [ebp - 0x10c]
push eax
call fcn.004ff350
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x547bb8
push edi
call fcn.004feca0
add esp, 0x10
push edi
call fcn.004ff350
push dword [esi + 0x56a86c]
mov ebx, eax
call fcn.004ff350
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004fdfb0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00503100
push edi
push ebx
call fcn.00503110
push 0x547bb4
push ebx
call fcn.00503110
push dword [esi + 0x56a86c]
push ebx
call fcn.00503110
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0050b7a9
add esp, 0x2c
jmp 0x5063d7
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x56a86c]
push dword [esi]
call fcn.004ff350
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]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004fb7a4
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5069ea
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x48
push ebx
mov ebx, 0x480
push ebx
call fcn.004fc184
test eax, eax
pop ecx
jne 0x506a06
or eax, 0xffffffff
jmp 0x506be3
mov dword [0x5a5100], eax
mov dword [0x5a50ec], 0x20
lea ecx, [eax + 0x480]
jmp 0x506a3b
and byte [eax + 4], 0
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 5], 0xa
mov ecx, dword [0x5a5100]
add eax, 0x24
add ecx, 0x480
cmp eax, ecx
jb 0x506a1d
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
cmp word [esp + 0x46], 0
je 0x506b42
mov eax, dword [esp + 0x48]
test eax, eax
je 0x506b42
mov edi, dword [eax]
lea ebp, [eax + 4]
lea eax, [edi + ebp]
mov dword [esp + 0x10], eax
mov eax, 0x800
cmp edi, eax
jl 0x506a7c
mov edi, eax
cmp dword [0x5a50ec], edi
jge 0x506ad2
mov esi, 0x5a5104
push ebx
call fcn.004fc184
test eax, eax
pop ecx
je 0x506acc
add dword [0x5a50ec], 0x20
mov dword [esi], eax
lea ecx, [eax + 0x480]
jmp 0x506abb
and byte [eax + 4], 0
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 5], 0xa
mov ecx, dword [esi]
add eax, 0x24
add ecx, ebx
cmp eax, ecx
jb 0x506aa5
add esi, 4
cmp dword [0x5a50ec], edi
jl 0x506a89
jmp 0x506ad2
mov edi, dword [0x5a50ec]
xor ebx, ebx
test edi, edi
jle 0x506b42
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x506b37
mov cl, byte [ebp]
test cl, 1
je 0x506b37
test cl, 8
jne 0x506afb
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x506b37
mov ecx, ebx
mov eax, ebx
and eax, 0x1f
lea eax, [eax + eax*8]
sar ecx, 5
mov ecx, dword [ecx*4 + 0x5a5100]
lea esi, [ecx + eax*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esi], eax
mov al, byte [ebp]
mov byte [esi + 4], al
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.0050a621
test eax, eax
pop ecx
pop ecx
je 0x506b62
inc dword [esi + 8]
add dword [esp + 0x10], 4
inc ebx
inc ebp
cmp ebx, edi
jl 0x506ad8
xor ebx, ebx
mov ecx, dword [0x5a5100]
lea eax, [ebx + ebx*8]
lea esi, [ecx + eax*4]
cmp dword [esi], 0xffffffff
jne 0x506bc4
test ebx, ebx
mov byte [esi + 4], 0x81
jne 0x506b67
push 0xfffffffffffffff6
pop eax
jmp 0x506b71
or eax, 0xffffffff
jmp 0x506be0
mov eax, ebx
dec eax
neg eax
sbb eax, eax
add eax, 0xfffffff5
push eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x506bbe
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x506bbe
and eax, 0xff
cmp eax, 2
mov dword [esi], edi
jne 0x506b9c
or byte [esi + 4], 0x40
jmp 0x506ba5
cmp eax, 3
jne 0x506ba5
or byte [esi + 4], 8
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.0050a621
test eax, eax
pop ecx
pop ecx
je 0x506b62
inc dword [esi + 8]
jmp 0x506bc8
or byte [esi + 4], 0x40
jmp 0x506bc8
or byte [esi + 4], 0x80
inc ebx
cmp ebx, 3
jl 0x506b44
push dword [0x5a50ec]
call dword [sym.imp.KERNEL32.dll_LockResource]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
Function at 0x506e9a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x507060
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x5a5100]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x507060
test cl, 0x48
je 0x506f00
mov al, byte [eax + 5]
cmp al, 0xa
je 0x506f00
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x506f52
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x506f3a
call fcn.004fe1da
mov dword [eax], 9
call fcn.004fe1e3
mov dword [eax], esi
jmp 0x506f4a
cmp eax, 0x6d
je 0x507060
push eax
call fcn.004fe1ec
pop ecx
or eax, 0xffffffff
jmp 0x507062
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x50705b
test edx, edx
je 0x506f75
cmp byte [ebx], 0xa
jne 0x506f75
or al, 4
jmp 0x506f77
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x507055
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x507045
cmp al, 0xd
je 0x506fab
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x507037
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x506fc5
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x506fc0
add dword [ebp + 0x10], 2
jmp 0x507019
mov dword [ebp + 0x10], eax
jmp 0x507033
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x506fed
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x507033
cmp dword [ebp - 0xc], 0
je 0x507033
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x50700e
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x507019
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x507036
cmp ebx, dword [ebp + 0xc]
jne 0x50701e
cmp byte [ebp - 1], 0xa
jne 0x50701e
mov byte [ebx], 0xa
jmp 0x507036
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00507112
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x507037
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x506f8f
jmp 0x507055
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x507055
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x507062
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret