joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d9c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
push esi
mov esi, ecx
je 0x43dae0
push ebx
push edi
mov edi, 0x10
sub edi, dword [esi + 0x54]
cmp edi, ebp
jb 0x43d9e0
mov edi, ebp
mov eax, dword [esi + 0x54]
mov ebx, dword [esp + 0x14]
push edi
lea ecx, [eax + esi + 0x44]
push ebx
push ecx
call fcn.00450000
add dword [esi + 0x54], edi
mov eax, dword [esi + 0x54]
add ebx, edi
add esp, 0xc
sub ebp, edi
cmp eax, 0x10
mov dword [esp + 0x14], ebx
jne 0x43dad6
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
mov dword [esi + 0x14], edx
mov edx, dword [esi + 0x50]
mov dword [esi + 0x18], eax
xor ebx, ebx
mov dword [esi + 0x1c], ecx
mov cl, byte [esi + 0x43]
mov dword [esi + 0x54], ebx
mov dword [esi + 0x20], edx
lea eax, [esi + 4]
lea edi, [ebx + 0x10]
movzx edx, byte [eax + 0x10]
xor dl, byte [eax]
movzx ecx, cl
mov byte [eax + 0x20], dl
movzx edx, byte [eax + 0x40]
xor edx, ecx
movzx edx, byte [edx + str._.C]
xor byte [eax + 0x30], dl
mov cl, byte [eax + 0x30]
add eax, 1
sub edi, 1
jne 0x43da33
xor cl, cl
lea edi, [esi + 5]
nop
mov eax, edi
mov edx, 8
jmp 0x43da70
movzx ecx, cl
movzx ecx, byte [ecx + str._.C]
xor byte [eax - 1], cl
movzx ecx, byte [eax - 1]
movzx ecx, byte [ecx + str._.C]
xor byte [eax], cl
movzx ecx, byte [eax]
movzx ecx, byte [ecx + str._.C]
xor byte [eax + 1], cl
movzx ecx, byte [eax + 1]
movzx ecx, byte [ecx + str._.C]
xor byte [eax + 2], cl
movzx ecx, byte [eax + 2]
movzx ecx, byte [ecx + str._.C]
xor byte [eax + 3], cl
movzx ecx, byte [eax + 3]
movzx ecx, byte [ecx + str._.C]
xor byte [eax + 4], cl
mov cl, byte [eax + 4]
add eax, 6
sub edx, 1
jne 0x43da70
add cl, bl
add ebx, 1
cmp ebx, 0x12
jl 0x43da60
test ebp, ebp
jne 0x43d9d2
pop edi
pop ebx
pop esi
pop ebp
ret 8

Function at 0x43dbc0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x43ec10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x4a2e7c]
xor eax, esp
mov dword [esp + 0x804], eax
mov eax, dword [esp + 0x80c]
push edi
mov edi, dword [esp + 0x818]
push 0x48e3fc
push eax
lea eax, [esp + 0xc]
push eax
call fcn.0044f9c8
add esp, 0xc
test eax, eax
je 0x43ec62
xor eax, eax
pop edi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.0044b607
add esp, 0x808
ret
mov ecx, dword [esp + 0x814]
push ebx
push esi
push ecx
push edi
call fcn.0043e9a0
add esp, 8
xor ebx, ebx
jmp 0x43ec80
mov edx, dword [esp + 0xc]
push edx
push 0x800
lea eax, [esp + 0x18]
push 1
push eax
call fcn.00451cbc
mov esi, eax
push esi
lea ecx, [esp + 0x24]
push ecx
push edi
add ebx, esi
call fcn.0043e9f0
add esp, 0x1c
cmp esi, 0x800
jge 0x43ec80
mov edx, dword [esp + 0xc]
push edx
call fcn.0044f729
push edi
call fcn.0043eb00
mov ecx, dword [esp + 0x818]
add esp, 8
pop esi
mov eax, ebx
pop ebx
pop edi
xor ecx, esp
call fcn.0044b607
add esp, 0x808
ret
Function at 0x43f290
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret
Function at 0x442c20
Capabilities:
Hash data using sha256
Hash data using sha384
Hash data using sha512

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0x100
push esi
push edi
mov edx, eax
ja 0x442c72
je 0x442c48
cmp eax, 0x20
je 0x442c4d
cmp eax, 0x30
je 0x442c99
cmp eax, 0x40
je 0x442c8d
pop edi
mov eax, 1
pop esi
ret
mov edx, 0x20
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax], ecx
lea edi, [eax + 8]
mov ecx, 8
mov esi, 0x490130
rep movsd dword es:[edi], dword [esi]
pop edi
mov dword [eax + 0xd0], edx
xor eax, eax
pop esi
ret
cmp eax, 0x180
je 0x442c94
cmp eax, 0x200
je 0x442c88
pop edi
mov eax, 1
pop esi
ret
mov edx, 0x40
mov esi, 0x490650
jmp 0x442c9e
mov edx, 0x30
mov esi, 0x4903d0
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
lea edi, [eax + 0x10]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
pop edi
mov dword [eax + 0xd0], edx
xor eax, eax
pop esi
ret

Function at 0x442e70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
mov dword [edx], 0xffffffff
mov cl, byte [esi]
test cl, cl
je 0x442eab
push edi
mov eax, dword [edx]
mov edi, eax
movzx ecx, cl
and edi, 0xff
xor edi, ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4a25a0]
add esi, 1
mov dword [edx], eax
mov cl, byte [esi]
test cl, cl
jne 0x442e86
pop edi
mov eax, dword [edx]
not eax
mov dword [edx], eax
xor eax, eax
pop esi
ret
Function at 0x448d20
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
xor esi, esi
push 0
push 0
push 0
mov eax, ebx
sub eax, esi
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x20], eax
lea ecx, [esi + ebp]
push 1
lea eax, [esp + 0x24]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x30]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
cmp edi, 0xffffffff
je 0x448d68
add esi, dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, ebx
jge 0x448d8e
cmp edi, 0xffffffff
jne 0x448d31
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x448d98
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret

Function at 0x448f00
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, dword [esp + 0x20]
xor esi, esi
cmp edi, 1
mov dword [esp + 8], esi
jge 0x448f1d
pop edi
or eax, 0xffffffff
pop esi
add esp, 0xc
ret
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x20]
push 0
push 0
lea eax, [esi + ebx]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x24], eax
mov ecx, edi
sub ecx, esi
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x24], ecx
push 1
lea ecx, [esp + 0x28]
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x448f6e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x448f80
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x448f27
add esi, dword [esp + 0x28]
cmp edi, esi
jg 0x448f27
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret
pop ebp
pop ebx
pop edi
or eax, 0xffffffff
pop esi
add esp, 0xc
ret
Function at 0x449930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push 0xffffffffffffffeb
push eax
mov dword [esi], vtable.NDialog.0
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, eax
je 0x449957
mov ecx, dword [esi + 4]
push 0
push 0xffffffffffffffeb
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
lea ecx, [esi + 0xc]
pop esi
jmp 0x44a550
jmp fcn.0044a400

Function at 0x44a400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov eax, dword [ebx + 4]
test eax, eax
je 0x44a543
mov ecx, dword [ebx + 0x10]
push ebp
push esi
push edi
push 1
push ecx
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
movzx edx, word [ebx + 8]
mov eax, dword [ebx]
push 5
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
push ebp
call fcn.0044a160
xor esi, esi
push ebp
mov edi, eax
mov dword [esp + 0x18], esi
call fcn.0044a140
add esp, 8
cmp word [eax], si
jbe 0x44a520
lea ebx, [ebx]
cmp dword [esp + 0x10], 0
jne 0x44a47f
mov edx, dword [ebx + 4]
push 5
push edx
jmp 0x44a482
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x44a520
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, dword [edi + 0x14]
je 0x44a4af
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x44a492
jmp 0x44a520
test esi, esi
je 0x44a520
mov eax, dword [ebx + 0x10]
push 1
push eax
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
cmp word [edi + 0x18], 0xffff
lea eax, [edi + 0x18]
jne 0x44a4d2
add eax, 4
jmp 0x44a4dd
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44a4d2
cmp word [eax], 0xffff
jne 0x44a4f0
add eax, 4
jmp 0x44a4fb
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x44a4f0
movzx ecx, word [eax]
add dword [esp + 0x10], 1
lea edi, [ecx + eax + 5]
push ebp
and edi, 0xfffffffc
call fcn.0044a140
movzx edx, word [eax]
add esp, 4
cmp dword [esp + 0x10], edx
jl 0x44a470
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebx + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
xor eax, eax
pop esi
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
pop ebp
pop ebx
add esp, 8
ret
Function at 0x44b607
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a2e7c]
jne 0x44b611
repz ret
jmp fcn.004550f9
Function at 0x451a05
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x451a42
cmp dword [ebp + 0x14], edi
je 0x451a42
cmp ecx, edi
jne 0x451a49
call fcn.00455398
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00450dc0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x451a5d
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x451a7e
cmp ebx, 0xffffffff
je 0x451a6d
push ebx
push edi
push ecx
call fcn.0044c830
add esp, 0xc
cmp esi, edi
je 0x451a2a
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x451a2a
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x451a9a
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x451aa1
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x451b92
test word [esi + 0xc], 0x10c
je 0x451af5
mov eax, dword [esi + 4]
test eax, eax
je 0x451af5
jl 0x451bf3
cmp ebx, eax
mov edi, ebx
jb 0x451ac6
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x451b9a
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0044bcad
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x451b8a
cmp ebx, dword [ebp - 0xc]
jb 0x451b62
cmp dword [ebp - 0xc], 0
je 0x451b1f
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x451b14
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x451b1b
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x451b2a
mov eax, closesocket
cmp ebx, eax
ja 0x451b2a
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x451bc6
push eax
push dword [ebp - 8]
push esi
call fcn.00462aec
pop ecx
push eax
call fcn.0044e296
add esp, 0xc
test eax, eax
je 0x451c05
cmp eax, 0xffffffff
je 0x451bf3
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x451b8a
push esi
call fcn.00467c55
cmp eax, 0xffffffff
pop ecx
je 0x451bf7
cmp dword [ebp - 4], 0
je 0x451bc6
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x451aa9
mov eax, dword [ebp + 0x14]
jmp 0x451a44
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x451bb1
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0044c830
add esp, 0xc
call fcn.00455398
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x451a3a
cmp dword [ebp + 0xc], 0xffffffff
je 0x451bdc
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0044c830
add esp, 0xc
call fcn.00455398
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x451a3a
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x451a44
or dword [esi + 0xc], 0x10
jmp 0x451bf7
Function at 0x459fbd
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4a31f0]
je 0x459fd8
inc edi
cmp edi, 0x17
jb 0x459fc9
cmp edi, 0x17
jae 0x45a158
push ebp
push 3
call fcn.004734bc
cmp eax, 1
pop ecx
je 0x45a124
push 3
call fcn.004734bc
test eax, eax
pop ecx
jne 0x45a00c
cmp dword [0x4a3010], 1
je 0x45a124
cmp ebx, 0xfc
je 0x45a157
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4a6038
push ebp
call fcn.0044ca7b
add esp, 0xc
test eax, eax
je 0x45a042
push esi
push esi
push esi
push esi
push esi
call fcn.00450c8c
add esp, 0x14
push 0x104
mov esi, 0x4a6051
push esi
push 0
mov byte [0x4a6155], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x45a086
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0044ca7b
add esp, 0xc
test eax, eax
je 0x45a086
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00450c8c
add esp, 0x14
push esi
call fcn.00452bc0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x45a0cb
push esi
call fcn.00452bc0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4a634c
push 0x4928b4
sub ecx, eax
push ecx
push eax
call fcn.0044cae0
add esp, 0x14
test eax, eax
je 0x45a0cb
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00450c8c
add esp, 0x14
jmp 0x45a0cd
xor esi, esi
push 0x4928b0
push ebx
push ebp
call fcn.0044d289
add esp, 0xc
test eax, eax
je 0x45a0ed
push esi
push esi
push esi
push esi
push esi
call fcn.00450c8c
add esp, 0x14
push dword [edi*8 + 0x4a31f4]
push ebx
push ebp
call fcn.0044d289
add esp, 0xc
test eax, eax
je 0x45a10f
push esi
push esi
push esi
push esi
push esi
call fcn.00450c8c
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004732ff
add esp, 0xc
jmp 0x45a157
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x45a157
cmp ebp, 0xffffffff
je 0x45a157
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4a31f4]
push dword [esi]
call fcn.00452bc0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4732ff
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0045937b
xor ebx, ebx
cmp dword [0x4a6674], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4733d5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4734b5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x49483c
push edi
call esi
cmp eax, ebx
je 0x4734b5
push eax
call fcn.0045930d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4a6674], eax
call esi
push eax
call fcn.0045930d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4a6678], eax
call esi
push eax
call fcn.0045930d
mov dword [0x4a667c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0044c464
test eax, eax
pop ecx
pop ecx
je 0x4733a3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00450c8c
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4733d5
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0045930d
cmp eax, ebx
pop ecx
mov dword [0x4a6684], eax
je 0x4733d5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045930d
pop ecx
mov dword [0x4a6680], eax
mov eax, dword [0x4a6680]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x47345a
cmp dword [0x4a6684], ecx
je 0x47345a
push eax
call fcn.00459384
push dword [0x4a6684]
mov esi, eax
call fcn.00459384
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x47345a
cmp edi, ebx
je 0x47345a
call esi
cmp eax, ebx
je 0x473427
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x473427
test byte [ebp - 0x18], 1
jne 0x47345a
lea eax, [ebp - 0x10]
push eax
call fcn.0044c513
test eax, eax
pop ecx
je 0x473442
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00450c8c
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x473451
or dword [ebp + 0x10], 0x200000
jmp 0x473495
or dword [ebp + 0x10], 0x40000
jmp 0x473495
mov eax, dword [0x4a6678]
cmp eax, dword [ebp - 8]
je 0x473495
push eax
call fcn.00459384
cmp eax, ebx
pop ecx
je 0x473495
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x473495
mov eax, dword [0x4a667c]
cmp eax, dword [ebp - 8]
je 0x473495
push eax
call fcn.00459384
cmp eax, ebx
pop ecx
je 0x473495
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a6674]
call fcn.00459384
cmp eax, ebx
pop ecx
je 0x4734b5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4734b7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401207
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x41a1e8]
xor edx, edx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [0x41a1ec]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0xc], edx
mov esi, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x34], 0x9e3779b9
mov dword [ebp - 0x18], eax
call fcn.00401200
add dword [ebp - 0xc], 0x23f
cmp dword [0xc30b84], 0x14
jne 0x401263
push edx
lea eax, [ebp - 0x454]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
mov ecx, dword [0x41a1f0]
mov edx, dword [0x41a1f4]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov eax, esi
mov dword [ebp - 8], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0xc30b84], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0xc30b80]
cmove eax, dword [ebp - 8]
and dword [ebp - 8], 0
cmp dword [0xc30b84], 0x3eb
mov dword [0xc30b80], eax
mov eax, dword [0xc30ad8]
cmove eax, dword [ebp - 8]
mov dword [0xc30ad8], eax
mov eax, dword [ebp - 0xc]
add eax, esi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add dword [ebp - 0x10], edx
and dword [ebp - 8], 0
mov dword [0xc30b7c], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
xor ecx, eax
cmp dword [0xc30b84], 0x213
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
jne 0x401359
lea eax, [ebp - 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
lea eax, [ebp - 0x854]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x38]
push eax
push 0
lea eax, [ebp - 0x54]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
mov ecx, dword [ebp - 0x10]
sub ebx, ecx
mov eax, ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 0xc]
shr edx, cl
add eax, ebx
mov ecx, dword [ebp - 4]
add edx, edi
xor ecx, eax
mov dword [ebp - 0x10], edx
cmp dword [0xc30b84], 0xb03
mov dword [ebp - 4], ecx
jne 0x40139a
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
xor ecx, edx
sub esi, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x34]
sub dword [ebp - 0xc], eax
dec dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
jne 0x40127f
mov edi, dword [ebp - 0x24]
mov dword [edi], esi
mov dword [edi + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bb07
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419c10]
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.00406dd7
mov dword [ebp - 0x14], eax
cmp dword [0x81794c], esi
jne 0x40bbfa
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40bb87
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40bcda
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40bcda
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40bcda
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x81794c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x817950], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x817954], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x81795c], eax
test eax, eax
je 0x40bbf7
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x817958], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40bc1f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40bc12
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40bc34
push 4
pop eax
jmp 0x40bcdc
cmp dword [ebp - 0x14], esi
je 0x40bc34
push dword [0x81794c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40bc19
mov eax, dword [0x817958]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40bc92
cmp dword [0x81795c], edi
je 0x40bc92
push eax
call ebx
push dword [0x81795c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40bc92
test eax, eax
je 0x40bc92
call ecx
test eax, eax
je 0x40bc87
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 0x40bc87
test byte [ebp - 8], 1
jne 0x40bc92
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40bcc2
mov eax, dword [0x817950]
cmp eax, edi
je 0x40bcbf
push eax
call ebx
test eax, eax
je 0x40bcbf
call eax
mov esi, eax
test esi, esi
je 0x40bcbf
mov eax, dword [0x817954]
cmp eax, edi
je 0x40bcbf
push eax
call ebx
test eax, eax
je 0x40bcbf
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x81794c]
call ebx
test eax, eax
je 0x40bcda
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40bcdc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040394d
mov esp, ebp
pop ebp
ret