joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f090
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x534090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x47f154
cmp byte [esi + 0x3e], 0
je 0x47f154
mov eax, dword [esi]
push edi
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x47f142
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x47f10a
sub eax, 1
je 0x47f10e
sub eax, 2
jne 0x47f142
mov byte [esi + 0x3e], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb63e
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x47f12b
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004d4b21
add esp, 0x10
cmp edi, eax
jne 0x47f142
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb63e
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb63e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004cb63e
mov esp, ebp
pop ebp
ret
Function at 0x489cd0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ffb60
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x534090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea esi, [ebx + 0x118]
mov dword [ebp - 4], 0
mov edi, dword [esi + 8]
mov dword [esi], 0x5166c4
test edi, edi
jle 0x489d1e
push edi
push 0
mov ecx, esi
call fcn.004881f0
sub dword [esi + 8], edi
push dword [esi + 0xc]
call fcn.004cbb15
add esp, 4
mov dword [esi + 4], 0
lea ecx, [ebx + 0xf0]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.00489f10
lea ecx, [ebx + 0xc8]
call fcn.00489f10
lea ecx, [ebx + 0xa0]
call fcn.00489f10
lea ecx, [ebx + 0x78]
call fcn.00489f10
mov dword [ebp - 4], 1
lea ecx, [ebx + 0x64]
push dword [ebx + 0x6c]
mov dword [ebx + 0x64], 0x51a298
push 0
call fcn.0048b9a0
mov byte [ebp - 4], 2
lea ecx, [ebx + 0x64]
push dword [ebx + 0x6c]
mov dword [ebx + 0x64], 0x5166c4
push 0
call fcn.00488290
push dword [ebx + 0x70]
call fcn.004cbb15
add esp, 4
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
mov dword [ebp - 4], 3
lea ecx, [ebx + 0x50]
push dword [ebx + 0x58]
mov dword [ebx + 0x50], 0x5166c4
push 0
call fcn.00488290
push dword [ebx + 0x5c]
call fcn.004cbb15
add esp, 4
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
mov dword [ebp - 4], 4
lea ecx, [ebx + 0x3c]
push dword [ebx + 0x44]
mov dword [ebx + 0x3c], 0x51a2e8
push 0
call fcn.0048ba50
mov byte [ebp - 4], 5
lea ecx, [ebx + 0x3c]
push dword [ebx + 0x44]
mov dword [ebx + 0x3c], 0x5166c4
push 0
call fcn.00488290
push dword [ebx + 0x48]
call fcn.004cbb15
add esp, 4
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebp - 4], 6
lea ecx, [ebx + 0x28]
push dword [ebx + 0x30]
mov dword [ebx + 0x28], 0x5166c4
push 0
call fcn.00488290
push dword [ebx + 0x34]
call fcn.004cbb15
add esp, 4
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebp - 4], 7
lea ecx, [ebx + 0x14]
push dword [ebx + 0x1c]
mov dword [ebx + 0x14], 0x5166c4
push 0
call fcn.00488290
push dword [ebx + 0x20]
call fcn.004cbb15
add esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebp - 4], 8
mov ecx, ebx
push dword [ebx + 8]
mov dword [ebx], 0x5166c4
push 0
call fcn.00488290
push dword [ebx + 0xc]
call fcn.004cbb15
add esp, 4
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48c450
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ffd90
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x534090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
lea ecx, [edi + 0x3c]
push dword [edi + 0x44]
mov dword [edi + 0x3c], 0x5166c4
push 0
call fcn.00488290
push dword [edi + 0x48]
call fcn.004cbb15
add esp, 4
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [ebp - 4], 1
lea ecx, [edi + 0x28]
push dword [edi + 0x30]
mov dword [edi + 0x28], 0x5166c4
push 0
call fcn.00488290
push dword [edi + 0x34]
call fcn.004cbb15
add esp, 4
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 2
lea ecx, [edi + 0x14]
push dword [edi + 0x1c]
mov dword [edi + 0x14], 0x5166c4
push 0
call fcn.00488290
push dword [edi + 0x20]
call fcn.004cbb15
add esp, 4
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 3
mov ecx, edi
push dword [edi + 8]
mov dword [edi], 0x51a21c
push 0
call fcn.0048bbf0
mov byte [ebp - 4], 4
mov ecx, edi
push dword [edi + 8]
mov dword [edi], 0x5166c4
push 0
call fcn.00488290
push dword [edi + 0xc]
call fcn.004cbb15
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x491440
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ffed0
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x534090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x30]
mov dword [esi], 0x51a580
mov dword [esi + 4], 0x51a5d0
mov dword [esi + 8], 0x51a558
mov dword [esi + 0xc], 0x51a52c
mov dword [esi + 0x10], 0x51a594
mov dword [esi + 0x14], 0x51a614
mov dword [esi + 0x18], 0x51a518
mov dword [esi + 0x1c], 0x51a504
mov dword [esi + 0x20], 0x51a56c
mov dword [esi + 0x24], 0x51a5e8
mov dword [esi + 0x28], 0x51a5bc
test eax, eax
je 0x4914cd
push 0x8000
push 0
push eax
call dword [0x504260]
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x74]
test ecx, ecx
je 0x4914de
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x4914ef
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 3
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x491500
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 4
mov ecx, dword [esi + 0x68]
test ecx, ecx
je 0x491511
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 5
mov ecx, dword [esi + 0x64]
test ecx, ecx
je 0x491522
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 6
mov ecx, dword [esi + 0x60]
test ecx, ecx
je 0x491533
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 7
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x491544
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 8
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x491555
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push 0x78
push esi
call fcn.004cb66f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x492180
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fff10
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x534090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
lea ecx, [edi + 0x3c]
push dword [edi + 0x44]
mov dword [edi + 0x3c], 0x5166c4
push 0
call fcn.00488290
push dword [edi + 0x48]
call fcn.004cbb15
add esp, 4
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [ebp - 4], 1
lea ecx, [edi + 0x28]
push dword [edi + 0x30]
mov dword [edi + 0x28], 0x5166c4
push 0
call fcn.00488290
push dword [edi + 0x34]
call fcn.004cbb15
add esp, 4
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 2
lea ecx, [edi + 0x14]
push dword [edi + 0x1c]
mov dword [edi + 0x14], 0x5166c4
push 0
call fcn.00488290
push dword [edi + 0x20]
call fcn.004cbb15
add esp, 4
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 3
mov ecx, edi
push dword [edi + 8]
mov dword [edi], 0x5166c4
push 0
call fcn.00488290
push dword [edi + 0xc]
call fcn.004cbb15
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4978a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5003b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x534090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 4
mov dword [esi], 0x51a694
mov dword [ebp - 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0x10
mov dword [esi + 0x14], 0x51a23c
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
mov dword [esi + 0x28], 1
mov byte [esi + 0x2c], 0
call fcn.00455880
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x498ea0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5005e0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x534090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push dword [edi + 0x30]
call fcn.004cbb15
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [edi + 0x14]
push dword [edi + 0x1c]
mov dword [edi + 0x14], 0x5166c4
push 0
call fcn.00488290
push dword [edi + 0x20]
call fcn.004cbb15
add esp, 4
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 1
mov ecx, edi
push dword [edi + 8]
mov dword [edi], 0x51a694
push 0
call fcn.004996e0
mov byte [ebp - 4], 2
mov ecx, edi
push dword [edi + 8]
mov dword [edi], 0x5166c4
push 0
call fcn.00488290
push dword [edi + 0xc]
call fcn.004cbb15
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x49f9b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
or edx, 0x100
mov ecx, edx
mov eax, edx
shr ecx, 7
add edx, edx
shr eax, 8
and ecx, 1
neg ecx
sar ecx, 4
and ecx, 0x7f
movzx esi, word [ebx + eax*2]
mov eax, dword [ebp + 8]
shr esi, 4
xor esi, ecx
add edi, dword [eax + esi*4]
cmp edx, 0x10000
jb 0x49f9c0
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x49fa00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, pe_nt_image_headers32
mov dword [ebp - 4], ecx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
or edx, esi
add edi, edi
mov ecx, esi
and ecx, edi
mov eax, edx
add ecx, esi
shr eax, 8
add eax, ecx
mov ecx, dword [ebp - 4]
movzx ecx, word [ecx + eax*2]
mov eax, edx
shr eax, 7
add edx, edx
and eax, 1
shr ecx, 4
neg eax
sar eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [ebp + 0xc]
add ebx, dword [eax + ecx*4]
mov ecx, edx
xor ecx, edi
not ecx
and esi, ecx
cmp edx, 0x10000
jb 0x49fa16
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49fbb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
xor eax, eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
push edi
lea edi, [eax + 1]
test edx, edx
je 0x49fbff
push ebx
mov ebx, dword [ebp + 8]
push esi
nop dword [eax + eax]
movzx edx, word [ecx + edi*2]
mov esi, ebx
and esi, 1
shr edx, 4
mov ecx, esi
shr ebx, 1
neg ecx
add edi, edi
sar ecx, 4
or edi, esi
and ecx, 0x7f
xor edx, ecx
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + edx*4]
sub dword [ebp - 4], 1
mov ecx, dword [ebp - 8]
jne 0x49fbd0
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x49fd80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], edi
movzx esi, word [edi]
movzx ecx, word [edi + 2]
mov eax, esi
shr eax, 4
xor esi, 0x7f0
shr esi, 4
mov eax, dword [ebx + eax*4]
mov dword [ebp - 0xc], eax
mov eax, ecx
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
mov eax, dword [ebx + eax*4]
add eax, dword [ebx + esi*4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + ecx*4]
add eax, dword [ebx + esi*4]
xor esi, esi
mov dword [ebp - 0x18], eax
mov dword [ebp + 0x10], esi
cmp esi, dword [ebp + 8]
jae 0x49fef4
mov edx, esi
mov dword [ebp - 8], 0
mov esi, dword [ebp - 8]
or edx, 8
nop dword [eax]
mov eax, dword [ebp - 4]
mov ecx, edx
shr ecx, 1
and edx, 1
neg edx
sar edx, 4
and edx, 0x7f
lea eax, [ecx + eax*8]
movzx eax, word [edi + eax*2 + 4]
shr eax, 4
xor eax, edx
mov edx, ecx
add esi, dword [ebx + eax*4]
cmp edx, 1
jne 0x49fdf0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
add eax, esi
mov esi, dword [ebp + 0x10]
mov dword [ecx + esi*4], eax
inc esi
mov dword [ebp + 0x10], esi
cmp esi, 8
jb 0x49fdd4
cmp esi, 0x10
jae 0x49fe9a
lea eax, [esi - 8]
mov dword [ebp - 8], eax
nop dword [eax + eax]
cmp esi, dword [ebp + 8]
jae 0x49fef4
mov edx, eax
xor esi, esi
or edx, 8
mov eax, dword [ebp - 4]
mov ecx, edx
shr ecx, 1
and edx, 1
neg edx
sar edx, 4
and edx, 0x7f
lea eax, [ecx + eax*8]
movzx eax, word [edi + eax*2 + 0x104]
shr eax, 4
xor eax, edx
mov edx, ecx
add esi, dword [ebx + eax*4]
cmp edx, 1
jne 0x49fe50
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add eax, esi
mov esi, dword [ebp + 0x10]
mov dword [ecx + esi*4], eax
inc esi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp + 0x10], esi
mov dword [ebp - 8], eax
cmp esi, 0x10
jb 0x49fe40
cmp esi, dword [ebp + 8]
jae 0x49fef4
lea eax, [esi - 0x10]
mov dword [ebp - 8], eax
mov esi, dword [ebp - 0x14]
xor edi, edi
or eax, 0x100
nop
mov edx, eax
and eax, 1
shr edx, 1
neg eax
sar eax, 4
and eax, 0x7f
movzx ecx, word [esi + edx*2 + 0x204]
shr ecx, 4
xor ecx, eax
mov eax, edx
add edi, dword [ebx + ecx*4]
cmp eax, 1
jne 0x49feb0
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
add eax, edi
mov dword [ecx + esi*4], eax
inc esi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp + 0x10], esi
mov dword [ebp - 8], eax
cmp esi, dword [ebp + 8]
jb 0x49fea5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4af010
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x504270]
push ebx
mov ebx, dword [0x504188]
push esi
mov esi, ecx
push edi
mov edi, 1
cmp dword [esi + 4], 0
jne 0x4af05b
push 0
push 0
push 0
push 0
call eax
mov dword [esi + 4], eax
test eax, eax
jne 0x4af056
call ebx
test eax, eax
mov ecx, edi
cmovne ecx, eax
test ecx, ecx
je 0x4af056
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x504270]
cmp dword [esi + 8], 0
jne 0x4af07f
push 0
push 0
push 0
push 0
call eax
mov dword [esi + 8], eax
test eax, eax
jne 0x4af07f
call ebx
test eax, eax
mov ecx, edi
cmovne ecx, eax
test ecx, ecx
jne 0x4af04d
push dword [esi + 4]
call dword [0x504238]
test eax, eax
jne 0x4af08e
call ebx
push dword [esi + 8]
call dword [0x504238]
test eax, eax
jne 0x4af09d
call ebx
cmp dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
je 0x4af0b0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x4aefc0
push 0
push 0
call fcn.004de004
add esp, 0x18
mov dword [esi + 0xc], eax
test eax, eax
je 0x4af0da
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call ebx
test eax, eax
cmovne edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b05a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0
push dword [ebp + 8]
push edx
push 0
push 0
call fcn.004de004
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x4b05ca
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [0x504188]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x4cc4e6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
xor esi, esi
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x20]
add edx, edi
mov ebx, dword [eax + 0x18]
add ecx, edi
mov dword [ebp - 0x10], edx
mov edx, dword [eax + 0x24]
add edx, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
test ebx, ebx
je 0x4cc54c
mov eax, dword [ecx + esi*4]
xor edx, edx
mov cl, byte [eax + edi]
add eax, edi
test cl, cl
je 0x4cc53f
movzx ecx, cl
lea eax, [eax + 1]
or ecx, 0x60
add edx, ecx
mov cl, byte [eax]
add edx, edx
test cl, cl
jne 0x4cc52c
cmp edx, dword [ebp - 4]
je 0x4cc555
mov ecx, dword [ebp - 8]
inc esi
cmp esi, ebx
jb 0x4cc51e
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + esi*2]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e4567
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e4218

Function at 0x4e4572
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e43a2
Function at 0x4044e4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
cmp eax, 1
jne 0x404520
add esp, 0xfffffff4
push dword [edx + 0x4c]
call sym._getc
cmp eax, 0xffffffff
jne 0x404510
xor eax, eax
jmp 0x40452c
mov byte [ebx], al
mov eax, 1
jmp 0x40452c
push dword [edx + 0x4c]
push eax
push 1
push ebx
call sym._fread
mov ebx, dword [ebp - 0x18]
leave
ret

Function at 0x404534
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push ebx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push dword [ebx + 0x4c]
push esi
push 1
push dword [ebp + 0xc]
call sym._fwrite
mov edx, dword [ebx + 0x40]
test edx, edx
jl 0x40455c
add edx, esi
mov dword [ebx + 0x40], edx
lea esp, [ebp - 0x18]
pop ebx
pop esi
leave
ret

Function at 0x40462c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx]
shr eax, 1
xor al, 1
test al, 1
jne 0x404655
push dword [edx + 0x4c]
push ecx
push 1
push ebx
call sym._fwrite
jmp 0x404660
add esp, 0xfffffffc
push ecx
push ebx
push edx
call sym._xsputn__9streambufPCci
mov ebx, dword [ebp - 0x18]
leave
ret

Function at 0x4074c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
add esp, 0xfffffffc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax + 0x38]
call sym._read
leave
ret

Function at 0x40ab94
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40abb9
mov dword [0x413164], eax
add esp, 0xfffffff8
push sym._eh_context_free
push eax
call sym.___mingwthr_key_dtor
jmp 0x40abbe
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x40abd4
mov dword [sym._eh_context_initialize], 0x40acb8
jmp 0x40abde
mov dword [sym._eh_context_initialize], 0x40ac6c
leave
ret

Function at 0x40acb8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
add esp, 0xfffffff4
push dword [0x413164]
call sub.KERNEL32.dll_TlsGetValue
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x40ad05
call sym._new_eh_context
mov ebx, eax
add esp, 0xfffffff8
push ebx
push dword [0x413164]
call sub.KERNEL32.dll_TlsSetValue
add esp, 8
test eax, eax
jne 0x40acfa
call sub.KERNEL32.dll_GetLastError
jmp 0x40acfc
xor eax, eax
test eax, eax
je 0x40ad05
call sym.___terminate
mov eax, ebx
mov ebx, dword [ebp - 0x18]
leave
ret
Function at 0x40ae30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x65c
push edi
push esi
push ebx
mov eax, dword [sym._eh_context_initialize]
call eax
mov edx, eax
lea eax, [edx + 4]
mov dword [ebp - 0x644], eax
mov eax, dword [edx + 4]
lea ecx, [eax + 4]
mov dword [ebp - 0x648], ecx
cmp dword [eax + 4], 0
je 0x40aeed
lea ebx, [ebp - 0x640]
mov dword [ebp - 0x64c], ebx
mov dword [ebx + 4], 0
mov eax, dword [edx + 4]
mov dword [ebp - 0x640], eax
lea eax, [ebp - 0x638]
mov dword [ebp - 0x638], ebp
mov dword [eax + 4], 0x40ae98
mov dword [eax + 8], esp
jmp 0x40ae9a
mov edx, dword [ebp - 0x64c]
mov eax, dword [ebp - 0x644]
mov dword [eax], edx
mov ecx, dword [ebp - 0x648]
cmp dword [ecx], 0
je 0x40aed6
nop
mov ebx, dword [ebp - 0x648]
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebx], eax
add esp, 0xfffffff8
push 2
push edx
call ecx
add esp, 0x10
cmp dword [ebx], 0
jne 0x40aeb4
mov edx, dword [ebp - 0x64c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x644]
mov dword [ecx], eax
jmp 0x40aeed
mov ebx, dword [ebp - 0x644]
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebx], eax
call sym.___sjthrow
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
dec ecx
outsb dx, byte [esi]
je 0x40af7d
jb 0x40af88
popal
insb byte es:[edi], dx
and byte [ebx + 0x6f], al
insd dword es:[edi], dx
jo 0x40af8b
insb byte es:[edi], dx
jb 0x40af46
inc edx
jne sym.___get_eh_table_version
cmp ah, byte [eax]
dec esi
outsd dx, dword [esi]
and byte [edx + 0x75], dh
outsb dx, byte [esi]
je sym.___get_eh_table_language
insd dword es:[edi], dx
and byte gs:[ecx + edi*2 + 0x70], dh
and byte gs:[ebp + 0x61], ch
je 0x40afa2
push 0x2e7265
in eax, 0x83
in al, dx
or al, ch
xor esp, edi
invalid
mov al, 0x41
inc ecx
add byte [ebx - 0x17afbf40], al
mov byte [0x31000043], al
add byte [eax], al
xor eax, eax
ror cl, 0xc3
mov esi, esi
leave
ret
movsx eax, word [eax + 4]
leave
ret