joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a23e
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
push edi
push dword [esi + 0xf4]
mov dword [esi], vtable.CWizardSheet.0
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esi + 0x143], 0
je 0x41a265
call fcn.00417add
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x41a272
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi + 0x11c]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DestroyWindow]
test eax, eax
je 0x41a28c
push eax
call ebx
mov dword [esi + 0x11c], edi
mov eax, dword [esi + 0x120]
test eax, eax
je 0x41a29f
push eax
call ebx
mov dword [esi + 0x120], edi
mov ecx, dword [esi + 0x128]
test ecx, ecx
je 0x41a2af
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x12c]
test ecx, ecx
je 0x41a2bf
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi + 0x124]
test eax, eax
je 0x41a2d2
push eax
call ebx
mov dword [esi + 0x124], edi
mov ecx, dword [esi + 0x130]
test ecx, ecx
je 0x41a2e8
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x130], edi
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41a2f5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
cmp dword [esi + 0xd8], edi
jle 0x41a31b
lea ebx, [esi + 0xb0]
mov ecx, dword [ebx]
test ecx, ecx
je 0x41a30f
mov eax, dword [ecx]
push 1
call dword [eax]
inc edi
add ebx, 4
cmp edi, dword [esi + 0xd8]
jl 0x41a303
cmp byte [esi + 0x144], 0
pop ebx
je 0x41a34c
push str.destroy_monitor
push dword [esi + 0x134]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esi + 0x138]
push ecx
call eax
pop ecx
push dword [esi + 0x134]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
ret
Function at 0x41a3a4
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x14], esi
jbe 0x41a427
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x1c]
sub ecx, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
xor ebx, ebx
cmp dword [str.AcceptEULA], ebx
je 0x41a409
mov eax, 0x4a6da4
push dword [eax]
push dword [ecx + edi]
call fcn.0043f921
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
test eax, eax
je 0x41a3fb
inc ebx
imul eax, ebx, 0xc
lea eax, [eax + 0x4a6da4]
cmp dword [eax], 0
jne 0x41a3d7
jmp 0x41a406
imul eax, ebx, 0xc
mov eax, dword [eax + 0x4a6da0]
mov dword [edi], eax
mov edx, dword [ebp - 4]
imul eax, ebx, 0xc
cmp dword [eax + 0x4a6da4], 0
jne 0x41a41d
or dword [edi], 0xffffffff
mov esi, 0x80020006
add edi, 4
dec edx
mov dword [ebp - 4], edx
jne 0x41a3c8
pop edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x41a453
cmp esi, 0x80020006
jne 0x41a49c
push dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x10]
push dword [ebp + 0x18]
mov eax, dword [ecx]
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0xc]
push ecx
call dword [eax + 0x14]
mov esi, eax
jmp 0x41a456
mov ebx, dword [ebp + 0x10]
cmp esi, 0x80020006
jne 0x41a49c
push 0x103
lea eax, [ebp - 0x10b]
mov byte [ebp - 0x10c], 0
push 0
push eax
call fcn.00443c10
push dword [ebx]
lea eax, [ebp - 0x10c]
push str.Failed_to_resolve__S_as_a_window.external_method_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x41dcf3
Capabilities:
Access peb ldr_data
Get kernel32 base address
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47480e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0040e0f6
mov esi, eax
xor eax, eax
push 0x206
push eax
mov word [esp + 0x70], ax
lea eax, [esp + 0x72]
push eax
call fcn.00443c10
add esp, 0xc
mov eax, 0x480b28
cmp dword [esi], 0
cmovne eax, dword [esi]
push eax
lea eax, [esp + 0x6c]
push 0x483e28
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
and dword [esp + 0x3c], 0
lea edi, [esp + 0x40]
add esp, 0xc
xor eax, eax
push 9
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0xf0]
push 0x69
push eax
mov dword [esp + 0x3c], 0x419e6f
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
xor edi, edi
mov dword [esp + 0x48], eax
push edi
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x48], eax
mov esi, str.ChatWindow
lea eax, [esp + 0x30]
mov dword [esp + 0x54], esi
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
lea eax, [esp + 0x58]
xorps xmm0, xmm0
push eax
push dword [ebx + 0xf4]
movdqu xmmword [esp + 0x60], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
movdqa xmm0, xmmword [0x486450]
lea eax, [esp + 0xc]
push edi
push edi
push eax
movdqu xmmword [esp + 0x18], xmm0
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0xc]
push ebx
push dword [ebx + 0xf0]
push edi
push dword [ebx + 0xf4]
push eax
push ecx
push edi
push edi
push 0xc80000
lea eax, [esp + 0x8c]
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x4c
mov dword [ebx + 0x120], eax
call fcn.0043d6b0
pop ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x27c], edi
test eax, eax
je 0x41de4d
push ecx
push ebx
lea ecx, [esp + 0x14]
push ecx
push dword [ebx + 0x120]
mov ecx, eax
call fcn.0041575d
jmp 0x41de4f
mov eax, edi
or dword [esp + 0x27c], 0xffffffff
mov ecx, eax
mov dword [ebx + 0x12c], eax
call fcn.0040ba54
mov ecx, dword [ebx + 0x12c]
push edi
push 1
mov eax, dword [ecx]
call dword [eax + 0x30]
push dword [ebp + 0xc]
mov ecx, dword [ebx + 0x12c]
push dword [ebp + 8]
call fcn.0040bb4a
mov ecx, dword [ebx + 0x12c]
call fcn.0041591b
lea eax, [esp + 0x1c]
xorps xmm0, xmm0
push eax
push dword [ebx + 0xf4]
movdqu xmmword [esp + 0x24], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x20]
push 1
push edi
push edi
add eax, 0x14
push eax
mov eax, dword [esp + 0x2c]
add eax, 0x14
push eax
push 0xffffffffffffffff
push dword [ebx + 0x120]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [ebx + 0x120]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x274]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41e9d3
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x474837
call fcn.00473e04
sub esp, 0x134
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x10], ecx
xor ebx, ebx
lea ecx, [ebp - 0x1c]
call fcn.0040dacf
and dword [ebp - 4], ebx
mov ecx, eax
call fcn.0040db8d
mov ecx, eax
call fcn.00420d7a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.0040db31
test esi, esi
je 0x41eb4b
and dword [ebp - 0x20], 0
mov edi, str.gcsdk.dll
and dword [ebp - 0x14], 0
inc ebx
mov dword [ebp - 0x30], edi
xor esi, esi
mov dword [ebp - 0x2c], str.gcsdk_core.dll
mov dword [ebp - 0x28], str.rdpwatcher.dll
mov dword [ebp - 0x24], str.wpsapi.dll
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x148]
lea eax, [ecx + 0x1025c]
add eax, esi
push eax
lea eax, [ecx + 0x10258]
add eax, esi
push eax
lea eax, [ecx + 0xd851]
push eax
push edi
call fcn.004121bc
push 0x103
lea eax, [ebp - 0x13f]
mov byte [ebp - 0x140], 0
push 0
push eax
call fcn.00443c10
add esp, 0x1c
lea eax, [ebp - 0x140]
push edi
push dword [ebp + 8]
push str._S_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x41eafc
mov ecx, dword [edi + 0x148]
lea edx, [ebp - 0x34]
push 0
push edx
push dword [ecx + esi + 0x1025c]
push dword [ecx + esi + 0x10258]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x18]
neg eax
sbb eax, eax
and ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esi + 0x10364]
add edx, dword [edi + 0x148]
lea ecx, [ebp - 0x140]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x41eb0e
mov eax, dword [edi + 0x148]
push dword [esi + eax + 0x10258]
add eax, 0xd851
push eax
call fcn.004121f1
mov eax, dword [ebp - 0x14]
add esi, 0x210
inc eax
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
mov edi, dword [ebp + eax*4 - 0x30]
test edi, edi
jne 0x41ea45
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41f093
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov esi, 0x4830dc
mov dword [ebp - 4], edi
push esi
mov dword [edi], ebx
mov dword [edi + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x41f1f0
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x41f1f0
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push ebx
push 3
push ebx
push 2
push ebx
push str..C:
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41f19b
xor eax, eax
push eax
push 0x4000000
push eax
push eax
push eax
push eax
push str..VWIN32
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41f1f0
push 0
lea eax, [ebp - 0x58]
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x2c], eax
xor ecx, ecx
lea eax, [ebp - 0xc]
mov dword [ebp - 0x30], 3
push eax
push 0x1c
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], 0x860
push eax
push 0x1c
inc ecx
mov dword [ebp - 0x24], 0x440d
push eax
push ecx
push ebx
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41f1e9
test byte [ebp - 0x18], 1
jne 0x41f1e9
and dword [edi], 0
and dword [edi + 4], 0
movzx edi, word [ebp - 0x51]
movzx edx, word [ebp - 0x44]
mov ecx, edi
mov esi, dword [ebp - 8]
mov eax, edx
not eax
shl ecx, 2
xor ecx, eax
not edi
mov eax, dword [ebp - 4]
xor ecx, esi
not esi
mov dword [eax], ecx
mov eax, edx
mov ecx, dword [ebp - 4]
shl eax, 2
xor eax, edi
xor eax, esi
mov dword [ecx + 4], eax
jmp 0x41f1e9
xor ecx, ecx
lea eax, [ebp - 4]
push ecx
push eax
push 0x18
lea eax, [ebp - 0x30]
push eax
push ecx
push ecx
push 0x70000
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41f1e9
cmp dword [ebp - 4], 0
jbe 0x41f1e9
mov esi, dword [ebp - 0x1c]
mov ecx, esi
mov edx, dword [ebp - 0x20]
not esi
and dword [edi], 0
mov eax, edx
shl ecx, 2
not eax
xor ecx, eax
shl edx, 2
mov eax, dword [ebp - 8]
xor edx, esi
xor ecx, eax
not eax
xor edx, eax
mov dword [edi], ecx
mov dword [edi + 4], edx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41fad5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x114]
cmp eax, 0xffffffff
je 0x41fb0e
push ebx
xor ebx, ebx
lea ecx, [ebp - 4]
push ebx
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41fb09
cmp dword [ebp - 4], ebx
je 0x41fb09
inc ebx
mov al, bl
pop ebx
jmp 0x41fb38
mov ecx, dword [edi + 4]
cmp ecx, dword [edi + 0x118]
jb 0x41fb1d
xor al, al
jmp 0x41fb38
mov eax, dword [edi]
push esi
mov esi, dword [ebp + 0xc]
add eax, ecx
push esi
push eax
push dword [ebp + 8]
call fcn.00443520
add esp, 0xc
mov al, 1
add dword [edi + 4], esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x41fde0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov eax, 0x474849
call fcn.00473e04
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push esi
push 0x47f554
push 1
push ebx
push 0x47f624
mov dword [esi], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x41fe12
xor al, al
jmp 0x41fea2
push edi
lea eax, [esi + 0x10c]
lea edi, [esi + 4]
push eax
lea ecx, [ebp - 0x10]
mov dword [edi], ebx
call fcn.0041fcbb
mov dword [ebp - 4], ebx
mov edx, dword [eax]
test edx, edx
je 0x41fe34
mov edx, dword [edx]
jmp 0x41fe36
mov edx, ebx
mov eax, dword [esi]
push edi
push ebx
push ebx
mov ecx, dword [eax]
push ebx
push ebx
push ebx
push ebx
push edx
push eax
call dword [ecx + 0xc]
or dword [ebp - 4], 0xffffffff
mov ebx, eax
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x41fe5f
call fcn.0041fd3b
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x41fe61
xor eax, eax
test ebx, ebx
jns 0x41fe6f
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x41fe9b
push eax
push eax
push 3
push 3
push eax
push eax
push 0xa
push dword [edi]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x41fe9f
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
jmp 0x41fea1
mov al, 1
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x42001f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x64
push esi
mov edi, ecx
mov dword [ebp - 4], esi
mov ebx, esi
call dword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
test eax, eax
jne 0x420052
mov eax, dword [ebp - 4]
push eax
mov esi, dword [eax + 0xc]
mov ebx, dword [eax + 0x10]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
jmp 0x42005d
push str.Failed_to_obtain_windows_version
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edx, [edi + 0x10c]
cmp esi, 6
jae 0x420080
mov ecx, str.ROOTSECURITYCENTER
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x42006f
jmp 0x420096
mov ecx, str.ROOTSECURITYCENTER2
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x420087
push ebx
push esi
lea eax, [edi + 8]
push str._lu._lu
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42022d
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
and dword [eax], 0
push edi
push ecx
mov dword [ebp - 4], edx
mov byte [ebx], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x4202ad
cmp word [esi + 8], 2
jne 0x42028f
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0x42028f
mov edi, dword [esi + 0xc]
jmp 0x420289
push dword [eax]
mov edx, dword [ebp + 8]
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
call fcn.004201c4
mov ecx, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x4202a8
lea eax, [ecx + 0x1c]
add edi, 4
mov dword [ebp + 0x14], eax
mov eax, dword [edi]
test eax, eax
jne 0x420265
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.004409a0
add esp, 0x10
xor eax, eax
jmp 0x4202c5
push 8
pop eax
jmp 0x4202c5
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x4202c3
dec eax
je 0x4202d5
dec eax
je 0x4202ce
dec eax
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x2afb
jmp 0x4202c5
mov eax, 0x2afa
jmp 0x4202c5

Function at 0x4208cb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
cmp dword [0x4af9b4], 0
push ebx
push esi
push edi
mov dword [ebp - 0x18], str.getaddrinfo
mov dword [ebp - 0x14], 0x420443
mov dword [ebp - 0x10], str.getnameinfo
mov dword [ebp - 0xc], 0x4206ff
mov dword [ebp - 8], str.freeaddrinfo
mov dword [ebp - 4], fcn.00420405
jne 0x420a2a
push 0x104
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x420a20
lea eax, [ebp - 0x230]
mov ebx, 0x10c
push eax
lea eax, [ebp - 0x128]
push ebx
push eax
call fcn.0043e29a
push str.ws2_32
lea eax, [ebp - 0x128]
push ebx
push eax
call fcn.0043ee0f
add esp, 0x18
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, eax
xor edi, edi
test esi, esi
je 0x42098a
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x420986
push esi
call ebx
mov esi, edi
test esi, esi
jne 0x4209e4
lea eax, [ebp - 0x230]
mov esi, 0x10c
push eax
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0043e29a
push str.wship6
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0043ee0f
add esp, 0x18
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x420a20
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4209e0
push esi
call ebx
mov esi, edi
test esi, esi
je 0x420a20
mov ebx, edi
push dword [ebp + ebx*8 - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + ebx*8 - 0x14], eax
test eax, eax
je 0x420a01
inc ebx
cmp ebx, 3
jl 0x4209e6
jmp 0x420a0a
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, edi
test esi, esi
je 0x420a20
mov eax, dword [ebp + edi - 0x14]
mov dword [edi + 0x4a73c4], eax
add edi, 8
cmp edi, 0x18
jl 0x420a0e
mov dword [0x4af9b4], 1
mov eax, dword [0x4a73c4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420a6c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
lea eax, [ebp - 0x114]
push esi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x420aab
mov eax, 0x4af5b0
jmp 0x420b3b
push ebx
push edi
push esi
call fcn.0043d6b0
pop ecx
mov edi, eax
lea eax, [ebp - 0x114]
push edi
push esi
push dword [ebp - 0x10]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
and dword [ebp - 4], 0
lea eax, [ebp - 8]
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueA]
push eax
lea eax, [ebp - 4]
push eax
push str.VarFileInfoTranslation
push edi
call esi
mov ecx, dword [ebp - 4]
push 0x481da0
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x514]
push str.StringFileInfo_04x_04x_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x514]
push eax
push edi
call esi
mov edx, dword [ebp - 0xc]
mov ebx, 0x4af5b0
mov esi, ebx
sub esi, edx
mov cl, byte [edx]
mov byte [esi + edx], cl
inc edx
test cl, cl
jne 0x420b26
push edi
call fcn.0043d685
pop ecx
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x420d7a
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
lea edx, [ebp - 0x108]
sub edx, ecx
push esi
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x420d8c
xor esi, esi
cmp byte [ebp - 0x108], al
je 0x420dd5
cmp byte [ebp + esi - 0x108], 0x5c
jne 0x420dca
cmp esi, 2
jle 0x420dca
lea ecx, [ebp - 0x108]
mov byte [ebp + esi - 0x108], 0
call fcn.0040a69c
mov byte [ebp + esi - 0x108], 0x5c
inc esi
cmp byte [ebp + esi - 0x108], 0
jne 0x420da0
lea ecx, [ebp - 0x108]
call fcn.0040a69c
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
neg eax
pop esi
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret

Function at 0x420e1b
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x34f]
mov byte [ebp - 0x350], 0
push 0
push eax
mov bl, dl
mov esi, ecx
call fcn.00443c10
add esp, 0xc
lea eax, [ebp - 0x350]
push esi
push str._s.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
and dword [ebp - 0x140], 0
lea eax, [ebp - 0x13c]
add esp, 0xc
push 0x13c
push 0
push eax
call fcn.00443c10
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
jmp 0x420f65
cmp byte [ebp - 0x114], 0x2e
je 0x420f49
test byte [ebp - 0x140], 0x10
je 0x420f02
test bl, bl
je 0x420f02
push 0x103
lea eax, [ebp - 0x247]
mov byte [ebp - 0x248], 0
push 0
push eax
call fcn.00443c10
lea edx, [ebp - 0x248]
add esp, 0xc
mov ecx, esi
sub edx, esi
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x420ed7
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov dl, bl
lea ecx, [ebp - 0x248]
call fcn.00420e1b
push 0x103
lea eax, [ebp - 0x457]
mov byte [ebp - 0x458], 0
push 0
push eax
call fcn.00443c10
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push esi
lea eax, [ebp - 0x458]
push 0x482748
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x420f65
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
or edi, 0xffffffff
cmp edi, 0xffffffff
jne 0x420e96
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425d4a
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push edi
mov edi, ecx
call fcn.00425cf0
xor ebx, ebx
lea eax, [ebp - 0x103]
push 0x103
push ebx
push eax
mov byte [ebp - 0x104], bl
call fcn.00443c10
mov eax, dword [ebp + 8]
add esp, 0xc
dec eax
je 0x425dc9
dec eax
je 0x425dab
dec eax
je 0x425d8d
push 2
pop eax
jmp 0x425e7d
mov ecx, str.TUdTUE9LRVJWMkNSRUFURU1VVEVYUElHR1k
call fcn.00421897
lea edx, [ebp - 0x104]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x425d9f
jmp 0x425de5
mov ecx, str.TUdTUE9LRVJWMkNSRUFURU1VVEVY
call fcn.00421897
lea edx, [ebp - 0x104]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x425dbd
jmp 0x425de5
mov ecx, str.TUdTUE9LRVJWMkNSRUFURU1VVEVYU0I
call fcn.00421897
lea edx, [ebp - 0x104]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x425ddb
push esi
lea eax, [ebp - 0x104]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push eax
mov dword [edi + 0xd14], eax
call esi
test eax, eax
jne 0x425e75
lea ecx, [ebp - 0x104]
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x425e10
mov eax, dword [str._SEM]
mov dword [ecx], eax
mov al, byte [0x484c38]
mov byte [ecx + 4], al
lea eax, [ebp - 0x104]
push eax
push 1
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push ebx
push eax
mov dword [edi + 0xd18], eax
call esi
test eax, eax
je 0x425e79
push dword [edi + 0xd14]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [edi + 0xd14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 0xd18]
mov dword [edi + 0xd14], ebx
call esi
mov dword [edi + 0xd18], ebx
xor eax, eax
jmp 0x425e7c
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4