joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a925
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
cmp eax, 0xffffffff
jne 0x41a948
lea eax, [ebp + 0xc]
push eax
push 0x4004667f
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41a98f
push 2
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41a988
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2745
je 0x41a98c
cmp eax, 0x2746
je 0x41a98c
cmp eax, 0x2749
je 0x41a98c
cmp eax, 0x274a
je 0x41a98c
xor esi, esi
jmp 0x41a98f
test esi, esi
jne 0x41a98f
push 0xfffffffffffffffe
pop esi
mov eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x41ad50
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
cmp dword [ebx + 0x14], 0
jne 0x41ad72
push ebx
call fcn.00406160
mov dword [ebx + 0x14], 1
mov dword [ebx + 0xc], 0
mov ebp, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
mov esi, dword [esp + 0x1c]
sub ecx, ebp
add ecx, dword [ebx + 0x10]
cmp ebp, esi
jl 0x41adee
mov eax, esi
sub eax, 1
je 0x41adda
sub eax, 1
je 0x41adc4
sub eax, 2
je 0x41adb0
push esi
push ecx
push dword [esp + 0x20]
call fcn.00414ba0
add esp, 0xc
mov eax, esi
sub dword [ebx + 0xc], esi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [ecx]
pop edi
mov dword [eax], ecx
mov eax, esi
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
mov cx, word [ecx]
pop edi
mov word [eax], cx
mov eax, esi
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov dl, byte [ecx]
mov eax, esi
mov ecx, dword [esp + 0x18]
pop edi
mov byte [ecx], dl
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
push ebp
push ecx
push eax
call fcn.00414ba0
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [ebx + 8]
add eax, ebp
mov ecx, dword [ebx]
sub esi, ebp
mov dword [esp + 0x18], eax
push 0
cmp esi, edx
jl 0x41ae36
lea edx, [esp + 0x18]
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
add eax, ebp
mov dword [ebx + 0xc], 0
pop ebp
pop ebx
ret 0xc
lea eax, [esp + 0x18]
push eax
push edx
push dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
cmp esi, eax
jle 0x41ae56
mov esi, eax
mov eax, dword [esp + 0x18]
push esi
push dword [ebx + 4]
push eax
call fcn.00414ba0
sub dword [ebx + 0xc], esi
lea eax, [esi + ebp]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x41ae80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push 0x1000
push 0
push dword [0x4d7b78]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x41b010
mov cl, byte [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x41aece
test ebp, ebp
je 0x41af76
dec ebp
cmp dword [ebx + 4], 0
lea edi, [ebx + 4]
je 0x41aeea
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.0041ad50
mov dword [esp + 0x10], eax
jmp 0x41af04
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
mov cl, byte [esp + 0x24]
cmp eax, 1
jne 0x41af79
test cl, cl
je 0x41af18
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x24]
mov eax, dword [esp + 0x14]
mov edi, esi
mov edx, dword [esp + 0x1c]
dec eax
sub edi, edx
cmp edi, eax
jle 0x41af53
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x4d7b78]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x24]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [edi + edx]
test cl, cl
je 0x41af76
cmp dword [esp + 0x28], 0
jne 0x41aec0
cmp cl, 0xd
je 0x41af82
cmp cl, 0xa
jne 0x41aec0
dec esi
jmp 0x41aff3
lea edi, [ebx + 4]
cmp dword [esp + 0x28], 0
jne 0x41aff3
jmp 0x41af85
lea edi, [ebx + 4]
cmp cl, 0xa
jne 0x41af8d
dec esi
jmp 0x41aff3
cmp cl, 0xd
jne 0x41aff3
dec esi
cmp dword [edi], 0
je 0x41afab
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.0041ad50
mov dword [esp + 0x10], eax
jmp 0x41afc1
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x24], 0xa
je 0x41aff3
cmp dword [edi], 0
je 0x41afd2
inc dword [ebx + 0xc]
jmp 0x41aff3
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x30]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10
Function at 0x41b020
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push 0x1000
push 0
push dword [0x4d7b78]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 8], edx
test edx, edx
je 0x41b1df
mov ax, word [esp + 0x1c]
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x1c], 0x1000
mov dword [esp + 0x18], 0x7ff
mov ecx, dword [esp + 0x30]
cmp ecx, 0xffffffff
je 0x41b079
test ecx, ecx
je 0x41b13c
dec ecx
mov dword [esp + 0x30], ecx
cmp dword [ebx + 4], 0
lea ebp, [ebx + 4]
je 0x41b095
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.0041ad50
mov dword [esp + 0x10], eax
jmp 0x41b0af
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x34]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
cmp eax, 2
mov ax, word [esp + 0x28]
jne 0x41b13f
test ax, ax
je 0x41b0cd
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x28]
mov edx, dword [esp + 0x14]
mov esi, edi
mov ecx, dword [esp + 0x18]
sub esi, edx
sar esi, 1
cmp esi, ecx
jle 0x41b114
mov eax, dword [esp + 0x1c]
add ecx, 0x800
add eax, 0x1000
mov dword [esp + 0x18], ecx
push eax
push edx
push 8
push dword [0x4d7b78]
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
mov ax, word [esp + 0x28]
mov dword [esp + 0x14], edx
lea edi, [edx + esi*2]
test ax, ax
je 0x41b13f
cmp dword [esp + 0x2c], 0
jne 0x41b063
cmp ax, 0xd
je 0x41b146
cmp ax, 0xa
jne 0x41b063
sub edi, 2
jmp 0x41b1be
lea ebp, [ebx + 4]
cmp dword [esp + 0x2c], 0
jne 0x41b1be
cmp ax, 0xa
jne 0x41b151
sub edi, 2
jmp 0x41b1be
cmp ax, 0xd
jne 0x41b1be
sub edi, 2
cmp dword [ebp], 0
je 0x41b173
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.0041ad50
mov dword [esp + 0x10], eax
jmp 0x41b189
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x34]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x28], 0xa
je 0x41b1be
cmp dword [ebp], 0
je 0x41b19d
add dword [ebx + 0xc], 2
jmp 0x41b1be
push 1
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, edi
sub ecx, dword [esp + 0x14]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
pop ebx
add esp, 0x14
ret 0x10
Function at 0x41b1f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x4d7b78]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x41b340
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 3]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, edx
cmp edi, 0xffffffff
je 0x41b23c
test edi, edi
je 0x41b2ad
dec edi
push esi
push ebp
call fcn.0044bfe0
mov dword [esp + 0x20], eax
test eax, eax
jne 0x41b24f
xor cl, cl
jmp 0x41b251
mov cl, byte [esi]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, edx
mov byte [esp + 0x13], cl
add eax, 0xfffffffb
cmp ebx, eax
jle 0x41b294
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x4d7b78]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [ebx + edx]
mov eax, dword [esp + 0x2c]
test cl, cl
je 0x41b2ad
test eax, eax
jne 0x41b232
cmp cl, 0xd
je 0x41b2b1
cmp cl, 0xa
jne 0x41b232
dec esi
jmp 0x41b323
test eax, eax
jne 0x41b323
cmp cl, 0xa
jne 0x41b2b9
dec esi
jmp 0x41b323
cmp cl, 0xd
jne 0x41b323
dec esi
cmp dword [ebp + 4], 0
je 0x41b2d8
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.0041ad50
mov dword [esp + 0x20], eax
jmp 0x41b2ef
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x41b323
cmp dword [ebp + 4], 0
je 0x41b301
inc dword [ebp + 0xc]
jmp 0x41b323
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x41b350
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x10], 0
cmp dword [edi + 0x1c], 0
jne 0x41b467
cmp dword [edi + 0x14], 1
push ebx
push ebp
jne 0x41b39d
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x10]
push 1
neg eax
cdq
push ecx
push eax
push dword [edi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0xc]
push esi
mov esi, dword [esp + 0x24]
cmp eax, esi
jle 0x41b426
mov ecx, dword [edi + 4]
sub ecx, eax
mov eax, esi
add ecx, dword [edi + 8]
sub eax, 1
je 0x41b40f
sub eax, 1
je 0x41b3f6
sub eax, 2
je 0x41b3df
push esi
push dword [esp + 0x24]
push ecx
call fcn.00414ba0
add esp, 0xc
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov ax, word [eax]
mov word [ecx], ax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov al, byte [eax]
mov byte [ecx], al
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
push edi
call fcn.00406160
mov eax, dword [edi + 8]
cmp esi, eax
jl 0x41b455
push 0
lea eax, [esp + 0x20]
push eax
push esi
push dword [esp + 0x2c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov ecx, dword [edi + 4]
sub ecx, dword [edi + 0xc]
push esi
push dword [esp + 0x24]
add ecx, eax
jmp 0x41b3c7
xor eax, eax
pop edi
add esp, 8
ret 0xc
Function at 0x41c78d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
je 0x41c7eb
add ebx, 2
lea eax, [ebx*2 + 2]
push eax
push edi
push dword [0x4d7b78]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x41c7eb
cmp dword [ebp + 0xc], 0
je 0x41c7da
push dword [ebp + 0xc]
push edi
call fcn.004157a5
push 0x4bc660
push edi
call fcn.00415774
add esp, 0x10
jmp 0x41c7e7
push 0x4bc660
push edi
call fcn.004157a5
pop ecx
pop ecx
mov esi, edi
jmp 0x41c7ee
mov esi, dword [ebp + 0xc]
push 0
lea eax, [ebp + 0x10]
push eax
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x41c857
mov eax, dword [0x4d6820]
dec eax
sub eax, 1
je 0x41c831
sub eax, 0x16
je 0x41c829
push 0
lea eax, [ebp + 0x10]
push eax
lea eax, [ebx + ebx]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x41c857
push esi
call fcn.00415da0
jmp 0x41c837
push esi
call fcn.0041a9a0
mov esi, eax
lea eax, [ebp + 0x10]
push 0
push eax
push esi
call fcn.0040eba0
pop ecx
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.00415e30
test edi, edi
je 0x41c86a
push edi
push 0
push dword [0x4d7b78]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x41da46
Capabilities:
Hash data using sha1

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
and dword [ecx + 0x18], 0
and dword [ecx + 0x14], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x5c], eax
ret

Function at 0x41dc80
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x94
test dword [esp + 0xa0], 0x10000
je 0x41de12
push ebx
mov ebx, dword [esp + 0x9c]
test ebx, ebx
je 0x41de11
mov eax, dword [ebx]
cdq
push ebp
mov ebp, dword [ebx + 4]
and edx, 7
push esi
add eax, edx
push edi
mov edi, dword [esp + 0xb4]
sar eax, 3
mov dword [esp + 0x10], eax
test edi, edi
jne 0x41dccc
mov edi, 0x4bc6bc
mov eax, dword [esp + 0xb8]
cmp eax, 0x18
jne 0x41dcf0
push edi
call fcn.00415da0
mov edi, eax
mov esi, edi
lea eax, [esi + 1]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x41dce5
sub esi, eax
jmp 0x41dd29
cmp eax, 0x19
jne 0x41dd13
mov esi, edi
lea ecx, [esi + 2]
lea ebx, [ebx]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41dd00
sub esi, ecx
sar esi, 1
add esi, esi
jmp 0x41dd29
push edi
call fcn.0041a9a0
mov edi, eax
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x41dd20
sub esi, ecx
push esi
push edi
cmp esi, ebp
jle 0x41dd7c
mov esi, dword [esp + 0xb4]
push ebx
mov eax, dword [esi + 0xc]
call eax
mov eax, dword [esi + 0x10]
push ebx
call eax
mov esi, dword [esp + 0x10]
lea eax, [ebx + 8]
push esi
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00414ba0
mov eax, ebp
sub eax, esi
push eax
lea eax, [esp + 0x24]
add eax, esi
push 0
push eax
call fcn.00401510
mov eax, dword [esp + 0xc4]
add esp, 0x18
mov eax, dword [eax + 8]
push 1
push ebx
call eax
jmp 0x41dd9c
lea eax, [esp + 0x1c]
push eax
call fcn.00414ba0
mov eax, ebp
sub eax, esi
push eax
lea eax, [esp + 0x24]
add eax, esi
push 0
push eax
call fcn.00401510
add esp, 0x18
push ebp
lea eax, [esp + 0x18]
push eax
lea esi, [ebx + 0x48]
push esi
call fcn.00414ba0
add esp, 0xc
test ebp, ebp
jle 0x41ddd1
lea eax, [esp + 0x14]
mov ecx, ebp
jmp 0x41ddc0
xor byte [eax], 0x36
lea eax, [eax + 1]
xor byte [esi], 0x5c
lea esi, [esi + 1]
sub ecx, 1
jne 0x41ddc0
push ebp
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0xb4]
push ebx
mov eax, dword [eax + 0xc]
call eax
mov eax, dword [esp + 0xb8]
cmp eax, 0x18
jne 0x41de03
push edi
call fcn.00415e30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x14
cmp eax, 0x19
je 0x41de0e
push edi
call fcn.00415e30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x14

Function at 0x41e470
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x4d65e4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 4]
mov dword [eax + 8], ecx
mov eax, dword [eax]
add eax, ecx
ret 4
Function at 0x41e5f9
Capabilities:
Parse pe header

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

Disassembly:
sub esp, 0x14
call fcn.00422fb0
call fcn.00426d20
lea ecx, [ecx]
push 0
call fcn.00421ef0
test eax, eax
jne 0x422980
mov ecx, dword [0x4d827c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ecx, ecx
je 0x422a57
cmp dword [0x4d8280], eax
je 0x422a57
mov eax, dword [0x4d8278]
shl eax, 2
cmp dword [0x4d91f8], 0
mov dword [esp + 0xc], 0x23
mov dword [esp + 0x10], eax
je 0x422a4c
push eax
push ecx
push dword [0x4d8290]
call fcn.00414ba0
xor esi, esi
add esp, 0xc
cmp dword [0x4d8278], esi
jle 0x422a1a
jmp 0x4229f0
mov eax, dword [0x4d8290]
mov cl, byte [eax + esi*4]
lea edx, [eax + esi*4]
movzx eax, byte [edx + 3]
inc esi
mov byte [edx], al
movzx eax, byte [edx + 2]
mov byte [edx + 3], cl
mov cl, byte [edx + 1]
mov byte [edx + 1], al
mov byte [edx + 2], cl
cmp esi, dword [0x4d8278]
jl 0x4229f0
mov esi, dword [0x4d8290]
call fcn.00456e90
push 0x4d9fa0
mov dword [esp + 0x20], eax
call edi
lea eax, [esp + 0xc]
push esi
push eax
mov eax, dword [0x4d9214]
mov eax, dword [eax + 0xc]
call eax
add esp, 8
push 0x4d9fa0
call ebx
jmp 0x422a57
push ecx
lea eax, [esp + 0x10]
push eax
call fcn.00421eb0
mov dword [esp + 0xc], 1
call fcn.00456e90
push 0x4d9fa0
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 0
call edi
lea eax, [esp + 0xc]
push 0
push eax
mov eax, dword [0x4d9214]
mov eax, dword [eax + 0xc]
call eax
add esp, 8
push 0x4d9fa0
call ebx
mov eax, dword [0x4d9214]
mov eax, dword [eax + 0x14]
call eax
push 0x4d9f80
call edi
push 0x4d9fa0
call edi
push 0x4d9fc0
call edi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push dword [0x4d920c]
call edi
push dword [0x4d920c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0
push dword [0x4d9210]
call edi
push dword [0x4d9210]
call esi
push 0x4d9f80
call ebx
push 0x4d9fa0
call ebx
push 0x4d9fc0
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x4d9f80
call esi
push 0x4d9fa0
call esi
push 0x4d9fc0
call esi
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x426490
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov ecx, dword [esp + 4]
lea edx, [esp - 0x244]
sub esp, 0x244
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4264a3
push ebp
push esi
push edi
lea edi, [esp + 0xc]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4264b8
mov ax, word [0x4b3354]
lea ecx, [esp + 0xc]
mov word [edi], ax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4264d2
sub ecx, edx
lea esi, [esp + 0xc]
add esi, ecx
mov eax, 0x2a
mov word [esi], ax
lea eax, [esp + 0x110]
push eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x426615
mov edi, dword [esp + 0x25c]
lea eax, [esp + 0x13c]
push ebx
mov ebx, dword [esp + 0x25c]
sub esi, eax
nop
lea eax, [esp + 0x140]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [esi + eax - 1], cl
test cl, cl
jne 0x426527
test byte [esp + 0x114], 0x10
je 0x4265bc
mov ecx, 0x4b550c
lea eax, [esp + 0x140]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x426570
test dl, dl
je 0x42656c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x426570
add eax, 2
add ecx, 2
test dl, dl
jne 0x426550
xor eax, eax
jmp 0x426575
sbb eax, eax
or eax, 1
test eax, eax
je 0x4265cf
mov ecx, 0x4b5770
lea eax, [esp + 0x140]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4265a5
test dl, dl
je 0x4265a1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4265a5
add eax, 2
add ecx, 2
test dl, dl
jne 0x426585
xor eax, eax
jmp 0x4265aa
sbb eax, eax
or eax, 1
test eax, eax
je 0x4265cf
push edi
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00426490
jmp 0x4265c8
push edi
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00426170
add esp, 0xc
test eax, eax
jne 0x4265fc
lea eax, [esp + 0x114]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x426520
push ebp
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x244
ret
push ebp
mov esi, 1
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x244
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x244
ret
Function at 0x426d20
Capabilities:
Suspend thread

Disassembly:
push ecx
push ebx
push dword [0x4ec178]
call fcn.00407b26
cmp dword [0x4c3018], 0
mov ebx, dword [eax]
mov dword [esp + 4], ebx
je 0x426e23
cmp dword [0x4ec150], 0
jne 0x426e23
push esi
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4ec158
call esi
cmp dword [0x4d8264], 0
je 0x426d79
push 0x4d9fc0
call esi
push 0x4d9fa0
call esi
push 0x4d9f80
call esi
push ebp
push 0
push 0
push 0
push dword [0x4ec174]
mov dword [0x4ec180], ebx
mov dword [0x4ec150], 1
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov esi, dword [0x4ec170]
lea ebx, [eax + 0xc8]
test esi, esi
je 0x426df6
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x426dc0
cmp esi, dword [esp + 0x10]
je 0x426def
cmp dword [esi + 0x2c], 0
jne 0x426def
lea esp, [esp]
call ebp
cmp eax, ebx
jae 0x426de0
push 1
call edi
cmp dword [esi + 0x2c], 0
je 0x426dd0
cmp dword [esi + 0x2c], 0
jne 0x426def
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov esi, dword [esi]
test esi, esi
jne 0x426dc0
pop edi
cmp dword [0x4d8264], 0
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
je 0x426e1b
push 0x4d9f80
call esi
push 0x4d9fa0
call esi
push 0x4d9fc0
call esi
push 0x4ec158
call esi
pop esi
pop ebx
pop ecx
ret