joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a71
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x238
mov eax, 0x40d9fb
call fcn.0040c9ff
mov dword [ebp - 0x21c], ecx
movzx eax, word [ebp + 8]
xor edi, edi
mov esi, dword [0x415350]
inc edi
push 0xf0
push eax
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x405be2
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x405be2
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405be2
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x405be2
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x220], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x405b5b
push 3
lea eax, [ebp - 0x110]
push esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], eax
call main
push dword [ebp - 0x114]
mov eax, dword [ebp - 0x21c]
and dword [ebp - 4], 0
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
lea eax, [ebp - 0x110]
cmove edi, ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x114], eax
je 0x405bd4
push dword [ebp - 0x114]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x405bd4
mov ecx, 0x1234
cmp cx, ax
jne 0x405bd4
or dword [ebp - 0x240], 0xffffffff
lea eax, [ebp - 0x214]
push 3
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x244], 1
mov dword [ebp - 0x218], eax
call main
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x23c], eax
cmp eax, ecx
je 0x405bae
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x21c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
add esi, dword [ebp - 0x220]
test edi, edi
jne 0x405ac9
mov eax, edi
call fcn.0040c9ba
ret 4

Function at 0x40b919
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40b928
pop dword [ebp - 0x44]
mov eax, 0xa2c6cf2
add eax, 0xf6144c36
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x351c1
push 0
mov eax, 0x82c4e5d3
add eax, 0x7d7bfaf5
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x3a0d
xor edx, edx
add edx, eax
mov ebx, 0x27f4ff6e
add ebx, 0xd84c9892
add ebx, dword [ebp - 0x44]
mov edi, 0x8f21023b
sub edi, 0xa933b145
xor dword [ebp - 0x40], 0x3c8814ce
mov esi, dword [ebx]
xor dword [ebp - 0x2c], edx
add esi, edi
xor dword [ebp - 0xc], esi
mov dword [edx], esi
xor dword [ebp - 8], 0x9f7b7ce6
add edx, 4
add ebx, 4
loop 0x40b983
add eax, 0xe81d533a
add eax, 0x17e387cd
xor ebx, ebx
add ebx, eax
add eax, 0x1644d5d0
add eax, 0xe9bb2a35
mov ecx, 0x400000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x1005f040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, ecx
or eax, edx
je 0x1005f1fc
mov eax, ebx
or eax, edi
je 0x1005f20f
mov eax, ecx
neg ecx
mov esi, 0
sbb esi, edx
and ecx, eax
mov eax, ecx
mov dword [ebp - 0x10], edx
mov edx, 0xcc95386d
mul edx
and esi, dword [ebp + 0xc]
imul eax, ecx, 0x22fdd63
add eax, edx
imul ecx, esi, 0xcc95386d
add ecx, eax
shr ecx, 0x1a
mov eax, ebx
neg eax
mov esi, 0
sbb esi, edi
and eax, ebx
imul edx, eax, 0x22fdd63
mov dword [ebp - 0x14], edx
mov edx, 0xcc95386d
mul edx
add dword [ebp - 0x14], edx
movzx ecx, byte [ecx + 0x102d05a8]
and esi, edi
imul eax, esi, 0xcc95386d
add eax, dword [ebp - 0x14]
shr eax, 0x1a
movzx eax, byte [eax + 0x102d05a8]
cmp ecx, eax
mov edx, eax
cmovl edx, ecx
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
shrd esi, edx, cl
mov edx, dword [ebp + 0xc]
sar edx, cl
sar dword [ebp - 0x10], 0x1f
test cl, 0x20
cmovne esi, edx
mov ecx, dword [ebp - 0x10]
cmove ecx, edx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
sar ecx, 0x1f
xor dword [ebp - 0x10], ecx
xor esi, ecx
sub esi, ecx
sbb dword [ebp - 0x10], ecx
mov ecx, eax
shrd ebx, edi, cl
mov edx, edi
sar edx, cl
sar edi, 0x1f
test al, 0x20
cmovne ebx, edx
cmove edi, edx
mov eax, edi
sar eax, 0x1f
xor edi, eax
xor ebx, eax
sub ebx, eax
sbb edi, eax
mov eax, dword [ebp - 0x10]
xor eax, edi
mov edx, esi
xor esi, ebx
or esi, eax
je 0x1005f208
mov ecx, edx
mov edx, dword [ebp - 0x10]
cmp ecx, ebx
mov eax, ebx
cmovb eax, ecx
mov esi, ebx
cmova esi, ecx
mov dword [ebp - 0x10], esi
cmp edx, edi
mov esi, ebx
cmovl esi, ecx
cmove esi, eax
mov eax, edi
cmovl eax, edx
mov dword [ebp - 0x14], eax
cmovg ebx, ecx
cmove ebx, dword [ebp - 0x10]
cmovg edi, edx
sub ebx, esi
sbb edi, eax
mov dword [ebp - 0x1c], edi
mov eax, ebx
neg eax
mov ecx, 0
sbb ecx, edi
and eax, ebx
mov dword [ebp - 0x10], eax
mov edx, 0x22fdd63
mov edi, dword [ebp - 0x10]
imul edi, edx
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x1c]
mov edx, 0xcc95386d
mul edx
add edx, dword [ebp - 0x10]
and ecx, edi
mov eax, 0xcc95386d
imul ecx, eax
add ecx, edx
mov edx, dword [ebp - 0x14]
shr ecx, 0x1a
mov cl, byte [ecx + 0x102d05a8]
shrd ebx, edi, cl
mov eax, edi
sar eax, cl
sar edi, 0x1f
test cl, 0x20
cmovne ebx, eax
cmove edi, eax
mov eax, esi
xor eax, ebx
mov ecx, edx
xor ecx, edi
or ecx, eax
mov ecx, esi
mov eax, edx
jne 0x1005f146
mov ecx, dword [ebp - 0x18]
mov edi, eax
shld edi, esi, cl
shl esi, cl
test cl, 0x20
cmovne edi, esi
mov eax, 0
cmovne esi, eax
mov ebx, esi
mov eax, ebx
mov edx, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, edx
mov eax, dword [ebp - 0x10]
jmp 0x1005f1e2
mov ebx, ecx
mov edi, edx
jmp 0x1005f1fc
Function at 0x100792d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x2c]
mov ecx, dword [ecx + 0xb2284]
mov ecx, dword [ecx + 0x6a4]
add ecx, ecx
lea ecx, [ecx + ecx*2]
sub edx, ecx
add edx, 0x30
cmp edx, 0x33
mov ecx, 0x33
cmovl ecx, edx
xor edx, edx
test ecx, ecx
cmovle ecx, edx
mov esi, 0x102db680
cmp dword [eax + 0x24], 1
jne 0x10079358
movsx edi, byte [esi + edx*2]
imul edi, ecx
sar edi, 4
movsx ebx, byte [esi + edx*2 + 1]
add ebx, edi
lea edi, [ebx + ebx]
add edi, 0xffffff81
mov ebx, edi
sar ebx, 0x1f
xor ebx, edi
mov edi, eax
mov eax, ebx
and al, 1
or al, 0x7c
cmp ebx, 0x7d
movzx eax, al
cmovl eax, ebx
mov byte [edi + edx + 0x7d3c], al
mov eax, edi
inc edx
cmp edx, 0x400
jne 0x10079312
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [eax + 0x813c]
shl esi, 0xb
lea esi, [esi + 0x102dbe80]
jmp 0x10079312
Function at 0x10080c10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov al, 1
cmp dword [edx + 0x5218], 0
jne 0x10080c3f
mov esi, dword [ecx + 0xb133c]
mov edi, dword [edx + 0x5200]
test byte [esi + edi*4], 4
jne 0x10080c3f
cmp dword [edx + 0x2c], 0
sete al
mov esi, dword [ecx + 0xb2284]
cmp dword [esi + 0xc], 3
je 0x10080c60
test al, al
jne 0x10080c75
cmp dword [ecx + 0xb188c], 0
jne 0x10080c7d
pop esi
pop edi
pop ebp
jmp fcn.10080c90
test al, al
jne 0x10080c85
cmp dword [ecx + 0xb188c], 0
jne 0x10080c85
pop esi
pop edi
pop ebp
jmp fcn.101b3060
pop esi
pop edi
pop ebp
jmp fcn.101b4230
pop esi
pop edi
pop ebp
jmp fcn.101b7510
pop esi
pop edi
pop ebp
jmp fcn.101b0bc0
Function at 0x10091f60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xd0]
mov eax, dword [eax + 0x1c8]
movzx eax, byte [eax + 0x65e]
cmp al, 6
mov ecx, 5
cmovae ecx, eax
movzx eax, cl
mov dword [ebp - 0x14], eax
mov ch, byte [edx + 0xb2]
mov esi, dword [edx + 0xec]
mov eax, dword [edx + 0xe8]
xor edx, edx
mov dword [ebp - 0x18], edx
movzx ecx, ch
mov edx, esi
and edx, 0xc0
movzx ebx, byte [ecx + edx*2 + 0x102db2d8]
sub esi, ebx
mov edi, esi
shl edi, 0x11
xor edx, edx
cmp edi, eax
setl dl
neg edx
and edi, edx
sub eax, edi
mov edi, dword [ebp + 8]
sub ebx, esi
and ebx, edx
xor edx, ecx
mov ch, byte [edx + 0x102db558]
mov byte [edi + 0xb2], ch
mov cl, byte [ebx + esi + str._t_b_a_a]
add esi, ebx
shl esi, cl
mov ebx, eax
shl ebx, cl
mov dword [edi + 0xec], esi
mov dword [edi + 0xe8], ebx
test bx, bx
je 0x10092006
mov eax, ebx
jmp 0x10092060
mov byte [ebp - 0xd], ch
mov edi, dword [edi + 0xf4]
movzx eax, byte [edi]
mov dword [ebp - 0x1c], edi
shl eax, 9
movzx edi, byte [edi + 1]
lea eax, [eax + edi*2]
add eax, 0xffff0001
mov edi, ebx
neg edi
and edi, ebx
imul edi, edi, 0x77cb531
shr edi, 0x1b
mov cl, byte [edi + 0x102d03f0]
mov edi, dword [ebp + 8]
add cl, 0xf0
shl eax, cl
add eax, ebx
mov ebx, dword [ebp - 0x1c]
mov dword [edi + 0xe8], eax
cmp ebx, dword [edi + 0xf8]
jae 0x1009205d
add ebx, 2
mov dword [edi + 0xf4], ebx
mov ch, byte [ebp - 0xd]
test dl, 1
je 0x10092077
mov edx, dword [ebp - 0x18]
inc edx
cmp dword [ebp - 0x14], edx
jne 0x10091fa3
mov eax, dword [ebp - 0x14]
jmp 0x1009207a
mov eax, dword [ebp - 0x18]
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10092b00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x15]
mov edi, dword [eax + 0xec]
mov edx, eax
mov eax, edi
and eax, 0xc0
movzx ebx, byte [ecx + eax*2 + 0x102db2d8]
sub edi, ebx
mov esi, edi
shl esi, 0x11
mov edx, dword [edx + 0xe8]
xor eax, eax
cmp esi, edx
setl al
neg eax
and esi, eax
sub edx, esi
sub ebx, edi
and ebx, eax
xor eax, ecx
mov cl, byte [eax + 0x102db558]
mov esi, dword [ebp + 8]
mov byte [esi + 0x15], cl
mov cl, byte [ebx + edi + str._t_b_a_a]
lea esi, [ebx + edi]
shl esi, cl
shl edx, cl
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xec], esi
mov dword [ecx + 0xe8], edx
test dx, dx
jne 0x10092bc1
mov esi, dword [ecx + 0xf4]
movzx ecx, byte [esi]
shl ecx, 9
movzx edi, byte [esi + 1]
lea edi, [ecx + edi*2]
add edi, 0xffff0001
mov ecx, edx
neg ecx
and ecx, edx
imul ecx, ecx, 0x77cb531
shr ecx, 0x1b
mov cl, byte [ecx + 0x102d03f0]
add cl, 0xf0
shl edi, cl
mov ecx, dword [ebp + 8]
add edi, edx
mov dword [ecx + 0xe8], edi
cmp esi, dword [ecx + 0xf8]
jae 0x10092bc1
add esi, 2
mov dword [ecx + 0xf4], esi
xor esi, esi
test al, 1
je 0x10092c36
mov eax, dword [ecx + 0xd0]
mov eax, dword [eax + 0x339c]
add eax, 0xfffffffd
cmp eax, 0xfffffffd
ja 0x10092c33
lea ebx, [ecx + 0xe8]
xor esi, esi
inc esi
mov edi, dword [ebx + 4]
mov eax, dword [ebx]
shl edi, 0x11
add eax, eax
sub eax, edi
cdq
and edi, edx
add eax, edi
inc edx
test ax, ax
jne 0x10092c16
mov edi, dword [ebx + 0xc]
sub eax, 0xffff
movzx ecx, word [edi]
bswap ecx
shr ecx, 0xf
add eax, ecx
cmp edi, dword [ebx + 0x10]
jge 0x10092c16
add dword [ebx + 0xc], 2
mov dword [ebx], eax
test edx, edx
je 0x10092c36
inc esi
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xd0]
mov eax, dword [eax + 0x339c]
dec eax
cmp esi, eax
jb 0x10092be4
jmp 0x10092c36
xor esi, esi
inc esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10092ee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, 2
jl 0x1009308b
lea eax, [ecx - 1]
xor ecx, ecx
inc ecx
mov dword [ebp - 0x18], eax
cmp eax, 2
sbb ecx, 0xffffffff
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xe8]
mov ebx, dword [eax + 0xec]
xor edi, edi
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp + 8]
movzx ecx, byte [ecx + edi + 0x1b]
mov esi, edx
mov edx, ebx
and edx, 0xc0
movzx edi, byte [ecx + edx*2 + 0x102db2d8]
sub ebx, edi
mov edx, ebx
shl edx, 0x11
xor eax, eax
cmp edx, esi
setl al
neg eax
and edx, eax
sub esi, edx
mov edx, dword [ebp + 8]
mov dword [edx + 0xe8], esi
sub edi, ebx
and edi, eax
add edi, ebx
mov edx, dword [ebp + 8]
mov dword [edx + 0xec], edi
xor eax, ecx
mov esi, eax
mov cl, byte [eax + 0x102db558]
mov edx, dword [ebp + 8]
mov edi, dword [ebp - 0x10]
mov eax, edi
mov byte [edx + edi + 0x1b], cl
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0xe8]
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0xec]
mov cl, byte [ebx + str._t_b_a_a]
shl ebx, cl
shl edi, cl
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xec], ebx
mov dword [ecx + 0xe8], edi
test di, di
je 0x10092faf
mov edx, edi
mov edi, eax
jmp 0x10093001
mov eax, dword [ecx + 0xf4]
movzx ecx, byte [eax]
shl ecx, 9
movzx edx, byte [eax + 1]
lea edx, [ecx + edx*2]
add edx, 0xffff0001
mov ecx, edi
neg ecx
and ecx, edi
imul ecx, ecx, 0x77cb531
shr ecx, 0x1b
mov cl, byte [ecx + 0x102d03f0]
add cl, 0xf0
shl edx, cl
mov ecx, dword [ebp + 8]
add edx, edi
mov dword [ecx + 0xe8], edx
cmp eax, dword [ecx + 0xf8]
jae 0x10092ffe
add eax, 2
mov dword [ecx + 0xf4], eax
mov edi, dword [ebp - 0x10]
mov eax, esi
test al, 1
je 0x10093014
inc edi
cmp dword [ebp - 0x14], edi
jne 0x10092f1a
mov edi, dword [ebp - 0x14]
cmp edi, 2
mov eax, edi
mov ebx, dword [ebp + 0xc]
jne 0x1009308b
mov eax, 2
cmp ebx, 4
jl 0x1009308b
add ecx, 0xe8
mov dword [ebp - 0x14], ecx
neg ebx
mov ecx, 2
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov esi, dword [edi + 4]
mov eax, dword [edi]
shl esi, 0x11
add eax, eax
sub eax, esi
cdq
and esi, edx
add eax, esi
inc edx
test ax, ax
jne 0x10093070
mov esi, dword [edi + 0xc]
sub eax, 0xffff
movzx ecx, word [esi]
bswap ecx
shr ecx, 0xf
add eax, ecx
cmp esi, dword [edi + 0x10]
jge 0x10093070
add dword [edi + 0xc], 2
mov dword [edi], eax
test edx, edx
je 0x10093088
mov ecx, dword [ebp - 0x10]
lea eax, [ebx + ecx]
inc eax
inc ecx
cmp eax, 0xffffffff
jne 0x1009303b
mov eax, dword [ebp - 0x18]
jmp 0x1009308b
mov eax, dword [ebp - 0x10]
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10093500
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0xe8]
mov dword [ebp - 0x14], edx
mov edx, dword [eax + 0xec]
lea eax, [eax + ecx*4]
add eax, 0xa7
mov dword [ebp - 0x1c], eax
xor eax, eax
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + eax]
mov dword [ebp - 0x10], ecx
mov esi, edx
and esi, 0xc0
movzx esi, byte [ecx + esi*2 + 0x102db2d8]
sub edx, esi
mov edi, edx
shl edi, 0x11
xor ebx, ebx
mov ecx, edx
mov edx, dword [ebp - 0x14]
cmp edi, edx
setl bl
neg ebx
and edi, ebx
sub edx, edi
mov edi, dword [ebp + 8]
mov dword [edi + 0xe8], edx
sub esi, ecx
and esi, ebx
add esi, ecx
mov dword [edi + 0xec], esi
xor ebx, dword [ebp - 0x10]
mov cl, byte [ebx + 0x102db558]
mov edx, dword [ebp - 0x1c]
mov byte [edx + eax], cl
mov esi, dword [edi + 0xe8]
mov edx, dword [edi + 0xec]
mov cl, byte [edx + str._t_b_a_a]
shl edx, cl
shl esi, cl
mov dword [edi + 0xec], edx
mov dword [edi + 0xe8], esi
test si, si
je 0x100935ae
mov dword [ebp - 0x14], esi
jmp 0x1009360c
mov dword [ebp - 0x18], edx
mov ecx, dword [edi + 0xf4]
mov dword [ebp - 0x10], ecx
movzx edi, byte [ecx]
shl edi, 9
movzx ecx, byte [ecx + 1]
lea edx, [edi + ecx*2]
add edx, 0xffff0001
mov edi, dword [ebp + 8]
mov ecx, esi
neg ecx
and ecx, esi
imul ecx, ecx, 0x77cb531
shr ecx, 0x1b
mov cl, byte [ecx + 0x102d03f0]
add cl, 0xf0
shl edx, cl
mov ecx, dword [ebp - 0x10]
add edx, esi
mov dword [ebp - 0x14], edx
mov dword [edi + 0xe8], edx
cmp ecx, dword [edi + 0xf8]
jae 0x10093609
add ecx, 2
mov dword [edi + 0xf4], ecx
mov edx, dword [ebp - 0x18]
test bl, 1
je 0x10093620
inc eax
cmp eax, 4
jne 0x1009352b
mov eax, 4
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1013dc3a
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10305014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x10299068
push esi
call fcn.1014ce0b
pop ecx
pop ecx
test eax, eax
jne 0x1013dc68
xor al, al
jmp 0x1013dce5
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.1013d9cb
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x1013dca2
push dword [ebp - 0x210]
call fcn.10144920
xor al, al
jmp 0x1013dce3
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1013dca8
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x1013dcc8
push edx
call fcn.1013db8b
pop ecx
test al, al
je 0x1013dc93
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1013dcd6
mov bl, 1
push dword [ebp - 0x210]
call fcn.10144920
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10130483
leave
ret
Function at 0x1013fe5d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x103073d0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1013fe9d
cmp byte [ebx], 0xa
jne 0x1013fe9d
or byte [eax + edi + 0x28], 4
jmp 0x1013fea2
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1013ffa0
mov al, byte [edx]
cmp al, 0x1a
je 0x1013ff82
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1013fed1
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1013fef6
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1013ff00
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x1013feb3
jmp 0x1013ffa0
push 0
lea eax, [ebp - 0xc]
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 0x1013ff7d
cmp dword [ebp - 0xc], 0
je 0x1013ff7d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x103073d0]
test byte [eax + edi + 0x28], 0x48
je 0x1013ff57
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1013ff42
mov byte [esi], dl
jmp 0x1013ff53
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x103073d0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1013ffa0
cmp byte [ebp - 1], 0xa
jne 0x1013ff66
cmp esi, ebx
jne 0x1013ff66
mov byte [esi], 0xa
jmp 0x1013ff9f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1013efda
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1013ffa0
mov byte [esi], 0xd
jmp 0x1013ff9f
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x103073d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1013ff9c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1013ffa0
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1013ffa9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x103073d0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1013ffec
cmp word [esi], dx
jne 0x1013ffec
or byte [edi + eax + 0x28], 4
jmp 0x1013fff1
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x1014012a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x1014010a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10140033
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10140069
cmp eax, edx
jae 0x10140075
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x1014000b
jmp 0x1014012a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10140106
cmp dword [ebp - 0x14], 0
je 0x10140106
mov eax, dword [ebx*4 + 0x103073d0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x101400de
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x10140124
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x103073d0]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x103073d0]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x103073d0]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x10140127
pop ebx
cmp word [ebp - 4], bx
jne 0x101400ef
cmp esi, dword [ebp + 0xc]
jne 0x101400ef
mov word [esi], bx
jmp 0x10140127
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1013efda
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1014012a
push 0xd
jmp 0x10140123
mov ecx, dword [ebx*4 + 0x103073d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10140121
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1014012a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10148ed6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x1029a370
push str.FlsAlloc
push 0x1e
call fcn.10149432
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10148f0a
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x10148f10
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10148f54
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x1029a394
push str.FlsGetValue
push 0x20
call fcn.10149432
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10148f8b
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1014fa91
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 0x1014fb2e
push ebx
push esi
call fcn.1014fb7f
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.1014f9da
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1014fadb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1014fb2d
push edi
push eax
call fcn.1014aa02
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1014fafb
call fcn.10148054
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1014fb2c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1014f9da
add esp, 0x20
test eax, eax
jne 0x1014fb1a
push edi
call fcn.10148054
jmp 0x1014fb22
push ebx
call fcn.10148054
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 0x1014fb31
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1014fb42
pop esi
ret
push ebx
push edi
push esi
call fcn.1014fb7f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1014aa02
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1014fb6a
push ebx
push esi
push edi
call fcn.10132610
add esp, 0xc
push 0
call fcn.10148054
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1014fbb6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1014fbc1