joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402410
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 8
lea eax, [esp + 0xc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftIMEJP8.1
push ecx
call esi
test eax, eax
jne 0x4024ad
mov ecx, dword [esp + 0x10]
lea edx, [esp + 8]
push edx
push 0x20019
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call esi
mov esi, eax
test esi, esi
je 0x402465
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 4]
push edi
mov eax, dword [esi]
push ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
mov edi, eax
mov eax, dword [esp + 0xc]
mov dword [esi], edx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov eax, edi
pop edi
pop esi
add esp, 8
ret

Function at 0x4024c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 8
lea eax, [esp + 0xc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftIMEJP8.1
push ecx
call esi
test eax, eax
jne 0x402555
mov ecx, dword [esp + 0x10]
lea edx, [esp + 4]
push edx
push 0x20019
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call esi
mov esi, eax
test esi, esi
je 0x402515
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea eax, [esp + 8]
push edi
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push 0
push edx
push eax
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov esi, eax
call edi
mov edx, dword [esp + 0x14]
push edx
call edi
mov eax, esi
pop edi
pop esi
add esp, 8
ret

Function at 0x402640
Capabilities:
Delete registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
push edx
call fcn.00402200
add esp, 0xc
test eax, eax
jne 0x40267c
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0xc]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret
Function at 0x402f10
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [esp + 0x21c]
mov ecx, dword [esp + 0x220]
mov edx, dword [esp + 0x224]
push ebx
mov ebx, dword [esp + 0x21c]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebx], 0
mov dword [eax], 0
mov eax, dword [esp + 0x220]
mov dword [ecx], 0
mov ecx, dword [esp + 0x234]
push edi
mov dword [edx], 0
push str.Satori_
mov dword [esp + 0x14], 0
mov dword [ecx], eax
call esi
mov edx, dword [esp + 0x220]
mov ebp, eax
push edx
call esi
lea eax, [eax + ebp + 1]
push eax
call fcn.00403b4f
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x402f9f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret 0x20
lea ecx, [ebp + 1]
mov esi, str.Satori_
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x220]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [ebx]
mov ecx, eax
inc ecx
add edi, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x224]
mov edx, dword [ebx]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
push edx
push str.FileView___s___08x
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x118]
lea edx, [esp + 0x14]
push 0
push 0x104
push ecx
push edx
call fcn.004035a0
mov ebp, dword [esp + 0x238]
lea eax, [esp + 0x118]
push eax
mov ecx, dword [ebp]
push ecx
push 0
push 4
call fcn.00403130
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, dword [esp + 0x22c]
test eax, eax
mov dword [edi], eax
jne 0x403052
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret 0x20
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403067
mov dword [esp + 0x10], 1
mov edx, dword [ebp]
mov eax, dword [edi]
push edx
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [esp + 0x230]
mov dword [ecx], eax
mov eax, dword [esp + 0x23c]
test eax, eax
je 0x403098
call fcn.004038b0
jmp 0x4030d9
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
push eax
push str.Mutex___s
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x118]
lea eax, [esp + 0x14]
push 1
push 0x104
push edx
push eax
call fcn.004035a0
lea ecx, [esp + 0x118]
push ecx
push 0
call fcn.00403130
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov dword [edx], eax
mov eax, dword [esp + 4]
pop ebx
add esp, 0x20c
ret 0x20
Function at 0x403240
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x40c9b0]
sub esp, 8
test eax, eax
jne 0x403317
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlProductOptions
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40330d
mov edx, dword [esp]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 8]
push edi
push ecx
push eax
push eax
push eax
push str.ProductSuite
push edx
call esi
test eax, eax
jne 0x403300
mov eax, dword [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x403300
mov edx, dword [esp + 8]
push ebx
lea ecx, [esp + 0x10]
push ebp
push ecx
push edi
push 0
push 0
push str.ProductSuite
push edx
call esi
mov al, byte [edi]
mov esi, edi
test al, al
je 0x4032f7
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Terminal_Server
push esi
call ebp
test eax, eax
je 0x4032ed
push esi
call ebx
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x4032d3
jmp 0x4032f7
mov dword [0x40c9b4], 1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebp
pop ebx
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov dword [0x40c9b0], 1
mov eax, dword [0x40c9b4]
add esp, 8
ret

Function at 0x4036e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionProfileReconciliation
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40373d
mov edx, dword [esp + 0x10]
lea ecx, [esp + 8]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push str.ProfileDirectory
push eax
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403732
mov esi, 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 4
Function at 0x403750
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x318
mov eax, dword [esp + 0x31c]
push ebx
mov ebx, dword [esp + 0x324]
push ebp
push esi
xor esi, esi
cmp ebx, 0x104
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
jae 0x40377f
mov dword [esp + 0xc], ebx
jmp 0x40378b
mov dword [esp + 0xc], 0x104
mov ebx, dword [esp + 0xc]
xor edx, edx
mov byte [esp + 0x18], 0
test ebx, ebx
jbe 0x40389d
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
mov ecx, dword [esp + 0x32c]
mov al, byte [edx + ecx]
lea edi, [edx + ecx]
test al, al
je 0x403871
cmp al, 0x25
jne 0x403864
lea ecx, [edx + 1]
mov eax, 1
cmp ecx, ebx
jae 0x403864
mov esi, ecx
mov cl, byte [edi + eax]
test cl, cl
je 0x403864
cmp cl, 0x25
je 0x4037e8
inc eax
inc esi
cmp esi, ebx
jb 0x4037d0
jmp 0x403864
lea ebx, [eax + edx]
mov eax, dword [esp + 0x32c]
lea esi, [ebx + eax]
test esi, esi
je 0x403860
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
mov byte [edi], 0
push edx
mov byte [esi], 0
call ebp
lea eax, [esp + 0x224]
inc edi
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x403846
lea ecx, [esp + 0x1c]
push 0x40a2e4
push ecx
call ebp
lea edx, [esp + 0x1c]
push edi
push edx
call ebp
lea eax, [esp + 0x1c]
push 0x40a2e4
push eax
call ebp
jmp 0x403859
lea ecx, [esp + 0x224]
lea edx, [esp + 0x1c]
push ecx
push edx
call ebp
inc dword [esp + 0x14]
inc esi
mov edx, ebx
mov dword [esp + 0x18], esi
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
inc edx
cmp edx, ebx
jb 0x4037a1
test esi, esi
pop edi
je 0x40389d
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
call ebp
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x32c]
mov ecx, dword [esp + 0x328]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret 8
Function at 0x404805
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40a3e8
cmp edx, dword [eax]
je 0x404827
add eax, 8
inc ecx
cmp eax, 0x40a478
jl 0x404818
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40a3e8]
jne 0x404955
mov eax, dword [0x40cbc8]
cmp eax, 1
je 0x40492f
test eax, eax
jne 0x404858
cmp dword [0x40a33c], 1
je 0x40492f
cmp edx, 0xfc
je 0x404955
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40488f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404ea0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404f90
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4048d2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404f90
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x408728
push edi
call fcn.00406630
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404ea0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404eb0
lea eax, [ebp - 0xa0]
push 0x408708
push eax
call fcn.00404eb0
push dword [esi + 0x40a3ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404eb0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004065a4
add esp, 0x2c
pop edi
jmp 0x404955
lea eax, [ebp + 8]
lea esi, [esi + 0x40a3ec]
push 0
push eax
push dword [esi]
call fcn.00404f90
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x8193f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x413000]
push edi
jmp 0x81940a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x819411
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x819400
mov eax, 1
add ebx, ebx
jne 0x819423
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x819434
jne 0x819453
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x819453
dec eax
add ebx, ebx
jne 0x819440
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x819418
add ebx, ebx
jne 0x81944f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8194a5
xor ecx, ecx
sub eax, 3
jb 0x81946b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8194da
sar eax, 1
mov ebp, eax
jmp 0x819476
add ebx, ebx
jne 0x819476
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x819444
inc ecx
add ebx, ebx
jne 0x819484
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x819444
add ebx, ebx
jne 0x819491
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x819486
jne 0x8194a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x819486
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8194c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8194b6
jmp 0x819406
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8194c4
add edi, ecx
jmp 0x819406
pop esi
mov edi, esi
mov ecx, 0x298
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8194e2
cmp byte [edi], 1
jne 0x8194e2
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 0x8194e7
lea edi, [esi + 0x417000]
mov eax, dword [edi]
or eax, eax
je 0x81955f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x427ab0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x427b64]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x819514
mov ecx, edi
jns 0x819543
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 + 0x427b68]
or eax, eax
je 0x819559
mov dword [ebx], eax
add ebx, 4
jmp 0x819531
call dword [esi + 0x427b78]
mov ebp, dword [esi + 0x427b6c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x819593
sub esp, 0xffffff80
jmp 0x4037bf
Function at 0x492353
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d84
mov eax, dword [0x5059d0]
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.00405e43
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x492395
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4924f1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405f97
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 + 0x509658]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403256
mov ecx, dword [esi*4 + 0x509658]
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 0x4924ea
cmp eax, dword [edi + ecx + 0x24]
jne 0x4924ea
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 0x4924ea
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403256
add esp, 0x14
test edx, edx
jl 0x4924ea
jg 0x492460
test eax, eax
jb 0x4924ea
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4924ea
jl 0x49247a
cmp dword [ebp - 0x1008], eax
ja 0x4924ea
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x492498
test ebx, ebx
je 0x4924d1
cmp ecx, edi
jae 0x4924d1
mov al, byte [ecx]
cmp al, 0xd
jne 0x4924b2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4924be
cmp byte [ecx + 1], 0xa
jne 0x4924be
inc ecx
jmp 0x4924be
movzx eax, al
movsx eax, byte [eax + 0x505d08]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x492498
cmp edx, ebx
jne 0x492498
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4924ef
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040303f
leave
ret
Function at 0x492c30
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 + 0x509658]
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 0x492c70
cmp byte [ebx], 0xa
jne 0x492c70
or byte [eax + edi + 0x28], 4
jmp 0x492c75
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x492d73
mov al, byte [edx]
cmp al, 0x1a
je 0x492d55
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x492ca4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x492cc9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x492cd3
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 0x492c86
jmp 0x492d73
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 0x492d50
cmp dword [ebp - 0xc], 0
je 0x492d50
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x509658]
test byte [eax + edi + 0x28], 0x48
je 0x492d2a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x492d15
mov byte [esi], dl
jmp 0x492d26
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x509658]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x492d73
cmp byte [ebp - 1], 0xa
jne 0x492d39
cmp esi, ebx
jne 0x492d39
mov byte [esi], 0xa
jmp 0x492d72
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040192e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x492d73
mov byte [esi], 0xd
jmp 0x492d72
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x509658]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x492d6f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x492d73
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x492dcf
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 + 0x509658]
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 0x492e12
cmp word [esi], dx
jne 0x492e12
or byte [edi + eax + 0x28], 4
jmp 0x492e17
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 0x492f6a
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 0x492f4a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x492e59
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x492e8f
cmp eax, edx
jae 0x492e9b
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 0x492e31
jmp 0x492f6a
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 0x492f46
cmp dword [ebp - 0x14], 0
je 0x492f46
mov eax, dword [ebx*4 + 0x509658]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x492f1e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x492ee7
mov word [esi], cx
jmp 0x492f1a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x509658]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x509658]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x509658]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x492f6a
pop ebx
cmp word [ebp - 4], bx
jne 0x492f2f
cmp esi, dword [ebp + 0xc]
jne 0x492f2f
mov word [esi], bx
jmp 0x492f67
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040192e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x492f6a
push 0xd
jmp 0x492f63
mov ecx, dword [ebx*4 + 0x509658]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x492f61
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x492f6a
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 0x49a6a1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5059d0]
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 0x49a6ec
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049ab63
test al, al
jne 0x49a6e6
sub edx, 2
cmp edx, edi
jne 0x49a6cc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49a70e
lea eax, [edi + 2]
cmp edx, eax
je 0x49a70e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049a29a
add esp, 0x10
jmp 0x49a808
push esi
lea ecx, [ebp - 0x255]
call fcn.0049ab63
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 0x49a751
push dword [ebp - 0x25c]
jmp 0x49a6fe
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 0x49a78e
cmp word [ebp - 0x226], 0
je 0x49a7af
cmp word [ebp - 0x226], ax
jne 0x49a78e
cmp word [ebp - 0x224], 0
je 0x49a7af
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049a29a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49a7fb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49a768
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49a7e3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49a808
push 0x499c82
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405529
add esp, 0x10
jmp 0x49a7d8
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.0040303f
leave
ret
Function at 0x402a6a
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x402a88
mov eax, 0x45e393
push eax
push 1
mov ebx, 0x194
call fcn.00432e60
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x402ab2
mov eax, 0
jmp 0x402b26
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jle 0x402b13
add eax, 8
mov edi, eax
mov ebx, edi
push edi
xor al, al
pop esi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edi, eax
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x402afc
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x402aeb
xor ecx, eax
xor edx, ebx
dec edi
jne 0x402adc
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop ecx
pop edx
pop edi
pop ebx
pop esi
leave
ret 4
mov esp, ebp
pop ebp
ret 4