joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402290
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
xorps xmm0, xmm0
mov dword [ebp - 8], eax
xor esi, esi
movlpd qword [ebp - 0x10], xmm0
mov dword [ebp - 0x10], 0xa
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x11c], 1
push edi
mov edi, edx
test ebx, ebx
jle 0x402308
nop dword [eax + eax]
lea eax, [ebp - 0x10]
push eax
push 0
push 0
lea eax, [ebp - 0x11c]
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x402311
push 0
mov eax, ebx
sub eax, esi
push eax
push edi
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x402311
add esi, eax
add edi, eax
cmp esi, ebx
jl 0x4022d0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402320
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], ecx
push edi
mov edi, edx
test ebx, ebx
jle 0x402353
push 0
mov eax, ebx
sub eax, esi
push eax
push edi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x40235c
mov ecx, dword [ebp - 4]
add esi, eax
add edi, eax
cmp esi, ebx
jl 0x402335
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4036cb
Capabilities:
Parse pe header

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

Function at 0x40d2ec
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x418c38
push 0x418c30
push str.FlsAlloc
push 0x1f
call fcn.0040d208
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d320
push dword [ebp + 8]
mov ecx, esi
call dword [0x4171e0]
call esi
jmp 0x40d326
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d36a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x418c48
push 0x418c40
push str.FlsGetValue
push 0x21
call fcn.0040d208
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d3a1
push dword [ebp + 8]
mov ecx, esi
call dword [0x4171e0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40d3a9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x418c50
push 0x418c48
push str.FlsSetValue
push 0x22
call fcn.0040d208
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d3e3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4171e0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40edca
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40ee67
push ebx
push esi
call fcn.0040ed93
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040ed27
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40ee14
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40ee66
push edi
push eax
call fcn.0040b515
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40ee34
call fcn.0040b4db
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40ee65
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040ed27
add esp, 0x20
test eax, eax
jne 0x40ee53
push edi
call fcn.0040b4db
jmp 0x40ee5b
push ebx
call fcn.0040b4db
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x416650
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41667d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41667d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x557730
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc3000]
push edi
or ebp, 0xffffffff
jmp 0x557752
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x557759
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x557748
mov eax, 1
add ebx, ebx
jne 0x55776b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x557760
jne 0x55777c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x557760
xor ecx, ecx
sub eax, 3
jb 0x557790
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x557802
mov ebp, eax
add ebx, ebx
jne 0x55779b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x5577a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x5577cc
inc ecx
add ebx, ebx
jne 0x5577b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5577ad
jne 0x5577c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5577ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5577ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5577dd
jmp 0x55774e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5577ec
add edi, ecx
jmp 0x55774e
pop esi
mov edi, esi
mov ecx, 0x2e0b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x55780a
cmp byte [edi], 0x15
jne 0x55780a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x55780f
lea edi, [esi + 0x154000]
mov eax, dword [edi]
or eax, eax
je 0x557887
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15ec9c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x15ede8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x55783c
mov ecx, edi
jns 0x55786b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15edf0]
or eax, eax
je 0x557881
mov dword [ebx], eax
add ebx, 4
jmp 0x557859
call dword [esi + 0x15edec]
mov ebp, dword [esi + 0x15edf4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5578bb
sub esp, 0xffffff80
jmp 0x493b33
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x411ed0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd000]
push edi
jmp 0x411eea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x411ef1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x411ee0
mov eax, 1
add ebx, ebx
jne 0x411f03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x411ef8
jne 0x411f14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x411ef8
xor ecx, ecx
sub eax, 3
jb 0x411f28
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x411f9a
mov ebp, eax
add ebx, ebx
jne 0x411f33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x411f40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x411f64
inc ecx
add ebx, ebx
jne 0x411f50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x411f45
jne 0x411f61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x411f45
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x411f84
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x411f75
jmp 0x411ee6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x411f84
add edi, ecx
jmp 0x411ee6
pop esi
lea edi, [esi + 0xf000]
mov eax, dword [edi]
or eax, eax
je 0x411fec
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x14330]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x143ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x411fa1
mov ecx, edi
jns 0x411fd0
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x143f4]
or eax, eax
je 0x411fe6
mov dword [ebx], eax
add ebx, 4
jmp 0x411fbe
call dword [esi + 0x143f0]
mov ebp, dword [esi + 0x143f8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x412020
sub esp, 0xffffff80
jmp 0x403956
Function at 0x4015ce
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1424
call fcn.00420c00
and byte [ebp - 0x24], 0
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x23]
stosd dword es:[edi], eax
and byte [ebp - 0x18], 0
lea esi, [ecx + 0x1c]
stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ecx
mov ecx, esi
stosb byte es:[edi], al
call fcn.00402db3
push dword [esi + 4]
mov ebx, str.Languages
push 1
push str.count
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, dword [ebp - 0xc]
and dword [ebp - 4], 0
test eax, eax
mov dword [edi + 0x5c], eax
jle 0x401681
lea eax, [edi + 0x60]
mov dword [ebp - 8], eax
push dword [ebp - 4]
lea eax, [ebp - 0x24]
push str.key_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, esi
call fcn.00402db3
push dword [esi + 4]
lea eax, [ebp - 0x18]
push 0xa
push eax
lea eax, [ebp - 0x24]
push str.0x0009
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x16]
push eax
call fcn.00419e17
inc dword [ebp - 4]
pop ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 2
mov word [ecx], ax
mov eax, dword [ebp - 4]
cmp eax, dword [edi + 0x5c]
jl 0x40162d
mov ecx, esi
call fcn.00402db3
push dword [esi + 4]
lea eax, [ebp - 0x18]
push 0xa
push eax
push str.0x0009
push str.Default
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x16]
push eax
call fcn.00419e17
and byte [ebp - 0x424], 0
pop ecx
mov word [edi + 0x58], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x423]
rep stosd dword es:[edi], eax
and dword [ebp - 4], 0
mov ecx, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00402db3
push dword [esi + 4]
lea eax, [ebp - 0x424]
mov edi, 0x451a40
push 0x400
push eax
push edi
push str.RequireExactLangMatch
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x424]
lea eax, [ebp - 0x424]
test ecx, ecx
lea ebx, [ebp - 0x424]
je 0x40174a
mov ecx, dword [ebp - 0xc]
add ecx, 0x128
mov dword [ebp - 8], ecx
mov cl, byte [ebx]
test cl, cl
je 0x40174a
cmp cl, 0x2c
je 0x401725
inc ebx
jmp 0x401746
and byte [ebx], 0
add eax, 2
push eax
call fcn.00419e17
test eax, eax
pop ecx
je 0x401743
mov ecx, dword [ebp - 8]
inc dword [ebp - 4]
add dword [ebp - 8], 2
mov word [ecx], ax
inc ebx
mov eax, ebx
test ebx, ebx
jne 0x401717
add eax, 2
push eax
call fcn.00419e17
test eax, eax
pop ecx
je 0x401766
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov word [edx + ecx*2 + 0x128], ax
mov ecx, esi
call fcn.00402db3
push dword [esi + 4]
lea eax, [ebp - 0x1424]
push 0x1000
push eax
push edi
push str.cmdline
push str.Startup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x1424]
push eax
call fcn.0040129d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f57
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push edi
mov ebx, 0xf003f
push eax
push ebx
push 0
mov edi, SysReAllocStringLen
push str..DefaultControl_PaneldesktopResourceLocale
push edi
mov dword [ebp - 0xc], 0xa
call esi
test eax, eax
jne 0x401fac
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x451a40
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402007
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
push 0
push str..DEFAULTControl_PanelInternational
push edi
call esi
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x401fe1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push str.Locale
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp dword [ebp - 8], edi
je 0x401fef
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x402009
cmp dword [ebp - 4], edi
je 0x402001
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, 0x409
jmp 0x402026
xor edi, edi
lea eax, [ebp - 0x18]
push eax
call fcn.00419e17
cmp dword [ebp - 4], edi
pop ecx
mov esi, eax
je 0x402023
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, si
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40370f
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp byte [ebp + 0x30], 0
push ebx
push esi
push edi
mov edi, 0x4465a8
mov esi, 0x4465a0
mov ebx, 0x451a54
je 0x403781
mov eax, str._ispackdel.ini
mov dword [ebp - 0x28], edi
mov ecx, eax
mov dword [ebp - 8], esi
test ecx, ecx
jne 0x403740
mov eax, ebx
lea ecx, [ebp + 0x33]
push 0
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00403f62
sub esp, 0x28
lea ecx, [ebp - 0x28]
mov eax, esp
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.00404008
sub esp, 0x28
lea eax, [ebp + 8]
mov ecx, esp
push 1
push eax
call fcn.0040cc5a
call fcn.00403807
add esp, 0x50
lea ecx, [ebp - 0x28]
call fcn.0040e0a8
mov eax, str._isdel.ini
mov dword [ebp - 0x28], edi
mov ecx, eax
mov dword [ebp - 8], esi
test ecx, ecx
jne 0x403794
mov eax, ebx
lea ecx, [ebp + 0x33]
push 0
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00403f62
sub esp, 0x28
lea ecx, [ebp - 0x28]
mov eax, esp
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.00404008
sub esp, 0x28
lea eax, [ebp + 8]
mov ecx, esp
push 1
push eax
call fcn.0040cc5a
call fcn.00403807
add esp, 0x50
lea ecx, [ebp - 0x28]
call fcn.0040e0a8
lea ecx, [ebp + 8]
call fcn.00405033
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp byte [ebp + 0x38], 0
je 0x4037f6
push 0
call fcn.00403b35
pop ecx
mov bl, al
jmp 0x4037f8
mov bl, 1
lea ecx, [ebp + 8]
call fcn.0040e0a8
pop edi
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x407fc8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov dword [ebp - 4], ecx
push esi
push edi
lea ecx, [ebp - 0x2c]
call fcn.00407a28
push 2
sub esp, 0x1c
mov ecx, esp
push 1
push dword [ebp + 8]
call fcn.0040710b
lea ecx, [ebp - 0x2c]
call fcn.0040808d
test al, al
jne 0x408014
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x4465c8
call fcn.00407f58
lea ecx, [ebp - 0x24]
call fcn.0040252a
xor al, al
jmp 0x408086
mov esi, 0x1400
push esi
call fcn.00420be5
mov ebx, eax
push esi
push 0
push ebx
call fcn.00420b70
add esp, 0x10
mov ecx, dword [ebp - 4]
push esi
push ebx
call fcn.0040817b
mov edi, eax
test edi, edi
je 0x408061
cmp edi, 0xffffffff
je 0x408061
lea eax, [ebp + 8]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
push ebx
call fcn.00420b70
add esp, 0xc
jmp 0x40802d
lea ecx, [ebp - 0x2c]
call fcn.00407f58
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x4465c8
call fcn.00407f58
lea ecx, [ebp - 0x24]
call fcn.0040252a
cmp edi, 0xffffffff
setne al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4084e3
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push dword [0x44c660]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
lea ecx, [ebp - 0x10]
push 0x2710
push eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], bl
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb al, al
mov dword [ebp - 4], ebx
inc al
mov byte [ebp - 0xc], al
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.ole32.dll_GetRunningObjectTable]
test eax, eax
jl 0x408539
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 4]
cmp eax, ebx
pop ebx
je 0x408547
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 8]
call fcn.004089bb
lea ecx, [ebp - 0x10]
call fcn.004091aa
leave
ret

Function at 0x409462
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
push 5
push 0x6d
mov eax, dword [esi + 0x1e0]
mov eax, dword [eax + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x409507
mov ecx, dword [esi + 0x1e0]
push edi
push eax
mov ecx, dword [ecx + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0xc]
call fcn.00405424
mov edi, dword [esi + 0x1e0]
add edi, 4
mov ecx, edi
call fcn.00402db3
mov eax, dword [esi + 0x1e0]
lea ecx, [ebp - 0xc]
mov ax, word [eax + 0x20]
push eax
push dword [edi + 4]
call fcn.00405610
mov eax, dword [esi + 0x1e0]
push esi
push 0x409265
push 0
push dword [ebp - 0xc]
mov edi, dword [eax + 0x24]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
push edi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
push eax
mov dword [esi + 0x344], eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea ecx, [ebp - 0xc]
call fcn.004054f4
pop edi
pop esi
leave
ret
Function at 0x40967f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
push 5
push 0x79
mov eax, dword [esi + 0x1e0]
mov eax, dword [eax + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4096aa
mov eax, 0x80004005
jmp 0x409741
mov ecx, dword [esi + 0x1e0]
push edi
push eax
mov ecx, dword [ecx + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0xc]
call fcn.00405424
mov edi, dword [esi + 0x1e0]
add edi, 4
mov ecx, edi
call fcn.00402db3
mov eax, dword [esi + 0x1e0]
lea ecx, [ebp - 0xc]
mov ax, word [eax + 0x20]
push eax
push dword [edi + 4]
call fcn.00405610
mov eax, dword [esi + 0x1e0]
push esi
push 0x409744
push 0
push dword [ebp - 0xc]
mov edi, dword [eax + 0x24]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
push edi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
cmp eax, 1
pop edi
jne 0x409732
mov eax, dword [esi + 0x1e4]
mov ax, word [eax + 0x844]
mov word [esi + 0x3c8], ax
xor esi, esi
jmp 0x409737
mov esi, 0x80042000
lea ecx, [ebp - 0xc]
call fcn.004054f4
mov eax, esi
pop esi
leave
ret
Function at 0x40a0cf
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 4]
xor esi, esi
mov ecx, dword [ecx]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x40a103
mov edi, dword [ebp - 4]
xor eax, eax
cmp eax, esi
mov ebx, eax
jne 0x40a126
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
cmp edi, esi
je 0x40a131
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc

Function at 0x40a13a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 8]
xor esi, esi
push eax
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
jne 0x40a1bf
xor eax, eax
cmp dword [ebp - 4], esi
je 0x40a17b
push dword [ebp - 4]
call edi
mov ecx, dword [ebp - 8]
cmp eax, esi
mov dword [ebp - 4], ecx
jne 0x40a1bf
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x10]
push 1
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
lea ecx, [ebp - 4]
push dword [ebp + 8]
push str.CLSID
call fcn.0040a0cf
cmp dword [ebp - 4], esi
je 0x40a1bb
push dword [ebp - 4]
call edi
xor eax, eax
jmp 0x40a1dd
cmp eax, esi
push ebx
jle 0x40a1ce
and eax, 0xffff
or eax, 0x80070000
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x40a1da
push dword [ebp - 4]
call edi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret