joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48a855
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x48a880
cmp dword [ebx + 0x80], 0
jne 0x48a880
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.0048a504
push 5
push edi
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
mov ecx, ebx
push edi
call fcn.0048ab13
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x48a8ba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0048a504
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x48a8f1
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0048a912
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x48c3e8
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x5ec3bf
call fcn.005b5b03
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0048c4c9
and dword [ebp - 4], 0
mov dword [ebx], vtable.CHttpConnection.0
call fcn.0046f6c4
push eax
lea ecx, [ebx + 0x18]
call fcn.004021dc
push dword [ebp + 0xc]
lea ecx, [ebx + 0x18]
mov byte [ebp - 4], 1
call fcn.00402ee4
push dword [ebx + 8]
push 0
push 3
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [edi + 8]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebx + 4], eax
test eax, eax
jne 0x48c45e
push eax
push dword [ebx + 8]
call fcn.0048cbd6
push dword [ebx + 0xc]
mov ecx, 0x679b84
push eax
call fcn.0048d5fa
mov eax, ebx
call fcn.005b5acc
ret 0x18

Function at 0x48c5d5
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x48c5fe
call fcn.0048a504
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
je 0x48c62b
push esi
push eax
mov ecx, 0x679b84
call fcn.0048d5fa
mov eax, esi
pop esi
pop ebp
ret 0x18
push 0
push dword [esi + 4]
call fcn.0048cbd6
int3
Function at 0x4a35fe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x4a3617
call fcn.0048a504
mov esi, dword [eax + 0xc]
push 0x5ff4d4
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4a366d
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4a366c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4a364d
xor esi, esi
jmp 0x4a3663
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.004a3675
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x50a1ba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x50a1d4
mov edi, dword [esi + 0xc]
jmp 0x50a214
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x50a1ed
call fcn.00489484
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x50a202
call fcn.00489484
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x50a214
call fcn.00489484
call fcn.0048a504
cmp dword [eax + 0x3c], 0
je 0x50a229
push edi
mov ecx, ebx
call fcn.0050984e
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0050a406
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x50a252
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x50a25e
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x512192
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.004880c6
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x5121ce
call fcn.005123b4
mov dword [esi + 0xc], 1
jmp 0x5121d3
call fcn.005123b4
cmp dword [esi], 0
je 0x51221c
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x5121f6
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00471af9
jmp 0x512207
push 0xff
mov ecx, esi
call fcn.00401f0f
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00471b1c
jmp 0x512240
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x512240
push dword [esi]
push dword [ebp - 4]
call fcn.00490ef9
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x512309
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.005123b4
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x512351
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00471af9
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00471b1c
jmp 0x51235c
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00490ef9
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x57c81d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x677dac], 0
push edi
mov edi, ecx
jne 0x57c836
xor eax, eax
jmp 0x57c8d0
push ebx
push esi
xor ebx, ebx
push ebx
push 0x40
push ebx
call fcn.0048863a
push ebx
push 1
mov ecx, edi
call fcn.0057c7b9
push eax
call fcn.0052fa71
push eax
mov ecx, edi
call fcn.0057d54e
push 1
push ebx
mov ecx, edi
call fcn.0057c7b9
push eax
call fcn.0052fa71
push eax
mov ecx, edi
call fcn.0057d54e
mov eax, dword [edi]
mov esi, dword [eax + 0x194]
mov ecx, esi
call fcn.005b5a90
mov ecx, edi
call esi
cmp dword [edi + 0x154], ebx
jne 0x57c8cb
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
js 0x57c8cb
mov eax, dword [edi]
lea ecx, [ebp - 0xc]
push ecx
mov esi, dword [eax + 0x188]
mov ecx, esi
call fcn.005b5a90
mov ecx, edi
call esi
push dword [ebp - 8]
mov ecx, dword [0x677dac]
call fcn.00472d4b
xor eax, eax
pop esi
inc eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x57d4d6
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.005b08df
call fcn.0048a558
cmp dword [eax + 0x14], 0
jne 0x57d4f1
mov ecx, esi
pop esi
jmp fcn.0057c81d
pop esi
ret
Function at 0x589c7f
Capabilities:
Get common file path

Disassembly:
push 0x78
mov eax, 0x5f64d6
call fcn.005b5b03
mov ebx, ecx
cmp dword [0x677dac], 0
jne 0x589c9b
call fcn.0047011b
lea eax, [ebp - 0x14]
xor esi, esi
push eax
push esi
push esi
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jns 0x589cb3
xor eax, eax
jmp 0x589dbe
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
js 0x589cac
push 0xc
push 0x40
mov dword [ebp - 0x40], 0x67
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x589c96
mov eax, dword [ebp - 0x14]
mov dword [edi + 8], eax
push dword [ebp - 0x14]
mov ecx, dword [0x677dac]
call fcn.00472cbc
mov dword [edi], esi
lea ecx, [ebp - 0x10]
mov dword [edi + 4], eax
mov eax, dword [ebx]
push edi
push ecx
mov dword [ebp - 0x1c], edi
mov esi, dword [eax + 0x164]
mov ecx, esi
call fcn.005b5a90
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
and dword [ebp - 4], 0
push dword [eax - 0xc]
call fcn.00401f0f
mov dword [ebp - 0x30], eax
mov eax, dword [ebx]
push 0
push edi
mov esi, dword [eax + 0x168]
mov ecx, esi
call fcn.005b5a90
mov ecx, ebx
call esi
mov dword [ebp - 0x28], eax
mov eax, dword [ebx]
push 1
push edi
mov esi, dword [eax + 0x168]
mov ecx, esi
call fcn.005b5a90
mov ecx, ebx
call esi
push 0xa
pop ecx
mov dword [ebp - 0x24], eax
lea esi, [ebp - 0x40]
lea eax, [ebp - 0x84]
mov dword [ebp - 0x20], 1
push eax
push 0
push 0x1132
push dword [ebx + 0x20]
lea edi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x80], 0xffff0002
mov dword [ebp - 0x84], 0xffff0000
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 2
push 0x1102
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call fcn.005b5a90
call esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402205
xor eax, eax
inc eax
call fcn.005b5acc
ret

Function at 0x58a54c
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00401de0
call fcn.0048a558
cmp dword [eax + 0x14], 0
jne 0x58a567
mov ecx, esi
pop esi
jmp fcn.00589dca
pop esi
ret

Function at 0x5bc173
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x629c74
push 0x629c6c
push str.FlsAlloc
push 0
call fcn.005bc0f3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5bc1a5
push dword [ebp + 8]
mov ecx, esi
call fcn.005b5a90
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x5bc1e7
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x629c84
push 0x629c7c
push str.FlsGetValue
push 2
call fcn.005bc0f3
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x5bc218
mov ecx, esi
call fcn.005b5a90
call esi
jmp 0x5bc21e
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret
Function at 0x5bc221
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x629c8c
push 0x629c84
push str.FlsSetValue
push 3
call fcn.005bc0f3
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x5bc255
mov ecx, esi
call fcn.005b5a90
call esi
jmp 0x5bc25b
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x5d6dc4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005d6a87

Function at 0x5d6dcf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005d6c08

Function at 0x5d8142
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005d7e02
Function at 0x6fc47676
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x70478018]
movzx eax, word [eax + 0x14]
movzx eax, ax
mov edx, dword [0x70478018]
add eax, edx
add eax, 0x18
mov dword [ebp - 0xc], eax
jmp 0x6fc476ba
jmp 0x6fc476de
jmp 0x6fc47702
jmp 0x6fc47726
jmp 0x6fc4774a
jmp 0x6fc4776e
jmp 0x6fc47792
jmp 0x6fc477b6
jmp 0x6fc477da
jmp 0x6fc477fe
mov dword [ebp - 0x14], 0
jmp 0x6fc47829
jmp 0x6fc4784d
jmp 0x6fc47871
jmp 0x6fc47895
jmp 0x6fc478b9
jmp 0x6fc478dd
jmp 0x6fc47901
jmp 0x6fc47925
jmp 0x6fc47949
jmp 0x6fc4796d
mov dword [ebp - 0x18], 0
jmp 0x6fc47998
jmp 0x6fc479bc
jmp 0x6fc479e0
jmp 0x6fc47a04
jmp 0x6fc47a28
jmp 0x6fc47a4c
jmp 0x6fc47a70
jmp 0x6fc47a94
jmp 0x6fc47ab8
jmp 0x6fc47adc
mov dword [ebp - 0x10], 0
jmp 0x6fc47b07
jmp 0x6fc47b2b
jmp 0x6fc47b4f
jmp 0x6fc47b73
jmp 0x6fc47b97
jmp 0x6fc47bbb
jmp 0x6fc47bdf
jmp 0x6fc47c03
jmp 0x6fc47c27
jmp 0x6fc47c4b
mov dword [ebp - 0x10], 0
jmp 0x6fc483a7
jmp 0x6fc47c7b
jmp 0x6fc47c9f
jmp 0x6fc47cc3
jmp 0x6fc47ce7
jmp 0x6fc47d0b
jmp 0x6fc47d2f
jmp 0x6fc47d53
jmp 0x6fc47d77
jmp 0x6fc47d9b
jmp 0x6fc47dbf
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [0x70478014]
add eax, edx
mov dword [ebp - 0x14], eax
jmp 0x6fc47df4
jmp 0x6fc47e18
jmp 0x6fc47e3c
jmp 0x6fc47e60
jmp 0x6fc47e84
jmp 0x6fc47ea8
jmp 0x6fc47ecc
jmp 0x6fc47ef0
jmp 0x6fc47f14
jmp 0x6fc47f38
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov edx, dword [0x7047801c]
add eax, edx
mov dword [ebp - 0x18], eax
jmp 0x6fc47f6d
jmp 0x6fc47f91
jmp 0x6fc47fb5
jmp 0x6fc47fd9
jmp 0x6fc47ffd
jmp 0x6fc48021
jmp 0x6fc48045
jmp 0x6fc48069
jmp 0x6fc4808d
jmp 0x6fc480b1
mov eax, dword [0x70478008]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x10]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x18]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x14]
mov dword [esp], edx
call eax
jmp 0x6fc480f3
jmp 0x6fc48117
jmp 0x6fc4813b
jmp 0x6fc4815f
jmp 0x6fc48183
jmp 0x6fc481a7
jmp 0x6fc481cb
jmp 0x6fc481ef
jmp 0x6fc48213
jmp 0x6fc48237
add dword [ebp - 0xc], 0x28
jmp 0x6fc4825f
jmp 0x6fc48283
jmp 0x6fc482a7
jmp 0x6fc482cb
jmp 0x6fc482ef
jmp 0x6fc48313
jmp 0x6fc48337
jmp 0x6fc4835b
jmp 0x6fc4837f
jmp 0x6fc483a3
add dword [ebp - 0x10], 1
mov eax, dword [0x70478018]
movzx eax, word [eax + 6]
movzx eax, ax
cmp eax, dword [ebp - 0x10]
ja 0x6fc47c57
nop
leave
ret
Function at 0x43160d
Capabilities:
Terminate process

Disassembly:
jmp 0x46e989
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x46e99a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00432a58
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4316a8
Capabilities:
Query environment variable

Disassembly:
jmp 0x471e22
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x471e33
pop esi
ret
push ebx
push edi
push esi
call fcn.00471d09
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00431bdf
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x471e5b
push ebx
push esi
push edi
call fcn.00432913
add esp, 0xc
push 0
call fcn.00432f76
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x432995
Capabilities:
Parse pe header

Disassembly:
jmp 0x438364
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4383a3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4383a3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4383a3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4383a3
cmp dword [ecx + 0x74], 0xe
jbe 0x4383a3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x46fce3
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
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 0x46fd2e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004702a4
test al, al
jne 0x46fd28
sub edx, 2
cmp edx, edi
jne 0x46fd0e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x46fd50
lea eax, [edi + 2]
cmp edx, eax
je 0x46fd50
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0046f8dc
add esp, 0x10
jmp 0x46fe4a
push esi
lea ecx, [ebp - 0x255]
call fcn.004702a4
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 0x46fd93
push dword [ebp - 0x25c]
jmp 0x46fd40
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 0x46fdd0
cmp word [ebp - 0x226], 0
je 0x46fdf1
cmp word [ebp - 0x226], ax
jne 0x46fdd0
cmp word [ebp - 0x224], 0
je 0x46fdf1
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0046f8dc
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x46fe3d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x46fdaa
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x46fe25
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x46fe4a
push 0x46f1c2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00432823
add esp, 0x10
jmp 0x46fe1a
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.004312d9
leave
ret
Function at 0x4899ca
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 + 0x4a6178]
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 0x489a0a
cmp byte [ebx], 0xa
jne 0x489a0a
or byte [eax + edi + 0x28], 4
jmp 0x489a0f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x489b0d
mov al, byte [edx]
cmp al, 0x1a
je 0x489aef
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x489a3e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x489a63
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x489a6d
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 0x489a20
jmp 0x489b0d
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 0x489aea
cmp dword [ebp - 0xc], 0
je 0x489aea
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4a6178]
test byte [eax + edi + 0x28], 0x48
je 0x489ac4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x489aaf
mov byte [esi], dl
jmp 0x489ac0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4a6178]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x489b0d
cmp byte [ebp - 1], 0xa
jne 0x489ad3
cmp esi, ebx
jne 0x489ad3
mov byte [esi], 0xa
jmp 0x489b0c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043055f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x489b0d
mov byte [esi], 0xd
jmp 0x489b0c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4a6178]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x489b09
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x489b0d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x489b69
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 + 0x4a6178]
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 0x489bac
cmp word [esi], dx
jne 0x489bac
or byte [edi + eax + 0x28], 4
jmp 0x489bb1
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 0x489d04
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 0x489ce4
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x489bf3
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x489c29
cmp eax, edx
jae 0x489c35
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 0x489bcb
jmp 0x489d04
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 0x489ce0
cmp dword [ebp - 0x14], 0
je 0x489ce0
mov eax, dword [ebx*4 + 0x4a6178]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x489cb8
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x489c81
mov word [esi], cx
jmp 0x489cb4
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4a6178]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4a6178]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4a6178]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x489d04
pop ebx
cmp word [ebp - 4], bx
jne 0x489cc9
cmp esi, dword [ebp + 0xc]
jne 0x489cc9
mov word [esi], bx
jmp 0x489d01
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043055f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x489d04
push 0xd
jmp 0x489cfd
mov ecx, dword [ebx*4 + 0x4a6178]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x489cfb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x489d04
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