joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41250d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004124d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4125a8
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x422478]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4125a8
cmp eax, 1
je 0x4125c9
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4125a8
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x412575
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4125a4
xor eax, eax
inc eax
jmp 0x4125e8
cmp edi, eax
jae 0x4125ac
xor eax, eax
jmp 0x4125e8
cmp eax, esi
jae 0x4125b3
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x422478]
jmp 0x4125cc
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412a0c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x412a3a
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x412a41
cmp ebx, dword [eax + 4]
jae 0x412a41
xor eax, eax
jmp 0x412c31
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x412a52
xor eax, eax
inc eax
jmp 0x412c30
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x412a68
cmp ecx, edx
jae 0x412bad
cmp dword [eax + 4], 0
je 0x412a71
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x412a59
cmp dword [ebp + 8], 0
je 0x412a93
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x412bad
cmp eax, esi
jae 0x412bad
mov eax, dword [0x4222b8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x412ab8
cmp dword [esi*4 + 0x4222c0], edi
je 0x412bb1
inc esi
cmp esi, eax
jl 0x412aa6
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x412c2d
cmp dword [ebp - 8], 0x1000000
jne 0x412c2d
test byte [ebp - 0xc], 0xcc
je 0x412b36
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x412c2d
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x412c2d
cmp word [eax + 0x18], 0x10b
jne 0x412c2d
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x412c2d
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x412b36
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x412b36
test byte [ecx + 0x27], 0x80
jne 0x412bad
push 1
push 0x422300
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x412a4a
mov ecx, dword [0x4222b8]
test ecx, ecx
mov edx, ecx
jle 0x412b6a
lea eax, [ecx*4 + 0x4222bc]
cmp dword [eax], edi
je 0x412b6a
dec edx
sub eax, 4
test edx, edx
jg 0x412b5e
test edx, edx
jne 0x412b9b
push 0xf
pop ebx
cmp ecx, ebx
jg 0x412b77
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x412b8f
lea eax, [edx*4 + 0x4222c0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x412b7d
cmp ecx, 0x10
jge 0x412b9b
inc ecx
mov dword [0x4222b8], ecx
push 0
push 0x422300
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x412a4a
xor eax, eax
jmp 0x412c30
test esi, esi
jle 0x412a4a
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x422300
call ebx
test eax, eax
jne 0x412a4a
cmp dword [esi*4 + 0x4222c0], edi
je 0x412c07
mov eax, dword [0x4222b8]
lea esi, [eax - 1]
test esi, esi
jl 0x412bf5
cmp dword [esi*4 + 0x4222c0], edi
je 0x412bf1
dec esi
jns 0x412be5
test esi, esi
jge 0x412c05
cmp eax, 0x10
jge 0x412c00
inc eax
mov dword [0x4222b8], eax
lea esi, [eax - 1]
jmp 0x412c07
je 0x412c1f
xor ecx, ecx
test esi, esi
jl 0x412c1f
lea eax, [ecx*4 + 0x4222c0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x412c0d
push 0
push 0x422300
call ebx
jmp 0x412a4a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4147fe
Capabilities:
Terminate process

Disassembly:
push 8
push 0x41dca8
call fcn.004129c0
push 8
call fcn.00412df3
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4224b8], esi
jne 0x414832
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4224b4], esi
mov al, byte [ebp + 0x10]
mov byte [0x4224b0], al
cmp dword [ebp + 0xc], edi
jne 0x41487c
cmp dword [0x423ac8], edi
je 0x41486c
mov eax, dword [0x423ac4]
sub eax, 4
mov dword [0x423ac4], eax
cmp eax, dword [0x423ac8]
jb 0x41486c
mov eax, dword [eax]
cmp eax, edi
je 0x41484d
call eax
jmp 0x41484d
push 0x421040
mov eax, 0x421038
call fcn.0041477c
pop ecx
push 0x42104c
mov eax, 0x421044
call fcn.0041477c
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4148ad
cmp dword [ebp + 0x10], edi
jne 0x4148bb
mov dword [0x4224b8], esi
push dword [ebp + 8]
call fcn.0041473a
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4148ba
push 8
call fcn.00412d3e
pop ecx
ret
call fcn.004129fb
ret

Function at 0x415bd9
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x421204]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x421528]
je 0x415c0e
inc eax
cmp eax, 0x13
jb 0x415bff
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x421528]
jne 0x415d34
mov eax, dword [0x4222b4]
cmp eax, 1
je 0x415d0c
cmp eax, edx
jne 0x415c3e
cmp dword [0x421234], 1
je 0x415d0c
cmp ecx, 0xfc
je 0x415d34
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x415c74
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004149f0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00414af0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x415ca8
mov eax, edi
push eax
call fcn.00414af0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x41dacc
push edi
call fcn.00416df0
add esp, 0x10
push edi
call fcn.00414af0
push dword [esi + 0x42152c]
mov ebx, eax
call fcn.00414af0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004124d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004149f0
push edi
push ebx
call fcn.00414a00
push 0x41dac8
push ebx
call fcn.00414a00
push dword [esi + 0x42152c]
push ebx
call fcn.00414a00
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00416cec
add esp, 0x2c
jmp 0x415d34
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x42152c]
push dword [esi]
call fcn.00414af0
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00411d73
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x416cec
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4225e4], ebx
push esi
push edi
jne 0x416d6c
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x416da7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41e35c
push edi
call esi
test eax, eax
mov dword [0x4225e4], eax
je 0x416da7
push 0x41e34c
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4225e8], eax
call esi
cmp dword [0x422478], 2
mov dword [0x4225ec], eax
jne 0x416d6c
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4225f4], eax
je 0x416d6c
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4225f0], eax
mov eax, dword [0x4225f0]
test eax, eax
je 0x416db1
call eax
test eax, eax
je 0x416d98
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4225f4]
test eax, eax
je 0x416d98
test byte [ebp - 8], 1
jne 0x416db1
cmp dword [0x422484], 4
jb 0x416dab
or byte [ebp + 0x12], 0x20
jmp 0x416dd0
xor eax, eax
jmp 0x416de0
or byte [ebp + 0x12], 4
jmp 0x416dd0
mov eax, dword [0x4225e8]
test eax, eax
je 0x416dd0
call eax
mov ebx, eax
test ebx, ebx
je 0x416dd0
mov eax, dword [0x4225ec]
test eax, eax
je 0x416dd0
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4225e4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41764f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x421204]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x417680
xor eax, eax
jmp 0x417809
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4239c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4176bc
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00418540
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x417797
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4177d5
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x417720
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x417711
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x4176f1
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x417760
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x417769
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4176e2
jmp 0x41776b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x417804
cmp dword [ebp - 0x6c], edi
je 0x4177d5
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4177ca
call fcn.00416662
mov dword [eax], 9
call fcn.0041666b
mov dword [eax], esi
jmp 0x4177ff
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4177bf
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x41776b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x41776b
push dword [ebp - 0x6c]
call fcn.00416674
pop ecx
jmp 0x4177ff
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4177ed
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4177ed
xor eax, eax
jmp 0x417807
call fcn.00416662
mov dword [eax], 0x1c
call fcn.0041666b
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x417807
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00411d73
add ebp, 0x3a0
leave
ret
Function at 0x4013cf
Capabilities:
Encode data using xor

Disassembly:
jmp 0x411f5d
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x412080
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebx, str.Soviet_aristo_baristo
mov ebp, 0x4d2918
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x3b
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xd
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xd9
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 0x62
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xec
push ebx
push ebp
call fcn.00403490
add esp, 0x44
push eax
call fcn.004013b6
xor byte [esi + edi], 0x59
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x3b
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xd8
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 0x37
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 0x63
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xc4
add esp, 0x40
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xee
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xd
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x3d
add esp, 0x24
inc esi
cmp esi, dword [esp + 0x18]
jb 0x411f7b
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x402946
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x412674
sub esp, 0x20
mov eax, dword [0x4d04f0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + esi + 0x78]
add edi, esi
mov ebx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
add ebx, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x4126f3
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401e2e
push str.Hardline
push 0x4d2a00
call fcn.00402d60
push eax
call fcn.00406082
lea eax, [esp + 0x20]
push 0x36c
push eax
call fcn.00402cc5
add esp, 0x14
cmp eax, dword [esp + 0x38]
je 0x41270d
lea ecx, [esp + 0x14]
add ebx, 4
call fcn.00402982
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x4126a5
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403030
add esp, 0x20
ret 8
mov eax, dword [edi + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402982
jmp 0x4126f5
Function at 0x49062c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401dac
mov eax, dword [0x4d04f0]
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.00405dda
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49066e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4907ca
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405f2e
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 + 0x4d3fb8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403247
mov ecx, dword [esi*4 + 0x4d3fb8]
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 0x4907c3
cmp eax, dword [edi + ecx + 0x24]
jne 0x4907c3
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 0x4907c3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403247
add esp, 0x14
test edx, edx
jl 0x4907c3
jg 0x490739
test eax, eax
jb 0x4907c3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4907c3
jl 0x490753
cmp dword [ebp - 0x1008], eax
ja 0x4907c3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x490771
test ebx, ebx
je 0x4907aa
cmp ecx, edi
jae 0x4907aa
mov al, byte [ecx]
cmp al, 0xd
jne 0x49078b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x490797
cmp byte [ecx + 1], 0xa
jne 0x490797
inc ecx
jmp 0x490797
movzx eax, al
movsx eax, byte [eax + 0x4d0810]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x490771
cmp edx, ebx
jne 0x490771
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4907c8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403030
leave
ret
Function at 0x490f09
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 + 0x4d3fb8]
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 0x490f49
cmp byte [ebx], 0xa
jne 0x490f49
or byte [eax + edi + 0x28], 4
jmp 0x490f4e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49104c
mov al, byte [edx]
cmp al, 0x1a
je 0x49102e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x490f7d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x490fa2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x490fac
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 0x490f5f
jmp 0x49104c
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 0x491029
cmp dword [ebp - 0xc], 0
je 0x491029
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4d3fb8]
test byte [eax + edi + 0x28], 0x48
je 0x491003
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x490fee
mov byte [esi], dl
jmp 0x490fff
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d3fb8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49104c
cmp byte [ebp - 1], 0xa
jne 0x491012
cmp esi, ebx
jne 0x491012
mov byte [esi], 0xa
jmp 0x49104b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401947
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49104c
mov byte [esi], 0xd
jmp 0x49104b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4d3fb8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x491048
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49104c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4910a8
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 + 0x4d3fb8]
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 0x4910eb
cmp word [esi], dx
jne 0x4910eb
or byte [edi + eax + 0x28], 4
jmp 0x4910f0
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 0x491243
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 0x491223
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x491132
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x491168
cmp eax, edx
jae 0x491174
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 0x49110a
jmp 0x491243
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 0x49121f
cmp dword [ebp - 0x14], 0
je 0x49121f
mov eax, dword [ebx*4 + 0x4d3fb8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4911f7
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4911c0
mov word [esi], cx
jmp 0x4911f3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4d3fb8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4d3fb8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4d3fb8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x491243
pop ebx
cmp word [ebp - 4], bx
jne 0x491208
cmp esi, dword [ebp + 0xc]
jne 0x491208
mov word [esi], bx
jmp 0x491240
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401947
add esp, 0x10
cmp word [ebp - 4], bx
je 0x491243
push 0xd
jmp 0x49123c
mov ecx, dword [ebx*4 + 0x4d3fb8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49123a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x491243
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 0x497940
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d04f0]
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 0x49798b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00497e02
test al, al
jne 0x497985
sub edx, 2
cmp edx, edi
jne 0x49796b
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4979ad
lea eax, [edi + 2]
cmp edx, eax
je 0x4979ad
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00497539
add esp, 0x10
jmp 0x497aa7
push esi
lea ecx, [ebp - 0x255]
call fcn.00497e02
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 0x4979f0
push dword [ebp - 0x25c]
jmp 0x49799d
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 0x497a2d
cmp word [ebp - 0x226], 0
je 0x497a4e
cmp word [ebp - 0x226], ax
jne 0x497a2d
cmp word [ebp - 0x224], 0
je 0x497a4e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00497539
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x497a9a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x497a07
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x497a82
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x497aa7
push 0x496f21
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004054b1
add esp, 0x10
jmp 0x497a77
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.00403030
leave
ret