joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010c50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100163e4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x10010c74
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
sub edx, 4
cmp dword [ebp - 8], edx
jl 0x10010cc4
mov eax, dword [ebp - 8]
add eax, 0x4000
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x100177dc]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x10010d0c
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0x100000
jle 0x10010d0c
cmp dword [ebp - 8], 0x100000
jge 0x10010ce0
mov dword [ebp - 8], 0x100000
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x100177dc]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x10010db0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x100163e4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10011130
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100163e4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x401b10
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00534d10
mov eax, dword [0x5b0040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xfff
lea eax, [ebp - 0x1003]
mov byte [ebp - 0x1004], 0
push 0
push eax
call fcn.00532a40
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1004]
push 0xfff
push 0x1000
push eax
call fcn.00530803
add esp, 0x20
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053059c
mov esp, ebp
pop ebp
ret
Function at 0x402150
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0x18], 1
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
jne 0x40218e
xor esi, esi
xor eax, eax
mov ecx, esi
add ecx, ebx
push 0
push 0x10
adc eax, edi
push eax
push ecx
call fcn.0053ffa0
mov ecx, dword [ebp + 0x10]
mov al, byte [eax + 0x58efd0]
xor al, byte [esi + ecx]
not al
mov byte [esi + ecx], al
inc esi
cmp esi, dword [ebp + 0x14]
jbe 0x402164
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x4021a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0x18]
push esi
push edi
cmp al, 1
jne 0x4021d7
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
sub edi, edx
mov esi, dword [ebp + 0x14]
inc esi
mov al, byte [edx]
lea ecx, [edi + edx]
and ecx, 0xf
lea edx, [edx + 1]
not al
xor al, byte [ecx + 0x58efd0]
mov byte [edx - 1], al
dec esi
jne 0x4021b8
pop edi
pop esi
pop ebp
ret 0x14
cmp al, 2
jne 0x4021f9
mov edi, dword [ebp + 0x14]
shr edi, 4
test edi, edi
je 0x4021f9
mov esi, dword [ebp + 0x10]
push esi
mov edx, esi
call fcn.00402200
add esp, 4
add esi, 0x10
dec edi
jne 0x4021e8
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x403950
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00534d10
mov eax, dword [0x5b0040]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x1ffe
push eax
mov word [ebp - 0x2004], ax
lea eax, [ebp - 0x2002]
push eax
call fcn.00532a40
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x2004]
push 0x1fff
push eax
call fcn.00530b3c
add esp, 0x1c
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053059c
mov esp, ebp
pop ebp
ret
Function at 0x405070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00417882

Function at 0x4178de
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.00407e01
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 0x417915
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.00417936
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 0x41c166
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x41c1ab
call fcn.00407e01
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41c1ab
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x41c1c7
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00424174
mov ebx, eax
test edi, edi
je 0x41c1c5
test esi, esi
je 0x41c1c5
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x49ce36
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.004208f6
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 0x49ce72
call fcn.0049d055
mov dword [esi + 0xc], 1
jmp 0x49ce77
call fcn.0049d055
cmp dword [esi], 0
je 0x49cec0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x49ce9a
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00419c5a
jmp 0x49ceab
push 0xff
mov ecx, esi
call fcn.00405500
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00416a59
jmp 0x49cee4
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 0x49cee4
push dword [esi]
push dword [ebp - 4]
call fcn.00425035
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49cfaa
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.0049d055
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x49cff2
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00419c5a
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00416a59
jmp 0x49cffd
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00425035
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4c3797
Capabilities:
Get file system object information

Disassembly:
push 0x4c8
mov eax, 0x55403a
call fcn.00532ec2
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.004065b8
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x590824
call fcn.00409239
cmp eax, 0xffffffff
jne 0x4c384b
push 0
push 0x5618f0
lea ecx, [ebp - 0x4d0]
call fcn.00409239
cmp eax, 0xffffffff
jne 0x4c384b
push 0
push 0x55c7b4
lea ecx, [ebp - 0x4d0]
call fcn.00409239
cmp eax, 0xffffffff
jne 0x4c384b
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.004065b8
pop ecx
lea edi, [eax + 0x10]
mov dword [ebp - 0x4d4], edi
xor ecx, ecx
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0x218]
push eax
push 0x104
push ecx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4c3827
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
lea ecx, [edi - 0x10]
mov ebx, eax
call fcn.004053a0
jmp 0x4c387a
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.00407919
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 0
call fcn.004053a0
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4c3871
mov ebx, dword [ebp - 0x4cc]
jmp 0x4c387a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.004053a0
mov eax, ebx
call fcn.00532e71
ret
Function at 0x5452b9
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5b0040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00538262
mov dword [ebp - 0x14], eax
cmp dword [0x5bbcdc], esi
jne 0x5453ac
push 0x800
push esi
push 0x589eb0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x545339
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x54548c
push esi
push esi
push 0x589eb0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x54548c
push 0x589ec8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x54548c
push eax
call ebx
push 0x589ed4
push edi
mov dword [0x5bbcdc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x589ee4
push edi
mov dword [0x5bbce0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5bbce4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5bbcec], eax
test eax, eax
je 0x5453a9
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5bbce8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5453d1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5453c4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x5453e6
push 4
pop eax
jmp 0x54548e
cmp dword [ebp - 0x14], esi
je 0x5453e6
push dword [0x5bbcdc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5453cb
mov eax, dword [0x5bbce8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x545444
cmp dword [0x5bbcec], edi
je 0x545444
push eax
call ebx
push dword [0x5bbcec]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x545444
test eax, eax
je 0x545444
call ecx
test eax, eax
je 0x545439
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x545439
test byte [ebp - 8], 1
jne 0x545444
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x545474
mov eax, dword [0x5bbce0]
cmp eax, edi
je 0x545471
push eax
call ebx
test eax, eax
je 0x545471
call eax
mov esi, eax
test esi, esi
je 0x545471
mov eax, dword [0x5bbce4]
cmp eax, edi
je 0x545471
push eax
call ebx
test eax, eax
je 0x545471
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5bbcdc]
call ebx
test eax, eax
je 0x54548c
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x54548e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053059c
mov esp, ebp
pop ebp
ret
Function at 0x403060
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ec
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [str.9869869689]
mov dword [ebp - 0x10], eax
mov ecx, dword [0x404940]
mov dword [ebp - 0xc], ecx
mov dx, word [0x404944]
mov word [ebp - 8], dx
mov al, byte [0x404946]
mov byte [ebp - 6], al
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x1ec], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4030c1
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x48], 0
lea edx, [ebp - 0x1e0]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call sub.MSVCR90.dll_srand
add esp, 4
push 0
push 0
push 0
push 0x403040
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
test eax, eax
je 0x40313c
call sub.MSVCR90.dll_rand
cdq
mov ecx, 0xc8
idiv ecx
add edx, 0x14
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x7f
jne 0x403122
jmp 0x4030fe
cmp dword [ebp - 4], 0xac
jne 0x40312d
jmp 0x4030fe
cmp dword [ebp - 4], 0xc0
jne 0x403138
jmp 0x4030fe
jmp 0x40313c
call sub.MSVCR90.dll_rand
cdq
mov ecx, 0xfe
idiv ecx
add edx, 1
mov dword [ebp - 0x4c], edx
call sub.MSVCR90.dll_rand
cdq
mov ecx, 0xfe
idiv ecx
add edx, 1
mov dword [ebp - 0x1e8], edx
call sub.MSVCR90.dll_rand
cdq
mov ecx, 0xfe
idiv ecx
add edx, 1
mov dword [ebp - 0x1e4], edx
mov edx, dword [ebp - 0x1e4]
push edx
mov eax, dword [ebp - 0x1e8]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 4]
push edx
push str._d._d._d._d
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0
lea ecx, [ebp - 0x44]
push ecx
push 0x402e90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call sub.MSVCR90.dll_rand
cdq
mov ecx, 0x32
idiv ecx
add edx, 0x32
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4030fe
Function at 0x408360
Capabilities:
Accept command line arguments
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x45e0a4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x45f218], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], edi
jne 0x4083ff
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0041ee20
add esp, 0xc
mov dword [0x45f218], 1
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00408360
add esp, 8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00428224
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00408360
add esp, 0x14
xor esi, esi
call fcn.004057e0
push edi
push esi
mov ecx, eax
push ebx
push esi
push esi
mov eax, dword [ecx]
push dword [ecx + 4]
or eax, 2
mov dword [ebp - 0x21c], ecx
push eax
call fcn.00425817
mov ebx, eax
or eax, 0xffffffff
test ebx, ebx
cmovs ebx, eax
lea eax, [ebx*2 + 0xe]
push eax
call fcn.00428267
mov edi, eax
add esp, 0x20
test edi, edi
je 0x40847c
push dword [ebp - 0x214]
mov ecx, dword [ebp - 0x21c]
xor eax, eax
push eax
push dword [ebp - 0x218]
mov dword [edi + ebx*2 + 0xa], eax
lea eax, [edi + 0xa]
push ebx
push eax
mov eax, dword [ecx]
push dword [ecx + 4]
or eax, 1
push eax
call fcn.00425817
mov esi, eax
add esp, 0x1c
test esi, esi
mov eax, 0xffffffff
cmovs esi, eax
test esi, esi
cmovs esi, ebx
add esi, 5
test edi, edi
je 0x4084d9
push dword [0x45e03c]
push 0x4487f8
push 5
push edi
call fcn.00409f70
add esp, 0x10
mov ebx, esi
test esi, esi
jle 0x4084b6
cmp word [edi + esi*2 - 2], 0xa
je 0x4084b6
mov dword [edi + esi*2], 0xa
lea ebx, [esi + 1]
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
call fcn.00422f30
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c1e0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c1e0
mov esp, ebp
pop ebp
ret
Function at 0x418c20
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446c50
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x45e0a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x2c4], eax
cmp dword [esi + 0x10], 0
je 0x418df1
push 0x250
lea eax, [ebp - 0x2c0]
push 0
push eax
call fcn.0041ee20
push str..json
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.00405b40
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x418c93
mov eax, dword [eax]
lea ecx, [ebp - 0x2c0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x70]
mov dword [edi], eax
call fcn.00403c50
cmp dword [edi], 0xffffffff
je 0x418deb
push 1
xor eax, eax
mov dword [ebp - 0x48], 0
push 0x44925c
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.00404130
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 4], 0
jb 0x418ce8
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x58]
push eax
push 0
call fcn.0041b300
mov dword [ebp - 0x30], 0
xor ecx, ecx
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x294]
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418d35
sub eax, edx
lea ecx, [ebp - 0x40]
sar eax, 1
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.00403f00
mov dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c8], eax
call fcn.00403c50
lea ecx, [ebp - 0x40]
call fcn.00403c50
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.00403c50
test byte [ebp - 0x2c8], 0x10
je 0x418e21
lea eax, [ebp - 0x2c0]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x418cb4
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi], 0
mov eax, dword [ebp - 0x2c4]
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c1e0
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x2c4]
lea eax, [ebp - 0x294]
push eax
call fcn.00402400
mov eax, dword [ebp - 0x2c4]
jmp 0x418e04
Function at 0x419b80
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446d80
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x45e0a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0x250
mov dword [ebp - 0x2ac], eax
lea eax, [ebp - 0x2a8]
push 0
push eax
call fcn.0041ee20
add esp, 0xc
lea eax, [ebp - 0x2a8]
push eax
mov eax, dword [ebp - 0x2ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x419d33
nop
push 1
xor eax, eax
mov dword [ebp - 0x48], 0
push 0x44925c
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.00404130
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 4], 0
jb 0x419c24
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x58]
push eax
push 0
call fcn.0041b300
mov dword [ebp - 0x30], 0
xor ecx, ecx
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419c71
sub eax, edx
lea ecx, [ebp - 0x40]
sar eax, 1
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.00403f00
mov dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2b0], eax
call fcn.00403c50
lea ecx, [ebp - 0x40]
call fcn.00403c50
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.00403c50
test byte [ebp - 0x2b0], 0x10
je 0x419d65
lea eax, [ebp - 0x2a8]
push eax
mov eax, dword [ebp - 0x2ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x419bf0
mov esi, dword [ebp - 0x2ac]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi], 0
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c1e0
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov dword [edi + 0x10], 0
lea ecx, [ebp - 0x27c]
mov dword [edi + 0x14], 7
mov word [edi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419d81
sub ecx, edx
lea eax, [ebp - 0x27c]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00404130
jmp 0x419d46