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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x590790]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49b95a
cmp word [esi], dx
jne 0x49b95a
or byte [edi + eax + 0x28], 4
jmp 0x49b95f
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x49bab2
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x49ba92
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x49b9a1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49b9d7
cmp eax, edx
jae 0x49b9e3
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x49b979
jmp 0x49bab2
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49ba8e
cmp dword [ebp - 0x14], 0
je 0x49ba8e
mov eax, dword [ebx*4 + 0x590790]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x49ba66
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x49ba2f
mov word [esi], cx
jmp 0x49ba62
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x590790]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x590790]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x590790]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x49bab2
pop ebx
cmp word [ebp - 4], bx
jne 0x49ba77
cmp esi, dword [ebp + 0xc]
jne 0x49ba77
mov word [esi], bx
jmp 0x49baaf
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401b09
add esp, 0x10
cmp word [ebp - 4], bx
je 0x49bab2
push 0xd
jmp 0x49baab
mov ecx, dword [ebx*4 + 0x590790]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49baa9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49bab2
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a3081
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x58b258]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4a30cc
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a3543
test al, al
jne 0x4a30c6
sub edx, 2
cmp edx, edi
jne 0x4a30ac
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a30ee
lea eax, [edi + 2]
cmp edx, eax
je 0x4a30ee
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a2c7a
add esp, 0x10
jmp 0x4a31e8
push esi
lea ecx, [ebp - 0x255]
call fcn.004a3543
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a3131
push dword [ebp - 0x25c]
jmp 0x4a30de
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4a316e
cmp word [ebp - 0x226], 0
je 0x4a318f
cmp word [ebp - 0x226], ax
jne 0x4a316e
cmp word [ebp - 0x224], 0
je 0x4a318f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a2c7a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a31db
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a3148
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a31c3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a31e8
push 0x4a2662
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00406294
add esp, 0x10
jmp 0x4a31b8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403625
leave
ret
Function at 0x402c20
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x402c81
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x402c64
cmp edi, 2
jb 0x402c64
cmp byte [esi], cl
jne 0x402c64
cmp byte [esi + 1], cl
jne 0x402c64
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x42a5d8]
jmp 0x402c35
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x42a5d8]
test edi, edi
jne 0x402c35
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x402cb0
cmp cl, 0x23
jne 0x402c97
cmp byte [esi], cl
jne 0x402c97
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x42a5d8]
test cl, cl
jne 0x402c88
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x402db0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x402dc4
mov dword [ebx], 0
mov edx, 0x42a430
call fcn.00402cc0
mov esi, eax
test esi, esi
je 0x402eb2
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call edi
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x402ea8
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x402ea8
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x402ea8
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x402ea8
mov eax, dword [0x431610]
test eax, eax
je 0x402e3c
inc dword [eax + 0x370]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x402ea8
push esi
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x402e8d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x431610]
add esp, 4
test eax, eax
je 0x402e7a
dec dword [eax + 0x370]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x402e9f
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408410
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x40844d
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x408433
cmp byte [esi], bl
jne 0x408433
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x42a5d8]
test bl, bl
jne 0x408424
pop edi
pop esi
not ecx
pop ebx
jmp fcn.004083b0
Function at 0x4112f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x2eec], 0
lea esi, [edi + 0x2ef0]
je 0x411372
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x41132c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00412bc0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.00403040
mov edx, dword [esi]
mov ecx, 0x43160c
push dword [edi + 0x2eec]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x2ef8]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.00403040
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41aa10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x41aa4a
mov eax, dword [0x431610]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x41aa3d
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x41aa7b
mov eax, dword [0x431610]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x41aa6e
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x41aaac
mov eax, dword [0x431610]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x41aa9f
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x41aaf9
mov eax, dword [0x431610]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x41aaec
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x41ab2a
mov eax, dword [0x431610]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x41ab1d
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x41ab5b
mov eax, dword [0x431610]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x41ab4e
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.0041d3f0
Function at 0x42929c
Capabilities:
Parse pe header

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

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x4f42f10
nop
nop
test eax, eax
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
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
mov ecx, 0xf5e4a0e
nop
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x49407c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401dc0
mov eax, dword [0x5670c0]
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.00405ebb
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4940be
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49421a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040601e
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 + 0x56ad00]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403283
mov ecx, dword [esi*4 + 0x56ad00]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x494213
cmp eax, dword [edi + ecx + 0x24]
jne 0x494213
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x494213
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403283
add esp, 0x14
test edx, edx
jl 0x494213
jg 0x494189
test eax, eax
jb 0x494213
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x494213
jl 0x4941a3
cmp dword [ebp - 0x1008], eax
ja 0x494213
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4941c1
test ebx, ebx
je 0x4941fa
cmp ecx, edi
jae 0x4941fa
mov al, byte [ecx]
cmp al, 0xd
jne 0x4941db
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4941e7
cmp byte [ecx + 1], 0xa
jne 0x4941e7
inc ecx
jmp 0x4941e7
movzx eax, al
movsx eax, byte [eax + 0x567c28]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4941c1
cmp edx, ebx
jne 0x4941c1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x494218
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403076
leave
ret
Function at 0x499941
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5670c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49998c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00499e03
test al, al
jne 0x499986
sub edx, 2
cmp edx, edi
jne 0x49996c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4999ae
lea eax, [edi + 2]
cmp edx, eax
je 0x4999ae
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049953a
add esp, 0x10
jmp 0x499aa8
push esi
lea ecx, [ebp - 0x255]
call fcn.00499e03
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4999f1
push dword [ebp - 0x25c]
jmp 0x49999e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x499a2e
cmp word [ebp - 0x226], 0
je 0x499a4f
cmp word [ebp - 0x226], ax
jne 0x499a2e
cmp word [ebp - 0x224], 0
je 0x499a4f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049953a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x499a9b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x499a08
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x499a83
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x499aa8
push 0x498f22
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040556f
add esp, 0x10
jmp 0x499a78
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403076
leave
ret
Function at 0x4a5223
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x56ad00]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a5263
cmp byte [ebx], 0xa
jne 0x4a5263
or byte [eax + edi + 0x28], 4
jmp 0x4a5268
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a5366
mov al, byte [edx]
cmp al, 0x1a
je 0x4a5348
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a5297
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a52bc
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a52c6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4a5279
jmp 0x4a5366
push 0
lea eax, [ebp - 0xc]
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 0x4a5343
cmp dword [ebp - 0xc], 0
je 0x4a5343
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x56ad00]
test byte [eax + edi + 0x28], 0x48
je 0x4a531d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a5308
mov byte [esi], dl
jmp 0x4a5319
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x56ad00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a5366
cmp byte [ebp - 1], 0xa
jne 0x4a532c
cmp esi, ebx
jne 0x4a532c
mov byte [esi], 0xa
jmp 0x4a5365
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401951
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a5366
mov byte [esi], 0xd
jmp 0x4a5365
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x56ad00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a5362
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a5366
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a53c2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x56ad00]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a5405
cmp word [esi], dx
jne 0x4a5405
or byte [edi + eax + 0x28], 4
jmp 0x4a540a
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4a555d
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4a553d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a544c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a5482
cmp eax, edx
jae 0x4a548e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4a5424
jmp 0x4a555d
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a5539
cmp dword [ebp - 0x14], 0
je 0x4a5539
mov eax, dword [ebx*4 + 0x56ad00]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a5511
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a54da
mov word [esi], cx
jmp 0x4a550d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x56ad00]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x56ad00]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x56ad00]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a555d
pop ebx
cmp word [ebp - 4], bx
jne 0x4a5522
cmp esi, dword [ebp + 0xc]
jne 0x4a5522
mov word [esi], bx
jmp 0x4a555a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401951
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a555d
push 0xd
jmp 0x4a5556
mov ecx, dword [ebx*4 + 0x56ad00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a5554
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a555d
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10006e30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004b76d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x100a4040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0xf
xor edx, edx
nop
mov al, byte [edx + str.Aui4Vvuj]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x20], al
and ecx, 0x800000ff
jns 0x10006e7d
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0xb
jl 0x10006e60
mov byte [ebp - 0x15], 0
mov edx, 0x100da71d
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.10021f10
mov dword [ebp - 0x1c], 0x46206f4e
mov dword [ebp - 0x18], 0x6873616c
mov byte [ebp - 0x14], 0
mov edx, 0x100da719
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.10021f10
mov dword [ebp - 0x18], 0x46206f4e
mov word [ebp - 0x14], 0x676f
mov byte [ebp - 0x12], 0
mov edx, 0x100da71a
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.10021f10
mov ecx, 0xb5
xor edx, edx
nop dword [eax]
mov al, byte [edx + 0x1009fb98]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x20], al
and ecx, 0x800000ff
jns 0x10006f0d
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0xc
jl 0x10006ef0
mov byte [ebp - 0x14], 0
mov edx, 0x100da717
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.10021f10
mov dword [ebp - 0x1c], 0x53206f4e
mov dword [ebp - 0x18], 0x656b6f6d
mov byte [ebp - 0x14], 0
mov edx, 0x100da714
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.10021f10
mov ecx, 0xb0
xor edx, edx
nop dword [eax + eax]
mov al, byte [edx + 0x1009fba8]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x20], al
and ecx, 0x800000ff
jns 0x10006f7d
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0xb
jl 0x10006f60
mov byte [ebp - 0x15], 0
mov edx, 0x100da716
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x20]
call fcn.10021f10
mov ecx, 0x96
xor edx, edx
mov al, byte [edx + 0x1009fbb4]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x20], al
and ecx, 0x800000ff
jns 0x10006fbf
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0xe
jl 0x10006fa2
mov byte [ebp - 0x12], 0
mov edx, 0x100da71e
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x20]
call fcn.10021f10
mov ecx, 0x5b
xor edx, edx
mov al, byte [edx + 0x1009fbc4]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x20], al
and ecx, 0x800000ff
jns 0x10007001
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0xb
jl 0x10006fe4
mov byte [ebp - 0x15], 0
mov edx, 0x100da718
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x20]
call fcn.10021f10
mov dword [ebp - 0x1c], 0x776f6853
mov dword [ebp - 0x18], 0x53504620
mov byte [ebp - 0x14], 0
mov edx, 0x100da71c
mov dword [ebp - 4], 8
lea ecx, [ebp - 0x1c]
call fcn.10021f10
mov dword [ebp - 0x1c], 0x776f6853
mov dword [ebp - 0x18], 0x445548
mov edx, 0x100da715
mov dword [ebp - 4], 9
lea ecx, [ebp - 0x1c]
call fcn.10021f10
mov dword [ebp - 0x1c], 0x63617274
mov dword [ebp - 0x18], 0x737265
mov edx, 0x100da71b
mov dword [ebp - 4], 0xa
lea ecx, [ebp - 0x1c]
call fcn.10021f10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10049b00
mov esp, ebp
pop ebp
ret