joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100163ee
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 + 0x10035948]
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 0x10016434
cmp word [ebx], dx
jne 0x10016434
or byte [eax + edi + 0x28], 4
jmp 0x10016439
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 0x1001659c
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 0x1001657c
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1001647a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100164b0
cmp eax, edx
jae 0x100164be
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 0x10016455
jmp 0x1001659c
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 0x10016577
cmp dword [ebp - 0x18], 0
je 0x10016577
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10035948]
test byte [eax + edi + 0x28], 0x48
je 0x1001654d
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 0x10016511
mov word [esi], cx
jmp 0x10016548
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10035948]
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 + 0x10035948]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10035948]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1001659c
pop eax
cmp word [ebp - 4], ax
jne 0x1001655d
cmp esi, ebx
jne 0x1001655d
mov word [esi], ax
jmp 0x10016599
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001afdf
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001659c
push 0xd
pop eax
jmp 0x10016558
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10035948]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10016596
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1001659c
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 0x10017292
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002bfd4
push 0x1002bfcc
push str.FlsAlloc
push 0x1f
call fcn.100170bd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100172c6
push dword [ebp + 8]
mov ecx, esi
call dword [0x100281d4]
call esi
jmp 0x100172cc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10017310
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002bfe4
push 0x1002bfdc
push str.FlsGetValue
push 0x21
call fcn.100170bd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10017347
push dword [ebp + 8]
mov ecx, esi
call dword [0x100281d4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001734f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002bfec
push 0x1002bfe4
push str.FlsSetValue
push 0x22
call fcn.100170bd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10017389
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100281d4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10019e34
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10026950
mov eax, dword [0x1003400c]
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.1001431c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10019e76
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10019fd2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100267a0
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 + 0x10035948]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1001afc1
mov ecx, dword [esi*4 + 0x10035948]
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 0x10019fcb
cmp eax, dword [ecx + edi + 0x24]
jne 0x10019fcb
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 0x10019fcb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001afc1
add esp, 0x14
test edx, edx
jl 0x10019fcb
jg 0x10019f41
test eax, eax
jb 0x10019fcb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10019fcb
jl 0x10019f5b
cmp dword [ebp - 0x1008], eax
ja 0x10019fcb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10019f79
test ebx, ebx
je 0x10019fb2
cmp ecx, edi
jae 0x10019fb2
mov al, byte [ecx]
cmp al, 0xd
jne 0x10019f93
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10019f9f
cmp byte [ecx + 1], 0xa
jne 0x10019f9f
inc ecx
jmp 0x10019f9f
movzx eax, al
movsx eax, byte [eax + 0x10034290]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10019f79
cmp edx, ebx
jne 0x10019f79
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10019fd0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100059cd
leave
ret
Function at 0x1001c292
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 0x1001c32f
push ebx
push esi
call fcn.1001c25b
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.100189df
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001c2dc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001c32e
push edi
push eax
call fcn.100142ce
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001c2fc
call fcn.10013d62
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001c32d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100189df
add esp, 0x20
test eax, eax
jne 0x1001c31b
push edi
call fcn.10013d62
jmp 0x1001c323
push ebx
call fcn.10013d62
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 0x1001c332
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1001c343
pop esi
ret
push ebx
push edi
push esi
call fcn.1001c25b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100142ce
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1001c36b
push ebx
push esi
push edi
call fcn.10008020
add esp, 0xc
push 0
call fcn.10013d62
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1001c73b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001c380

Function at 0x1002148a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100148f1
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 0x100214f9
cmp esi, dword [ebp - 4]
je 0x100214f4
cmp dword [ebp + 0xc], 0
je 0x100214f4
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100214d1
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10020fdc
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100214fb
xor eax, eax
inc eax
jmp 0x100214fb
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10021560
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1003400c]
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.100148f1
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.100148f1
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 0x100215d7
cmp word [ecx], dx
je 0x100215d7
mov eax, dword [0x1002c6c4]
push edi
dec eax
push eax
push 0x1002c5b0
call fcn.100214ff
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1002164a
cmp word [eax], dx
je 0x1002164a
mov eax, dword [edi]
test eax, eax
je 0x100215fb
cmp word [eax], dx
je 0x100215fb
lea eax, [ebp - 0x10]
push eax
call fcn.10020ee2
jmp 0x10021604
lea eax, [ebp - 0x10]
push eax
call fcn.10020f7d
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10021674
mov eax, dword [0x1002c5ac]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1002c2a0
call fcn.100214ff
add esp, 0xc
test al, al
je 0x10021674
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1002163f
cmp word [eax], di
je 0x1002163f
lea eax, [ebp - 0x10]
push eax
call fcn.10020ee2
pop ecx
jmp 0x10021676
lea eax, [ebp - 0x10]
push eax
call fcn.10020f7d
jmp 0x1002163c
mov eax, dword [edi]
test eax, eax
je 0x10021661
cmp word [eax], dx
je 0x10021661
lea eax, [ebp - 0x10]
push eax
call fcn.10020e97
pop ecx
jmp 0x10021674
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 0x1002173f
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10021384
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1002173f
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1002173f
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1002173f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100216cc
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1001752b
test ebx, ebx
je 0x1002173a
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1001752b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002173f
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 0x1002173f
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100248dc
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10021741
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100059cd
leave
ret
Function at 0x10024611
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.1002458d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10024780
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10024780
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10024735
jg 0x1002466d
test eax, eax
je 0x1002472b
push 1
push 0x1000
call fcn.10016dbb
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10024690
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10024722
push 0x8000
push ebx
call fcn.100244be
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100246b9
jg 0x100246b4
cmp ecx, 0x1000
jb 0x100246b9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10018671
add esp, 0x10
cmp eax, 0xffffffff
je 0x100246fe
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 0x100246b4
jl 0x100246e5
test ecx, ecx
jne 0x100246a6
push dword [ebp - 0xc]
push ebx
call fcn.100244be
push esi
call fcn.10013d62
add esp, 0xc
xor ebx, ebx
jmp 0x1002478e
cmp byte [edi + 0x24], 0
je 0x10024715
cmp dword [edi + 0x20], 5
jne 0x10024715
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10024720
mov ebx, dword [edi + 0x18]
jmp 0x10024722
xor ebx, ebx
push esi
call fcn.10013d62
pop ecx
jmp 0x1002478e
test ecx, ecx
jg 0x100246f7
jl 0x10024735
test eax, eax
jae 0x100246f7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001afdf
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10024755
cmp byte [edi + 0x1c], 0
je 0x100246f7
jmp 0x10024786
push ebx
call fcn.1001f329
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100246f7
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 0x1002478e
cmp byte [edi + 0x1c], 0
je 0x1002478b
mov ebx, dword [edi + 0x18]
jmp 0x1002478e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1001afdf
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100266e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002670d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002670d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x407ef0
Capabilities:
Encode data using xor

Disassembly:
dec ebx
mov ebp, esp
or dword [esi + 0x14], 0xffffff83
jge 0x407f09
dec edi
jl 0x407f03
invalid
fld qword [ebp + 8]
dec esi
dec esp
xor byte [eax + 0x40], dl
push eax
inc eax
add byte [ebx], cl
dec ebp
sbb byte [ebx - 0x2d], dl
pop ebp
and byte [esi + 0x1d], dl
test byte [ebx - 0x3762121], 0xfc
mov dword [ecx - 0x74b93b0a], ebp
and eax, 0xaadd0e7a
or cl, bl
loopne 0x407f08
pop ebp
movsd dword es:[edi], dword [esi]
mov dword [ecx], 0xce0001
mov esi, dword [edx + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
int 0x23
jmp [edi]

Function at 0x40857c
Capabilities:
Encode data using xor

Disassembly:
call 0x40843d
sub ecx, ecx
sub cx, 0xff7a
call 0x40857c
rcr byte [esi - 0x7f], 0x76
push cs
popal
lodsd eax, dword [esi]
sar byte [ebx + eax*4 - 0x12], cl
cld
xor dword [esi + 0xe], 0x7cd2ad61
sub esi, 0xfffffffc
loop 0x40857f
popfd
push ss
lahf
xor dh, byte [ebp + 0x39]
jo 0x4085d3
sti
jecxz 0x4085f9
int3
mov al, byte [0x6a02baa]
adc al, 0x77
ja 0x4085c0
mov eax, dword [0xa0da335c]
Function at 0x4015a4
Capabilities:
Create directory
Set current directory

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0x5c
push edi
call fcn.00401051
pop ecx
mov esi, eax
pop ecx
push edi
test esi, esi
jne 0x4015d4
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
test eax, eax
jne 0x4015fb
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
call esi
jmp 0x4015fe
mov byte [esi], 0
call fcn.004015a4
pop ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov byte [esi], 0x5c
inc esi
call edi
test eax, eax
jne 0x4015fb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call edi
jmp 0x4015fe
xor eax, eax
inc eax
pop edi
pop esi
ret

Function at 0x401601
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x40310c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401649
lea eax, [ebp - 0x108]
push eax
call fcn.004015a4
pop ecx
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x4022f8
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x40168f
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00401d4c
leave
ret

Function at 0x40169c
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x108
mov eax, dword [0x40310c]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, 0x403580
push esi
call fcn.00401601
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.00401d4c
add esp, 0x108
ret
Function at 0x401927
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push 0x403720
mov dword [ebp - 4], 0x1e0a
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x401962
xor eax, eax
pop ebx
leave
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov edi, 0x44445a53
jmp 0x40199b
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x1e6e
jg 0x4019b7
push ebx
push ebx
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], edi
jne 0x401971
push ebx
lea eax, [ebp - 0x10]
push eax
push 4
push 0x403828
push dword [ebp - 8]
call esi
mov ebx, dword [0x403828]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
jmp 0x40195f
Function at 0x401d4c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40310c]
jne 0x401d5d
test ecx, 0xffff0000
jne 0x401d5d
ret
jmp fcn.00401d62

Function at 0x401e50
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x401ea9
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
test ecx, ecx
je 0x401e93
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
cmp eax, 0x22
je 0x401e93
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
jmp 0x401e73
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
cmp eax, 0x22
jne 0x401ea7
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
jmp 0x401ebf
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
cmp eax, 0x20
jle 0x401ebf
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
jmp 0x401ea9
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
test eax, eax
je 0x401edf
mov ecx, dword [ebp - 0x4c]
movsx edx, byte [ecx]
cmp edx, 0x20
jg 0x401edf
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x401ebf
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401f80
push 0x403008
push section..data
call fcn.00401f50
add esp, 8
mov edx, dword [ebp - 0x1c]
and edx, 1
je 0x401f18
movzx eax, word [ebp - 0x18]
mov dword [ebp - 0x54], eax
jmp 0x401f1f
mov dword [ebp - 0x54], 0xa
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x50], eax
call fcn.00401fb0
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10001050
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10016004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x101246ec]
push esi
push edi
mov edi, ecx
cmp edx, 0xffffffff
jne 0x10001082
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edx, dword [ebp - 0x24]
mov dword [0x101246ec], edx
mov ecx, dword [0x101259ec]
test ecx, ecx
je 0x10001099
mov esi, dword [0x101259f0]
lea eax, [esi + edi]
cmp eax, edx
jle 0x100010b3
push 0x40
push 0x3000
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
xor esi, esi
mov dword [0x101259ec], ecx
lea edx, [esi + edi]
lea eax, [esi + ecx]
mov dword [0x101259f0], edx
mov ecx, edx
pop edi
pop esi
and ecx, 0x8000000f
jns 0x100010d2
dec ecx
or ecx, 0xfffffff0
add ecx, 1
je 0x100010ee
mov ecx, edx
and ecx, 0x8000000f
jns 0x100010e3
dec ecx
or ecx, 0xfffffff0
inc ecx
sub edx, ecx
add edx, 0x10
mov dword [0x101259f0], edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010943
mov esp, ebp
pop ebp
ret
Function at 0x10004c90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, ecx
push ebx
push esi
push edi
cmp dword [edx + 0x14], 0x10
mov edi, edx
mov dword [ebp - 4], eax
jb 0x10004cab
mov edi, dword [edx]
mov ebx, dword [edx + 0x10]
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x10004cd4
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x10004cc0
mov eax, dword [ebp - 4]
push esi
push edx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.10006ed0
pop edi
pop esi
pop ebx
mov eax, dword [eax + 4]
test eax, eax
je 0x10004cfc
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx + 4]
je 0x10004cfc
mov eax, dword [eax + 0x20]
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov esp, ebp
pop ebp
ret 4