joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432421
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x47c010]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x43246c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004325bc
test al, al
jne 0x432466
sub edx, 2
cmp edx, edi
jne 0x43244c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x43248e
lea eax, [edi + 2]
cmp edx, eax
je 0x43248e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0043236d
add esp, 0x10
jmp 0x432588
push esi
lea ecx, [ebp - 0x255]
call fcn.004325bc
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4324d1
push dword [ebp - 0x25c]
jmp 0x43247e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x43250e
cmp word [ebp - 0x226], 0
je 0x43252f
cmp word [ebp - 0x226], ax
jne 0x43250e
cmp word [ebp - 0x224], 0
je 0x43252f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0043236d
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x43257b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4324e8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x432563
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x432588
push 0x43219d
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00428d90
add esp, 0x10
jmp 0x432558
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b4b6
leave
ret

Function at 0x4326c2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4326d3
pop esi
ret
push ebx
push edi
push esi
call fcn.0043268b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042e602
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4326fb
push ebx
push esi
push edi
call fcn.0041c6f0
add esp, 0xc
push 0
call fcn.0042e5c8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x432acb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00432710
Function at 0x438940
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43896d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43896d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x43ee61
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x101c
call fcn.0041bda0
cmp dword [esp + 0x1020], 0
push ebx
push ebp
push esi
push edi
je 0x43eec0
mov esi, 0x4b40d0
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4b90f4]
jmp 0x43eeb5
push dword [esp + 0x1030]
push ebx
call fcn.0042aa79
pop ecx
pop ecx
test eax, eax
jne 0x43eeaf
lea ecx, [ebx + 0x894]
call fcn.00401b89
test al, al
je 0x43eecf
mov ebx, dword [ebx + 0x18e0]
test ebx, ebx
jne 0x43ee8d
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x101c
ret 8
lea eax, [esp + 0x28]
mov dword [esp + 0x18], 0x46cfac
mov ecx, 0x800
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x24], ecx
cmp byte [ebx + 0x80], al
mov dword [esp + 0x20], eax
mov word [esp + 0x28], ax
lea eax, [ecx - 1]
je 0x43ef15
mov edi, dword [ebx + 0x89c]
cmp edi, ecx
cmovae edi, eax
lea esi, [edi + edi]
push esi
push dword [ebx + 0x898]
jmp 0x43ef2a
mov edi, dword [ebx + 0x10ac]
cmp edi, ecx
cmovae edi, eax
lea esi, [edi + edi]
push esi
push dword [ebx + 0x10a8]
lea eax, [esp + 0x30]
push eax
call fcn.0041c6f0
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov dword [esp + 0x2c], edi
add esp, 0xc
mov word [esi + eax], cx
xor eax, eax
mov byte [ebx + 0x80], al
mov ebx, dword [esp + 0x1034]
test ebx, ebx
je 0x43f00c
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x43ef87
mov edx, dword [esp + 0x20]
test edx, edx
je 0x43ef8b
push 0x46cfe8
push ecx
call fcn.0041bf6e
pop ecx
pop ecx
mov ecx, dword [esp + 0x1c]
test eax, eax
je 0x43ef87
sub eax, ecx
sar eax, 1
jns 0x43efbe
mov edx, dword [esp + 0x20]
test ecx, ecx
je 0x43f00c
lea eax, [edx + 0xc]
cmp eax, dword [esp + 0x24]
jae 0x43efc2
lea edi, [ecx + edx*2]
mov esi, str._firstfalse
push 6
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add ecx, 0xc
mov dword [esp + 0x20], ecx
xor edx, edx
mov word [eax + ecx*2], dx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
test ecx, ecx
je 0x43f00c
mov esi, ebx
xor ebp, ebp
lea edi, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bp
jne 0x43efcd
sub esi, edi
sar esi, 1
je 0x43f00c
lea eax, [esi + edx]
cmp eax, dword [esp + 0x24]
jae 0x43f00c
lea eax, [esi + esi]
push eax
lea eax, [ecx + edx*2]
push ebx
push eax
call fcn.0041c6f0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov eax, dword [esp + 0x1c]
add ecx, esi
xor edx, edx
mov dword [esp + 0x20], ecx
mov word [eax + ecx*2], dx
push 0x4b40d0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 1
xor eax, eax
push eax
push eax
push dword [esp + 0x28]
push 0x46cfdc
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov al, 1
jmp 0x43eec2
Function at 0x443c23
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x380
push esi
mov esi, dword [esp + 0x38c]
test esi, esi
jne 0x443c3c
xor al, al
jmp 0x443e65
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ebp, 0xff
push eax
push str.utm_codepage_u
push ebp
push esi
call fcn.0040521c
lea ebx, [ebp + 1]
push ebx
lea eax, [esp + 0x24]
push 0
push eax
call fcn.0041cc70
push ebx
push 0xfe
lea eax, [esp + 0x34]
mov edx, str.SOFTWAREMetaQuotes_Software
push eax
push 0x46d090
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00403d81
add esp, 0x2c
mov edi, 0x2710
test al, al
je 0x443caa
lea eax, [esp + 0x10]
push eax
call fcn.0042a724
pop ecx
test edx, edx
jg 0x443ce5
jl 0x443caa
cmp eax, edi
jae 0x443ce5
push ebx
push 0xfe
lea eax, [esp + 0x18]
mov edx, str.SOFTWAREMetaQuotes_Software
push eax
push 0x46d090
mov ecx, closesocket
call fcn.00403d81
add esp, 0x10
test al, al
je 0x443cec
lea eax, [esp + 0x10]
push eax
call fcn.0042a724
pop ecx
test edx, edx
jg 0x443ce5
jl 0x443cec
cmp eax, edi
jb 0x443cec
mov ax, word [esp + 0x10]
jmp 0x443cf3
xor eax, eax
mov word [esp + 0x10], ax
test ax, ax
je 0x443d3d
push 0
push 0
push 0x7f
lea eax, [esp + 0x11c]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x24]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x443d3d
push str.utm_uniq
mov edx, ebp
mov ecx, esi
call fcn.0040733a
lea eax, [esp + 0x110]
mov edx, ebp
push eax
mov ecx, esi
call fcn.0040733a
cmp byte [0x4b9f70], 0
je 0x443d62
push str.utm_link
mov edx, ebp
mov ecx, esi
call fcn.0040733a
push 0x4b9f70
mov edx, ebp
mov ecx, esi
call fcn.0040733a
push ebp
lea eax, [esp + 0x194]
push eax
push str.https:__www.mql5.com
call fcn.00443b43
test al, al
je 0x443e49
push 0x4b9590
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4b9ffc], 0
je 0x443e3e
mov edi, dword [0x4b9ff8]
jmp 0x443e36
lea eax, [esp + 0x190]
push eax
push edi
call fcn.00443a6d
test al, al
je 0x443e29
lea ebp, [edi + 0x80]
mov edx, str.utm_campaign
xor ecx, ecx
movzx eax, byte [ecx + ebp]
cmp al, byte [edx + ecx]
jne 0x443dd0
inc ecx
cmp ecx, 0xd
jne 0x443dbf
jmp 0x443de6
mov edx, str.utm_source
xor ecx, ecx
movzx eax, byte [ecx + ebp]
cmp al, byte [edx + ecx]
jne 0x443e29
inc ecx
cmp ecx, 0xb
jne 0x443dd7
lea ebx, [edi + 0xc0]
cmp byte [ebx], 0
je 0x443e29
push 0x46d168
mov edx, 0xff
mov ecx, esi
call fcn.0040733a
push ebp
mov ebp, 0xff
mov ecx, esi
mov edx, ebp
call fcn.0040733a
push 0x46d16c
mov edx, ebp
mov ecx, esi
call fcn.0040733a
push ebx
mov edx, ebp
mov ecx, esi
call fcn.0040733a
push edi
mov ecx, 0x4b9ff0
call fcn.004072a7
mov edi, eax
test edi, edi
jne 0x443da0
push 0x4b9590
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop ebx
jmp 0x443e5d
cmp al, 0x20
jne 0x443e57
mov byte [esi], 0x2b
jmp 0x443e5c
jge 0x443e5c
mov byte [esi], 0x5f
inc esi
mov al, byte [esi]
test al, al
jne 0x443e4e
inc al
pop esi
add esp, 0x380
ret 0xc
Function at 0x444320
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
test esi, esi
je 0x444414
xor ebx, ebx
cmp word [esi], bx
je 0x444414
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
push edi
push ebp
push esi
call fcn.00444214
test al, al
je 0x444359
mov al, 1
jmp 0x444416
lea eax, [esp + 0x34]
mov dword [esp + 0x10], ebx
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x38], ebx
push eax
xorps xmm0, xmm0
mov dword [esp + 0x1c], ebx
push ebx
push esi
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 6
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
jne 0x444414
mov edx, dword [esp + 0x34]
test edx, edx
je 0x444414
mov eax, edx
movzx ecx, di
cmp dword [eax + 4], ecx
je 0x4443b5
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x4443a7
jmp 0x444409
mov ecx, dword [eax + 0x18]
push 0x17
pop eax
cmp di, ax
jne 0x4443f6
lea eax, [ebp + 8]
mov edi, eax
mov dword [esp + 0x3c], eax
lea esi, [ecx + 8]
push 0x17
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov word [ebp], cx
mov esi, 0x493440
mov ecx, ebx
mov eax, dword [eax + ecx*4]
cmp eax, dword [esi + ecx*4]
jne 0x4443f2
mov eax, dword [esp + 0x3c]
inc ecx
cmp ecx, 4
jne 0x4443de
jmp 0x444409
mov bl, 1
jmp 0x444409
mov eax, dword [ecx + 4]
mov dword [ebp + 4], eax
push 2
pop eax
mov word [ebp], ax
cmp dword [ecx + 4], ebx
setne bl
push edx
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov al, bl
jmp 0x444416
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc

Function at 0x44509f
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
lea edx, [ebp - 0x100]
call fcn.0044650f
mov edx, 0x46f1ec
pop ecx
test al, al
je 0x4450df
lea esi, [ebp - 0x100]
xor ecx, ecx
movzx eax, byte [esi + ecx]
cmp al, byte [edx + ecx]
jne 0x4450f2
inc ecx
cmp ecx, 3
jne 0x4450d0
push ecx
push edx
push ecx
push 0x3f
pop edx
mov ecx, 0x4b9f30
call fcn.00440705
pop esi
leave
ret
lea eax, [ebp - 0x100]
push eax
push str._s_en
push 0x3f
push 0x4b9f30
call fcn.004072d7
add esp, 0x10
jmp 0x4450ef
Function at 0x44520c
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
push edi
mov edi, 0x4b9590
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, esi
mov dword [0x4b9ab0], eax
cmp byte [0x4ba020], 0
jne 0x445274
push 0x190
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.0041cc70
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x44526d
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x4453e3
mov byte [0x4ba020], 1
mov ebx, 0x4b96a0
push ebx
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, 0x103
mov ebp, 0x4b98a8
push ebx
mov edx, esi
mov ecx, ebp
call fcn.00403df9
push ebx
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.00403df9
lea eax, [esp + 0x14]
mov edx, esi
push eax
lea ecx, [esp + 0x1c]
call fcn.0043c86d
test eax, eax
js 0x4452d4
mov eax, dword [esp + 0x14]
mov edx, esi
push ecx
push 0x46ffc0
push ecx
lea ecx, [esp + 0x24]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.0043c7ab
lea ecx, [esp + 0x18]
call fcn.0040948d
lea eax, [esp + 0x14]
mov edx, esi
push eax
lea ecx, [esp + 0x1c]
call fcn.0043c86d
test eax, eax
js 0x44530c
mov eax, dword [esp + 0x14]
mov edx, esi
push ecx
push str.Terminal
push ecx
lea ecx, [esp + 0x24]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.0043c7ab
lea ecx, [esp + 0x18]
call fcn.0040948d
lea eax, [esp + 0x14]
mov edx, esi
push eax
lea ecx, [esp + 0x1c]
call fcn.0043c86d
test eax, eax
js 0x445344
mov eax, dword [esp + 0x14]
mov edx, esi
push ecx
push str.Community
push ecx
lea ecx, [esp + 0x24]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.0043c7ab
lea ecx, [esp + 0x18]
call fcn.0040948d
push str.MetaQuotesTerminalCommunitydns.dat
mov edx, esi
mov ecx, ebx
call fcn.00403b99
push str.MetaQuotesTerminalCommunitycookies.dat
mov edx, esi
mov ecx, ebp
call fcn.00403b99
call fcn.0044509f
call fcn.00445021
call fcn.00444bb1
call fcn.00444aaf
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push str..mql5.com
call fcn.00444758
push str..mql5.net
call fcn.00444758
push str..finteza.com
call fcn.00444758
push str..metaquotes.net
call fcn.00444758
push str..metatrader.com
call fcn.00444758
call fcn.00444fae
test al, al
je 0x4453e1
mov esi, 0x4ba014
mov ecx, esi
call fcn.00403b5c
test al, al
jne 0x4453e1
push 0x400000
push edi
push 0x4439c7
mov ecx, esi
call fcn.00403afb
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 0xc
Function at 0x44593c
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
test esi, esi
je 0x445a93
xor ebp, ebp
cmp word [esi], bp
je 0x445a93
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x445a93
push dword [esp + 0x40]
lea eax, [esp + 0x40]
push eax
push esi
call fcn.00445e1d
test al, al
je 0x445a93
lea eax, [esp + 0x40]
mov dword [esp + 0x10], ebp
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x44], ebp
push eax
xorps xmm0, xmm0
mov dword [esp + 0x1c], ebp
push ebp
mov edi, ebp
movlpd qword [esp + 0x2c], xmm0
push esi
mov dword [esp + 0x48], edi
movlpd qword [esp + 0x38], xmm0
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 6
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
jne 0x445a14
mov ebp, dword [esp + 0x40]
test ebp, ebp
je 0x445a14
push 0x17
pop eax
lea edx, [ebx + 8]
push 2
mov dword [esp + 0x48], edx
pop esi
cmp dword [ebp + 4], eax
jne 0x445a53
mov esi, dword [ebp + 0x18]
add esi, 8
xor ecx, ecx
mov eax, dword [esi + ecx*4]
mov edi, 0x493450
cmp eax, dword [edi + ecx*4]
mov edi, dword [esp + 0x38]
jne 0x445a18
inc ecx
cmp ecx, 4
jne 0x4459e6
push 2
pop esi
push 0x17
pop eax
mov ebp, dword [ebp + 0x1c]
test ebp, ebp
jne 0x4459d9
push dword [esp + 0x40]
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov eax, edi
jmp 0x445a95
cmp edi, 0x10
jge 0x4459fd
push dword [esp + 0x3c]
mov edi, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x44]
inc edi
push 0x17
mov word [ebx + 2], ax
pop eax
mov word [ebx], ax
add ebx, 0x1c
add edx, 0x1c
mov dword [esp + 0x38], edi
push 2
mov dword [esp + 0x48], edx
pop esi
jmp 0x445a03
cmp dword [ebp + 4], esi
jne 0x445a03
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
test eax, eax
je 0x445a00
cmp edi, 0x10
jge 0x445a00
push dword [esp + 0x3c]
mov dword [ebx + 4], eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esp + 0x44]
inc edi
mov word [ebx + 2], ax
mov word [ebx], si
add ebx, 0x1c
add edx, 0x1c
mov dword [esp + 0x38], edi
mov dword [esp + 0x44], edx
jmp 0x445a00
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x18
Function at 0x4483a0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x894
push ebx
push ebp
push esi
push edi
push 0x428
lea eax, [esp + 0x47c]
mov ebx, ecx
push 0
push eax
call fcn.0041cc70
add esp, 0xc
mov dword [esp + 0x10], 0x4679a8
lea eax, [esp + 0x58]
or esi, 0xffffffff
lea ecx, [esp + 0x48]
mov dword [esp + 0x14], esi
push dword [esp + 0x8ac]
push 0x104
push eax
call fcn.0040323b
mov edi, dword [esp + 0x8a8]
mov dword [esp + 0x48], 0x46cfd4
test edi, edi
je 0x4485de
cmp dword [esp + 0x8ac], 0
je 0x4485de
lea eax, [esp + 0x24]
xor ebp, ebp
push eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4485de
push edi
push 0x104
lea eax, [esp + 0x278]
push eax
lea ecx, [esp + 0x26c]
call fcn.0040323b
mov dword [esp + 0x260], 0x46cfd4
cmp dword [esp + 0x268], ebp
jbe 0x4485de
push ecx
push 3
push 1
push closesocket
push dword [esp + 0x274]
lea ecx, [esp + 0x24]
call fcn.00401442
test al, al
je 0x4485da
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov esi, dword [esp + 0x14]
xorps xmm0, xmm0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x488], ebp
mov dword [esp + 0x490], eax
mov dword [esp + 0x48c], ebp
movlpd qword [esp + 0x18], xmm0
cmp esi, 0xffffffff
je 0x4484ca
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4484d3
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x898], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x89c], ecx
test edx, edx
je 0x44851a
test eax, eax
je 0x448536
mov ecx, ebp
test edx, edx
je 0x44851a
cmp word [eax + ecx*2], 0x5c
jne 0x448515
push 0x2f
pop edx
mov word [eax + ecx*2], dx
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
inc ecx
cmp ecx, edx
jb 0x4484ff
test eax, eax
je 0x448536
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x49c]
push 0x200
push eax
call fcn.0042939a
add esp, 0x10
lea eax, [esp + 0x478]
mov ecx, ebx
push eax
call fcn.00447cda
test al, al
je 0x4485de
cmp dword [ebx + 0x2b0], ebp
jne 0x448570
push 0x45f8cc
push 0x400080
call fcn.0041adbd
mov dword [ebx + 0x2b0], eax
pop ecx
pop ecx
test eax, eax
je 0x4485de
mov ebp, dword [ebx + 0x2b0]
cmp esi, 0xffffffff
je 0x4485cf
test ebp, ebp
je 0x4485cf
xor edi, edi
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push 0
push eax
mov eax, 0x400000
sub eax, edi
push eax
lea eax, [edi + ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4485b7
cmp dword [esp + 0x10], 0
je 0x4485b7
add edi, dword [esp + 0x10]
cmp edi, 0x400000
jb 0x448581
test edi, edi
je 0x4485cf
push edi
push dword [ebx + 0x2b0]
mov ecx, ebx
call fcn.00447c17
test al, al
jne 0x448570
jmp 0x4485de
mov ecx, ebx
call fcn.004478ae
mov bl, al
jmp 0x4485e0
mov esi, dword [esp + 0x14]
xor bl, bl
and dword [esp + 0x4c], 0
and dword [esp + 0x50], 0
mov dword [esp + 0x48], 0x4654d8
cmp esi, 0xffffffff
je 0x4485fe
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x894
ret 8
Function at 0x44908a
Capabilities:
Create process on windows
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
lea eax, [ebp - 0x244]
push ebx
push edi
mov ebx, 0x208
xor edi, edi
push ebx
push edi
push eax
call fcn.0041cc70
add esp, 0xc
lea eax, [ebp - 0x244]
push eax
push edi
push edi
push 0x26
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x244]
call fcn.0040f639
test al, al
jne 0x449141
call fcn.004096bb
test al, al
je 0x449141
call fcn.0040965e
test al, al
jne 0x449141
push 0x3c
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.0041cc70
push ebx
lea eax, [ebp - 0x44c]
push edi
push eax
call fcn.0041cc70
add esp, 0x18
mov dword [ebp - 0x3c], 0x3c
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x4679ec
push 0x103
push eax
push edi
mov dword [ebp - 0x30], 0x471130
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
neg eax
sbb al, al
inc al
jmp 0x449143
mov al, 1
pop edi
pop ebx
leave
ret
Function at 0x44ab67
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, ecx
call fcn.0044ab2d
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 0x118], eax
cmp eax, 0x390
jae 0x44ab95
and dword [esi + 0x118], 0
xor al, al
jmp 0x44abd5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esi + 0x110], eax
test eax, eax
je 0x44ab8a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esi + 0x114], eax
test eax, eax
jne 0x44abd3
push dword [esi + 0x110]
call dword [sym.imp.KERNEL32.dll_FreeResource]
and dword [esi + 0x110], 0
jmp 0x44ab8a
mov al, 1
pop esi
ret 8

Function at 0x44bcb9
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Import public key
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
push esi
push edi
mov esi, ecx
je 0x44bd28
cmp dword [ebp + 0xc], 0
je 0x44bd28
cmp dword [ebp + 0x10], 0
je 0x44bd28
cmp dword [ebp + 0x14], 0
je 0x44bd28
mov eax, dword [esi]
test eax, eax
je 0x44bd28
xor edi, edi
cmp dword [eax + 0xc], edi
je 0x44bd28
push 0xf0000000
push 1
push edi
push edi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x44bd28
lea eax, [ebp - 8]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
add eax, 0x38
push eax
push 0x10001
push dword [ebp - 4]
call dword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
test eax, eax
jne 0x44bd30
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
pop edi
pop esi
leave
ret 0x10
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x8004
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x44bd53
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x44bd1e
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x44bd7b
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x44bd1e
push edi
push edi
push dword [ebp - 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
push dword [ebp - 8]
test eax, eax
je 0x44bd6a
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
jmp 0x44bd2a