joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416d69
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov edx, 0x10d
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x416d6f
call fcn.0042ee70
mov edx, dword [esp + 0x440]
lea ecx, [esp]
call fcn.00419000
mov dword [0x4b5001], 0x2000085
mov dword [0x4b5001], 0x2000088
lea ebp, [esp + 8]
mov dword [ebp], 0x428
mov dword [0x4b5001], 0x200008b
push dword [esp + 0x43c]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [esp + 4], eax
mov dword [0x4b5001], 0x200008c
cmp dword [esp + 4], 0
je 0x416f48
mov dword [0x4b5001], 0x200008d
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_Module32FirstW
and eax, eax
je 0x416f2b
mov dword [0x4b5001], 0x200008e
mov dword [0x4b5001], 0x200008f
push edx
call fcn.0042ecd0
pop edx
push eax
push edx
call fcn.0042ecd0
pop edx
push eax
lea ebp, [esp + 0x10]
lea eax, [ebp + 0x20]
push eax
call fcn.0042dd70
lea eax, [esp + 0x434]
push eax
call fcn.0042ed70
mov dword [0x4b5001], 0x2000090
push edx
call fcn.0042ecd0
pop edx
push eax
push edx
call fcn.0042ecd0
pop edx
push eax
lea eax, [ebp + 0x220]
push eax
call fcn.0042dd70
lea eax, [0x4fdef0]
push eax
call fcn.0042ed70
mov dword [0x4b5001], 0x2000094
push edx
call fcn.0042ecd0
pop edx
push eax
push edx
call fcn.0042ecd0
pop edx
push eax
push dword [esp + 0x438]
call fcn.0042cf80
call fcn.0042ee00
push edx
call fcn.0042ecd0
pop edx
push eax
push edx
call fcn.0042ecd0
pop edx
push eax
push dword [esp + 0xc]
call fcn.0042cf80
call fcn.004192d0
mov edx, eax
pop ecx
push ecx
call fcn.004192d0
mov ecx, eax
call fcn.00419250
je 0x416ef4
mov dword [0x4b5001], 0x2000096
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x4b5001], 0x2000097
lea ebp, [esp + 8]
mov eax, dword [ebp + 0x14]
jmp 0x416f6c
mov dword [0x4b5001], 0x2000098
mov dword [0x4b5001], 0x2000099
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_Module32NextW
and eax, eax
je 0x416f1e
xor eax, eax
jmp 0x416f23
mov eax, 1
and eax, eax
je 0x416e03
mov dword [0x4b5001], 0x200009a
mov dword [0x4b5001], 0x200009b
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x4b5001], 0x200009c
mov dword [0x4b5001], 0x200009e
xor eax, eax
jmp 0x416f6c
push dword [esp]
call fcn.0042eed0
push dword [esp + 0x430]
call fcn.0042eed0
add esp, 0x434
pop ebp
ret 8
Function at 0x4178c8
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov edx, 0x8e
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4178ce
call fcn.0042ee70
mov edx, dword [esp + 0x240]
lea ecx, [esp]
call fcn.00419000
mov dword [0x4b5001], 0x200006b
mov dword [0x4b5001], 0x200006f
lea ebp, [esp + 8]
mov dword [ebp], 0x22c
mov dword [0x4b5001], 0x2000071
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [esp + 4], eax
mov dword [0x4b5001], 0x2000072
cmp dword [esp + 4], 0
je 0x417a88
mov dword [0x4b5001], 0x2000073
lea ebp, [esp + 8]
mov dword [ebp], 0x22c
mov dword [0x4b5001], 0x2000074
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_Process32FirstW
and eax, eax
je 0x417a6b
mov dword [0x4b5001], 0x2000075
mov dword [0x4b5001], 0x2000076
push edx
call fcn.0042ecd0
pop edx
push eax
push edx
call fcn.0042ecd0
pop edx
push eax
lea ebp, [esp + 0x10]
lea eax, [ebp + 0x24]
push eax
call fcn.0042dd70
lea eax, [esp + 0x238]
push eax
call fcn.0042ed70
mov dword [0x4b5001], 0x2000078
push edx
call fcn.0042ecd0
pop edx
push eax
push edx
call fcn.0042ecd0
pop edx
push eax
push dword [esp + 0x23c]
call fcn.0042cf80
call fcn.0042ee00
push edx
call fcn.0042ecd0
pop edx
push eax
push edx
call fcn.0042ecd0
pop edx
push eax
push dword [esp + 0xc]
call fcn.0042cf80
call fcn.004192d0
mov edx, eax
pop ecx
push ecx
call fcn.004192d0
mov ecx, eax
call fcn.00419250
je 0x417a34
mov dword [0x4b5001], 0x2000079
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x4b5001], 0x200007a
lea ebp, [esp + 8]
mov eax, dword [ebp + 8]
jmp 0x417aac
mov dword [0x4b5001], 0x200007b
mov dword [0x4b5001], 0x200007c
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_Process32NextW
and eax, eax
je 0x417a5e
xor eax, eax
jmp 0x417a63
mov eax, 1
and eax, eax
je 0x417975
mov dword [0x4b5001], 0x200007d
mov dword [0x4b5001], 0x200007e
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x4b5001], 0x200007f
mov dword [0x4b5001], 0x2000081
xor eax, eax
jmp 0x417aac
push dword [esp + 0x234]
call fcn.0042eed0
push dword [esp]
call fcn.0042eed0
add esp, 0x238
pop ebp
ret 4
Function at 0x419a67
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4fe69c], 0
push ebx
push esi
mov esi, 0x4fe6a4
jne 0x419a93
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x4fe6bc], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4fe69c], 1
push dword [0x4fe6bc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x419b30
push 0x14
push 8
push dword [0x4fda5c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x419b5a
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4fe6a0]
test eax, eax
je 0x419ad5
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4fe6a0], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x419b5f
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x4fe6bc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x4fda5c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x419b5a
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8
Function at 0x41a414
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
push ebx
push dword [0x4fe718]
xor ebp, ebp
mov edi, ebp
mov dword [esp + 0x18], ebp
call fcn.0042e432
mov esi, eax
test esi, esi
je 0x41a5a9
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp dword [esi + 0x14], ebp
je 0x41a4be
push ebx
call fcn.0041a857
jmp 0x41a456
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], 0
jne 0x41a44e
push dword [esi + 0x14]
call fcn.0041a8f6
mov eax, dword [esp + 0x1c]
push ebp
push esi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x20], eax
call fcn.0041a39f
pop ecx
pop ecx
lea eax, [esp + 0x1c]
push eax
push ebp
push esi
push 0x41a5c3
push 0x2000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x41a49b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], 0xffffffff
je 0x41a4ac
push dword [esp + 0x20]
push ebx
call fcn.0041a717
mov eax, dword [esi]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi]
push 1
jmp 0x41a55e
test byte [esp + 0x1c], 1
je 0x41a4cd
mov dword [esp + 0x10], 1
test byte [esp + 0x1c], 2
je 0x41a568
push esi
call fcn.0041a336
lea eax, [esi + 4]
push 0x10
push eax
call fcn.0042ec2e
pop ecx
pop ecx
mov ecx, dword [0x4fe784]
mov edi, eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x14]
test eax, eax
jne 0x41a5a9
mov eax, dword [esp + 0x18]
mov dword [edi], eax
mov eax, dword [esp + 0x10]
mov byte [edi + 5], al
mov byte [edi + 4], 1
mov eax, dword [esp + 0x18]
push dword [esi + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [esp + 0x18]
push dword [esi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
cmp dword [esp + 0x20], 0xffffffff
je 0x41a549
push edi
push dword [esp + 0x24]
push ebx
call fcn.0041a677
jmp 0x41a556
mov eax, dword [esp + 0x18]
push dword [esi + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x18]
push dword [esp + 0x10]
mov ecx, dword [eax]
push ebp
push ebp
push eax
call dword [ecx + 0x30]
jmp 0x41a5a9
mov eax, dword [ecx]
push ecx
call dword [eax + 0x48]
mov eax, dword [esp + 0x18]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
cmp dword [esp + 0x20], 0xffffffff
je 0x41a58a
push dword [esp + 0x20]
push ebx
call fcn.0041a717
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
push ebx
push ebp
mov ecx, dword [eax]
push ebp
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x41a5a9
xor edi, edi
mov byte [esi + 0x1c], 1
inc edi
mov byte [esi + 0x1e], bl
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x41afc0
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x41b015
push dword [esp + 0x10]
push 0x41af3f
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x4fe73c]
test esi, esi
je 0x41b06e
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x41b00d
cmp byte [esi + 0x10], 0
je 0x41b00d
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x41afe9
jmp 0x41b06e
mov esi, dword [0x4fe73c]
test esi, esi
je 0x41b06e
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x41b067
cmp byte [esi + 0x11], 0
je 0x41b043
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x41b05a
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x4fe73c
call fcn.0042ebee
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x41b022
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x41b726
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x4ff778]
call fcn.0042e2c1
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x41b826
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x41b77c
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x41b774
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x41b7bc
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x41b7fe
push 0x22
pop edx
cmp cx, dx
je 0x41b7ae
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x41b79e
xor ecx, ecx
cmp word [eax], cx
je 0x41b7fe
mov ecx, eax
add eax, 2
jmp 0x41b800
test dx, dx
je 0x41b806
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x41b7ae
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x41b7f4
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x41b7fe
cmp cx, dx
je 0x41b7f1
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x41b7e1
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x41b7c6
jmp 0x41b7ae
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x41b808
xor edx, edx
cmp dword [ebp], ebx
jne 0x41b811
test edi, edi
jne 0x41b82e
test edx, edx
je 0x41b816
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x41b76a
test edi, edi
jne 0x41b83f
mov eax, ebx
jmp 0x41b843
test esi, esi
je 0x41b83f
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x41b843
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x41b9ba
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, eax
cmp dword [esp + 0x24], 0x18
je 0x41ba69
cmp dword [esp + 0x24], 2
je 0x41ba69
push 0x2000
push edi
push dword [0x4fda5c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x41ba3c
cmp dword [esp + 0x18], 2
jne 0x41ba54
test ebx, ebx
jne 0x41ba25
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x4fda5c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x41ba54
cmp ax, 0xd
je 0x41ba3c
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call ebp
test eax, eax
jne 0x41b9fc
push dword [esp + 0x28]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.0049c960
jmp 0x41baef
push eax
push 0
push dword [0x4fda5c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x41babb
cmp dword [esp + 0x18], 1
jne 0x41bad3
test ebx, ebx
jne 0x41baaa
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x4fda5c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x41bad3
cmp al, 0xd
je 0x41babb
mov byte [esi + edi], al
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call ebp
test eax, eax
jne 0x41ba82
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x28]
mov byte [esi + edi], 0
push esi
jne 0x41baea
call fcn.0049c9b0
jmp 0x41baef
call fcn.0049cb60
push esi
push 0
push dword [0x4fda5c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc

Function at 0x41bdd0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x4fe754], 0
jne 0x41bdde
call fcn.0041bd70
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x4fe758]
call esi
test eax, eax
jne 0x41be01
call fcn.0041bd70
push dword [0x4fe758]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x41be10
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x41be70
mov ebx, 0x10
test edi, edi
jns 0x41be79
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x41be42
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x41be90
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x4fe754], 0
jne 0x41be9e
call fcn.0041bd70
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x4fe758]
call esi
mov edx, eax
test edx, edx
jne 0x41bec5
call fcn.0041bd70
push dword [0x4fe758]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x41bef8
mov ebx, 0x10
test esi, esi
jns 0x41bf01
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x41bf10
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41d34a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x41d3e8
cmp dword [ebp + 0xc], edi
je 0x41d3e8
push esi
push 0x30
push 8
push dword [0x4fda5c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
or dword [esi + 4], 0xffffffff
mov dword [esi], edi
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0xc]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0x14]
mov dword [esi + 0xc], eax
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 0x28], eax
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
test al, 1
je 0x41d3d7
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x41d55d
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x41d3cf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x41d3e7
push esi
call fcn.0041d5ae
jmp 0x41d3e6
push esi
call fcn.0041d401
push esi
mov edi, eax
call fcn.0041d5ae
pop ecx
pop ecx
pop esi
mov eax, edi
pop edi
pop ebp
ret 0x10
Function at 0x41d401
Capabilities:
Delete file

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov eax, dword [edi + 0xc]
push dword [edi + 8]
mov dword [esp + 0x20], eax
call fcn.0049ca30
push dword [edi + 0x28]
mov ebp, eax
mov dword [esp + 0x14], ebp
call fcn.0049ca30
mov dword [esp + 0x14], eax
call fcn.00477bd0
mov esi, eax
test esi, esi
je 0x41d532
push ebx
push pe_nt_image_headers32
push 2
push ebx
push 1
push 0xc0000000
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41d527
test byte [edi + 0x1c], 2
mov dword [edi + 0x10], ebp
jne 0x41d478
push 1
push 0x34
push esi
call fcn.00477c60
add esp, 0xc
mov eax, dword [0x4fe7dc]
test eax, eax
je 0x41d490
push eax
push 0x2714
push esi
call fcn.00477c60
add esp, 0xc
mov eax, dword [0x4fe7e0]
test eax, eax
je 0x41d4c1
cmp dword [0x4fe7e4], ebx
je 0x41d4c1
push eax
push 0x27bf
push esi
call fcn.00477c60
push dword [0x4fe7e4]
push 0x27c0
push esi
call fcn.00477c60
add esp, 0x18
push dword [esp + 0x10]
push 0x2712
push esi
call fcn.00477c60
push dword [esp + 0x20]
push 0x2722
push esi
call fcn.00477c60
push 0x41d56c
push 0x4e2b
push esi
call fcn.00477c60
push edi
push 0x2711
push esi
call fcn.00477c60
push esi
call fcn.00477c50
add esp, 0x34
test eax, eax
jne 0x41d512
xor ebx, ebx
mov dword [edi + 4], 0xfffffffe
inc ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x41d527
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.00477bb0
mov ebp, dword [esp + 0x14]
pop ecx
cmp dword [edi + 4], 0xfffffffe
je 0x41d545
cmp dword [edi + 4], 0xfffffffc
je 0x41d545
mov dword [edi + 4], 0xfffffffd
push ebp
call fcn.0049ca20
push dword [esp + 0x14]
call fcn.0049ca20
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
pop ecx
ret

Function at 0x41d693
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push edi
xor edi, edi
inc edi
cmp dword [0x4fe7f4], 0
jne 0x41d6bf
push 0x41d5e2
push 0x10
push 0x2c
mov dword [0x4fe7f4], edi
call fcn.0042e505
mov dword [0x4fe7f0], eax
cmp word [0x4fe7e8], 0
jne 0x41d75b
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x41d6ea
mov word [0x4fe7e8], di
jmp 0x41d6f2
xor eax, eax
mov word [0x4fe7e8], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4fe804], eax
test eax, eax
je 0x41d75b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a4768
push eax
call esi
push 0x4a4774
push dword [0x4fe804]
mov dword [0x4fe7f8], eax
call esi
push str.getnameinfo
push dword [0x4fe804]
mov dword [0x4fe7fc], eax
call esi
cmp dword [0x4fe7f8], 0
mov dword [0x4fe800], eax
pop esi
je 0x41d75b
cmp dword [0x4fe7fc], 0
je 0x41d75b
test eax, eax
je 0x41d75b
mov dword [0x4fe7ec], edi
movsx eax, word [0x4fe7e8]
pop edi
add esp, 0x190
ret
Function at 0x421d06
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x4ff7fc]
call fcn.0042e432
mov ebx, eax
test ebx, ebx
je 0x421d6a
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x421d2f
push dword [esp + 0xc]
push ebx
call eax
jmp 0x421d6a
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.0042f0c0
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.DLL_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.0042f190
pop edi
pop esi
pop ebx
ret 8

Function at 0x422c57
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push eax
mov esi, 0xc8
xor ebx, ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x422daf
mov eax, dword [esp + 0x20]
dec eax
je 0x422d92
dec eax
jne 0x422daf
lea eax, [esp + 0x124]
xor ebp, ebp
push eax
call fcn.00422c10
pop ecx
test eax, eax
je 0x422cc3
mov ebx, dword [esp + 0x128]
mov edi, dword [esp + 0x12c]
cmp byte [esp + 0x23e], 1
jmp 0x422cf0
lea eax, [esp + 0x240]
mov dword [esp + 0x240], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x422cf5
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x35a], 1
jne 0x422cf5
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x422d8e
dec ebx
je 0x422d8a
dec ebx
je 0x422d69
dec ebx
je 0x422d23
sub ebx, 4
jne 0x422daf
test edi, edi
jne 0x422daf
push 0x6e
jmp 0x422dae
sub edi, 0
je 0x422d5b
dec edi
je 0x422d4d
dec edi
je 0x422d3f
dec edi
jne 0x422daf
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x422daf
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x422daf
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x422daf
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x422daf
sub edi, 0
je 0x422d86
dec edi
je 0x422d82
dec edi
jne 0x422daf
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x422daf
push 0x3c
jmp 0x422dae
push 0x32
jmp 0x422dae
push 0x14
jmp 0x422dae
push 5
jmp 0x422dae
mov eax, dword [esp + 0x18]
test eax, eax
je 0x422dac
cmp eax, 0xa
je 0x422da8
cmp eax, 0x5a
jne 0x422daf
push 0x28
jmp 0x422dae
push 0x1e
jmp 0x422dae
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret