joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b7de4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0x78], ebp
je 0x4b7f9d
push ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov eax, dword [esi + 0x90]
cmp eax, ebp
je 0x4b7f16
mov ecx, dword [esi + 0x94]
sub ecx, eax
mov eax, dword [esp + 0x14]
sar ecx, 4
cmp eax, ecx
jae 0x4b7f16
xor ebx, ebx
mov edx, dword [esi + 0x90]
mov eax, dword [esp + 0x10]
add eax, edx
mov ecx, dword [eax + 4]
cmp ecx, ebp
je 0x4b7efd
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 2
cmp ebx, edx
jae 0x4b7efd
mov eax, ecx
mov ecx, esi
mov edi, dword [eax + ebx*4]
push edi
call fcn.004b9050
mov ebp, eax
test ebp, ebp
je 0x4b7ef5
push ebp
mov ecx, esi
call fcn.004ba570
test eax, eax
je 0x4b7ef5
mov edx, dword [esi + 0x74]
cmp edi, edx
je 0x4b7ef5
mov eax, dword [esp + 0x10]
xor ecx, ecx
test ebx, ebx
sete cl
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x90]
add eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4b7eb6
xor eax, eax
jmp 0x4b7ebe
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
dec eax
xor ecx, ecx
cmp ebx, eax
lea eax, [edi + 1]
sete cl
mov dword [esp + 0x28], ecx
xor ecx, ecx
cmp eax, edx
sete cl
dec edi
mov dword [esp + 0x30], ecx
xor eax, eax
cmp edi, edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
sete al
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x3c], eax
call fcn.004baf40
inc ebx
xor ebp, ebp
jmp 0x4b7e47
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc ecx
add eax, 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jmp 0x4b7e20
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
call fcn.004b9360
test eax, eax
pop ebx
je 0x4b7f9d
mov ecx, dword [esi + 0x74]
push ecx
mov ecx, esi
call fcn.004b9050
mov edi, eax
cmp edi, ebp
je 0x4b7f9d
push edi
mov ecx, esi
call fcn.004ba570
test eax, eax
je 0x4b7f9d
mov eax, 1
lea edx, [esi + 0x1f8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x20], edx
call fcn.004b95a0
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x20], eax
push ecx
mov ecx, esi
call fcn.004b9610
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push eax
call fcn.004baf40
pop edi
pop esi
pop ebp
add esp, 0x28
ret 4
Function at 0x4c25d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5044e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x9f842c
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.004f13db
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.004f13db
mov edi, dword [0x506544]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], 0x9f8418
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [0x506488]
lea ecx, [esp + 0xb0]
push ecx
call dword [0x506178]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.004c30f0
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x4c5460
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x504830
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004c5010
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004c5090
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004c5090
lea ecx, [esi + 0xc]
call fcn.004f3133
lea ecx, [esi + 0x10]
call fcn.004f3133
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004c6620
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004c6620
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004c6620
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004f31a8
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004f31a8
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4cba70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xa6bb54]
xor edx, edx
cmp eax, edx
jne 0x4cba96
xor eax, eax
mov byte [eax + 0xa6ba54], al
inc eax
cmp eax, 0x100
jl 0x4cba7e
mov dword [0xa6bb54], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xa6ba54
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4cbb27
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4cbafa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4cbac8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4cbb30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4cbb83
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4cbb6a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d2500
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x504c2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004d2e20
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x9f93d4
call fcn.004f2ee9
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4d2593
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004f2ee9
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4d258c
push 0
mov ecx, eax
call fcn.004c96a0
mov dword [esi + 0xc], eax
jmp 0x4d2595
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4d2595
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
mov ecx, 0x2840832
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x2d8342a0
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x1c]
cmp edi, 2
mov ebp, ecx
jle 0x401095
lea edx, [edi - 3]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
lea eax, [edx + edx*2]
sub edi, eax
lea esp, [esp]
movzx eax, byte [esi]
shr eax, 2
movzx eax, byte [eax + 0x415750]
mov byte [ecx], al
movzx eax, byte [esi]
movzx ebx, byte [esi + 1]
and eax, 3
shl eax, 4
shr ebx, 4
or eax, ebx
movzx eax, byte [eax + 0x415750]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
movzx ebx, byte [esi + 2]
and eax, 0xf
add eax, eax
add eax, eax
shr ebx, 6
or eax, ebx
movzx eax, byte [eax + 0x415750]
mov byte [ecx + 2], al
movzx eax, byte [esi + 2]
and eax, 0x3f
movzx eax, byte [eax + 0x415750]
mov byte [ecx + 3], al
add esi, 3
add ecx, 4
sub edx, 1
jne 0x401030
test edi, edi
je 0x4010fc
mov al, byte [esi]
cmp edi, 1
jne 0x4010a4
xor dl, dl
jmp 0x4010a7
mov dl, byte [esi + 1]
movzx esi, al
shr esi, 2
mov bl, byte [esi + 0x415750]
movsx eax, al
movzx esi, dl
and eax, 3
shl eax, 4
shr esi, 4
mov byte [ecx], bl
or esi, eax
mov al, byte [esi + 0x415750]
inc ecx
mov byte [ecx], al
inc ecx
cmp edi, 1
jne 0x4010e8
mov byte [ecx], 0x3d
inc ecx
mov byte [ecx], 0x3d
inc ecx
pop edi
mov eax, ecx
pop esi
sub eax, ebp
pop ebp
pop ebx
ret 0xc
movsx edx, dl
and edx, 0xf
mov al, byte [edx*4 + 0x415750]
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
pop edi
mov eax, ecx
pop esi
sub eax, ebp
pop ebp
pop ebx
ret 0xc
Function at 0x401110
Capabilities:
Encode data using base64

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
lea esp, [esp]
mov al, byte [ebx]
cmp al, 0x20
je 0x40112a
cmp al, 9
jne 0x40112d
inc ebx
jmp 0x401120
mov eax, ebx
nop
movsx ecx, byte [eax]
inc eax
cmp dword [ecx*4 + str.________________________________________________456789:_________], 0x3f
jle 0x401130
mov edi, dword [esp + 0x1c]
sub eax, ebx
dec eax
mov ecx, eax
lea eax, [ecx + 3]
cdq
and edx, 3
add eax, edx
sar eax, 2
lea esi, [eax + eax*2]
cmp esi, edi
mov dword [esp + 0x14], esi
jle 0x401173
lea ecx, [edi*4]
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, ebx
test ecx, ecx
jle 0x40120d
xor esi, esi
nop
movsx ebx, byte [eax]
movsx edx, byte [eax + 1]
mov bl, byte [ebx*4 + str.________________________________________________456789:_________]
mov edx, dword [edx*4 + str.________________________________________________456789:_________]
add bl, bl
sar edx, 4
add bl, bl
or dl, bl
mov byte [ebp], dl
inc esi
inc ebp
cmp esi, edi
jge 0x401234
mov dl, byte [eax + 2]
cmp dl, 0x3d
je 0x4011fb
movsx ebx, byte [eax + 1]
mov bl, byte [ebx*4 + str.________________________________________________456789:_________]
movsx edx, dl
mov edx, dword [edx*4 + str.________________________________________________456789:_________]
sar edx, 2
shl bl, 4
or dl, bl
mov byte [ebp], dl
inc esi
inc ebp
cmp esi, edi
jge 0x401234
movsx edx, byte [eax + 2]
mov dl, byte [edx*4 + str.________________________________________________456789:_________]
movsx ebx, byte [eax + 3]
shl dl, 6
or dl, byte [ebx*4 + str.________________________________________________456789:_________]
inc esi
mov byte [ebp], dl
inc ebp
cmp esi, edi
jge 0x401234
sub ecx, 4
add eax, 4
test ecx, ecx
jg 0x401180
mov esi, dword [esp + 0x14]
test cl, 3
je 0x40123e
movsx eax, byte [eax - 2]
cmp dword [eax*4 + str.________________________________________________456789:_________], 0x3f
jle 0x40123d
mov ecx, dword [esp + 0x18]
sub esi, 2
pop edi
mov byte [esi + ecx], 0
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
dec esi
mov ecx, dword [esp + 0x18]
pop edi
mov byte [esi + ecx], 0
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x401f80
Capabilities:
Create thread

Disassembly:
sub esp, 0x9c
mov eax, dword [0x4190cc]
xor eax, esp
mov dword [esp + 0x98], eax
push esi
mov esi, dword [esp + 0xa4]
push edi
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
xor ecx, ecx
cmp dword [esp + 0x1c], 2
push 0
sete cl
push 9
push 0
push 0
mov dword [0xc2bd08], ecx
call edi
push 0
push 9
push 0
push 0
mov dword [0xc2bce0], eax
call edi
push 0
push 0x10
push 0
push 0
mov dword [0xc2bd00], eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 1
push 0
mov dword [esi + 0x21c], eax
call edi
push 0
push 0
push 1
push 0
mov dword [esi + 0x218], eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea edx, [esp + 8]
push edx
push 0
push 0
push 0x401df0
push 0
push 0
mov dword [0xc2bcec], eax
call edi
mov dword [0xc2bd04], eax
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x4018d0
push 0
push 0
call edi
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
mov dword [0xc2bce4], eax
xor ecx, esp
mov eax, 1
call fcn.00408b84
add esp, 0x9c
ret 4
Function at 0x4023c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x4190cc]
xor eax, esp
mov dword [esp + 0x804], eax
cmp dword [0x41a618], 0
je 0x40241f
mov ecx, dword [esp + 0x810]
lea eax, [esp + 0x814]
push eax
push ecx
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
mov eax, dword [esp + 0x80c]
push eax
lea ecx, [esp + 8]
push ecx
call fcn.004020a0
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00408b84
add esp, 0x808
ret
cmp dword [0x41b908], 0
je 0x402468
mov eax, dword [esp + 0x810]
lea edx, [esp + 0x814]
push edx
push eax
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_wvsprintfA]
mov ecx, dword [0x41b48c]
push 0
mov dword [esp + eax + 8], 0xa0d
lea edx, [esp + 4]
push edx
add eax, 2
push eax
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00408b84
add esp, 0x808
ret
Function at 0x404770
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x4190cc]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x218]
push ebx
mov ebx, dword [esp + 4]
push ebp
mov ebp, dword [esp + 0x228]
push esi
mov esi, dword [esp + 0x228]
push edi
xor edi, edi
dec ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x230], ebp
cmp edi, ebp
jge 0x4048a6
jmp 0x4047cb
mov ebp, dword [esp + 0x230]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x200
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4048d4
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x4048a6
push ebx
lea ecx, [esp + 0x20]
push 0xa
push ecx
mov byte [esp + ebx + 0x28], 0
call fcn.004098f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x404830
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push 0xd
push ecx
call fcn.004098f0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x404867
mov eax, ebp
lea edx, [esp + 0x1c]
mov ecx, esi
sub eax, edi
sub ecx, edx
cmp eax, ecx
mov ebp, eax
jl 0x404844
mov ebp, ecx
mov edx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
push 1
lea ecx, [esp + 0x20]
sub eax, ecx
push 0
inc eax
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [esp + 0x10]
jmp 0x404873
mov ebx, dword [esp + 0x10]
sub ebp, edi
cmp ebp, ebx
jl 0x404873
mov ebp, ebx
mov ecx, dword [esp + 0x18]
push ebp
lea eax, [esp + 0x20]
push eax
add ecx, edi
push ecx
call fcn.00408ba0
add esp, 0xc
add edi, ebp
test esi, esi
jne 0x40489b
cmp edi, dword [esp + 0x230]
jl 0x4047c0
mov ebp, dword [esp + 0x230]
mov esi, dword [esp + 0x18]
test edi, edi
jl 0x4048d7
jle 0x4048c1
lea esp, [esp]
mov al, byte [esi + edi - 1]
cmp al, 0xd
je 0x4048bc
cmp al, 0xa
jne 0x4048c1
dec edi
test edi, edi
jg 0x4048b0
mov byte [esi + edi], 0
cmp byte [esi], 0
jne 0x4048d7
test ebx, ebx
jne 0x4047b3
jmp 0x4048d7
or edi, 0xffffffff
mov ecx, dword [esp + 0x220]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00408b84
add esp, 0x214
ret 0xc
Function at 0x405280
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov edi, dword [esp + 0x20]
push 0
lea eax, [esp + 0x24]
push eax
push 8
push edi
push ebx
call ebp
test eax, eax
je 0x405318
cmp dword [esp + 0x20], 8
jne 0x405318
push 0
lea ecx, [esp + 0x24]
push ecx
push 0x30
lea edx, [edi + 8]
push edx
push ebx
call ebp
test eax, eax
je 0x405318
cmp dword [esp + 0x20], 0x30
jne 0x405318
push esi
mov esi, dword [edi]
push 0
lea eax, [esp + 0x28]
push eax
sub esi, 0x38
push esi
add edi, 0x38
push edi
push ebx
call ebp
test eax, eax
je 0x40530f
cmp dword [esp + 0x24], esi
jne 0x40530f
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
push 0
push 0
push ecx
push ebx
sar esi, 1
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [esi + ebx], 0
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
ret 0x14
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
ret 0x14
pop edi
pop ebp
xor eax, eax
pop ebx
ret 0x14

Function at 0x4055e0
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
sub esp, 0x24c
mov eax, dword [0x4190cc]
xor eax, esp
mov dword [esp + 0x248], eax
mov eax, dword [esp + 0x254]
push ebp
mov ebp, dword [esp + 0x254]
push esi
push edi
push 0
push 0x20000000
push 3
push 0
push 7
push 0x80000000
push ebp
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40571d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40570f
cmp byte [ebp], 0
mov esi, ebp
lea edi, [esp + 0x150]
je 0x40567a
jmp 0x405650
movsx ecx, byte [esi]
push ecx
call fcn.00409259
add esp, 4
test eax, eax
jne 0x40566f
mov al, byte [esi]
cmp al, 0x2d
je 0x40566f
cmp al, 0x2e
je 0x40566f
mov byte [edi], 0x3f
jmp 0x405673
mov dl, byte [esi]
mov byte [edi], dl
inc esi
inc edi
cmp byte [esi], 0
jne 0x405650
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x154]
push ecx
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4056ca
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea edx, [esp + 0x14]
push edx
push esi
mov edi, 1
call ebx
cmp eax, edi
jne 0x4056be
nop
lea eax, [esp + 0x14]
push eax
push esi
inc edi
call ebx
cmp eax, 1
je 0x4056b0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
test edi, edi
jne 0x4056d8
mov dword [ebp + 0x210], 1
xor eax, eax
jmp 0x405739
cmp edi, 1
je 0x4056eb
mov dword [ebp + 0x210], 3
xor eax, eax
jmp 0x405739
push 0
push 0x8000000
push 3
push 0
push 7
push 0x80000000
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40571d
mov dword [ebp + 0x210], 2
xor eax, eax
jmp 0x405739
mov edx, dword [esp + 0xc]
push edx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x254]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00408b84
add esp, 0x24c
ret 8
Function at 0x408b84
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4190cc]
jne 0x408b8e
repz ret
jmp fcn.0040a6e6

Function at 0x41116e
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.0040bbe7
and dword [ebp - 4], 0
cmp dword [0x41b190], 0
mov ebx, eax
jne 0x41121f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4112d0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41713c
push edi
call esi
test eax, eax
je 0x4112d0
push eax
call fcn.0040bb75
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41b190], eax
call esi
push eax
call fcn.0040bb75
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41b194], eax
call esi
push eax
call fcn.0040bb75
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41b198], eax
call esi
push eax
call fcn.0040bb75
pop ecx
mov dword [0x41b1a0], eax
test eax, eax
je 0x41121f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040bb75
pop ecx
mov dword [0x41b19c], eax
mov eax, dword [0x41b19c]
cmp eax, ebx
je 0x411277
cmp dword [0x41b1a0], ebx
je 0x411277
push eax
call fcn.0040bbf0
push dword [0x41b1a0]
mov esi, eax
call fcn.0040bbf0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x411277
test edi, edi
je 0x411277
call esi
test eax, eax
je 0x41126e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41126e
test byte [ebp - 0xc], 1
jne 0x411277
or dword [ebp + 0x10], 0x200000
jmp 0x4112b0
mov eax, dword [0x41b194]
cmp eax, ebx
je 0x4112b0
push eax
call fcn.0040bbf0
pop ecx
test eax, eax
je 0x4112b0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4112b0
mov eax, dword [0x41b198]
cmp eax, ebx
je 0x4112b0
push eax
call fcn.0040bbf0
pop ecx
test eax, eax
je 0x4112b0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41b190]
call fcn.0040bbf0
pop ecx
test eax, eax
je 0x4112d0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4112d2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413000
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
push ebx
push esi
push edi
mov ebx, edx
mov ecx, dword [esp + 0x10]
lea edi, [0x41a0c0]
or ebx, ecx
mov esi, edx
test ebx, 3
mov ebx, dword [edi]
jne 0x413080
add edx, ecx
shr ecx, 2
neg ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xor eax, dword [edx + ecx*4]
mov bl, al
shr eax, 8
xor eax, dword [edi + ebx*4]
mov bl, al
shr eax, 8
xor eax, dword [edi + ebx*4]
mov bl, al
shr eax, 8
xor eax, dword [edi + ebx*4]
mov bl, al
shr eax, 8
xor eax, dword [edi + ebx*4]
inc ecx
jne 0x413040
pop edi
pop esi
pop ebx
ret 4
and esi, 3
je 0x41309d
mov bl, al
shr eax, 8
xor bl, byte [edx]
inc edx
xor eax, dword [ebx*4 + 0x41a0c0]
dec edi
je 0x4130e3
dec esi
jne 0x413088
mov esi, ecx
shr ecx, 2
je 0x4130cd
xor eax, dword [edx]
mov bl, al
shr eax, 8
inc edx
xor eax, dword [edi + ebx*4]
mov bl, al
shr eax, 8
inc edx
xor eax, dword [edi + ebx*4]
mov bl, al
shr eax, 8
inc edx
xor eax, dword [edi + ebx*4]
mov bl, al
shr eax, 8
inc edx
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x4130a4
and esi, 3
je 0x4130e3
mov bl, al
shr eax, 8
xor bl, byte [edx]
inc edx
xor eax, dword [edi + ebx*4]
dec esi
jne 0x4130d5
pop edi
pop esi
pop ebx
ret 4

Function at 0x413100
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor edx, edx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
ret