joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10018a02
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100085d0
mov eax, dword [0x1002f040]
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.10015689
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10018a44
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10018ba0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10022de0
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 + 0x100309d0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100199ff
mov ecx, dword [esi*4 + 0x100309d0]
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 0x10018b99
cmp eax, dword [ecx + edi + 0x24]
jne 0x10018b99
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 0x10018b99
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100199ff
add esp, 0x14
test edx, edx
jl 0x10018b99
jg 0x10018b0f
test eax, eax
jb 0x10018b99
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10018b99
jl 0x10018b29
cmp dword [ebp - 0x1008], eax
ja 0x10018b99
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10018b47
test ebx, ebx
je 0x10018b80
cmp ecx, edi
jae 0x10018b80
mov al, byte [ecx]
cmp al, 0xd
jne 0x10018b61
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10018b6d
cmp byte [ecx + 1], 0xa
jne 0x10018b6d
inc ecx
jmp 0x10018b6d
movzx eax, al
movsx eax, byte [eax + 0x1002f300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10018b47
cmp edx, ebx
jne 0x10018b47
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10018b9e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100077c7
leave
ret
Function at 0x10018e97
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 + 0x100309d0]
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 0x10018ed7
cmp byte [ebx], 0xa
jne 0x10018ed7
or byte [edi + eax + 0x28], 4
jmp 0x10018edc
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 0x10018fdb
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10018fbe
inc eax
cmp dl, 0xd
je 0x10018f08
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10018f2e
cmp eax, ecx
jae 0x10018f3c
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 0x10018ef0
jmp 0x10018fdb
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 0x10018fb9
cmp dword [ebp - 0x10], 0
je 0x10018fb9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100309d0]
test byte [eax + edi + 0x28], 0x48
je 0x10018f93
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10018f7e
mov byte [esi], dl
jmp 0x10018f8f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100309d0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10018fdb
cmp byte [ebp - 1], 0xa
jne 0x10018fa2
cmp esi, ebx
jne 0x10018fa2
mov byte [esi], 0xa
jmp 0x10018fda
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10019a1d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10018fdb
mov byte [esi], 0xd
jmp 0x10018fda
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100309d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10018fd8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10018fdb
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10018fe4
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 + 0x100309d0]
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 0x1001902a
cmp word [ebx], dx
jne 0x1001902a
or byte [eax + edi + 0x28], 4
jmp 0x1001902f
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 0x10019192
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 0x10019172
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10019070
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100190a6
cmp eax, edx
jae 0x100190b4
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 0x1001904b
jmp 0x10019192
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 0x1001916d
cmp dword [ebp - 0x18], 0
je 0x1001916d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100309d0]
test byte [eax + edi + 0x28], 0x48
je 0x10019143
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 0x10019107
mov word [esi], cx
jmp 0x1001913e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100309d0]
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 + 0x100309d0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100309d0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10019192
pop eax
cmp word [ebp - 4], ax
jne 0x10019153
cmp esi, ebx
jne 0x10019153
mov word [esi], ax
jmp 0x1001918f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10019a1d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10019192
push 0xd
pop eax
jmp 0x1001914e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100309d0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1001918c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10019192
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 0x1001b3c5
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 0x1001b462
push ebx
push esi
call fcn.1001b38e
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.1001a080
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001b40f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001b461
push edi
push eax
call fcn.10014789
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001b42f
call fcn.1001474f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001b460
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001a080
add esp, 0x20
test eax, eax
jne 0x1001b44e
push edi
call fcn.1001474f
jmp 0x1001b456
push ebx
call fcn.1001474f
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 0x1001da8f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10015b2a
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001dafe
cmp esi, dword [ebp - 4]
je 0x1001daf9
cmp dword [ebp + 0xc], 0
je 0x1001daf9
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001dad6
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1001d5e1
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1001db00
xor eax, eax
inc eax
jmp 0x1001db00
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1001db65
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1002f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10015b2a
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10015b2a
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1001dbdc
cmp word [ecx], dx
je 0x1001dbdc
mov eax, dword [0x10028534]
push edi
dec eax
push eax
push 0x10028420
call fcn.1001db04
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1001dc4f
cmp word [eax], dx
je 0x1001dc4f
mov eax, dword [edi]
test eax, eax
je 0x1001dc00
cmp word [eax], dx
je 0x1001dc00
lea eax, [ebp - 0x10]
push eax
call fcn.1001d4e7
jmp 0x1001dc09
lea eax, [ebp - 0x10]
push eax
call fcn.1001d582
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1001dc79
mov eax, dword [0x1002841c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10028110
call fcn.1001db04
add esp, 0xc
test al, al
je 0x1001dc79
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1001dc44
cmp word [eax], di
je 0x1001dc44
lea eax, [ebp - 0x10]
push eax
call fcn.1001d4e7
pop ecx
jmp 0x1001dc7b
lea eax, [ebp - 0x10]
push eax
call fcn.1001d582
jmp 0x1001dc41
mov eax, dword [edi]
test eax, eax
je 0x1001dc66
cmp word [eax], dx
je 0x1001dc66
lea eax, [ebp - 0x10]
push eax
call fcn.1001d49c
pop ecx
jmp 0x1001dc79
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1001dd44
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1001d989
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1001dd44
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1001dd44
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1001dd44
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001dcd1
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1001669b
test ebx, ebx
je 0x1001dd3f
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1001669b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001dd44
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001dd44
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10020fe7
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1001dd46
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100077c7
leave
ret
Function at 0x10022ce0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10022d0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10022d0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40a006
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x40e220
call fcn.0040a8f2
push 1
call fcn.0040a300
pop ecx
test al, al
jne 0x409ebd
push 7
call fcn.0040a6b4
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0040a2cb
mov byte [ebp - 0x24], al
mov eax, dword [0x41045c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x409eb6
test eax, eax
jne 0x409f27
mov dword [0x41045c], ecx
push 0x40c25c
push 0x40c244
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x409f0a
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40a000
push 0x40c240
push 0x40c224
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x41045c], 2
jmp 0x409f2c
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0040a46d
pop ecx
call fcn.0040a6a8
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x409f5c
push esi
call fcn.0040a3e3
pop ecx
test al, al
je 0x409f5c
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0040a8ec
call esi
call fcn.0040a6ae
mov esi, eax
cmp dword [esi], edi
je 0x409f7a
push esi
call fcn.0040a3e3
pop ecx
test al, al
je 0x409f7a
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.0040a7ca
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.0040a7fd
test al, al
jne 0x409fa5
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x409fae
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.0040a48a
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x40a000
call fcn.0040a937
ret
call fcn.00409d44
jmp 0x409e9e

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40121b
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push esi
mov esi, ecx
call fcn.0040133c
mov eax, dword [esi]
cmp eax, 2
je 0x40123c
cmp eax, 4
jne 0x401337
push ebx
push edi
push dword [esi + 4]
call fcn.00407480
mov edi, str..
mov ebx, eax
push edi
mov dword [ebp - 4], ebx
call fcn.00407480
lea eax, [eax + ebx + 2]
push eax
call fcn.0040768e
push dword [esi + 4]
mov ebx, eax
push ebx
call fcn.00407500
mov eax, dword [ebp - 4]
add esp, 0x14
cmp byte [ebx + eax - 1], 0x5c
lea eax, [ebx + eax - 1]
je 0x40127d
inc eax
push edi
push eax
call fcn.00407500
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
pop ecx
pop ecx
lea eax, [ebp - 0x144]
push eax
push ebx
call edi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4012be
inc dword [esi + 0x18]
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40129e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 4
push dword [esi + 0x18]
call fcn.0040790e
pop ecx
mov dword [esi + 8], eax
pop ecx
lea eax, [ebp - 0x144]
push eax
push ebx
call edi
push ebx
mov edi, eax
call fcn.00407617
cmp edi, 0xffffffff
pop ecx
je 0x40131a
xor ebx, ebx
cmp dword [esi + 0x18], ebx
jle 0x401313
lea eax, [ebp - 0x118]
push eax
call fcn.0040e026
pop ecx
mov ecx, dword [esi + 8]
mov dword [ecx + ebx*4], eax
lea eax, [ebp - 0x144]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
inc ebx
cmp ebx, dword [esi + 0x18]
jl 0x4012ec
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 1
pop edi
pop ebx
jne 0x401337
push 0x40137e
push 4
push dword [esi + 0x18]
push dword [esi + 8]
call fcn.00407740
add esp, 0x10
pop esi
leave
ret 4

Function at 0x4018bf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push eax
push 0xf003f
push ebx
push dword [ebp + 8]
mov byte [esi], bl
mov dword [ebp + 0x10], ebx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40190d
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x208
push eax
push esi
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp byte [esi], bl
pop esi
pop ebx
setne al
pop ebp
ret
Function at 0x401cc9
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
mov byte [ebp - 0x14], 0x5b
mov byte [ebp - 0x13], 0x40
mov byte [ebp - 0x12], 0x53
mov byte [ebp - 0x11], 0x5d
mov byte [ebp - 0x10], 0x43
mov byte [ebp - 0xf], 0x52
mov byte [ebp - 0xe], 0x43
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 8], edi
je 0x401dba
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
jne 0x401d2c
push edi
jmp 0x401db4
cmp dword [ebp - 0x18], esi
mov dword [ebp + 8], esi
jb 0x401db1
ja 0x401d3a
cmp eax, esi
jbe 0x401db1
mov ebx, 0x40000
push ebx
call fcn.00407680
pop ecx
mov edi, eax
lea eax, [ebp - 4]
push esi
push eax
push ebx
push edi
mov dword [ebp - 4], esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401d90
mov eax, dword [ebp - 4]
cmp eax, 7
jbe 0x401d8e
add eax, 0xfffffff9
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 0xc]
jae 0x401d8e
xor eax, eax
lea ecx, [esi + edi]
mov dl, byte [ecx + eax]
cmp dl, byte [ebp + eax - 0x14]
jne 0x401d86
inc eax
cmp eax, 7
jl 0x401d77
cmp eax, 7
jge 0x401dc1
inc esi
jmp 0x401d6d
xor esi, esi
push edi
call fcn.0040139d
mov eax, dword [ebp - 4]
pop ecx
cmp eax, esi
je 0x401db1
add dword [ebp + 8], eax
mov eax, dword [ebp + 8]
cdq
cmp edx, dword [ebp - 0x18]
jb 0x401d3f
ja 0x401db1
cmp eax, dword [ebp - 0x1c]
jb 0x401d3f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, esi
jmp 0x401dbc

Function at 0x402320
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x414640
push 0x414848
call fcn.00408b30
pop ecx
test eax, eax
pop ecx
je 0x40233e
xor eax, eax
leave
ret
mov ecx, dword [ebp + 8]
push ebx
xor ebx, ebx
push edi
push ebx
call fcn.0040121b
mov ecx, dword [ebp + 8]
call fcn.0040137a
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp eax, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
jbe 0x4023d3
push esi
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
call fcn.00401168
mov esi, eax
mov ecx, esi
call fcn.00401373
cmp dword [ebp + 0xc], 0
je 0x40239b
cmp eax, 2
jne 0x40239b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00402320
add esp, 0xc
add ebx, eax
push dword [esi + 4]
call edi
jmp 0x4023b5
cmp eax, 1
jne 0x4023b5
push 0x20
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc ebx
test esi, esi
je 0x4023c7
mov ecx, esi
call fcn.00401155
push esi
call fcn.0040139d
pop ecx
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x402364
pop esi
mov ecx, dword [ebp + 8]
call fcn.0040133c
push 0x414848
call edi
mov eax, ebx
pop edi
pop ebx
leave
ret
Function at 0x4023e8
Capabilities:
Delete directory

Disassembly:
mov eax, 0x40e29c
call fcn.00408a28
sub esp, 0x1c
push esi
mov esi, 0x414744
push esi
lea ecx, [ebp - 0x28]
call fcn.00401075
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x28]
push 1
push eax
call fcn.00402320
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401155
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x402a98
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x108]
push eax
call fcn.00408c70
cmp byte [ebp - 0x108], 0x5c
pop ecx
lea eax, [ebp - 0x108]
push eax
je 0x402af3
call fcn.00408c70
pop ecx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x108]
push 0x4111bc
push eax
call fcn.004081b0
add esp, 0xc
jmp 0x402af9
call fcn.00408c70
pop ecx
push ebx
push esi
push edi
lea eax, [ebp - 0x108]
push str.temp_
push eax
call fcn.00407510
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push 0
push eax
call ebx
lea eax, [ebp - 0x108]
push eax
call fcn.00408c70
cmp byte [ebp - 0x108], 0x5c
pop ecx
lea eax, [ebp - 0x108]
push eax
je 0x402b60
call fcn.00408c70
pop ecx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x108]
push 0x4111bc
push eax
call fcn.004081b0
add esp, 0xc
jmp 0x402b66
call fcn.00408c70
pop ecx
lea eax, [ebp - 0x108]
mov esi, 0x414848
push eax
push str._sCRF000
push esi
call fcn.004081b0
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
add esp, 0xc
mov dword [ebp - 4], 1
push esi
call edi
cmp eax, 1
jne 0x402bbc
cmp dword [ebp - 4], 0x3e7
jg 0x402bbc
push dword [ebp - 4]
lea eax, [ebp - 0x108]
push eax
push str._sCRF_003d
push esi
call fcn.004081b0
add esp, 0x10
inc dword [ebp - 4]
push esi
jmp 0x402b8e
push esi
push 0x411050
push 0x414744
call fcn.004081b0
add esp, 0xc
push esi
push 0x4111bc
push esi
call fcn.004081b0
add esp, 0xc
push 0
push esi
call ebx
push esi
push str._screaf_ms.cab
push 0x414334
call fcn.004081b0
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404bf5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov eax, dword [esp + 0x10]
mov ebp, esp
push esi
push edi
mov esi, dword [ebp + 0xc]
shr esi, 2
mov edx, dword [ebp + 8]
mov ecx, esi
dec esi
test ecx, ecx
jle 0x404c36
movzx edi, byte [edx]
inc edx
movzx ecx, byte [edx]
shl ecx, 8
inc edx
or edi, ecx
movzx ecx, byte [edx]
shl ecx, 0x10
inc edx
or edi, ecx
movzx ecx, byte [edx]
shl ecx, 0x18
inc edx
or edi, ecx
mov ecx, esi
xor eax, edi
dec esi
test ecx, ecx
jg 0x404c0e
xor esi, esi
mov ecx, dword [ebp + 0xc]
and ecx, 3
cmp ecx, 1
je 0x404c5d
cmp ecx, 2
je 0x404c54
cmp ecx, 3
jne 0x404c62
movzx esi, byte [edx]
shl esi, 0x10
inc edx
movzx ecx, byte [edx]
shl ecx, 8
inc edx
or esi, ecx
movzx ecx, byte [edx]
or esi, ecx
xor eax, esi
pop edi
pop esi
pop ebp
ret 0xc