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

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, edx
mov edi, eax
mov eax, edi
call fcn.00404900
mov edx, eax
mov eax, ebp
call fcn.00404c8c
mov eax, edi
call fcn.00404900
mov esi, eax
test esi, esi
jle 0x45893b
mov ebx, 1
mov eax, ebp
call fcn.00404b58
lea eax, [eax + ebx - 1]
push eax
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
mov al, byte [edx + 0x47f054]
mov dl, byte [edi + ebx - 1]
xor al, dl
pop edx
mov byte [edx], al
inc ebx
dec esi
jne 0x458912
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x45dcf8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
sub edi, dword [ebx + 0x6c]
sub edi, dword [ebx + 0x64]
jmp 0x45dd25
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x45dda4
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.0045b844
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x45dd72
mov cx, word [esp]
sub cx, si
jmp 0x45dd74
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x45dd5b
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x45dd9a
mov cx, word [esp]
sub cx, si
jmp 0x45dd9c
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x45dd83
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x45de01
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.0045d9d8
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x45ddec
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x45de01
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x45dd02
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x463ef8
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
call fcn.00406a68
push eax
call fcn.00406b08
mov ebx, eax
call fcn.00406a78
push eax
call fcn.00406b50
mov esi, eax
push pe_nt_image_headers32
call fcn.00406a68
push eax
call fcn.00406ca0
push 0xf
call fcn.00406a78
push eax
call fcn.00406cb0
push 0xa
call fcn.00406cc0
rdtsc
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push 0x1f4
call fcn.00406cc0
rdtsc
sub eax, dword [ebp - 4]
sbb edx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push esi
call fcn.00406a78
push eax
call fcn.00406cb0
push ebx
call fcn.00406a68
push eax
call fcn.00406ca0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fdiv dword [0x463fa4]
call fcn.00402af8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x466f64
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x466f92
mov eax, ebx
call fcn.00467a18
cmp dword [ebx + 0x40], 0
je 0x466f8b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x467003
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x466ff5
cmp dword [ebx + 8], 0
je 0x466fb4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x466fc6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x466ff5
cmp dword [ebx + 8], 0
je 0x466fa7
cmp eax, 3
je 0x466fd9
dec eax
jne 0x466fa7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x466fa7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x466fa7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x467021
cmp dword [ebx + 0x14], 0xcc
je 0x467021
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0046702c
pop ebx
ret

Function at 0x4baca7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
dec esi
rcl al, 5
not esi
movzx bp, bl
rol di, 0xe
shl ebp, 0xd
lea ebp, [esp + 0x24]
shl edi, cl
mov word [esp + 4], 0x7ef5
sub esp, 0x9c
rcl bh, 1
mov edi, esp
btc ebx, 3
add bx, cx
mov ebx, esi
not dh
cmp dh, cl
xadd al, dl
add esi, dword [ebp]
movzx si, dl
pushfd
pop dword [esp + 0x10]
pushal
ror si, cl
clc
mov dword [esp], ebx
push dword [0x4bad57]
pop dword [esp + 0x2c]
btr esi, 0xe
mov dword [esp + 0x28], 0
bswap si
mov esi, dword [esp + 0x58]
mov bp, 0xb95b
ror esi, 0x13
pop ebp
xchg bx, bp
inc bp
jmp 0x4ba0b6
mov dword [esp + 0x14], ecx
jmp 0x4ba724
mov dword [esp + 0x1c], eax
bswap bx
mov dword [esp + 0x18], edi
lea ebp, [esp - 0x54099935]
xchg dword [esp + 0x18], edx
movsx bx, bl
not bp
movzx bp, cl
movzx di, cl
mov dword [esp + 0x14], esi
pushfd
jmp 0x4baa15
Function at 0x1000ac80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov dword [esi], eax
add esp, 0x18
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
pop esi
pop ebp
ret

Function at 0x10012800
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x20]
mov dword [edx], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x10], ecx
mov dword [esi], eax
jmp 0x10012977
mov ecx, dword [esi]
mov dword [ebp - 0xc], ecx
cmp ecx, dword [ebp + 0x1c]
je 0x10012982
mov ebx, dword [ebp + 8]
movzx ecx, word [eax]
mov eax, ecx
mov byte [ebp - 1], 0
movzx edi, word [ebx]
xor ebx, ebx
inc ebx
cmp bx, di
jae 0x10012878
lea eax, [ecx + 0x2400]
mov ebx, 0x3ff
cmp ax, bx
ja 0x10012995
mov eax, edi
lea ebx, [ecx - 0xdc00]
shl eax, 0xa
or ebx, eax
xor eax, eax
inc eax
cmp ebx, 0x80
jae 0x1001289b
mov cl, bl
xor eax, eax
jmp 0x100128be
mov ebx, eax
lea eax, [ecx + 0x2800]
mov ecx, 0x3ff
cmp ax, cx
ja 0x10012867
add ebx, 0xffff2840
xor eax, eax
shl ebx, 0xa
inc eax
mov byte [ebp - 1], al
jmp 0x1001286a
mov ecx, ebx
cmp ebx, 0x800
jae 0x100128ad
shr ecx, 6
or cl, 0xc0
jmp 0x100128be
cmp ebx, 0x10000
jae 0x100128c5
shr ecx, 0xc
push 2
or cl, 0xe0
pop eax
mov dword [ebp - 8], eax
mov edi, eax
jmp 0x100128dd
movzx edi, byte [ebp - 1]
xor eax, eax
inc eax
shr ecx, 0x12
xor edi, eax
mov dword [ebp - 8], 3
or cl, 0xf0
add edi, edi
mov eax, dword [ebp + 0x1c]
inc edi
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
cmp eax, edi
jl 0x10012982
mov edx, dword [ebp + 8]
movzx eax, word [edx]
mov edx, dword [ebp + 0x14]
test ax, ax
jne 0x10012924
mov eax, dword [ebp - 0x10]
test byte [eax + 0xc], 2
je 0x10012924
lea eax, [edi + 3]
cmp dword [ebp - 0x14], eax
jl 0x10012982
mov eax, dword [ebp - 0xc]
mov byte [eax], 0xef
inc dword [esi]
mov eax, dword [esi]
mov byte [eax], 0xbb
inc dword [esi]
mov eax, dword [esi]
mov byte [eax], 0xbf
inc dword [esi]
add dword [edx], 2
cmp byte [ebp - 1], 0
jne 0x10012935
mov eax, dword [ebp - 8]
cmp eax, 3
jae 0x1001293f
mov eax, dword [esi]
mov byte [eax], cl
inc dword [esi]
dec edi
mov eax, dword [ebp - 8]
test edi, edi
jle 0x10012961
imul ecx, eax, 6
mov eax, dword [esi]
sub ecx, 6
mov edx, ebx
dec edi
shr edx, cl
and dl, 0x3f
or dl, 0x80
mov byte [eax], dl
inc dword [esi]
test edi, edi
jg 0x10012946
mov edx, dword [ebp + 0x14]
cmp byte [ebp - 1], 0
je 0x1001296c
shr ebx, 0xa
jmp 0x10012971
xor eax, eax
lea ebx, [eax + 1]
mov eax, dword [ebp + 8]
mov word [eax], bx
mov eax, dword [edx]
cmp eax, dword [ebp + 0x10]
jne 0x10012821
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, dword [edx]
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push 2
pop eax
jmp 0x1001298c
Function at 0x100158c0
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x10041133
call fcn.10040863
mov esi, ecx
mov dword [ebp - 0x30], esi
or ebx, 0xffffffff
cmp dword [ebp + 8], ebx
jne 0x100158e0
xor eax, eax
jmp 0x10015a4d
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x1001590e
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1001590e
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x10015a4d
xor edi, edi
cmp dword [esi + 0x4c], edi
je 0x10015a4b
mov ecx, esi
call fcn.100160cf
mov eax, dword [ebp + 8]
cmp dword [esi + 0x38], edi
jne 0x10015947
push dword [esi + 0x4c]
movsx eax, al
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
pop ecx
cmp eax, ebx
mov eax, dword [ebp + 8]
pop ecx
jne 0x10015a4d
jmp 0x10015a4b
push edi
push 8
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x29], al
call fcn.100152c0
lea eax, [esi + 0x40]
mov dword [ebp - 4], edi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
lea edi, [ebp - 0x28]
mov dword [ebp - 0x34], edi
cmp ecx, 0x10
jb 0x10015972
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x28]
cmp ecx, 0x10
jb 0x1001597c
mov edx, eax
mov edi, dword [esi + 0x38]
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x34]
mov esi, dword [edi]
push eax
push edx
lea eax, [ebp - 0x40]
mov ecx, dword [esi + 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x29]
push eax
push dword [ebp - 0x38]
call dword [0x1006a2ec]
mov ecx, edi
call dword [esi + 0x1c]
test eax, eax
js 0x10015a43
cmp eax, 1
jg 0x10015a24
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x100159c7
mov edx, eax
mov edi, dword [ebp - 0x3c]
sub edi, edx
je 0x100159f7
lea edx, [ebp - 0x28]
cmp ecx, 0x10
jb 0x100159d8
mov edx, eax
mov esi, dword [ebp - 0x30]
push dword [esi + 0x4c]
push edi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10015a43
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
jmp 0x100159fa
mov esi, dword [ebp - 0x30]
lea edx, [ebp - 0x29]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x40], edx
jne 0x10015a40
test edi, edi
jne 0x10015964
cmp dword [ebp - 0x18], 0x20
jae 0x10015a43
push edi
push 8
lea ecx, [ebp - 0x28]
call fcn.10016015
jmp 0x1001595e
cmp eax, 3
jne 0x10015a43
mov eax, dword [ebp - 0x30]
push dword [eax + 0x4c]
movsx eax, byte [ebp - 0x29]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
pop ecx
pop ecx
cmp eax, ebx
je 0x10015a43
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.10015f96
mov eax, ebx
call fcn.1004080d
ret 4
Function at 0x100160f2
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x10041197
call fcn.10040863
mov esi, ecx
mov dword [ebp - 0x30], esi
xor ebx, ebx
cmp dword [esi + 0x38], ebx
je 0x10016206
cmp byte [esi + 0x3d], bl
je 0x10016206
push 0xffffffffffffffff
call fcn.100158c0
cmp eax, 0xffffffff
jne 0x1001612a
xor al, al
jmp 0x10016208
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.100152c0
lea eax, [esi + 0x40]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
lea edi, [ebp - 0x28]
mov dword [ebp - 0x2c], edi
cmp ecx, 0x10
jb 0x10016152
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x28]
cmp ecx, 0x10
jb 0x1001615c
mov edx, eax
mov edi, dword [esi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x2c]
mov esi, dword [edi]
push eax
push edx
push dword [ebp - 0x34]
mov ecx, dword [esi + 0x20]
call dword [0x1006a2ec]
mov ecx, edi
call dword [esi + 0x20]
sub eax, ebx
je 0x1001618c
sub eax, 1
jne 0x100161eb
mov esi, dword [ebp - 0x30]
jmp 0x10016192
mov esi, dword [ebp - 0x30]
mov byte [esi + 0x3d], bl
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x100161a2
mov edx, eax
mov edi, dword [ebp - 0x38]
sub edi, edx
je 0x100161cd
lea edx, [ebp - 0x28]
cmp ecx, 0x10
jb 0x100161b3
mov edx, eax
push dword [esi + 0x4c]
push edi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100161f6
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
cmp byte [esi + 0x3d], 0
je 0x100161f4
test edi, edi
jne 0x10016144
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.10016015
jmp 0x1001613e
dec eax
sub eax, 1
jne 0x100161fa
inc eax
jmp 0x100161f8
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [ebp - 0x28]
call fcn.10015f96
mov al, bl
jmp 0x10016208
mov al, 1
call fcn.1004080d
ret

Function at 0x10017000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10067004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
mov eax, 0x10006624
je 0x1001703a
lea eax, [ebp - 0x20c]
push eax
push edi
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, esi
xor ecx, ebp
pop edi
pop esi
call fcn.1003f340
mov esp, ebp
pop ebp
ret
Function at 0x10017300
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x50
mov eax, dword [0x10067004]
xor eax, esp
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0xc]
or ecx, 0xffffffff
push esi
push edi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x3c]
push eax
call fcn.100176a8
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x10017374
mov ecx, dword [esp + 0x50]
lea esi, [esp + 0x3c]
mov eax, dword [esp + 0x3c]
cmp ecx, 8
jb 0x10017359
mov esi, eax
cmp word [esi + edx*2 - 2], 0x2f
je 0x1001738c
lea esi, [esp + 0x3c]
cmp ecx, 8
jb 0x1001736c
mov esi, eax
cmp word [esi + edx*2 - 2], 0x5c
je 0x1001738c
push 1
push 0x10006628
lea ecx, [esp + 0x44]
call fcn.10017789
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x3c]
cmp ecx, 8
jb 0x10017397
mov edx, eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x38]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x100173e1
mov eax, dword [esp + 0x20]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
mov edi, dword [ebp + 8]
lea esi, [esp + 8]
push 6
pop ecx
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x3c]
call fcn.100176e8
mov ecx, dword [esp + 0x54]
mov eax, dword [ebp + 8]
pop edi
pop esi
xor ecx, esp
call fcn.1003f340
mov esp, ebp
pop ebp
ret
Function at 0x1001e2a0
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x10041133
call fcn.10040863
mov esi, ecx
mov dword [ebp - 0x30], esi
mov edi, dword [ebp + 8]
mov ebx, 0xffff
cmp bx, di
jne 0x1001e2c5
xor eax, eax
jmp 0x1001e442
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x1001e2f1
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x1001e2f1
dec dword [edx]
mov ax, di
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
jmp 0x1001e442
cmp dword [esi + 0x4c], 0
je 0x1001e43f
mov ecx, esi
call fcn.1001e6df
cmp dword [esi + 0x38], 0
jne 0x1001e325
push dword [esi + 0x4c]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
pop ecx
pop ecx
cmp ax, bx
je 0x1001e43f
movzx ebx, di
jmp 0x1001e43f
push 0
push 8
lea ecx, [ebp - 0x28]
mov word [ebp - 0x2c], di
call fcn.100152c0
and dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
lea edi, [ebp - 0x28]
mov dword [ebp - 0x34], edi
cmp ecx, 0x10
jb 0x1001e353
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x28]
cmp ecx, 0x10
jb 0x1001e35d
mov edx, eax
mov edi, dword [esi + 0x38]
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x34]
mov esi, dword [edi]
push eax
push edx
lea eax, [ebp - 0x40]
mov ecx, dword [esi + 0x1c]
push eax
lea eax, [ebp - 0x2a]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x38]
call dword [0x1006a2ec]
mov ecx, edi
call dword [esi + 0x1c]
test eax, eax
js 0x1001e437
cmp eax, 1
jg 0x1001e410
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x1001e3a8
mov edx, eax
mov edi, dword [ebp - 0x3c]
sub edi, edx
je 0x1001e3d8
lea edx, [ebp - 0x28]
cmp ecx, 0x10
jb 0x1001e3b9
mov edx, eax
mov esi, dword [ebp - 0x30]
push dword [esi + 0x4c]
push edi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1001e40b
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
jmp 0x1001e3db
mov esi, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
mov byte [esi + 0x3e], 1
cmp dword [ebp - 0x40], edx
jne 0x1001e405
test edi, edi
jne 0x1001e345
cmp dword [ebp - 0x18], 0x20
jae 0x1001e431
push edi
push 8
lea ecx, [ebp - 0x28]
call fcn.10016015
jmp 0x1001e33f
mov eax, dword [ebp + 8]
movzx ebx, ax
movzx ebx, bx
jmp 0x1001e431
cmp eax, 3
jne 0x1001e437
mov eax, dword [ebp - 0x30]
push dword [eax + 0x4c]
push dword [ebp - 0x2c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
pop ecx
pop ecx
cmp ax, bx
je 0x1001e431
mov eax, dword [ebp + 8]
movzx ebx, ax
movzx eax, bx
movzx ebx, ax
lea ecx, [ebp - 0x28]
call fcn.10015f96
mov ax, bx
call fcn.1004080d
ret 4
Function at 0x1001e704
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x10041197
call fcn.10040863
mov esi, ecx
mov dword [ebp - 0x30], esi
xor ebx, ebx
cmp dword [esi + 0x38], ebx
je 0x1001e81c
cmp byte [esi + 0x3e], bl
je 0x1001e81c
mov edi, 0xffff
push edi
call fcn.1001e2a0
cmp di, ax
jne 0x1001e740
xor al, al
jmp 0x1001e81e
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.100152c0
lea eax, [esi + 0x40]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
lea edi, [ebp - 0x28]
mov dword [ebp - 0x2c], edi
cmp ecx, 0x10
jb 0x1001e768
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x28]
cmp ecx, 0x10
jb 0x1001e772
mov edx, eax
mov edi, dword [esi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x2c]
mov esi, dword [edi]
push eax
push edx
push dword [ebp - 0x34]
mov ecx, dword [esi + 0x20]
call dword [0x1006a2ec]
mov ecx, edi
call dword [esi + 0x20]
sub eax, ebx
je 0x1001e7a2
sub eax, 1
jne 0x1001e801
mov esi, dword [ebp - 0x30]
jmp 0x1001e7a8
mov esi, dword [ebp - 0x30]
mov byte [esi + 0x3e], bl
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x1001e7b8
mov edx, eax
mov edi, dword [ebp - 0x38]
sub edi, edx
je 0x1001e7e3
lea edx, [ebp - 0x28]
cmp ecx, 0x10
jb 0x1001e7c9
mov edx, eax
push dword [esi + 0x4c]
push edi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1001e80c
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
cmp byte [esi + 0x3e], 0
je 0x1001e80a
test edi, edi
jne 0x1001e75a
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.10016015
jmp 0x1001e754
dec eax
sub eax, 1
jne 0x1001e810
inc eax
jmp 0x1001e80e
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [ebp - 0x28]
call fcn.10015f96
mov al, bl
jmp 0x1001e81e
mov al, 1
call fcn.1004080d
ret

Function at 0x1001f3af
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov eax, 0x811c9dc5
lea esi, [edi + edx]
cmp esi, edi
sbb esi, esi
not esi
and esi, edx
je 0x1001f3d9
movzx ecx, byte [edi]
xor ecx, eax
imul eax, ecx, 0x1000193
inc edi
inc ebx
cmp ebx, esi
jne 0x1001f3c8
pop edi
pop esi
pop ebx
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..idata
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x7e5876a1
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x683a046c
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x1003a8b0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1003aa74
pushal
mov esi, section.UPX1
lea edi, [esi - 0x26000]
push edi
jmp 0x1003a8da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1003a8e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1003a8d0
mov eax, 1
add ebx, ebx
jne 0x1003a8f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1003a8e8
jne 0x1003a904
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1003a8e8
xor ecx, ecx
sub eax, 3
jb 0x1003a918
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1003a98a
mov ebp, eax
add ebx, ebx
jne 0x1003a923
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1003a930
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1003a954
inc ecx
add ebx, ebx
jne 0x1003a940
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1003a935
jne 0x1003a951
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1003a935
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1003a974
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1003a965
jmp 0x1003a8d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1003a974
add edi, ecx
jmp 0x1003a8d6
pop esi
mov edi, esi
mov ecx, 0xde5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1003a992
cmp byte [edi], 0x11
jne 0x1003a992
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 0x1003a997
lea edi, [esi + 0x37000]
mov eax, dword [edi]
or eax, eax
je 0x1003aa06
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3a2bc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3a30c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1003a9c4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3a310]
or eax, eax
je 0x1003aa00
mov dword [ebx], eax
add ebx, 4
jmp 0x1003a9e1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1003aa37
cmp al, 0xef
ja 0x1003aa2a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1003aa0c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1003aa19
mov ebp, dword [esi + 0x3a314]
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 0x1003aa6b
sub esp, 0xffffff80
jmp 0x10015de8