joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403db7
Capabilities:
Parse pe header

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

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x432000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x50a5279d
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4320d2
nop
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x290e2c3f
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x1001ea6
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x1006724]
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x624]
push eax
xor edi, edi
push 0x26
push edi
mov dword [ebp - 0x624], edi
xor esi, esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x10020db
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x624]
mov dword [ebp - 0x620], edi
call fcn.01004c87
test eax, eax
je 0x1001efa
inc esi
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x1001f2d
mov eax, dword [ebp - 0x620]
cmp eax, edi
je 0x1001f2d
push dword [ebp - 0x624]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x620]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, edi
je 0x10020db
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01002333
push 0x10011a4
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01001e4b
test eax, eax
jl 0x10020db
lea eax, [ebp - 0x20c]
push eax
call fcn.0100234e
test eax, eax
je 0x10020db
lea eax, [ebp - 0x20c]
push eax
call fcn.010045c2
cmp dword [ebp + 8], edi
je 0x1001f8b
and eax, 0xfffffff9
jmp 0x1001f8e
or eax, 6
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01004b74
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01002333
push 0x10011e8
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01001e4b
test eax, eax
jl 0x10020db
lea eax, [ebp - 0x20c]
push eax
call fcn.0100237b
test eax, eax
je 0x1001ff8
lea eax, [ebp - 0x20c]
push eax
call fcn.010045c2
cmp dword [ebp + 8], edi
je 0x1001fe8
and eax, 0xfffffff9
jmp 0x1001feb
or eax, 6
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01004b74
push esi
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01004d1c
test eax, eax
je 0x10020db
push 1
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x620], 0x208
call fcn.0100250e
test eax, eax
mov esi, dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov edi, 0x1000
je 0x100207d
lea eax, [ebp - 0x414]
push eax
call fcn.0100234e
test eax, eax
je 0x100207d
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 8]
call fcn.01001bd5
push 0
lea eax, [ebp - 0x414]
push eax
push 5
push edi
call esi
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x414]
push eax
push 1
mov dword [ebp - 0x620], 0x208
call fcn.010023a7
test eax, eax
je 0x10020db
lea eax, [ebp - 0x414]
push eax
call fcn.0100234e
test eax, eax
je 0x10020db
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 8]
call fcn.01001bd5
push 0
lea eax, [ebp - 0x414]
push eax
push 5
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0100265a
leave
ret 4
Function at 0x1002772
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001620
call fcn.010029b8
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x10027af
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10027af
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10027c7
cmp eax, 0x20b
je 0x10027b4
mov dword [ebp - 0x1c], ebx
jmp 0x10027db
cmp dword [ecx + 0x84], 0xe
jbe 0x10027af
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x10027d5
cmp dword [ecx + 0x74], 0xe
jbe 0x10027af
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10076a8], 0xffffffff
or dword [0x10076ac], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1006850]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100684c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10076b0], eax
call fcn.010029b0
cmp dword [0x1006730], ebx
jne 0x1002836
push fcn.010029b0
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01002999
push 0x100601c
push 0x1006018
call sub.msvcrt.dll__initterm
mov eax, dword [0x1006848]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1006844]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1006014
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x10028cc
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x10028a0
cmp al, 0x22
jne 0x1002892
cmp byte [esi], 0x22
jne 0x10028a9
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x10028b3
cmp al, 0x20
jbe 0x10028a5
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x10028d7
movzx eax, word [ebp - 0x50]
jmp 0x10028da
cmp byte [esi], 0x20
jbe 0x10028a9
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10028cc
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x10028f7
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100292c
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010029f3
ret
Function at 0x1004550
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.010042f6
test al, al
je 0x100456f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x10045b3
mov edi, dword [ebp + 8]
lea esi, [edi + edi]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.01002940
mov ebx, esp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x10045a2
cmp edi, eax
jb 0x10045b3
push 0xffffffffffffffff
push edi
push ebx
push dword [ebp + 0xc]
call fcn.01002a47
jmp 0x10045b3
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10045b1
test edi, edi
jbe 0x10045b1
and word [eax], 0
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10045c2
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
call fcn.010042f6
test al, al
je 0x10045dd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x100461e
cmp dword [ebp + 8], 0
jne 0x10045e8
or eax, 0xffffffff
jmp 0x100461e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01002940
mov edi, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
push edi
call fcn.01002a21
neg eax
sbb eax, eax
and eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret 4

Function at 0x10047cc
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
call fcn.010042f6
test al, al
je 0x10047ea
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x100482a
xor eax, eax
cmp dword [ebp + 0xc], eax
je 0x1004820
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01002940
mov edi, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 0xc]
push edi
call fcn.01002a21
neg eax
sbb eax, eax
and eax, edi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret 8
Function at 0x10048b6
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.010042f6
test al, al
je 0x10048e4
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x10049d8
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x100491e
push dword [ebp + 0xc]
call edi
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01002940
mov ebx, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 0xc]
push ebx
call fcn.01002a21
mov esi, eax
neg esi
sbb esi, esi
and esi, ebx
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x1004990
cmp eax, 2
je 0x1004990
cmp eax, 7
jne 0x1004987
mov ebx, dword [ebp + 0x18]
xor eax, eax
test ebx, ebx
jne 0x100493d
xor ecx, ecx
jmp 0x1004981
push ebx
call fcn.01002ab0
cmp eax, 0xffffffff
push ebx
jne 0x100494e
call edi
inc eax
jmp 0x1004953
call fcn.01002ab0
lea edi, [eax + eax]
lea eax, [edi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01002940
mov dword [ebp + 0x18], esp
push ebx
call fcn.01002ab0
push eax
push edi
push ebx
push dword [ebp + 0x18]
call fcn.01002a21
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp + 0x18]
push eax
push ecx
push 7
jmp 0x10049cb
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
jmp 0x10049cb
xor ecx, ecx
xor eax, eax
cmp dword [ebp + 0x18], ecx
je 0x10049c6
push dword [ebp + 0x18]
call edi
lea edi, [eax + eax + 2]
lea eax, [edi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01002940
mov ebx, esp
push 0xffffffffffffffff
push edi
push dword [ebp + 0x18]
push ebx
call fcn.01002a21
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, ebx
push eax
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x10049e7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
call fcn.010042f6
test al, al
je 0x1004a17
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x1004b65
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jne 0x1004a22
xor esi, esi
jmp 0x1004a53
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01002940
mov edi, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 0xc]
push edi
call fcn.01002a21
mov esi, eax
neg esi
sbb esi, esi
and esi, edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call edi
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x1004b65
cmp dword [ebp + 0x18], ebx
mov ecx, dword [ebp - 4]
jne 0x1004ab1
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x1004a9f
cmp ecx, ebx
jbe 0x1004a9a
cmp ecx, 2
jbe 0x1004a93
cmp ecx, 7
jne 0x1004a9a
mov edx, dword [ebp - 8]
add edx, edx
jmp 0x1004a9d
mov edx, dword [ebp - 8]
mov dword [eax], edx
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x1004b62
mov dword [eax], ecx
jmp 0x1004b62
cmp ecx, ebx
jbe 0x1004ac6
cmp ecx, 2
jbe 0x1004abf
cmp ecx, 7
jne 0x1004ac6
mov eax, dword [ebp - 8]
add eax, eax
jmp 0x1004ac9
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0x1c]
cmp dword [ebx], eax
jae 0x1004ae4
mov dword [ebx], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1004adb
mov dword [eax], ecx
mov dword [ebp + 0xc], 0xea
jmp 0x1004b62
test ecx, ecx
jbe 0x1004b4f
cmp ecx, 2
jbe 0x1004af2
cmp ecx, 7
jne 0x1004b4f
add eax, 3
and eax, 0xfffffffc
call fcn.01002940
mov dword [ebp + 0x1c], esp
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call edi
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x1004b62
cmp dword [ebp - 4], eax
jbe 0x1004b62
cmp dword [ebp - 4], 2
jbe 0x1004b2c
cmp dword [ebp - 4], 7
jne 0x1004b62
push dword [ebp - 8]
push dword [ebx]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.01002a47
shl eax, 1
mov dword [ebx], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1004b62
mov ecx, dword [ebp - 4]
jmp 0x1004aaa
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call edi
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x1004b74
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
call fcn.010042f6
test al, al
je 0x1004b92
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1004bd5
cmp dword [ebp + 8], 0
jne 0x1004b9c
xor eax, eax
jmp 0x1004bd5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01002940
mov edi, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
push edi
call fcn.01002a21
push dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret 8

Function at 0x1004e40
Capabilities:
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
call fcn.010042f6
test al, al
je 0x1004e5b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x1004e9b
cmp dword [ebp + 8], 0
jne 0x1004e65
xor eax, eax
jmp 0x1004e9b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01002940
mov edi, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
push edi
call fcn.01002a21
neg eax
sbb eax, eax
and eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret 4
Function at 0x4010b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
test byte [section..data], 2
jne 0x4010d0
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_exit]
lea esi, [esi]
mov dword [esp + 0xc], str.Out_of_memory_for_list._n
mov dword [esp + 8], str.list_append
mov dword [esp + 4], 0x405000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4010bf
Function at 0x403b20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x403b78
cmp byte [esi + ebx - 1], 0xa
je 0x403b4c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x409084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x404570
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x10167670
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10167686
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x101676a1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x102a52cb
Capabilities:
Encode data using xor

Disassembly:
call 0x102a5244
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x102a5274
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x102a5290
xor edx, 0
jmp 0x102a529b
xor edx, edx
jmp 0x102a52b2
jmp 0x102a52be
xor eax, eax
push 0x8427d7c0
call 0x102a52cb
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x102a5307
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x102a52e0
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x102a531e
add eax, 0
jno 0x102a5323
add esi, 0
ret 0x10
Function at 0x102a608c
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x102a60ae
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x102a6250
cmp edi, dword [ebp + 0x10]
jb 0x102a6250
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.102a5b78
inc edi
jmp 0x102a6137
jmp 0x102a6144
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.102a5b78
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.102a5b78
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x102a6198
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x102a617c
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.102a61c6
add dword [eax], 0x39
jle 0x102a61a2
sub al, 0xf5
mov ch, al
call fcn.102a61db
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x102a7eb3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x102a7ec9
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x102a7eda
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.102a7f1b
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx