joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5fb090
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x669d37
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], method.CMenu.virtual_0
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.00656935
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.00656935
push eax
call fcn.01095e21
push 7
mov byte [esp + 0x170], 2
mov dword [esi], method.CMenu.virtual_0
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 fcn.00b6669d
Function at 0x6120b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x66a1b0
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.00611c60
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00611ce0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00611ce0
lea ecx, [esi + 0xc]
call fcn.006586c0
lea ecx, [esi + 0x10]
call fcn.006586c0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00613270
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00613270
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00613270
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00658735
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00658735
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x612960
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x66a396
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x420
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 0xc]
mov dword [esp + 0x24], edi
mov dword [edi + 0x34], 0xffffffff
call fcn.0065782b
push 0xffffffffffffffff
lea ecx, [edi + 0x20]
push ebx
call fcn.0065782b
lea ecx, [edi + 0x38]
mov dword [esp + 0x14], ecx
call fcn.006586c0
lea eax, [esp + 0x30]
mov byte [esp + 0x30], bl
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], 0x400
mov dword [esp + 0x24], ebx
push edx
call fcn.00d09ab2
mov dword [esp + 0x20], eax
call fcn.00b964d9

Function at 0x61f8e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xb01a58]
xor edx, edx
cmp eax, edx
jne 0x61f906
xor eax, eax
mov byte [eax + 0xb01958], al
inc eax
cmp eax, 0x100
jl 0x61f8ee
mov dword [0xb01a58], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xb01958
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x61f997
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 0x61f96a
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 0x61f938
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x61fa10
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 0x61fa63
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 0x61fa4a
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 0x626420
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x66a5de
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.00626d40
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x96cabc
call fcn.00658476
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x6264b3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00658476
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x6264ac
push 0
mov ecx, eax
call fcn.0061d520
mov dword [esi + 0xc], eax
jmp 0x6264b5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x6264b5
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 0xb22c80
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0xb22d8c
test eax, eax
je 0xb22d8c
push esi
push edi
mov ecx, 0x10
mov esi, 0xb3dff0
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0xb22d73
lea edi, [eax + 4]
jmp 0xb22cd7
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0xb22cec
mov dword [ebp - 4], 2
jmp 0xb22d0d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0xb22d03
mov dword [ebp - 4], 1
jmp 0xb22d0d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0xb22d83
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0xb22d46
mov byte [ecx], 0x3d
jmp 0xb22d52
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0xb22d5d
mov byte [ecx], 0x3d
jmp 0xb22d63
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0xb22cd4
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f7e00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x86000]
push edi
jmp 0x4f7e1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4f7e21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f7e10
mov eax, 1
add ebx, ebx
jne 0x4f7e33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4f7e44
jne 0x4f7e63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f7e63
dec eax
add ebx, ebx
jne 0x4f7e50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4f7e28
add ebx, ebx
jne 0x4f7e5f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4f7eb5
xor ecx, ecx
sub eax, 3
jb 0x4f7e7b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4f7eea
sar eax, 1
mov ebp, eax
jmp 0x4f7e86
add ebx, ebx
jne 0x4f7e86
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f7e54
inc ecx
add ebx, ebx
jne 0x4f7e94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f7e54
add ebx, ebx
jne 0x4f7ea1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4f7e96
jne 0x4f7eb2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4f7e96
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4f7ed4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4f7ec6
jmp 0x4f7e16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4f7ed4
add edi, ecx
jmp 0x4f7e16
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4f7ef2
cmp byte [edi], 0x11
jne 0x4f7ef2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4f7ef7
lea edi, [esi + 0xf0000]
mov eax, dword [edi]
or eax, eax
je 0x4f7f6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xfea64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xfebe0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4f7f24
mov ecx, edi
jns 0x4f7f53
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xfebe4]
or eax, eax
je 0x4f7f69
mov dword [ebx], eax
add ebx, 4
jmp 0x4f7f41
call dword [esi + 0xfebf4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4f7fa0
cmp al, 0xef
ja 0x4f7f93
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4f7f75
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4f7f82
mov ebp, dword [esi + 0xfebe8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4f7fd4
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x4ea366
Capabilities:
Encode data using xor

Disassembly:
dec ebp
hlt
or dl, byte [ecx + 0x55]
cmp al, dh
sbb byte [ebp + 0x7d77b934], dh
bound ebp, qword [eax - 0x49ee273a]
fcom dword [ecx]
mov dh, 0xe2
invalid
fcom dword [ecx]
mov dh, 0xe2
add al, 0x31
out dx, al
xor esi, ebp
scasd eax, dword es:[edi]
adc byte [eax], bh
out dx, eax
cmp bh, ch
jl 0x4ea358
adc byte [ebx + ebp*8 + 0x1c], bl
jnp 0x4ea311
or dh, dh
shufps xmm3, xmmword [ecx], 0x45
and al, 0xf0
ret

Function at 0x539506
Capabilities:
Encode data using xor

Disassembly:
daa
in al, dx
and eax, 0xb27fcc45
push es
xor cl, bh
adc eax, 0x604eb26f
pushal
pushal
dec edi
sub al, 0xe6
inc esp
outsb dx, byte [esi]
xchg esp, eax
lahf
push ecx
pop eax
dec byte [eax + 0x5a]
xchg edx, eax
xchg byte [edi - 0x3cd08412], al
salc
jae 0x5394f8
and ecx, ebx
xor dword [edx + eax*2 + 0x7e6b6e16], 0x393fc513
retf

Function at 0x584062
Capabilities:
Encode data using xor

Disassembly:
pop ecx
jmp 0x5652a6a6
bnd call 0xa5eb305d
shr eax, 0xc
loope 0x584084
call 0xae70217a
scasb al, byte es:[edi]
mov ch, 0xfe
ja 0x5840d1
xor ebx, dword [edi + edx + 0x7c]
inc esi
pop ecx
je 0x5840bd
xor eax, 0x1011035c
jl 0x584056
pushal
jnp fcn.00584062
jl 0x584069
or edi, dword [ecx + 0x79]
adc byte [edx + 0x5347d3be], 0xb8
xor ecx, edx
jge 0x58409b
in al, dx
mov word [ebx + 0x590ba8d7], es
jb 0x5840b0
xchg esi, eax
jecxz 0x58411d
pop ds
fcomp dword [ebx - 0x2027eddd]
push ebp
mov word [edi - 0x6b], fs
mov dword [0x793dbdf], eax
pop es
bound edi, qword [ebx + 0x33023de9]
and al, 0x4a
xor ebx, dword [ecx - 0x62d176f]
stc
jnp 0x584106
push esp
push ecx
xor esp, eax
shl dword [edx - 0x7edeb93c], 1
bound ecx, qword [esi - 0x6e]
mov ecx, 0xab1ae325
stosd dword es:[edi], eax
jo 0x5840af
pop ebx
insb byte es:[edi], dx
inc edx
sbb eax, 0x114d2424
nop
push ebx
ret
dec ebx
ljmp 0x1c40
mov byte [edx], bh
and eax, 0x2b0576e5
sar cl, 0xef

Function at 0x59f974
Capabilities:
Encode data using xor

Disassembly:
sub eax, dword [ecx + esi*4 - 0x4a]
sbb eax, edx
lodsd eax, dword [esi]
fisttp dword [eax + 0x1f4e0e2]
invalid
loopne 0x59f8fd
add dword [esi - 0x674f6e83], ecx
mov cl, 0xb1
popfd
inc ebx
lcall 0xe53, 0xa45992
lds ebx, [ecx]
les esi, [eax]
adc byte [eax + 0x33], dh
sbb esp, eax
xor byte [eax], dl
jo 0x59f954
adc ah, dl
xchg ebp, eax
and al, 0x3a
loop 0x59f91b
mov eax, dword [0xea6ccd84]
mov ah, 0x46
invalid
push 0xc3955e49
bswap edx
test byte [edx - 0x80], dl
push edx
xor byte [eax + edi*4], 0xc9
jmp 0x59f907

Function at 0x6234aa
Capabilities:
Encode data using xor

Disassembly:
dec edi
je 0x6234bd
pop ebx
in al, 0x4e
pop ds
int3
sub ch, byte [eax + 0x5ad4c99e]
imul esi, eax, 0x63
daa
cmpsb byte [esi], byte es:[edi]
inc ebp
adc eax, 0xa255348b
inc ecx
leave
mov dword [0x2b95e835], eax
jle 0x6234a4
out 0x31, al
mov ah, 0x73
lcall 0xeecd, 0x847ec75c
xor dword [ebx + esi*2 + 0x7ec75c9a], esi
test ch, cl
out dx, al
jg 0x6234be
test ebx, ebp
stosb byte es:[edi], al
call 0x32754007
adc al, 0x12
fsubp st(5)
dec edx
je 0x623494
cmp eax, 0x52ba8fde
adc ebx, dword [ebx]
inc ecx
jns 0x6234df
push 0x7a
ljmp 0x265e
Function at 0x623f76
Capabilities:
Encode data using xor

Disassembly:
add dl, byte [si + 0x495a]
xchg esp, eax
pop edx
dec ecx
mov eax, dword [0x7b1859f0]
inc edi
pushfd
xor dl, cl
inc eax
sti
loopne 0x623f74
in eax, 0xba
push 0x48add338
movsd dword es:[edi], dword [esi]
cmp edx, 0x4b334e05
add byte [esi - 0x21], 0xb
pop ds
mov eax, 0x1a6612b7
mov ah, 0x78
xchg edi, eax
rcr eax, 1
lcall 0x8803, 0xf3b9fefd
movsb byte es:[edi], byte [esi]
invalid

Function at 0x62572a
Capabilities:
Encode data using xor

Disassembly:
adc al, 0x93
lodsb al, byte [esi]
pushfd
call 0x1905ee5d
sti
push edx
lcall 0x8c5f, 0xf2ff0a36
pop edi
test byte [ebx - 0x7f], dl
enter 0xffffffffffffe50b, 0xffffffffffffffda
add al, 0x23
out 0xe8, al
test ah, dh
mov bh, 0xab
mov dword [edx + 0x58c1709b], 0x3a467248
mov edi, 0x44297c93
shl dword [ebx], 1
and esi, dword [edx]
test cl, dh
mov eax, dword [0xb95e64ce]
adc eax, 0x89f87aa6
salc
jb 0x625734
add dl, byte [edx - 0x45]
stc
pop edx
xor dword [ebx + 0x37], ebx
push 0x9bef511b
sti
jnp 0x625784
xor al, ch
cld
sbb dword [edi + eax*4 + 0x37], 0x2c
call 0xa050bd27
sub al, 0xe8
popfd
out dx, al
lahf
hlt
Function at 0x40aef0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.0041a310
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.0041a310
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x40af50
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x567068]
test esi, esi
jle 0x40b070
mov eax, dword [0x56706c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x40af84
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40b007
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40af70
mov dword [esp], ebx
call fcn.0040b940
mov edi, eax
test eax, eax
je 0x40b097
mov eax, dword [0x56706c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0040ba80
mov edx, dword [0x56706c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40b077
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40b000
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x40b010
add dword [0x567068], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x56706c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40b000
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040aef0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40af8e
mov eax, dword [0x56706c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0040aef0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040aef0
lea esi, [esi]
nop
Function at 0x40b5b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x567084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x56707c]
sub esp, 4
test ebx, ebx
je 0x40b605
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40b5fe
test esi, esi
je 0x40b5fe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40b5e0
mov dword [esp], 0x567084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40b940
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x40b965
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x40b970
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x40b965
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x40b9b8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40b9ae
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40b9ba
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x40b9a0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x411030
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push edi
push esi
push ebx
sub esp, 0x220
mov ebx, dword [esp + 0x230]
call sub.msvcrt.dll__errno
mov dword [eax], 0
test ebx, ebx
je 0x4111b0
cmp word [ebx], 0
je 0x411190
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x4111c0
test al, 0x10
je 0x411190
lea esi, [esp + 0x18]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x104
mov dword [esp], esi
call sub.msvcrt.dll__wfullpath
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
mov dword [esp], 0x4fb820
mov ebx, eax
call sub.msvcrt.dll_wcslen
mov dword [esp], 0x4fb824
add ebx, eax
call sub.msvcrt.dll_wcslen
lea eax, [ebx + eax + 0x21d]
add eax, eax
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov ebx, eax
test eax, eax
je 0x4111cf
lea edi, [eax + 0x434]
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.msvcrt.dll_wcscpy
cmp word [ebx + 0x434], 0
jne 0x411148
mov dword [esp], edi
mov dword [esp + 4], 0x4fb824
call sub.msvcrt.dll_wcscat
lea edx, [ebx + 0x224]
xor eax, eax
mov ecx, 0x82
mov dword [ebx + 0x42c], 0xffffffff
mov edi, edx
mov dword [ebx + 0x430], 0
mov dword [ebx + 0x21c], 0
mov dword [ebx + 0x220], 0
rep stosd dword es:[edi], eax
add esp, 0x220
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
cmp word [ebx + eax*2 + 0x432], 0x2f
je 0x4110ed
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
cmp word [ebx + eax*2 + 0x432], 0x5c
je 0x4110ed
mov dword [esp + 4], 0x4fb820
mov dword [esp], edi
call sub.msvcrt.dll_wcscat
jmp 0x4110ed
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 0x14
add esp, 0x220
mov eax, ebx
pop ebx
pop esi
pop edi
ret
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 0xe
jmp 0x41119d
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 2
jmp 0x41119d
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 0xc
jmp 0x41119d
Function at 0x41c9d0
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push edi
xor eax, eax
mov ecx, 0x10
sub esp, 0x88
lea edi, [esp + 0x40]
mov dword [esp + 0x15], 0x6f727245
mov dword [esp + 0x19], 0x6c632072
mov dword [esp + 0x1d], 0x696e6165
mov dword [esp + 0x21], 0x7520676e
mov dword [esp + 0x25], 0x70732070
mov dword [esp + 0x29], 0x6b5f6e69
mov dword [esp + 0x2d], 0x20737965
mov dword [esp + 0x31], 0x20726f66
mov dword [esp + 0x35], 0x65726874
mov dword [esp + 0x39], 0x206461
mov dword [esp + 0x3d], 0
mov dword [esp + 0x7c], 0
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
je 0x41caab
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x41ca7d
cmp eax, 0x6a
je 0x41ca9a
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x41ca78
cmp eax, 0x6a
je 0x41ca9a
add ecx, 2
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + ecx + 0x15], 0
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sub.msvcrt.dll_abort
mov ecx, 0x28
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x41ca90

Function at 0x41ce30
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x567bd4], 1
je 0x41cee8
push edi
mov eax, 0x567bd4
push esi
push ebx
sub esp, 0x10
call fcn.0041c7b0
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.0041c030
mov edi, dword [0x567bd4]
test edi, edi
jne 0x41cea0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4f3214], eax
cmp eax, 0xffffffff
je 0x4ead71
mov dword [0x567bd4], 1
mov dword [esp], esi
call fcn.0041c370
test ebx, ebx
je 0x41ceda
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp fcn.0041cac0
cmp edi, 1
je 0x41ce82
mov dword [esp], 2
call dword [0x4f3200]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x567bd4
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], esi
call fcn.0041c370
test ebx, ebx
jne 0x41ce8e
add esp, 0x10
pop ebx
pop esi
pop edi
ret
ret
call sub.msvcrt.dll_abort