joyce8/EMBER2024-capa huggingface dataset:
Function at 0x90c4770
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x90d4bd2
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xb20
mov eax, dword [0x91154f8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 0x18]
push eax
mov dword [ebp - 0xb2c], eax
call fcn.09068132
add esp, 4
lea ecx, [ebp - 0xb24]
push eax
call fcn.09068132
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
push dword [ebp - 0xb24]
mov dword [ebp - 4], 0
push esi
call fcn.09009307
add esp, 0x3c
lea ecx, [ebp - 0xb20]
push eax
call fcn.09068132
mov byte [ebp - 4], 1
xor eax, eax
nop dword [eax]
nop dword [eax + eax]
mov byte [ebp + eax - 0x118], al
inc eax
cmp eax, 0x100
jb 0x90c4820
mov ecx, dword [ebp - 0xb20]
lea eax, [ebp - 0x918]
push 0
push 0x5058595a
push 0x67386b30
push 0x100
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.09068132
movzx ecx, word [ebp - 0x11c]
movzx edi, word [ebp - 0x914]
mov dword [ebp - 0xb28], ecx
cmp ecx, edi
jbe 0x90c499a
mov edx, ecx
sub edx, edi
xor esi, esi
mov dword [ebp - 0xb1c], edx
movzx eax, word [ebp + esi*8 - 0x914]
cmp eax, edi
ja 0x90c4891
xor eax, eax
jmp 0x90c48be
cmp eax, ecx
jb 0x90c489c
mov eax, 0x8000
jmp 0x90c48be
sub eax, edi
mov ecx, edx
shl eax, 0xf
xor edx, edx
shr ecx, 1
add eax, ecx
mov ecx, dword [ebp - 0xb28]
div dword [ebp - 0xb1c]
mov edx, dword [ebp - 0xb1c]
movzx eax, ax
mov word [ebp + esi*2 - 0xb18], ax
inc esi
cmp esi, 0x100
jb 0x90c4881
lea ecx, [ebp - 0xb20]
mov byte [ebp - 4], 0
call fcn.090198a7
lea ecx, [ebp - 0xb24]
mov dword [ebp - 4], 0xffffffff
call fcn.0901e58a
mov esi, dword [ebp - 0xb2c]
lea eax, [esi + 8]
push eax
push 0x280
mov dword [ebp - 0xb2c], eax
call fcn.09068132
add esp, 8
mov dword [ebp - 0xb28], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x90c492a
push esi
mov ecx, eax
call fcn.09068132
mov edx, eax
jmp 0x90c492c
xor edx, edx
movsd xmm1, qword [ebx + 0x10]
xorps xmm0, xmm0
mov eax, dword [ebx + 0xc]
mulsd xmm1, qword [0x90e7a70]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
comisd xmm0, xmm1
mov dword [edx + 0x70], ecx
mov dword [edx + 0x74], eax
jbe 0x90c495a
subsd xmm1, qword [0x90dd3d8]
jmp 0x90c4962
addsd xmm1, qword [0x90dd3d8]
cvttsd2si eax, xmm1
lea edi, [edx + 0x7a]
mov ecx, 0x80
lea esi, [ebp - 0xb18]
rep movsd dword es:[edi], dword [esi]
mov word [edx + 0x78], ax
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.09002290
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x6250726f
call fcn.09068132
int3
Function at 0x6d21b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.006d2140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.006d2140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.006d2140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.006d2140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x6d2bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6d2c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x6e487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6d2c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x6d2c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x105aa058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.105aa1a8
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 0x105aa07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105aa06a
add dl, dl
jne 0x105aa089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105aa0dc
xor eax, eax
add dl, dl
jne 0x105aa096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105aa17d
add dl, dl
jne 0x105aa0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105aa0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105aa0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105aa0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x105aa0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x105aa075
mov eax, 1
add dl, dl
jne 0x105aa0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105aa0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105aa0e1
sub eax, ebx
mov ebx, 1
jne 0x105aa128
mov ecx, 1
add dl, dl
jne 0x105aa10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105aa119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105aa105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105aa075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x105aa13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105aa14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105aa136
cmp eax, 0x7d00
jae 0x105aa16d
cmp eax, 0x500
jb 0x105aa168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105aa075
cmp eax, 0x7f
ja 0x105aa170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105aa075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x105aa19e
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 0x105aa075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40122f
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov ebp, dword [sym.imp.USER32.dll_ReleaseDC]
nop dword [eax]
push str.dHJdvghcgyhushgjdshgj
push 0x437338
call fcn.00401b60
add esp, 8
push eax
call fcn.00402050
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xb8
push str.dHJdvghcgyhushgjdshgj
push 0x437338
call fcn.00401b60
add esp, 8
push eax
call fcn.00402050
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x17
push str.dHJdvghcgyhushgjdshgj
push 0x437338
call fcn.00401b60
add esp, 8
push eax
call fcn.00402050
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x8b
push str.dHJdvghcgyhushgjdshgj
push 0x437338
call fcn.00401b60
add esp, 8
push eax
call fcn.00402050
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0x81
push str.dHJdvghcgyhushgjdshgj
push 0x437338
call fcn.00401b60
add esp, 8
push eax
call fcn.00402050
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xbd
push str.dHJdvghcgyhushgjdshgj
push 0x437338
call fcn.00401b60
add esp, 8
push eax
call fcn.00402050
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 5
push str.dHJdvghcgyhushgjdshgj
push 0x437338
call fcn.00401b60
add esp, 8
push eax
call fcn.00402050
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xd2
push str.dHJdvghcgyhushgjdshgj
push 0x437338
call fcn.00401b60
add esp, 8
push eax
call fcn.00402050
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0xe2
push str.dHJdvghcgyhushgjdshgj
push 0x437338
call fcn.00401b60
add esp, 8
push eax
call fcn.00402050
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xac
push str.dHJdvghcgyhushgjdshgj
push 0x437338
call fcn.00401b60
add esp, 8
push eax
call fcn.00402050
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x61
push str.dHJdvghcgyhushgjdshgj
push 0x437338
call fcn.00401b60
add esp, 8
push eax
call fcn.00402050
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0x32
push str.dHJdvghcgyhushgjdshgj
push 0x437338
call fcn.00401b60
add esp, 8
push eax
call fcn.00402050
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xa3
push str.dHJdvghcgyhushgjdshgj
push 0x437338
call fcn.00401b60
add esp, 8
push eax
call fcn.00402050
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0xa0
push str.dHJdvghcgyhushgjdshgj
push 0x437338
call fcn.00401b60
add esp, 8
push eax
call fcn.00402050
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x67
inc ebx
cmp esi, ebx
jne 0x401020
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401240
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x10]
cmp dword [eax + 0x14], 0x10
mov ebp, eax
jb 0x401258
mov ebp, dword [eax]
mov esi, dword [esp + 0x20]
xor esi, edi
cmp edi, 4
jae 0x401267
mov ecx, edi
jmp 0x4012c3
mov dword [esp], edi
shr edi, 2
cmp edi, 2
mov eax, 1
cmovae eax, edi
mov dword [esp + 4], eax
xor ebx, ebx
nop
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov ecx, 0x437338
push edi
call fcn.00402130
imul eax, dword [ebp + ebx*4], 0x5bd1e991
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul eax, ecx, 0x5bd1e991
imul esi, esi, 0x5bd1e991
xor esi, eax
inc ebx
cmp dword [esp + 4], ebx
jne 0x401280
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x10]
mov edi, dword [esp]
and edi, 0xfffffffc
and ecx, 3
xor eax, eax
cmp ecx, 1
je 0x4012ec
cmp ecx, 2
je 0x4012e2
cmp ecx, 3
jne 0x4012fb
movsx eax, byte [ebp + edi + 2]
shl eax, 0x10
movsx ecx, byte [ebp + edi + 1]
shl ecx, 8
xor eax, ecx
movsx ecx, byte [ebp + edi]
xor ecx, eax
imul eax, ecx, 0x5bd1e991
xor esi, eax
mov eax, esi
shr eax, 0xd
xor eax, esi
imul ecx, eax, 0x5bd1e991
mov eax, ecx
shr eax, 0xf
xor eax, ecx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402e00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x407ac0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov ecx, edi
push 0
call fcn.0040a643
mov dword [edi + 4], 0
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
mov byte [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov word [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov word [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov byte [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov byte [edi + 0x30], 0
test esi, esi
mov dword [ebp - 0x20], edi
je 0x402eaf
mov dword [ebp - 0x10], 0
push esi
push edi
call fcn.0040a926
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x20]
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], 0
push str.bad_locale_name
call fcn.0040a5f6
add esp, 4
nop word cs:[eax + eax]
push ebp
sub esp, 8
add ebp, 0xc
mov eax, dword [ebp - 0x20]
mov esi, eax
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x402eec
push eax
call fcn.0040ee78
add esp, 4
mov eax, esi
mov dword [esi + 0x2c], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x402f05
push eax
call fcn.0040ee78
add esp, 4
mov eax, esi
mov dword [esi + 0x24], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x402f1e
push eax
call fcn.0040ee78
add esp, 4
mov eax, esi
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x402f37
push eax
call fcn.0040ee78
add esp, 4
mov eax, esi
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x402f50
push eax
call fcn.0040ee78
add esp, 4
mov eax, esi
mov dword [esi + 0xc], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x402f69
push eax
call fcn.0040ee78
add esp, 4
mov ecx, esi
mov dword [esi + 4], 0
call fcn.0040a69b
add esp, 8
pop ebp
ret
Function at 0x408616
Capabilities:
Parse pe header

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

Function at 0x419090
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4362d4]
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 0x4190db
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041922f
test al, al
jne 0x4190d5
sub edx, 2
cmp edx, edi
jne 0x4190bb
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4190fd
lea eax, [edi + 2]
cmp edx, eax
je 0x4190fd
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00418fdc
add esp, 0x10
jmp 0x4191f7
push esi
lea ecx, [ebp - 0x255]
call fcn.0041922f
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 0x419140
push dword [ebp - 0x25c]
jmp 0x4190ed
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 0x41917d
cmp word [ebp - 0x226], 0
je 0x41919e
cmp word [ebp - 0x226], ax
jne 0x41917d
cmp word [ebp - 0x224], 0
je 0x41919e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00418fdc
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4191ea
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x419157
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4191d2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4191f7
push 0x418e0c
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00422f80
add esp, 0x10
jmp 0x4191c7
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.00408a56
leave
ret

Function at 0x41a125
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42ba88
push 0x42ba80
push str.FlsAlloc
push 0x1e
call fcn.0041a00e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41a159
push dword [ebp + 8]
mov ecx, esi
call dword [0x427154]
call esi
jmp 0x41a15f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x41a1a3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42ba98
push 0x42ba90
push str.FlsGetValue
push 0x20
call fcn.0041a00e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41a1da
push dword [ebp + 8]
mov ecx, esi
call dword [0x427154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41d968
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041d60a

Function at 0x41d973
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041d799
Function at 0x41efde
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00425c60
mov eax, dword [0x4362d4]
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.00418a2b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41f020
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41f17c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425c90
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 + 0x437c20]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041f404
mov ecx, dword [esi*4 + 0x437c20]
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 0x41f175
cmp eax, dword [edi + ecx + 0x24]
jne 0x41f175
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 0x41f175
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041f404
add esp, 0x14
test edx, edx
jl 0x41f175
jg 0x41f0eb
test eax, eax
jb 0x41f175
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41f175
jl 0x41f105
cmp dword [ebp - 0x1008], eax
ja 0x41f175
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41f123
test ebx, ebx
je 0x41f15c
cmp ecx, edi
jae 0x41f15c
mov al, byte [ecx]
cmp al, 0xd
jne 0x41f13d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41f149
cmp byte [ecx + 1], 0xa
jne 0x41f149
inc ecx
jmp 0x41f149
movzx eax, al
movsx eax, byte [eax + 0x436c10]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41f123
cmp edx, ebx
jne 0x41f123
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41f17a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408a56
leave
ret
Function at 0x423997
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 + 0x437c20]
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 0x4239d7
cmp byte [ebx], 0xa
jne 0x4239d7
or byte [eax + edi + 0x28], 4
jmp 0x4239dc
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x423ada
mov al, byte [edx]
cmp al, 0x1a
je 0x423abc
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x423a0b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x423a30
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x423a3a
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 0x4239ed
jmp 0x423ada
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 0x423ab7
cmp dword [ebp - 0xc], 0
je 0x423ab7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x437c20]
test byte [eax + edi + 0x28], 0x48
je 0x423a91
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x423a7c
mov byte [esi], dl
jmp 0x423a8d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x437c20]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x423ada
cmp byte [ebp - 1], 0xa
jne 0x423aa0
cmp esi, ebx
jne 0x423aa0
mov byte [esi], 0xa
jmp 0x423ad9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041f422
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x423ada
mov byte [esi], 0xd
jmp 0x423ad9
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x437c20]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x423ad6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x423ada
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x423ae3
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 + 0x437c20]
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 0x423b26
cmp word [esi], dx
jne 0x423b26
or byte [edi + eax + 0x28], 4
jmp 0x423b2b
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 0x423c7e
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 0x423c5e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x423b6d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x423ba3
cmp eax, edx
jae 0x423baf
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 0x423b45
jmp 0x423c7e
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 0x423c5a
cmp dword [ebp - 0x14], 0
je 0x423c5a
mov eax, dword [ebx*4 + 0x437c20]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x423c32
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x423bfb
mov word [esi], cx
jmp 0x423c2e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x437c20]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x437c20]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x437c20]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x423c7e
pop ebx
cmp word [ebp - 4], bx
jne 0x423c43
cmp esi, dword [ebp + 0xc]
jne 0x423c43
mov word [esi], bx
jmp 0x423c7b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041f422
add esp, 0x10
cmp word [ebp - 4], bx
je 0x423c7e
push 0xd
jmp 0x423c77
mov ecx, dword [ebx*4 + 0x437c20]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x423c75
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x423c7e
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 0x425a60
Capabilities:
Parse pe header

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