joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e1cc
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 + 0x423368]
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 0x40e20c
cmp byte [ebx], 0xa
jne 0x40e20c
or byte [edi + eax + 0x28], 4
jmp 0x40e211
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 0x40e310
mov dl, byte [eax]
cmp dl, 0x1a
je 0x40e2f3
inc eax
cmp dl, 0xd
je 0x40e23d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x40e263
cmp eax, ecx
jae 0x40e271
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 0x40e225
jmp 0x40e310
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 0x40e2ee
cmp dword [ebp - 0x10], 0
je 0x40e2ee
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x423368]
test byte [eax + edi + 0x28], 0x48
je 0x40e2c8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x40e2b3
mov byte [esi], dl
jmp 0x40e2c4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x423368]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x40e310
cmp byte [ebp - 1], 0xa
jne 0x40e2d7
cmp esi, ebx
jne 0x40e2d7
mov byte [esi], 0xa
jmp 0x40e30f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00414a8e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40e310
mov byte [esi], 0xd
jmp 0x40e30f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x423368]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40e30d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40e310
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40e319
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 + 0x423368]
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 0x40e35f
cmp word [ebx], dx
jne 0x40e35f
or byte [eax + edi + 0x28], 4
jmp 0x40e364
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 0x40e4c7
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 0x40e4a7
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x40e3a5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x40e3db
cmp eax, edx
jae 0x40e3e9
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 0x40e380
jmp 0x40e4c7
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 0x40e4a2
cmp dword [ebp - 0x18], 0
je 0x40e4a2
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x423368]
test byte [eax + edi + 0x28], 0x48
je 0x40e478
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 0x40e43c
mov word [esi], cx
jmp 0x40e473
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x423368]
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 + 0x423368]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x423368]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x40e4c7
pop eax
cmp word [ebp - 4], ax
jne 0x40e488
cmp esi, ebx
jne 0x40e488
mov word [esi], ax
jmp 0x40e4c4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00414a8e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x40e4c7
push 0xd
pop eax
jmp 0x40e483
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x423368]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x40e4c1
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x40e4c7
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 0x4120b3
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 0x412150
push ebx
push esi
call fcn.0041207c
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.0040ce74
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4120fd
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41214f
push edi
push eax
call fcn.0040ccaa
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41211d
call fcn.0040cc70
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41214e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040ce74
add esp, 0x20
test eax, eax
jne 0x41213c
push edi
call fcn.0040cc70
jmp 0x412144
push ebx
call fcn.0040cc70
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 0x417ae5
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.00417a61
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x417c54
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x417c54
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x417c09
jg 0x417b41
test eax, eax
je 0x417bff
push 1
push 0x1000
call fcn.0040cfef
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x417b64
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x417bf6
push 0x8000
push ebx
call fcn.0040b9c5
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x417b8d
jg 0x417b88
cmp ecx, 0x1000
jb 0x417b8d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0040f5d0
add esp, 0x10
cmp eax, 0xffffffff
je 0x417bd2
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 0x417b88
jl 0x417bb9
test ecx, ecx
jne 0x417b7a
push dword [ebp - 0xc]
push ebx
call fcn.0040b9c5
push esi
call fcn.0040cc70
add esp, 0xc
xor ebx, ebx
jmp 0x417c62
cmp byte [edi + 0x24], 0
je 0x417be9
cmp dword [edi + 0x20], 5
jne 0x417be9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x417bf4
mov ebx, dword [edi + 0x18]
jmp 0x417bf6
xor ebx, ebx
push esi
call fcn.0040cc70
pop ecx
jmp 0x417c62
test ecx, ecx
jg 0x417bcb
jl 0x417c09
test eax, eax
jae 0x417bcb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00414a8e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x417c29
cmp byte [edi + 0x1c], 0
je 0x417bcb
jmp 0x417c5a
push ebx
call fcn.004128a7
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x417bcb
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 0x417c62
cmp byte [edi + 0x1c], 0
je 0x417c5f
mov ebx, dword [edi + 0x18]
jmp 0x417c62
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00414a8e
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4194e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41950d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41950d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x427b66
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00427d16
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x427c64
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x427c07
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x427c4a
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x427c1e
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x427c39
test al, 0x40
je 0x427c30
mov ecx, dword [edi + 0x20]
jmp 0x427c37
test al, 0x80
je 0x427c4a
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x427c4a
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x427bd6
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x401dca
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x401dd9
pop dword [ebp - 0x40]
mov eax, 0x5b3e0f1d
sub eax, 0x5afdf144
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x4aa0f8ee
sub dword [ebp - 0x50], 0xfc4eb3a3
mov dword [ebp - 0x4c], 0xc99afecf
add dword [ebp - 0x4c], 0x68984d76
mov dword [ebp - 0x48], 0x90045cc9
sub dword [ebp - 0x48], 0x43b8189b
mov dword [ebp - 0x44], 0x293ee9d9
sub dword [ebp - 0x44], 0x293ee9d9
lea eax, [ebp - 0x50]
push eax
mov eax, 0x5fac45f4
sub eax, 0x5f6a1580
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x2dda6b45
add dword [ebp - 0x50], 0x4697fe11
mov dword [ebp - 0x4c], 0x2f8cca15
add dword [ebp - 0x4c], 0x11df9760
mov dword [ebp - 0x48], 0x76b7d091
sub dword [ebp - 0x48], 0x13486425
mov dword [ebp - 0x44], 0xb4607104
add dword [ebp - 0x44], 0x4b9f8efc
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xc368fd32
sub eax, 0xc326cc0e
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3e588
push 0
call eax
mov ecx, 0x2137c016
add ecx, 0xdec88a71
xor ebx, ebx
add ebx, eax
mov esi, 0x4f8d6a65
add esi, 0xb0b5d99b
add esi, dword [ebp - 0x40]
mov edi, 0x9efd9cf0
add edi, 0x8f064a74
mov edx, dword [esi]
xor edx, edi
xor dword [ebp - 0x20], 0x9e4cfef3
mov dword [ebx], edx
add ebx, 4
add esi, 4
loop 0x401efd
add eax, 0x15154801
sub eax, 0x15142b12
xor ebx, ebx
add ebx, eax
add eax, 0xfa9ff2bd
add eax, 0x5600d48
mov ecx, 0xf64df1fc
sub ecx, 0xf60df1fc
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x100265c
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x1005274]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x13d
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FormatMessageW]
push esi
push edi
mov dword [ebp - 0x70], eax
mov edi, 0x800
mov esi, 0x10059c0
je 0x1002612
xor eax, eax
push eax
push edi
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 0x6c], 0x1000
push eax
push 0x1200
call ebx
test eax, eax
jne 0x1002660
mov eax, dword [0x10052b4]
test eax, eax
jne 0x10025fa
push 0x10016d0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x10052b4], eax
push 0
push edi
push esi
push 0
push dword [ebp + 8]
mov dword [ebp - 0x6c], edi
push eax
push 0xa00
call ebx
test eax, eax
jne 0x1002660
push 0x10
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__ultoa]
add esp, 0xc
push 0x20
lea eax, [ebp - 0x64]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x24]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x64]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push eax
push edi
push esi
push 0
push 0x13d
push 0
mov dword [ebp - 0x78], 0x10016c0
push 0x3000
jmp 0x1002713
and dword [ebp - 0x68], 0
push 0x25
push esi
call fcn.01002486
test eax, eax
je 0x1002704
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, 0x31
jb 0x100268a
cmp cx, 0x39
ja 0x100268a
inc dword [ebp - 0x68]
jmp 0x1002692
cmp cx, 0x25
jne 0x1002692
inc eax
inc eax
push 0x25
push eax
call fcn.01002486
test eax, eax
jne 0x1002674
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp + 0x10]
jbe 0x1002704
shl eax, 2
push eax
call dword [sym.imp.msvcrt.dll_malloc]
xor edx, edx
pop ecx
mov dword [ebp - 0x74], eax
cmp eax, edx
jne 0x10026be
xor esi, esi
jmp 0x1002717
cmp dword [ebp - 0x68], edx
jbe 0x10026e1
cmp edx, dword [ebp + 0x10]
jae 0x10026d5
mov ecx, dword [ebp - 0x70]
add dword [ecx], 4
mov ecx, dword [ecx]
mov ecx, dword [ecx - 4]
jmp 0x10026d8
mov ecx, dword [ebp + 0xc]
mov dword [eax + edx*4], ecx
inc edx
cmp edx, dword [ebp - 0x68]
jb 0x10026c3
push eax
mov eax, dword [ebp - 0x6c]
push edi
push esi
push 0
push dword [ebp + 8]
or eax, 0x2000
push 0
push eax
call ebx
push dword [ebp - 0x74]
mov esi, eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x1002717
push dword [ebp - 0x70]
push edi
push esi
push 0
push dword [ebp + 8]
push 0
push dword [ebp - 0x6c]
call ebx
mov esi, eax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01004145
leave
ret 0x10
Function at 0x1002c1d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
lea edi, [ecx + 2]
mov dx, word [ecx]
inc ecx
inc ecx
test dx, dx
jne 0x1002bde
sub ecx, edi
sar ecx, 1
jne 0x1002c0d
movzx ecx, word [eax + 6]
cmp ecx, 4
je 0x1002c00
cmp ecx, 0x10
je 0x1002c00
xor eax, eax
jmp 0x1002c56
mov eax, dword [eax + 0xc]
xor ecx, ecx
mov word [eax], cx
xor eax, eax
inc eax
jmp 0x1002c56
push ebx
movzx ebx, word [eax + 8]
test bx, bx
je case.0x1002c21.15
movzx ecx, word [eax + 6]
dec ecx
cmp ecx, 0xf
ja case.0x1002c21.15
jmp dword [ecx*4 + 0x1002d39]
push 1
push eax
call fcn.01002b31
jmp 0x1002d2f
mov edi, dword [eax + 0xc]
push 0xa
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcstol]
mov byte [edi], al
add esp, 0xc
cmp dword [ebp - 4], esi
jne 0x1002d2f
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret
mov eax, dword [eax + 0xc]
mov cx, word [esi]
mov word [eax], cx
jmp 0x1002d2f
cmp word [esi], 0x5c
jne 0x1002c90
inc esi
inc esi
cmp word [esi], 0x5c
jne 0x1002c90
lea ecx, [esi + 2]
movzx edx, word [ecx]
cmp dx, 0x2d
je 0x1002c8e
cmp dx, 0x2f
je 0x1002c8e
cmp dx, 0x5c
jne 0x1002c90
mov esi, ecx
mov ecx, esi
lea edi, [ecx + 2]
mov dx, word [ecx]
inc ecx
inc ecx
test dx, dx
jne 0x1002c95
sub ecx, edi
movzx edx, bx
sar ecx, 1
cmp edx, ecx
jbe case.0x1002c21.15
push esi
push edx
push dword [eax + 0xc]
call fcn.01004166
jmp 0x1002d2c
cmp word [esi], 0x2d
je case.0x1002c21.15
mov edi, dword [eax + 0xc]
push 0xa
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcstol]
mov word [edi], ax
jmp 0x1002c47
cmp word [esi], 0x2d
je case.0x1002c21.15
mov edi, dword [eax + 0xc]
push 0xa
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcstol]
mov dword [edi], eax
jmp 0x1002c47
cmp word [esi], 0x2d
je case.0x1002c21.15
mov edi, dword [eax + 0xc]
push 0x10
push 0
push esi
call dword [sym.imp.msvcrt.dll_wcstoul]
mov word [edi], ax
jmp 0x1002d2c
cmp word [esi], 0x2d
je case.0x1002c21.15
mov edi, dword [eax + 0xc]
push 0x10
push 0
push esi
call dword [sym.imp.msvcrt.dll_wcstoul]
mov dword [edi], eax
add esp, 0xc
xor eax, eax
inc eax
jmp 0x1002c55
Function at 0x1002cc5
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
lea edi, [ecx + 2]
mov dx, word [ecx]
inc ecx
inc ecx
test dx, dx
jne 0x1002bde
sub ecx, edi
sar ecx, 1
jne 0x1002c0d
movzx ecx, word [eax + 6]
cmp ecx, 4
je 0x1002c00
cmp ecx, 0x10
je 0x1002c00
xor eax, eax
jmp 0x1002c56
mov eax, dword [eax + 0xc]
xor ecx, ecx
mov word [eax], cx
xor eax, eax
inc eax
jmp 0x1002c56
push ebx
movzx ebx, word [eax + 8]
test bx, bx
je case.0x1002c21.15
movzx ecx, word [eax + 6]
dec ecx
cmp ecx, 0xf
ja case.0x1002c21.15
jmp dword [ecx*4 + 0x1002d39]
push 1
push eax
call fcn.01002b31
jmp 0x1002d2f
mov edi, dword [eax + 0xc]
push 0xa
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcstol]
mov byte [edi], al
add esp, 0xc
cmp dword [ebp - 4], esi
jne 0x1002d2f
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret
mov eax, dword [eax + 0xc]
mov cx, word [esi]
mov word [eax], cx
jmp 0x1002d2f
cmp word [esi], 0x5c
jne 0x1002c90
inc esi
inc esi
cmp word [esi], 0x5c
jne 0x1002c90
lea ecx, [esi + 2]
movzx edx, word [ecx]
cmp dx, 0x2d
je 0x1002c8e
cmp dx, 0x2f
je 0x1002c8e
cmp dx, 0x5c
jne 0x1002c90
mov esi, ecx
mov ecx, esi
lea edi, [ecx + 2]
mov dx, word [ecx]
inc ecx
inc ecx
test dx, dx
jne 0x1002c95
sub ecx, edi
movzx edx, bx
sar ecx, 1
cmp edx, ecx
jbe case.0x1002c21.15
push esi
push edx
push dword [eax + 0xc]
call fcn.01004166
jmp 0x1002d2c
cmp word [esi], 0x2d
je case.0x1002c21.15
mov edi, dword [eax + 0xc]
push 0xa
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcstol]
mov word [edi], ax
jmp 0x1002c47
cmp word [esi], 0x2d
je case.0x1002c21.15
mov edi, dword [eax + 0xc]
push 0xa
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcstol]
mov dword [edi], eax
jmp 0x1002c47
cmp word [esi], 0x2d
je case.0x1002c21.15
mov edi, dword [eax + 0xc]
push 0x10
push 0
push esi
call dword [sym.imp.msvcrt.dll_wcstoul]
mov word [edi], ax
jmp 0x1002d2c
cmp word [esi], 0x2d
je case.0x1002c21.15
mov edi, dword [eax + 0xc]
push 0x10
push 0
push esi
call dword [sym.imp.msvcrt.dll_wcstoul]
mov dword [edi], eax
add esp, 0xc
xor eax, eax
inc eax
jmp 0x1002c55
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
jmp loc.00401219

Function at 0x10c34058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.10c341a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10c3407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10c3406a
add dl, dl
jne 0x10c34089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10c340dc
xor eax, eax
add dl, dl
jne 0x10c34096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10c3417d
add dl, dl
jne 0x10c340a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c340b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c340bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c340c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10c340d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10c34075
mov eax, 1
add dl, dl
jne 0x10c340ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c340f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10c340e1
sub eax, ebx
mov ebx, 1
jne 0x10c34128
mov ecx, 1
add dl, dl
jne 0x10c3410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10c34119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10c34105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10c34075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10c3413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10c3414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10c34136
cmp eax, 0x7d00
jae 0x10c3416d
cmp eax, 0x500
jb 0x10c34168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10c34075
cmp eax, 0x7f
ja 0x10c34170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10c34075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10c3419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10c34075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x103a4e9c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x103a4ea6
pushal
call 0x103a4eac
pop ebp
sub ebp, 0x10
sub ebp, 0x3a4e9c
mov al, byte [esp + 0x28]
cmp al, 1
je 0x103a4ed0
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x103a4ed9
mov eax, 0x3a4e9c
add eax, ebp
add eax, 0x63
mov ecx, 0x5ed
mov edx, 0x93382934
xor byte [eax], dl
inc eax
dec ecx
jne 0x103a4ef0
jmp 0x103a4f03
mov edi, 0x8bdbff9
xor al, 0x34
xor al, 0xb5
cmc
int3
Function at 0x402070
Capabilities:
Enumerate files on windows
Get common file path
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43233b
push eax
mov dword fs:[0], esp
sub esp, 0x248
lea eax, [esp + 0x144]
push esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [esp + 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esp + 0x260]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402124
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push edi
mov edi, dword [esp + 0x26c]
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x10]
call fcn.0041d95b
lea edx, [esp + 0xc]
mov ecx, edi
push edx
mov dword [esp + 0x260], 0
call fcn.0041cf14
lea eax, [esp + 0x10]
push eax
push esi
call ebx
test eax, eax
mov dword [esp + 0x25c], 0xffffffff
lea ecx, [esp + 0xc]
je 0x40211d
call fcn.0041d8ed
jmp 0x4020d6
call fcn.0041d8ed
pop edi
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x148]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x24c]
pop esi
mov dword fs:[0], ecx
add esp, 0x254
ret