joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e81c
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x40e854
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x40e84f
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
add byte [eax], al
add byte [eax], al
cmp edx, 0x3000
jne 0x40e839
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x40e841
invalid
cmp edx, ebx
jne 0x40e98f
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x40e810
add eax, dword [eax + 4]
jmp 0x40e7fd
mov dword [ebp + 0xc], ebx
jmp 0x40e85f

Function at 0x40e88f
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40e877
invalid
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x40e895
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
add byte [eax], al
invalid
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x40e8f3
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40e8da
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40e8e3
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40e8ed
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40e8cf
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
invalid

Function at 0x40e8a3
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40e877
invalid
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x40e895
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
add byte [eax], al
invalid
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x40e8f3
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40e8da
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40e8e3
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40e8ed
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40e8cf
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
invalid
Function at 0x40ea48
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sbb bh, bh
jne 0x40ea60
call fcn.0040e165
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
invalid
movsd dword es:[edi], dword [esi]
int3
cld
invalid

Function at 0x412045
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x425e54
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x429050]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x1e8]
push dword [esi + 8]
mov eax, dword [esi]
xor ebx, ebx
push ebx
mov ecx, esi
call dword [eax + 4]
lea eax, [esp + 0x10]
add edi, 0x168
push eax
call fcn.00411eb3
push 0xe
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], ebx
call fcn.00411fbd
push 0xf
lea ecx, [esp + 0x14]
call fcn.00411fbd
push 0x11
push esi
lea edi, [esp + 0x18]
call fcn.00411f78
push 0x10
push esi
call fcn.00411f78
push 9
push esi
call fcn.00411f78
push 6
push esi
call fcn.00411f78
push 0x12
push esi
call fcn.00411f78
push 0x14
push esi
call fcn.00411f78
push 0x13
push esi
call fcn.00411f78
push 0x15
push esi
call fcn.00411f78
push 0xa
push esi
call fcn.00411f78
push 0x16
push esi
call fcn.00411f78
mov eax, esi
call fcn.00411f3e
push ebx
push 0x61
call fcn.00414ed2
push ebx
push 0x62
call fcn.00414ed2
push ebx
push 0x63
call fcn.00414ed2
push 0x14
pop edi
mov eax, esi
call fcn.00411ff6
push 6
pop edi
mov eax, esi
call fcn.00411ff6
push 9
pop edi
mov eax, esi
call fcn.00411ff6
push 0x11
pop edi
mov eax, esi
call fcn.00411ff6
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00412d63
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000108c
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebx
push ecx
push 1
pop eax
cpuid
test ecx, 0x40000000
setne al
test al, al
je 0x100010a9
rdrand eax
rdrand edx
pop ecx
pop ebx
ret
push 7
pop eax
xor ecx, ecx
cpuid
test ebx, 0x40000
setne al
test al, al
je 0x100010c6
rdseed eax
rdseed edx
pop ecx
pop ebx
ret
rdtsc
mov ecx, eax
ror ecx, 0xd
rdtsc
mov edx, eax
rol edx, 0xd
mov eax, ecx
pop ecx
pop ebx
ret

Function at 0x100011a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
xor dword [ecx], 0x2a033fe5
not dword [ecx]
add ecx, 4
dec edx
jne 0x100011ab
pop edx
pop ecx
pop ebp
ret 8

Function at 0x100012fc
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push ecx
push edx
push esi
push edi
lea edi, [ebp - 0x104]
xor al, al
stosb byte es:[edi], al
mov ecx, 0x2a
mov al, 0xff
rep stosb byte es:[edi], al
mov al, 0x3e
stosb byte es:[edi], al
mov ecx, 3
mov al, 0xff
rep stosb byte es:[edi], al
mov al, 0x3f
stosb byte es:[edi], al
mov ecx, 0xa
mov al, 0x34
stosb byte es:[edi], al
inc al
loop 0x10001332
mov ecx, 3
mov al, 0xff
rep stosb byte es:[edi], al
xor al, al
stosb byte es:[edi], al
mov ecx, 3
mov al, 0xff
rep stosb byte es:[edi], al
mov ecx, 0x1a
xor al, al
stosb byte es:[edi], al
inc al
loop 0x10001353
mov dl, al
mov ecx, 6
mov al, 0xff
rep stosb byte es:[edi], al
mov ecx, 0x1a
mov al, dl
stosb byte es:[edi], al
inc al
loop 0x1000136a
mov ecx, 0x85
mov al, 0xff
rep stosb byte es:[edi], al
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, edi
mov al, byte [edi]
add edi, 4
test al, al
jne 0x1000137f
lea ebx, [edi - 4]
mov eax, 0x3d
sub ebx, esi
je 0x10001411
cmp al, byte [esi + ebx - 1]
sete dl
jne 0x100013a1
mov byte [esi + ebx - 1], ah
cmp al, byte [esi + ebx - 2]
sete al
jne 0x100013ae
mov byte [esi + ebx - 2], ah
add al, dl
mov edi, dword [ebp + 0xc]
shr ebx, 2
lea edx, [ebx + ebx*2]
sub edx, eax
push edx
mov dword [ebp - 4], ebx
mov ecx, dword [esi]
movzx edx, cl
movzx ebx, ch
push edi
lea edi, [ebp - 0x104]
mov al, byte [edx + edi]
mov ah, byte [ebx + edi]
shr ecx, 0x10
add esi, 4
movzx edx, cl
movzx ecx, ch
mov bl, byte [edx + edi]
mov bh, byte [ecx + edi]
pop edi
mov dl, ah
mov dh, bl
shl al, 2
shr bl, 2
shl dh, 6
shl ah, 4
shr dl, 4
or bh, dh
or al, dl
or ah, bl
mov byte [edi], al
mov byte [edi + 2], bh
mov byte [edi + 1], ah
dec dword [ebp - 4]
lea edi, [edi + 3]
jne 0x100013bf
pop eax
pop edi
pop esi
pop edx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000141c
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push ecx
push edx
push esi
push edi
lea edi, [ebp - 0x44]
mov eax, 0x44434241
stosd dword es:[edi], eax
mov eax, 0x48474645
stosd dword es:[edi], eax
mov eax, 0x4c4b4a49
stosd dword es:[edi], eax
mov eax, 0x504f4e4d
stosd dword es:[edi], eax
mov eax, 0x54535251
stosd dword es:[edi], eax
mov eax, 0x58575655
stosd dword es:[edi], eax
mov eax, 0x62615a59
stosd dword es:[edi], eax
mov eax, 0x66656463
stosd dword es:[edi], eax
mov eax, 0x6a696867
stosd dword es:[edi], eax
mov eax, 0x6e6d6c6b
stosd dword es:[edi], eax
mov eax, 0x7271706f
stosd dword es:[edi], eax
mov eax, 0x76757473
stosd dword es:[edi], eax
mov eax, 0x7a797877
stosd dword es:[edi], eax
mov eax, 0x33323130
stosd dword es:[edi], eax
mov eax, 0x37363534
stosd dword es:[edi], eax
mov eax, 0x2f2b3938
stosd dword es:[edi], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [ebp - 4], 0
jne 0x1000149e
jmp 0x100014f9
mov al, byte [esi]
mov dl, byte [esi + 1]
mov bl, byte [esi + 2]
mov ah, al
mov dh, dl
mov bh, bl
and ah, 3
and dh, 0xf
and bh, 0x3f
shr al, 2
shr dl, 4
shr bl, 6
shl ah, 4
shl dh, 2
or ah, dl
or bl, dh
movzx edx, al
movzx ecx, ah
push esi
lea esi, [ebp - 0x44]
mov al, byte [edx + esi]
mov ah, byte [ecx + esi]
movzx edx, bl
movzx ecx, bh
mov bl, byte [edx + esi]
mov bh, byte [ecx + esi]
pop esi
and eax, 0xffff
shl ebx, 0x10
add esi, 3
or eax, ebx
stosd dword es:[edi], eax
sub dword [ebp - 4], 3
jns 0x10001496
cmp dword [ebp - 4], 0
je 0x1000150b
add edi, dword [ebp - 4]
mov byte [edi], 0x3d
inc edi
inc dword [ebp - 4]
jne 0x10001502
mov eax, edi
mov word [eax], 0
sub eax, dword [ebp + 0x10]
pop edi
pop esi
pop edx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10008cf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
push 1
push 0
push 0
call dword [0x1001a070]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10008dcf
lea eax, [ebp - 0x54]
mov dword [eax], 0x2a713fb1
mov dword [eax + 4], 0x2a703f90
mov dword [eax + 8], 0x2a663f91
mov dword [eax + 0xc], 0x2a4a3f81
mov dword [eax + 0x10], 0x2a703f8b
mov dword [eax + 0x14], 0x2a623f91
mov dword [eax + 0x18], 0x2a6f3f89
mov dword [eax + 0x1c], 0x2a713f80
mov dword [eax + 0x20], 0x2a033fe5
mov ecx, 9
xor dword [eax], 0x2a033fe5
add eax, 4
dec ecx
jne 0x10008d6a
push 0x14
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 4]
call dword [0x1001a078]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10008dcf
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0xc]
push eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push 0
push dword [ebp - 8]
call dword [0x1001a088]
test eax, eax
jne 0x10008db0
jmp 0x10008dcf
cmp dword [ebp - 0x2c], 1
jne 0x10008dcb
push 0
push 0
push dword [ebp - 8]
call dword [0x1001a080]
test eax, eax
jne 0x10008dc9
jmp 0x10008dcf
jmp 0x10008d8e
jmp 0x10008dcf
cmp dword [ebp - 8], 0
je 0x10008dde
push dword [ebp - 8]
call dword [0x1001a094]
cmp dword [ebp - 4], 0
je 0x10008ded
push dword [ebp - 4]
call dword [0x1001a094]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x10010778
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
test dword [ebx + 0x44], 0x40000000
je 0x10010796
ror ebx, 1
lea esi, str.c0aZ1h_
push dword [esi - 4]
call fcn.100068a4
mov edi, eax
test edi, edi
je 0x10010834
push esi
push edi
mov ecx, dword [esi - 4]
lodsb al, byte [esi]
xor al, 0x30
stosb byte es:[edi], al
dec ecx
test ecx, ecx
jne 0x100107b3
pop edi
pop esi
mov esi, dword [esi - 4]
push dword [ebp + 0xc]
pop dword [ebp - 8]
lea eax, [esi*2]
push eax
push 8
push ebx
call dword [ebp - 8]
mov esi, eax
test esi, esi
je 0x1001082e
push esi
push edi
call fcn.10010bc8
add esp, 8
lea esi, [esi + 0x83]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.10010840
mov dword [0x10019c3c], eax
lea esi, [esi + 0x41]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.10010840
mov dword [0x10019c34], eax
lea esi, [esi + 0xd7]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.10010840
mov dword [0x10019c38], eax
mov dword [ebp - 4], 1
push edi
call fcn.100068cc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10010948
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, 0xfffefdfc
mov ecx, 0x40
mov ebx, dword [ebp + 0x10]
mov dword [ebx + ecx*4 - 4], eax
sub eax, 0x4040404
dec ecx
jne 0x1001095b
mov edi, dword [ebp + 0xc]
mov esi, 0x40
xor ebx, ebx
push ebp
mov ebp, dword [ebp + 0x10]
mov eax, ecx
xor edx, edx
div esi
mov al, cl
mov dl, byte [edi + edx]
add dl, byte [ebp + eax]
add dl, bl
mov bl, byte [ebp + edx]
mov dl, byte [ebp + ebx]
xchg byte [ebp + eax], dl
mov byte [ebp + ebx], dl
inc ecx
cmp ecx, 0x300
jne 0x10010975
pop ebp
xor ecx, ecx
mov edi, dword [ebp + 8]
mov esi, 0x20
push ebp
mov ebp, dword [ebp + 0x10]
mov eax, ecx
xor edx, edx
div esi
mov al, cl
mov dl, byte [edi + edx]
add dl, byte [ebp + eax]
add dl, bl
mov bl, byte [ebp + edx]
mov dl, byte [ebp + ebx]
xchg byte [ebp + eax], dl
mov byte [ebp + ebx], dl
inc ecx
cmp ecx, 0x300
jne 0x100109ae
pop ebp
xor ecx, ecx
mov edi, dword [ebp + 0xc]
mov esi, 0x40
push ebp
mov ebp, dword [ebp + 0x10]
mov eax, ecx
xor edx, edx
div esi
mov al, cl
mov dl, byte [edi + edx]
add dl, byte [ebp + eax]
add dl, bl
mov bl, byte [ebp + edx]
mov dl, byte [ebp + ebx]
xchg byte [ebp + eax], dl
mov byte [ebp + ebx], dl
inc ecx
cmp ecx, 0x300
jne 0x100109e7
pop ebp
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x10010a1c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor eax, eax
mov ebx, dword [ebp + 0x14]
xor ecx, ecx
xor edx, edx
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test esi, esi
je 0x10010a68
push ebp
mov ebp, dword [ebp + 0x10]
mov dl, byte [ebp + ecx]
add dl, bl
mov bl, byte [ebp + edx]
mov dl, byte [ebp + ebx]
mov dl, byte [ebp + edx]
inc dl
mov al, byte [ebp + edx]
xor byte [edi], al
mov dl, byte [ebp + ebx]
xchg byte [ebp + ecx], dl
mov byte [ebp + ebx], dl
inc cl
inc edi
dec esi
test esi, esi
jne 0x10010a39
pop ebp
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x10010a70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, 6
lodsd eax, dword [esi]
bswap eax
ror eax, 0xd
mov edx, eax
not edx
lodsd eax, dword [esi]
rol eax, 0xb
bswap eax
xor eax, edx
stosd dword es:[edi], eax
lodsd eax, dword [esi]
rol eax, 9
bswap eax
mov edx, eax
not edx
stosd dword es:[edi], eax
lodsd eax, dword [esi]
rol eax, 7
bswap eax
xor eax, edx
mov edx, eax
not edx
stosd dword es:[edi], eax
rol eax, 5
xor eax, edx
stosd dword es:[edi], eax
lea esi, [edi - 0x10]
dec ebx
test ebx, ebx
jne 0x10010a81
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10010bc8
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x10010bec
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10010bd4
add dl, dl
jne 0x10010bf7
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10010c48
xor eax, eax
add dl, dl
jne 0x10010c04
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10010ce5
add dl, dl
jne 0x10010c13
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10010c1e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10010c29
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10010c34
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10010c3e
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10010be3
mov eax, 1
add dl, dl
jne 0x10010c56
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10010c61
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10010c4d
sub eax, ebx
mov ebx, 1
jne 0x10010c94
mov ecx, 1
add dl, dl
jne 0x10010c7a
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10010c85
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10010c71
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10010be3
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10010cab
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10010cb6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10010ca2
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10010be3
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10010d06
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10010be3
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret
Function at 0x635420b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x6354210b
cmp byte [esi + ebx - 1], 0xa
je 0x635420df
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x63546084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x63542660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x63546094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x63542820
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x63546094]
movzx eax, al
bt eax, esi
jae 0x63542880
mov ecx, dword [0x63546084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x63542726
test byte [0x63543030], 8
jne 0x635427c0
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x63543040], 8
jne 0x63542770
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x635426f5
cmp esi, 3
jbe 0x63542730
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 8], str._s:_s:_s
lea edx, [edi + 1]
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + str._bRTc]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x635426f5
mov ecx, dword [0x63546094]
test ecx, ecx
je 0x63542860
mov dword [esp], 0x63543040
call dword [0x63546094]
test al, 8
je 0x635426cc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x635426cc
mov ebx, dword [0x63546094]
test ebx, ebx
je 0x63542840
mov dword [esp], 0x63543030
call dword [0x63546094]
test al, 8
je 0x635426b9
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x635426bf
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x63546094
call sym._load_func.part.0
jmp 0x63542680
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x63546094
call sym._load_func.part.0
jmp 0x635427ca
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x63546094
call sym._load_func.part.0
jmp 0x6354277e
mov eax, 0xffffffff
jmp 0x63542726
Function at 0x4018d0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push edi
mov dword [esi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x20]
cmp eax, 2
jne 0x4018fb
mov ecx, dword [esi + 0x24]
push 0xa
call fcn.0040b810
pop edi
pop esi
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 1
push 0
mov dword [esi + 0x6c], eax
call edi
push 0
push 1
push 1
push 0
mov dword [esi + 0x70], eax
call edi
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x401988
mov eax, dword [esi + 0x70]
test eax, eax
je 0x401988
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 0xc]
push ecx
push 0
push esi
push 0x402140
push 0
push 0
mov dword [esp + 0x24], 0
call edi
lea edx, [esp + 0xc]
mov dword [esi + 0x7c], eax
push edx
push 0
push esi
push 0x402590
push 0
push 0
call edi
mov ecx, dword [esi + 0x7c]
mov dword [esi + 0x80], eax
test ecx, ecx
je 0x401988
test eax, eax
je 0x401988
pop edi
mov eax, 1
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4

Function at 0x401a40
Capabilities:
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x4105c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x20], 2
je 0x401b72
mov eax, dword [esi + 0x34]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x401b34
push ebx
push 0
lea ecx, [esi + 0xc8]
call sub.MFC42.DLL_CByteArray::SetSize
push ebx
push 0
lea ecx, [esi + 0x9c]
call sub.MFC42.DLL_CByteArray::SetSize
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x30]
mov dword [esp + 0x14], 0
cmp eax, 9
push eax
jle 0x401ab4
lea eax, [esp + 0xc]
push str..COM_d
push eax
jmp 0x401abe
lea ecx, [esp + 0xc]
push str.COM_d
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x14]
add esp, 0xc
push 0
push 0x40000080
push 3
push 0
push 0
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, ebx
mov dword [esi + 0x34], eax
je 0x401b27
lea ecx, [esi + 0x3c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCommTimeouts]
test eax, eax
je 0x401b27
mov edx, dword [esi + 0x50]
mov ecx, esi
push edx
mov dword [esi + 0x38], 1
call fcn.00401e40
test eax, eax
je 0x401b27
mov eax, dword [esi + 0x34]
push 0x800
push 0x800
push eax
call dword [sym.imp.KERNEL32.dll_SetupComm]
test eax, eax
jne 0x401b47
lea ecx, [esp + 8]
mov dword [esp + 0x14], ebx
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esi + 0x7c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
push ecx
mov dword [esi + 0x78], 1
call edi
mov edx, dword [esi + 0x80]
push edx
call edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString
pop edi
mov ecx, dword [esp + 0xc]
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x401f40
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x34]
cmp eax, 0xffffffff
je 0x401f9d
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401f8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x401f9d
pop edi
mov eax, 1
pop esi
pop ecx
ret 0xc
mov eax, dword [esp + 8]
test eax, eax
je 0x401f9d
push eax
push esi
mov ecx, edi
call fcn.00402040
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc