joyce8/EMBER2024-capa huggingface dataset:
Function at 0x502159
Capabilities:
Encode data using xor

Disassembly:
pushal
call fcn.00491c36
push eax
and ebx, 0xfff
pushfd
push dword [esp + 4]
call fcn.0050c8cb
lea esp, [esp + 0x18]
je 0x506b12
test al, 0xa8
cmp ebx, 2
jb 0x491c8f
pushal
pushfd
mov word [esp], di
lea esp, [esp + 0x24]
je 0x5023ce
bt cx, bx
pushfd
mov word [esp], 0x7044
pushal
cmp ebx, 3
pushal
pushfd
jmp 0x5073bd
shr bh, 5
mov bx, word [esi]
jmp 0x4927df
pushfd
lea esp, [esp + 0x4c]
je 0x517448
pushfd
pushal
pushal
push 0xbad2fc54
lea esp, [esp + 0x48]
jmp 0x4944b9

Function at 0x502a34
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sbb ecx, ecx
cmc
mov byte [esp + 4], 0x1b
push dword [esp]

Function at 0x502e57
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp esi, 0x21324680
sub cx, 0x79d8
mov byte [ebp - 2], al
sar dh, 7
xchg dl, cl
rcl cl, cl
and dx, 0x9cc4
mov ecx, eax
push ebp
sub dl, 0x3f
shld dx, sp, 0xf
mov dword [ebp - 0x20], eax
test di, di
stc
cmp bh, ah
btr edx, edx
mov dword [ebp - 0x24], eax
pushal
setno dh
mov dword [ebp - 0x28], eax
sub dl, bh
adc dx, ax
mov dword [ebp - 0x2c], eax
sal dh, 1
test ebp, 0x5c28852d
sub eax, 1
clc
movsx dx, bl
mov dword [ebp - 0x18], eax
sub esp, 0xffffffbc
sub dh, 0xcc
btc dx, 5
mov dword [ebp - 0x1c], edi
pushal
xor ch, 0xed
mov edi, dword [ebp + 0xc]
xor ecx, 0xe812b42c
stc
mov byte [esp], 0x15
sub eax, eax
jmp 0x495468
call fcn.0050a9f8
jb 0x502e99
ficom word [ecx - 0x7ab37378]
movsb byte es:[edi], byte [esi]
stosd dword es:[edi], eax
fiadd dword [ebp + 0x11eeb7d8]
sbb al, 0xd3
scasb al, byte es:[edi]
xor dword [esi - 0x494b464e], edi
nop
sub ah, byte [ebx - 0x2e]
mov eax, dword [0xed10de28]
dec esi
sub dword [edx - 1], 0x4a
push 0x90b52085
jae 0x502ef3
jp 0x502ee6
push cs
mov dh, byte [ebx + 0x1fb9d2af]
xchg edx, eax
push edi
mov al, byte [eax - 0x6c18a330]
out 0x93, eax
mov eax, dword [0x8717e06c]
scasd eax, dword es:[edi]
lodsd eax, dword [esi]
and edi, dword [ebp + 0x61]
push esp
or dword [ebp - 0x45dc122b], edi
mov al, byte [0x3f14c890]
mov edi, edi
xlatb
hlt
rcl byte [ebx - 0x747cbb6], 0xf5
shl edi, 8
test sp, cx
test bh, dh
pushfd
add edi, eax
jmp 0x50d6e9
sub ecx, 1
pushfd
pushfd
push eax
lea esp, [esp + 0x48]
jne 0x50e48b
jmp 0x4959d6
Function at 0x503d85
Capabilities:
Resolve function by parsing pe exports

Disassembly:
movzx eax, bl
push 0xad5dfbab
mov byte [ebp - 2], dl
movsx ax, al
cmp ecx, 4
setle ah
mov eax, ecx
pushfd
pushfd
pushfd
pushal
lea esp, [esp + 0x30]
jb 0x492707
call fcn.0050b7ba
stosb byte es:[edi], al
adc byte [ecx - 0x73], 0x88
add byte [edx - 0x7772ae80], ch
mov byte [ebp + edx*8 + 0x7334edf2], cl
mov ebp, ss
in eax, dx
xor al, 0x73
idiv ch
sbb byte [edi], dh
not byte [eax]
sal dword [eax + 0x6b], cl
inc esp
loopne 0x5029a7
das
imul edi, dword es:[edx - 0x4401e0e7], 4
sti
add dword [ecx + edx*4 - 0x24], edx
daa
jle 0x502a3d
mov bl, bh
test al, 0x85
push ebx
inc esp
adc eax, ecx
mov esi, dword [esi]
out 0x31, al
adc al, 0xa
xchg ebp, eax
or ecx, dword [0x37544d27]
xchg esp, eax
movsb byte es:[edi], byte [esi]
adc ebx, dword [esp + edx + 0x7a]
pop ecx
push es
push ebp
movsb byte es:[edi], byte [esi]
pop ds
push ss
leave
inc esp
jmp 0x5029ac
xor al, 0x24
lea ecx, [ecx + ecx*2 + 0xb]
push dword [esp + 4]
test bl, al
pushal
cmp ah, al
mov dword [esp + 0x2c], ecx
btc ecx, 8
mov dword [esp + 0x28], esi
xchg ecx, esi
rcl si, cl
bts ecx, esi
lea ecx, [eax + 2]
shld si, ax, 0xd
pushfd
stc
mov esi, dword [ebp - 0x20]
neg al
setnp al
not esi
mov byte [esp], 0x34
rol al, cl
pushfd
adc al, dl
add esi, edi
pushfd
rep movsb byte es:[edi], byte [esi]
pop esi
movzx si, cl
lea ecx, [ebx - 0x1bc82e63]
mov esi, dword [esp + 0x30]
setns cl
movzx cx, dl
movzx cx, cl
mov ecx, dword [esp + 0x34]
mov byte [esp + 4], bl
mov al, 0x27
mov al, byte [edi - 1]
jmp 0x50d1e1
adc dl, dl
pushfd
pushfd
pushfd
lea esp, [esp + 0x14]
jae 0x5072ed
shld ax, cx, 0xc
and al, bh
sar bh, cl
cwde
pop ebx
test bh, ch
daa
cwde
pop ecx
jmp 0x50ec29
jmp 0x50297e

Function at 0x508975
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov esi, dword [esp + 0x28]
not cx
bswap cx
mov ecx, dword [esp + 0x2c]
pushfd
setnp al
mov byte [esp + 8], 0x55
setns al
mov al, byte [edi - 1]
mov byte [esp], ah
push eax
mov byte [ebp - 2], al
pushfd
lea esp, [esp + 0x3c]
jmp 0x4954c3
clc
xchg dword [esp], ecx
cmp ch, ah
shld ecx, ebx, cl
push esi
pushal
cmp esi, 0xa87f70e3
shrd cx, bx, cl
lea ecx, [eax + 2]
or si, 0x9324
not al
push edi
mov esi, dword [ebp - 0x20]
test cx, 0x36ac
setno al
mov al, byte [esp + 0xc]
not esi
shl al, 4
add esi, edi
jmp 0x5179e6
pushfd
rep movsb byte es:[edi], byte [esi]
jmp 0x507386
Function at 0x50ac1d
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
cmp ecx, 7
push dword [esp]
sbb ecx, ecx
bt cx, si
lea ecx, [ecx + ecx*2 + 0xb]
mov dword [esp], 0x956d1d4f
pushfd
xchg dword [esp + 8], ecx
pop ecx
bsf cx, dx
neg ecx
not ecx
xchg dword [esp], esi
xor esi, esi
lea ecx, [eax + 2]
stc
sal esi, cl
movsx si, cl
call fcn.005082ac
imul esp, dword [ebp + 0x72], 0x6e
insb byte es:[edi], dx
xor esi, dword [edx]
insb byte es:[edi], dx
insb byte es:[edi], dx
add byte [ebp + 0x53], cl
and al, 0x10
mov dword [eax + ebp*4 - 0x2d32db3f], ecx
or eax, 0x1e2845b8
mov cs, esi
push 0xffffffffffffffa1
inc ecx
and al, 0xdf
fsub st(3)
cmp byte [eax + ebx - 0x5ea9f642], dh
clc
out dx, eax
push edx
xor eax, eax
mov ebx, 0x7f301d26
jle 0x50ac13
add byte [ecx], 0x8d
push ecx
dec edx
add dword [ecx + edx*8], ecx
outsb dx, byte [esi]
push cs
fsub st(7)
xchg esi, eax
xchg esp, eax
jl 0x50acfd
xchg esi, eax
or al, 0x49
inc edx
invalid
sub eax, 0x1c313b58
lahf
xor ah, byte [eax - 0x554e4fe0]
pop eax
cmp dword [edx + 0x5f7e9299], esi
and byte [eax + 0x3958aab1], dh
mov dl, 0x99
xchg edx, eax
jle 0x50ad67
dec ecx
sub eax, 0xf72a220c
aad 0xb8
mul dword [ecx + 0x49]
jbe 0x50acf5
wait
xor byte [edx], 0x6d
jg 0x50ad43
and al, 9
push ebp
wait
push es
lodsb al, byte [esi]
xchg ebp, eax
push eax
std
dec eax
lds eax, [esi]
push eax
add bh, cl
clc
inc ebx
sahf
movsb byte es:[edi], byte [esi]
fiadd word [ebp + 0x697aa919]
imul ch
adc al, 0xf
xor byte [ecx], 0x28
out 0x5e, eax
stc
pushfd
dec ebx
outsb dx, byte [esi]
xchg byte [esp + edx*4 - 0x49efc8e], dl
xchg esp, eax
jb 0x50ad49
popal
sti
xchg esi, eax
adc esi, edi
xlatb
cdq
fcom st(5)
das
and al, ah
scasb al, byte es:[edi]
fstp xword [esi + 0x46efcc09]
dec edi
stc
lock sub edi, dword [esi]
mov bl, 0xfe
jno 0x50ad7a
out dx, eax
leave
jb 0x50ad7b
adc dword [ecx + 0x399e998c], ecx
invalid
mov dword [ecx + ebx*4 + 0x778c399e], ecx
fcmovbe st(0), st(1)
and byte [ebx], ch
jb 0x50add1
or al, 0xfb
sub ah, byte [ebx]
mov cl, 0x1d
push esp
mov esi, 0xc6b37ed4
jns 0x50adf1
stosd dword es:[edi], eax
in eax, dx
lodsd eax, dword [esi]
mov bl, 0xe6
xchg esp, eax
pop ecx
std
pop es
xchg esp, eax
xchg dword [ecx - 0x12], esp
xchg ecx, eax
lcall 0xe402, 0xca64053
adc al, 0x1c
scasd eax, dword es:[edi]
fadd st(0), st(0)
jb 0x50adfe
scasd eax, dword es:[edi]
or al, 0xdf
mov byte [0xce7fc090], al
jno 0x50adc3
jne 0x50ad9e
into
pop ebx
xchg ecx, eax
xchg ebp, eax
mov dword [0x2c5eda93], eax
rcl dh, cl
xchg ebp, eax
mov dword [0x898e4172], eax
dec edi
mov esi, 0xb0f38418
cmpsd dword [esi], dword es:[edi]
cmpsb byte [esi], byte es:[edi]
dec esp
xchg byte [esi - 0x65], cl
mov dword [0x818a1d22], eax
mov al, byte [0x6acfee4b]
mov ah, 0xf3
loope 0x50ae46
push 0xffffffffffffffb4
loope 0x50ae46
mov ch, 0x36
jmp 0xaa4ef981
mov dword [ebp + ecx + 0x55561b00], ecx
movsb byte es:[edi], byte [esi]
cmp eax, dword [esi]
pop ebp
xchg esp, eax
out 0xf9, al
out 0xf9, al
sub al, 0xef
lds edi, [ebx]
leave
invalid
cmc
add dword [eax - 0xd00edbd], eax
xchg edx, eax
sub ah, byte [esi + 0xf]
invalid
Function at 0x50b4da
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov esi, dword [esp + 4]
pop ecx
mov al, byte [esp]
mov ecx, dword [esp + 4]
jmp 0x495750

Function at 0x50b7ba
Capabilities:
Resolve function by parsing pe exports

Disassembly:
shl al, 6
aaa
sub ah, 0xd
cmp ecx, 0xa
not ah
pushal
bswap ax
mov eax, 3
pushal
mov byte [esp + 4], bl
lea esp, [esp + 0x44]
jb 0x492707
not al
movsx ax, al
bts ax, di

Function at 0x50bd12
Capabilities:
Resolve function by parsing pe exports

Disassembly:
setbe al
jmp 0x50b731
not al
rep movsb byte es:[edi], byte [esi]
call fcn.0050b4da
sub byte [esi], ch
call [edx]
mov dword [ebp + ebp*2 + 0x6b6419aa], ecx
push 0xfffffffffffffffd
loopne 0x50b754
adc al, byte [ebp - 0x28]
sar esi, cl
stosd dword es:[edi], eax
pop esi
add al, 0xa6
cmp eax, 0x373cff45
repne lodsb al, byte [esi]
invalid
lodsb al, byte [esi]
and byte [ecx + 0x5b], 0x84
pop es
test byte [ebp + 0x612e5f58], bh
adc dword [esi - 0x1b8fa097], 0x5a5e294f
cmp byte [edi], ah
push eax
sbb esp, dword [eax]
pop ebx
push es
xchg ebx, eax
xchg edx, eax
inc ebx
test byte [esi - 0x4e], 0x1e
jle 0x50b7ec
dec ebp
dec ebx
mov byte [0x953e26e], al
in eax, dx
push esi
dec eax
dec edx
test byte [esi + 0x7473e3a6], bh
inc esp
pop ecx
stc
movsb byte es:[edi], byte [esi]
add eax, 0xf77adf4a
test byte [ebx + 0x2af67faf], 0x69
imul ch
push 0x61
call 0xa0fea9ef
jmp 0x50b758
push esi
shl byte [esi + 0xf], 1
mov esi, 0xab0f66c0
clc
setns al
mov eax, 6
clc
push es
add byte [eax], al
add al, bh
cmc
bt bx, dx
stc
sub ecx, eax
not al
setae al
call fcn.0050dbd2
std
neg byte [ecx - 0x177376e5]
xor edi, dword [edx]
lea edx, [edi + 0x1f789146]
add dl, byte [ecx]
insb byte es:[edi], dx
xchg dword [edx + edi*8], edx
push ds
jns 0x50b88d
aas
dec ecx
xchg byte [ecx - 0x193bf8c4], al
and eax, 0xdfb22884
xchg edx, eax
sub dh, 0x3c
imul ecx, dword [eax - 0x14e7e75], 0xd20411a2
sbb bh, byte [esi + 0x3b989316]
les ebp, [edi + eax - 0x58e637fe]
out dx, eax
rcl byte [edi + 0x39]
arpl word [esi + 0x7d], ax
jmp 0x50b7dd
and al, 4
add esi, edi
pushal
mov al, 0x21
lea esp, [esp + 0x38]
jns 0x49636a
not al
rep movsb byte es:[edi], byte [esi]
push ebp
pushfd
mov esi, dword [esp + 8]
pushal
xchg ch, al
push dword [esp + 4]
movzx cx, al
mov ecx, dword [esp + 0x30]
push 0x130d213b
setns al
mov al, byte [edi - 1]
pushfd
pushfd
push eax
pushfd
mov byte [ebp - 2], al
push 0x84768dc1
push ecx
mov byte [esp + 4], al
lea esp, [esp + 0x50]
jmp 0x4954c3

Function at 0x50d19a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pushal
push dword [esp]
lea esp, [esp + 0x30]
je 0x50e226
setl ah
pushal
push 0x32f14807
movzx eax, dl
lea eax, [ebx + edx*4]
pushfd
lea esp, [esp + 0x28]
call fcn.0050561b
call fcn.00509070

Function at 0x50d1c6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov byte [ebp - 2], al
pushfd
lea esp, [esp + 0x40]
jmp 0x4954c3
lea esp, [esp + 0x20]
jns 0x4914d4
mov al, 0xa0
bswap ax
lea eax, [edi*4]
call fcn.00510b77
push esi
mov dword [esp], esp
jmp 0x5043e3
Function at 0x50dbd2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pushal
mov al, byte [ebp - 2]
push 0x9687b090
stosb byte es:[edi], al
pushfd
pushfd
mov byte [esp], cl
pushfd
lea esp, [esp + 0x34]
jmp 0x4954c3

Function at 0x50eb96
Capabilities:
Resolve function by parsing pe exports

Disassembly:
stosb byte es:[edi], al
jmp 0x511149
mov byte [ebp - 2], al
pushal
pushfd
lea esp, [esp + 0x38]
jmp 0x4954c3

Function at 0x50f696
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pushfd
pushfd
mov al, byte [edi - 1]
pushfd
mov byte [esp + 8], dh
jmp 0x517690
lea ecx, [ecx + 0x7eaac9a7]
bswap cx
mov ecx, dword [esp + 0x34]
setae al
jmp 0x50b5a8
push ebx
mov byte [ebp - 2], al
mov byte [esp], 0xdf
push 0xc1181f9d
lea esp, [esp + 0x4c]
jmp 0x4954c3
Function at 0x101e3fc
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x102e070]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push esi
push ecx
push eax
mov esi, 0x400
push esi
lea eax, [ebp - 0x404]
push eax
call fcn.0101e385
test eax, eax
jl 0x101e477
cmp byte [ebp + 0xc], 0
je 0x101e46a
push dword [ebp + 8]
call fcn.0101e234
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push eax
push 0x1002920
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.0101e3c1
add esp, 0x18
test eax, eax
jl 0x101e477
lea eax, [ebp - 0x804]
jmp 0x101e470
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0101ce8b
leave
ret 0x10

Function at 0x101e48b
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x102e070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
mov esi, 0x400
push esi
lea eax, [ebp - 0x404]
push eax
call fcn.0101e385
test eax, eax
jl 0x101e505
cmp byte [ebp + 0xc], 0
je 0x101e4f8
push dword [ebp + 8]
call fcn.0101e234
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push eax
push 0x1002920
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.0101e3c1
add esp, 0x18
test eax, eax
jl 0x101e505
lea eax, [ebp - 0x804]
jmp 0x101e4fe
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0101ce8b
leave
ret
Function at 0x101e6bc
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4b8
mov eax, dword [0x102e070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov esi, 0x24c
push esi
lea eax, [ebp - 0x250]
push edi
push eax
mov dword [ebp - 0x4b8], ebx
mov dword [ebp - 0x4b0], edi
mov dword [ebp - 0x4ac], edi
mov dword [ebp - 0x254], edi
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x4a0]
push edi
push eax
mov dword [ebp - 0x4a4], edi
call sub.msvcrt.dll_memset
add esp, 0x18
push ebx
lea eax, [ebp - 0x4b0]
push eax
call fcn.0101e123
cmp eax, edi
mov dword [ebp - 0x4a8], eax
jge 0x101e74d
push ebx
push 0x1002c00
push 1
push eax
push 0x4000000
call fcn.0101e5b9
add esp, 0x14
jmp 0x101e8cf
push 0x1002be0
lea eax, [ebp - 0x4b0]
push eax
call fcn.0101de63
cmp eax, edi
mov dword [ebp - 0x4a8], eax
jge 0x101e782
push 0x1002ba0
push 1
push eax
push 0x4000000
call fcn.0101e5b9
add esp, 0x10
jmp 0x101e8cf
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x4b0]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x4b4], eax
cmp eax, 0xffffffff
je 0x101e8cf
test byte [ebp - 0x254], 0x10
jne 0x101e7e1
cmp ebx, edi
je 0x101e7cb
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x490]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x101e7e0
mov ecx, 0x94
lea esi, [ebp - 0x254]
lea edi, [ebp - 0x4a4]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
inc ebx
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x4b4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x101e7a6
cmp ebx, 5
jbe 0x101e8c3
lea eax, [ebp - 0x478]
push eax
push dword [ebp - 0x4b8]
lea eax, [ebp - 0x4ac]
push 0x1002b94
push eax
call fcn.0101e219
add esp, 0x10
cmp eax, edi
mov dword [ebp - 0x4a8], eax
jl 0x101e86d
push dword [ebp - 0x4ac]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x101e877
push dword [ebp - 0x4b4]
dec ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x4ac], edi
je 0x101e862
push dword [ebp - 0x4ac]
call fcn.0101db34
mov dword [ebp - 0x4ac], edi
cmp ebx, 5
ja 0x101e782
jmp 0x101e8cf
push 0x1002b60
push 1
push eax
jmp 0x101e8b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [ebp - 0x4a8], eax
jle 0x101e897
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x4a8], eax
cmp dword [ebp - 0x4a8], edi
jl 0x101e8a9
mov dword [ebp - 0x4a8], 0x80004005
push 0x1002b38
push 1
push dword [ebp - 0x4a8]
push 0x4000000
call fcn.0101e5b9
add esp, 0x10
push dword [ebp - 0x4b4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x4b0], edi
je 0x101e8e2
push dword [ebp - 0x4b0]
call fcn.0101db34
cmp dword [ebp - 0x4ac], edi
pop edi
pop esi
pop ebx
je 0x101e8f8
push dword [ebp - 0x4ac]
call fcn.0101db34
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4a8]
xor ecx, ebp
call fcn.0101ce8b
leave
ret 4
Function at 0x102c83e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
cmp dword [ebp + 0xc], edi
je 0x102c8b2
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test byte [ebp + 0x10], 1
je 0x102c898
cmp eax, 2
je 0x102c883
cmp eax, 3
jne 0x102c898
cmp eax, edi
jle 0x102c891
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x102c942
cmp eax, edi
je 0x102c8b8
jle 0x102c8a8
and eax, 0xffff
or eax, 0x80070000
push dword [ebp + 0xc]
push 0x101986c
jmp 0x102c902
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x14]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test byte [ebp + 0x10], 1
je 0x102c8ea
cmp eax, 2
jne 0x102c8ea
mov ebx, 0x80070002
jmp 0x102c942
cmp eax, edi
je 0x102c916
jle 0x102c8fa
and eax, 0xffff
or eax, 0x80070000
push dword [ebp + 0x14]
push 0x101989c
mov ebx, eax
push 1
push ebx
push 0x4000000
call fcn.0101e5b9
add esp, 0x14
jmp 0x102c942
cmp dword [ebp - 0xc], 4
je 0x102c93a
push 0x10199e8
mov eax, 0x8007000d
push 1
push eax
push 0x4000000
mov ebx, eax
call fcn.0101e5b9
add esp, 0x10
jmp 0x102c942
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
cmp dword [ebp + 0xc], edi
je 0x102c955
cmp dword [ebp - 4], edi
je 0x102c955
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
leave
ret 0x14

Function at 0x102c962
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x102c97e
test al, 0x10
jne 0x102c97e
xor eax, eax
inc eax
jmp 0x102c980
xor eax, eax
pop ebp
ret 4
Function at 0x102cb61
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x102e070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov dword [ebp - 0x210], eax
xor esi, esi
call ebx
test eax, eax
jne 0x102cc4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x102cc4d
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
jne 0x102cbc6
push edi
mov esi, 0x80070003
push 0x1019adc
jmp 0x102cc0f
sub eax, edi
sar eax, 1
push eax
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0102ca12
mov esi, eax
test esi, esi
jge 0x102cbeb
push edi
push 0x1019ab8
jmp 0x102cc0f
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
call fcn.0102cb61
mov esi, eax
test esi, esi
jge 0x102cc21
lea eax, [ebp - 0x20c]
push eax
push 0x1019a9c
push 1
push esi
push 0x4000000
call fcn.0101e5b9
add esp, 0x14
jmp 0x102cc4f
push dword [ebp - 0x210]
push edi
call ebx
test eax, eax
jne 0x102cc4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x102cc4d
test eax, eax
jle 0x102cc49
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x102cc4f
xor esi, esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101ce8b
leave
ret 8
Function at 0xb32510
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0xb5f094]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00b44250
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0xb325df
mov eax, 0xb5c640
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0xb32555
sub eax, edx
sar eax, 1
je 0xb325df
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [fcn.00b55124]
push 0xb5c640
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00b426bd
push 0xb5c638
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00b42164
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0xb325df
push eax
push 1
push 0x200
push esi
call fcn.00b429da
mov eax, dword [esp + 0x14]
push eax
call fcn.00b42412
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00b41ee8
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00b41ee8
add esp, 0x214
ret

Function at 0xb327c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
push esi
push edi
push 0x3e8
mov dword [esp + 0x10], 0
call dword [0xb55140]
push 0xb5c6dc
lea eax, [esp + 0x10]
push 0xb61de8
push eax
call fcn.00b42164
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
je 0xb328f1
push 2
push 0
push eax
call fcn.00b42e4f
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ecx
call fcn.00b43071
mov esi, eax
add esp, 4
push esi
call fcn.00b430df
mov edx, dword [esp + 0x10]
add esp, 4
push 0
push 0
push edx
mov edi, eax
call fcn.00b42e4f
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
push esi
push 1
push edi
call fcn.00b429da
add esp, 0x10
cmp esi, eax
jne 0xb328d3
call dword [0xb5512c]
push eax
call fcn.00b42d91
add esp, 4
call fcn.00b42da3
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0xb5d138]
fmul qword [0xb5d130]
fadd qword [0xb5d128]
call fcn.00b44af0
cmp esi, eax
jl 0xb328d3
mov ebx, edi
sub ebx, eax
add ebx, esi
call fcn.00b32770
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00b42412
add esp, 4
push 0xb61de8
call dword [0xb5511c]
push 0xb5c774
lea edx, [esp + 0x10]
push 0xb61de8
push edx
call fcn.00b42164
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
je 0xb328f1
push eax
push esi
push 1
push edi
call fcn.00b42319
add esp, 0x10
mov eax, dword [esp + 0xc]
test eax, eax
je 0xb328e4
push eax
call fcn.00b42412
add esp, 4
test edi, edi
je 0xb328f1
push edi
call fcn.00b41edd
add esp, 4
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0xb347b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
xor ebp, ebp
push esi
mov ebx, ecx
push edi
mov edi, eax
mov dword [esp + 0x10], ebp
cmp ebx, ebp
je 0xb348a1
cmp edi, 0xa
jb 0xb348a1
lea eax, [edi*4]
mov dword [esp + 0x14], eax
inc eax
push eax
call fcn.00b41f46
add esp, 4
mov esi, eax
push esi
push ebx
lea edx, [esp + 0x1c]
mov ecx, edi
call fcn.00b34630
add esp, 8
test eax, eax
je 0xb3489a
mov eax, dword [esp + 0x1c]
push 0xb5b804
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00b42164
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jne 0xb34825
lea ebp, [eax - 2]
jmp 0xb34850
mov edi, dword [esp + 0x14]
push eax
push edi
push 1
push esi
call fcn.00b42319
add esp, 0x10
cmp eax, edi
je 0xb34867
mov ebp, 0xfffffffe
mov eax, dword [esp + 0x10]
test eax, eax
je 0xb34850
push eax
call fcn.00b42412
add esp, 4
test esi, esi
je 0xb3485d
push esi
call fcn.00b42010
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edi, dword [0xb5512c]
call edi
xor edx, edx
mov ecx, 0x1f4
div ecx
mov ebx, edx
call edi
xor edx, edx
mov ecx, 0x3e8
div ecx
mov eax, dword [esp + 0x10]
push eax
push ebx
push 1
add edx, esi
push edx
call fcn.00b42319
add esp, 0x10
jmp 0xb3483f
mov ebp, 0xfffffffd
jmp 0xb3483f
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret