joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002e360
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x1002e429
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x1002e381
cmp al, 0x6b
jne 0x1002e429
inc ecx
cmp al, 0x6b
jne 0x1002e3eb
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x1002e3a2
nop
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x1002e3a2
cmp dl, 0xbb
jne 0x1002e3cb
inc eax
cmp eax, esi
jl 0x1002e390
sub esi, eax
test eax, eax
jne 0x1002e3ee
push 0x83
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.10009a30
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push 0x7b
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.10009a30
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x1002e417
push 0x8b
push str..crypto_rsa_rsa_x931.c
push 0x8b
push 0x80
push 4
call fcn.10009a30
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push esi
push ecx
push dword [esp + 0x10]
call fcn.100629f0
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x70
push str..crypto_rsa_rsa_x931.c
push 0x89
push 0x80
push 4
call fcn.10009a30
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
Function at 0x1003a980
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x10c], 0xffffffff
jne 0x1003a992
xor eax, eax
pop edi
ret
push ebp
push esi
push edi
call fcn.10009c60
mov ecx, dword [esp + 0x1c]
add esp, 4
mov ebp, dword [esp + 0x14]
mov esi, eax
mov dword [ecx], esi
test ebp, ebp
je 0x1003aa55
mov ecx, dword [edi + 0x10c]
push ebx
cmp ecx, esi
jne 0x1003a9e6
test esi, esi
jle 0x1003aa34
mov edx, ebp
lea ecx, [edi + 0x8c]
mov ebx, esi
nop word [eax + eax]
mov al, byte [ecx + 0x60]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x1003a9d0
jmp 0x1003aa34
sub eax, ecx
mov byte [ecx + edi + 0xec], 0x80
cmp eax, 1
jle 0x1003aa0a
dec eax
push eax
lea eax, [edi + 0xed]
add eax, ecx
push 0
push eax
call fcn.10062f70
add esp, 0xc
test esi, esi
jle 0x1003aa34
mov edx, ebp
lea ecx, [edi + 0xac]
mov ebx, esi
nop dword [eax + eax]
mov al, byte [ecx + 0x40]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x1003aa20
push esi
push ebp
push ebp
push edi
call fcn.1000a0c0
add esp, 0x10
pop ebx
test eax, eax
jne 0x1003aa55
push esi
push ebp
call fcn.100085a0
add esp, 8
xor eax, eax
pop esi
pop ebp
pop edi
ret
pop esi
pop ebp
mov eax, 1
pop edi
ret
Function at 0x10044440
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x70
call fcn.10061cf0
mov eax, dword [0x100b14c0]
xor eax, esp
mov dword [esp + 0x6c], eax
cmp dword [esp + 0x88], 0x40000000
mov eax, dword [esp + 0x7c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x84]
push ebp
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x90]
push esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], 0
ja 0x10044617
mov esi, dword [esp + 0x80]
cmp esi, 0x40000000
ja 0x10044617
cmp dword [esp + 0x88], 0x40000000
ja 0x10044617
push ebx
push edi
push eax
call fcn.1000a120
mov edi, eax
lea eax, [esp + 0x28]
push eax
call fcn.10012c80
push 0
push dword [esp + 0x20]
lea eax, [esp + 0x34]
mov ebx, 1
push eax
call fcn.10012860
push dword [esp + 0xa4]
lea eax, [esp + 0x3c]
mov dword [esp + 0x28], 0x1000000
push dword [esp + 0x30]
push eax
call fcn.10012a10
add esp, 0x20
test eax, eax
je 0x100445f3
push 4
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.10012a10
add esp, 0xc
test eax, eax
je 0x100445f3
push dword [esp + 0x98]
lea eax, [esp + 0x28]
push dword [esp + 0x24]
push eax
call fcn.10012a10
add esp, 0xc
test eax, eax
je 0x100445f3
push 0
cmp esi, edi
jb 0x100445bb
lea eax, [esp + 0x28]
push ebp
push eax
call fcn.100127b0
add esp, 0xc
test eax, eax
je 0x100445f3
sub esi, edi
je 0x100445eb
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x2c]
add ebp, edi
push eax
inc ebx
call fcn.10012860
push dword [esp + 0x9c]
mov eax, ebx
mov byte [esp + 0x23], bl
push dword [esp + 0x28]
shr eax, 8
mov byte [esp + 0x26], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x25], al
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x24], al
lea eax, [esp + 0x38]
push eax
call fcn.10012a10
add esp, 0x18
test eax, eax
jne 0x10044507
jmp 0x100445f3
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.100127b0
add esp, 0xc
test eax, eax
je 0x100445f3
push esi
lea eax, [esp + 0x40]
push eax
push ebp
call fcn.100629f0
lea eax, [esp + 0x48]
push edi
push eax
call fcn.100085a0
add esp, 0x14
mov dword [esp + 0x1c], 1
lea eax, [esp + 0x24]
push eax
call fcn.10012a20
mov eax, dword [esp + 0x20]
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.10061ce0
add esp, 0x70
ret
mov ecx, dword [esp + 0x74]
xor eax, eax
pop esi
pop ebp
xor ecx, esp
call fcn.10061ce0
add esp, 0x70
ret
Function at 0x10046550
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6c
call fcn.10061cf0
mov eax, dword [0x100b14c0]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push ebx
mov dword [esp + 0xc], eax
xor ebx, ebx
mov eax, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [eax], ebx
lea eax, [esp + 0x1c]
push edi
mov edi, dword [esp + 0x8c]
push eax
call fcn.10012c80
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.10012ae0
add esp, 0xc
test eax, eax
je 0x10046652
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.100127e0
add esp, 0xc
test eax, eax
je 0x10046652
lea eax, [esp + 0x20]
push eax
call fcn.10012a20
mov esi, dword [ebp]
add esp, 4
test byte [esi + 0xc], 4
je 0x10046670
push edi
call fcn.100074e0
push ebx
push edi
mov dword [esp + 0x1c], eax
call fcn.1001c780
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10046652
push esi
call fcn.10037950
add esp, 4
test eax, eax
jle 0x10046652
push dword [ebp]
push ebx
push 1
push 0xf8
push 0xffffffffffffffff
push esi
call fcn.1001c530
add esp, 0x18
test eax, eax
jle 0x10046652
push dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
push esi
call fcn.10037860
add esp, 0x14
test eax, eax
jle 0x10046652
mov ecx, dword [esp + 0x14]
mov ebx, 1
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
push esi
call fcn.1001c720
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.10061ce0
add esp, 0x6c
ret
xor eax, eax
lea ecx, [esi + 0x2c]
mov edx, dword [ecx]
test edx, edx
je 0x10046688
cmp dword [edi], edx
je 0x100466b2
inc eax
add ecx, 4
cmp eax, 4
jl 0x10046675
push 0x7b
push str..cryptoevpp_sign.c
push 0x6e
push 0x6b
push 6
call fcn.10009a30
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.10061ce0
add esp, 0x6c
ret
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x100466e6
push 0x80
push str..cryptoevpp_sign.c
push 0x68
push 0x6b
push 6
call fcn.10009a30
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.10061ce0
add esp, 0x6c
ret
push dword [edi + 0x14]
mov ecx, dword [esp + 0x18]
push ecx
push dword [esp + 0x20]
lea ecx, [esp + 0x44]
push dword [esp + 0x28]
push ecx
push dword [esi]
call eax
mov ecx, dword [esp + 0x90]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10061ce0
add esp, 0x6c
ret
Function at 0x10056ff0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ecx, dword [edx + 4]
mov ebp, edx
push edi
cmp ecx, dword [ebx + 4]
mov edi, dword [esp + 0x10]
cmovge ebp, ebx
cmovge ebx, edx
mov eax, dword [ebx + 4]
cmp eax, dword [edi + 8]
jg 0x10057019
mov eax, edi
jmp 0x10057023
push eax
push edi
call fcn.10016470
add esp, 8
test eax, eax
jne 0x1005702b
pop edi
pop ebp
pop ebx
ret
xor eax, eax
cmp dword [ebp + 4], eax
jle 0x1005704a
push esi
mov ecx, dword [ebx]
mov edx, dword [ebp]
mov esi, dword [ecx + eax*4]
mov ecx, dword [edi]
xor esi, dword [edx + eax*4]
mov dword [ecx + eax*4], esi
inc eax
cmp eax, dword [ebp + 4]
jl 0x10057033
pop esi
cmp eax, dword [ebx + 4]
jge 0x10057060
nop
mov ecx, dword [ebx]
mov edx, dword [edi]
mov ecx, dword [ecx + eax*4]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, dword [ebx + 4]
jl 0x10057050
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
test ecx, ecx
jle 0x10057083
mov edx, dword [edi]
add edx, 0xfffffffc
lea edx, [edx + ecx*4]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x10057080
dec ecx
test ecx, ecx
jg 0x10057072
mov dword [edi + 4], ecx
cmp dword [edi + 4], 0
jne 0x10057090
mov dword [edi + 0xc], 0
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x100686a5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100686e4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100686e4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100686e4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100686e4
cmp dword [ecx + 0x74], 0xe
jbe 0x100686e4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1006a809
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10061cf0
mov eax, dword [0x100b14c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10069d8d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1006a84b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1006a9a7
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1007e820
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100b43d0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10076369
mov ecx, dword [esi*4 + 0x100b43d0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1006a9a0
cmp eax, dword [ecx + edi + 0x24]
jne 0x1006a9a0
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006a9a0
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10076369
add esp, 0x14
test edx, edx
jl 0x1006a9a0
jg 0x1006a916
test eax, eax
jb 0x1006a9a0
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1006a9a0
jl 0x1006a930
cmp dword [ebp - 0x1008], eax
ja 0x1006a9a0
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1006a94e
test ebx, ebx
je 0x1006a987
cmp ecx, edi
jae 0x1006a987
mov al, byte [ecx]
cmp al, 0xd
jne 0x1006a968
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1006a974
cmp byte [ecx + 1], 0xa
jne 0x1006a974
inc ecx
jmp 0x1006a974
movzx eax, al
movsx eax, byte [eax + 0x100b1730]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1006a94e
cmp edx, ebx
jne 0x1006a94e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1006a9a5
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10061ce0
leave
ret
Function at 0x100736bb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a7378
push 0x100a7370
push str.FlsAlloc
push 0x1f
call fcn.1007357a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100736ef
push dword [ebp + 8]
mov ecx, esi
call dword [0x1007f17c]
call esi
jmp 0x100736f5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10073739
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a7388
push 0x100a7380
push str.FlsGetValue
push 0x21
call fcn.1007357a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10073770
push dword [ebp + 8]
mov ecx, esi
call dword [0x1007f17c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10073778
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a7390
push 0x100a7388
push str.FlsSetValue
push 0x22
call fcn.1007357a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100737b2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1007f17c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10075667
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100b43d0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100756a7
cmp byte [ebx], 0xa
jne 0x100756a7
or byte [edi + eax + 0x28], 4
jmp 0x100756ac
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x100757ab
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1007578e
inc eax
cmp dl, 0xd
je 0x100756d8
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100756fe
cmp eax, ecx
jae 0x1007570c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x100756c0
jmp 0x100757ab
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10075789
cmp dword [ebp - 0x10], 0
je 0x10075789
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100b43d0]
test byte [eax + edi + 0x28], 0x48
je 0x10075763
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1007574e
mov byte [esi], dl
jmp 0x1007575f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100b43d0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100757ab
cmp byte [ebp - 1], 0xa
jne 0x10075772
cmp esi, ebx
jne 0x10075772
mov byte [esi], 0xa
jmp 0x100757aa
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10076387
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100757ab
mov byte [esi], 0xd
jmp 0x100757aa
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100b43d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100757a8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100757ab
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100757b4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100b43d0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100757fa
cmp word [ebx], dx
jne 0x100757fa
or byte [eax + edi + 0x28], 4
jmp 0x100757ff
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10075962
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10075942
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10075840
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10075876
cmp eax, edx
jae 0x10075884
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1007581b
jmp 0x10075962
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1007593d
cmp dword [ebp - 0x18], 0
je 0x1007593d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100b43d0]
test byte [eax + edi + 0x28], 0x48
je 0x10075913
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x100758d7
mov word [esi], cx
jmp 0x1007590e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100b43d0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100b43d0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100b43d0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10075962
pop eax
cmp word [ebp - 4], ax
jne 0x10075923
cmp esi, ebx
jne 0x10075923
mov word [esi], ax
jmp 0x1007595f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10076387
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10075962
push 0xd
pop eax
jmp 0x1007591e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100b43d0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1007595c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10075962
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10077fee
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1007808b
push ebx
push esi
call fcn.10077fb7
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10076c8d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10078038
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1007808a
push edi
push eax
call fcn.10071584
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10078058
call fcn.1007154a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10078089
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10076c8d
add esp, 0x20
test eax, eax
jne 0x10078077
push edi
call fcn.1007154a
jmp 0x1007807f
push ebx
call fcn.1007154a
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x1007c57c
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1007c4f8
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1007c6eb
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1007c6eb
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1007c6a0
jg 0x1007c5d8
test eax, eax
je 0x1007c696
push 1
push 0x1000
call fcn.100751ff
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1007c5fb
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1007c68d
push 0x8000
push ebx
call fcn.1006ac3d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1007c624
jg 0x1007c61f
cmp ecx, 0x1000
jb 0x1007c624
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10074c36
add esp, 0x10
cmp eax, 0xffffffff
je 0x1007c669
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1007c61f
jl 0x1007c650
test ecx, ecx
jne 0x1007c611
push dword [ebp - 0xc]
push ebx
call fcn.1006ac3d
push esi
call fcn.1007154a
add esp, 0xc
xor ebx, ebx
jmp 0x1007c6f9
cmp byte [edi + 0x24], 0
je 0x1007c680
cmp dword [edi + 0x20], 5
jne 0x1007c680
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1007c68b
mov ebx, dword [edi + 0x18]
jmp 0x1007c68d
xor ebx, ebx
push esi
call fcn.1007154a
pop ecx
jmp 0x1007c6f9
test ecx, ecx
jg 0x1007c662
jl 0x1007c6a0
test eax, eax
jae 0x1007c662
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10076387
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1007c6c0
cmp byte [edi + 0x1c], 0
je 0x1007c662
jmp 0x1007c6f1
push ebx
call fcn.100767af
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1007c662
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1007c6f9
cmp byte [edi + 0x1c], 0
je 0x1007c6f6
mov ebx, dword [edi + 0x18]
jmp 0x1007c6f9
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10076387
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1007e730
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1007e75d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1007e75d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403104
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x417008], 0x8088405
inc edx
mov dword [ebx + 0x417008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x40da63
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00404ac0
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call fcn.00406a9c
mov edi, eax
cmp edi, 0x104
jbe 0x40da86
mov eax, edi
add eax, eax
call fcn.00402e24
mov esi, eax
jmp 0x40da88
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call fcn.00406a9c
push edi
push esi
call fcn.00406b34
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x40dac1
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x40daab
mov eax, esp
cmp esi, eax
je 0x40dace
mov eax, esi
call fcn.00402e40
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x40db08
cmp bl, 0
je 0x40db04
cmp bl, 0x41
jl 0x40daff
cmp bl, 0x5a
jg 0x40daff
or bl, 0x20
xor al, bl
inc esi
jmp 0x40dae3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x40da48

Function at 0x40f834
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x41cd9c
mov eax, esi
mov edx, 8
test al, 1
je 0x40f850
shr eax, 1
xor eax, 0xedb88320
jmp 0x40f852
shr eax, 1
dec edx
jne 0x40f843
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40f83c
pop esi
ret

Function at 0x40f87f
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x41cd98], 0
jne 0x40f88b
call fcn.0040f834
push 1
push 0x41cd98
call fcn.00406948
mov eax, edi
test esi, esi
je 0x40f8b6
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x41cd9c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x40f891
mov eax, ebx
pop edi
pop esi
pop ebx
ret