joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41aab5
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
mov ecx, dword [esp + 8]
test edx, 3
jne 0x41aadc
mov eax, dword [edx]
cmp al, byte [ecx]
jne 0x41aad4
or al, al
je 0x41aad0
cmp ah, byte [ecx + 1]
jne 0x41aad4
or ah, ah
je 0x41aad0
shr eax, 0x10
cmp al, byte [ecx + 2]
jne 0x41aad4
or al, al
je 0x41aad0
cmp ah, byte [ecx + 3]
jne 0x41aad4
add ecx, 4
add edx, 4
or ah, ah
jne 0x41aaa0
mov edi, edi
xor eax, eax
ret
sbb eax, eax
shl eax, 1
add eax, 1
ret
test edx, 1
je 0x41aafc
mov al, byte [edx]
add edx, 1
cmp al, byte [ecx]
jne 0x41aad4
add ecx, 1
or al, al
je 0x41aad0
test edx, 2
je 0x41aaa0
mov ax, word [edx]
add edx, 2
cmp al, byte [ecx]
jne 0x41aad4
or al, al
je 0x41aad0
cmp ah, byte [ecx + 1]
jne 0x41aad4
or ah, ah
je 0x41aad0
add ecx, 2
jmp 0x41aaa0
Function at 0x423765
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
jne 0x42367a
call fcn.00416692
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.00415cd1
add esp, 0x14
or eax, 0xffffffff
jmp 0x4237dd
push edi
call fcn.004229b5
cmp dword [edi + 4], ebx
pop ecx
mov dword [ebp - 4], eax
jge 0x42368c
mov dword [edi + 4], ebx
push 1
push ebx
push eax
call fcn.0042356d
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x423672
mov edx, dword [edi + 0xc]
test dx, 0x108
jne 0x4236b1
sub eax, dword [edi + 4]
jmp 0x4237dd
mov eax, dword [edi]
mov ecx, dword [edi + 8]
push esi
mov esi, eax
sub esi, ecx
test dl, 3
mov dword [ebp - 0xc], esi
je 0x423704
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
and esi, 0x1f
imul esi, esi, 0x38
sar edx, 5
mov edx, dword [edx*4 + 0x436ee0]
test byte [edx + esi + 4], 0x80
je 0x4236f7
mov edx, ecx
cmp edx, eax
jae 0x4236f7
mov esi, eax
cmp byte [edx], 0xa
jne 0x4236f2
inc dword [ebp - 0xc]
xor ebx, ebx
inc edx
cmp edx, esi
jb 0x4236e8
cmp dword [ebp - 8], ebx
jne 0x423718
mov eax, dword [ebp - 0xc]
jmp 0x4237dc
test dl, dl
js 0x4236f7
call fcn.00416692
mov dword [eax], 0x16
jmp 0x42379e
test byte [edi + 0xc], 1
je 0x4237d4
mov edx, dword [edi + 4]
cmp edx, ebx
jne 0x423731
mov dword [ebp - 0xc], ebx
jmp 0x4237d4
mov esi, dword [ebp - 4]
mov ebx, dword [ebp - 4]
and esi, 0x1f
imul esi, esi, 0x38
sub eax, ecx
add eax, edx
sar ebx, 5
lea ebx, [ebx*4 + 0x436ee0]
mov dword [ebp + 8], eax
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x80
je 0x4237ce
push 2
push 0
push dword [ebp - 4]
call fcn.0042356d
add esp, 0xc
cmp eax, dword [ebp - 8]
jne 0x42378a
mov eax, dword [edi + 8]
mov ecx, dword [ebp + 8]
add ecx, eax
jmp 0x42377e
cmp byte [eax], 0xa
jne 0x42377d
inc dword [ebp + 8]
inc eax
cmp eax, ecx
jb 0x423775
test word [edi + 0xc], 0x2000
jmp 0x4237c9
push 0
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0042356d
add esp, 0xc
test eax, eax
jge 0x4237a3
or eax, 0xffffffff
jmp 0x4237dc
mov eax, 0x200
cmp dword [ebp + 8], eax
ja 0x4237bc
mov ecx, dword [edi + 0xc]
test cl, 8
je 0x4237bc
test cx, 0x400
je 0x4237bf
mov eax, dword [edi + 0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebx]
test byte [eax + esi + 4], 4
je 0x4237ce
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
sub dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
add eax, ecx
pop esi
pop edi
pop ebx
leave
ret
Function at 0x40148f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], edx
mov edi, ecx
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
mov edx, esi
call fcn.00401d9d
mov ebx, eax
push ebx
push esi
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push 0x426ce0
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
mov eax, dword [ebp - 4]
mov ecx, ebx
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
call fcn.00401dc2
mov ecx, dword [ebp - 8]
mov eax, esi
shr eax, 0x10
mov dword [ecx], eax
mov eax, dword [ebp + 8]
movzx ecx, si
mov dword [eax], ecx
mov ecx, edi
mov eax, dword [ebp + 0xc]
shr ecx, 0x10
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
movzx ecx, di
pop edi
pop esi
mov dword [eax], ecx
pop ebx
leave
ret

Function at 0x40150b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xc8
lea eax, [ebp - 0x1cc]
push 0
push eax
call fcn.00409570
mov esi, 0x9c
lea eax, [ebp - 0x468]
push esi
push 0
push eax
call fcn.00409570
add esp, 0x18
mov dword [ebp - 0x468], esi
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4016a1
push ebx
push edi
push esi
lea eax, [ebp - 0x468]
push eax
push 0x439e80
call fcn.00408ff0
add esp, 0xc
lea eax, [ebp - 0x104]
push pe_nt_image_headers32
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x104]
push 0x426ce4
push eax
call fcn.0040d770
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x474]
push eax
lea edx, [ebp - 0x478]
lea ecx, [ebp - 0x104]
call fcn.0040148f
add esp, 0x14
lea eax, [ebp - 0x3cc]
mov ebx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov edi, 0x3e8
mov esi, 0x80000002
xor edx, edx
push ebx
push edi
push ecx
push eax
push ecx
push str.ProductName
mov ecx, esi
call fcn.00403217
add esp, 0x18
lea eax, [ebp - 0x2cc]
xor edx, edx
push ebx
push edi
push ecx
push eax
push ecx
push str.CurrentVersion
mov ecx, esi
call fcn.00403217
lea eax, [ebp - 0x2cc]
push eax
lea eax, [ebp - 0x3cc]
push eax
push dword [ebp - 0x46c]
movzx eax, byte [ebp - 0x3ce]
push dword [ebp - 0x470]
push dword [ebp - 0x474]
push dword [ebp - 0x478]
push eax
movzx eax, word [ebp - 0x3d2]
push eax
movzx eax, word [ebp - 0x3d4]
push eax
push dword [ebp - 0x460]
push dword [ebp - 0x464]
push str.Win_i._i_SP_i._i_Type_i_Kernel_i._i._i._i_ProdName_s_ProdVer_s
push 0x42ea28
call fcn.00401474
add esp, 0x4c
lea eax, [ebp - 0x1cc]
push dword [ebp - 0x46c]
push dword [ebp - 0x470]
push dword [ebp - 0x474]
push dword [ebp - 0x478]
push dword [ebp - 0x460]
push dword [ebp - 0x464]
push str.Win_i._i_Kernel_i._i._i._i
push eax
call fcn.00401474
add esp, 0x20
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0040827c
leave
ret
Function at 0x401bde
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x7544
call fcn.0041fc10
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x28]
mov edx, str.bfushcfsb
push ebx
push esi
push edi
push ecx
push ecx
mov dword [ebp - 0x7544], eax
mov esi, ecx
lea eax, [ebp - 0x2718]
push eax
push ecx
push str.w6_5
call fcn.00401b9e
add esp, 0xc
mov ebx, eax
lea eax, [ebp - 0x4e2c]
mov edx, str.obbsd
push eax
push ecx
push str.rvfs
mov ecx, esi
call fcn.00401b9e
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0x7540]
mov edx, str.twbbctobbs
push eax
push ecx
push str._htobbs5
mov ecx, esi
call fcn.00401b9e
add esp, 0x14
mov esi, eax
test ebx, ebx
jne 0x401c6d
test edi, edi
jne 0x401c6d
test esi, esi
je 0x401d3d
xor ecx, ecx
test ebx, ebx
jle 0x401c83
mov al, cl
and al, 0xa7
xor byte [ebp + ecx - 0x2718], al
inc ecx
cmp ecx, ebx
jl 0x401c73
xor ecx, ecx
test edi, edi
jle 0x401c9c
mov dl, byte [ebp + 0x1c]
mov al, cl
and al, dl
xor byte [ebp + ecx - 0x4e2c], al
inc ecx
cmp ecx, edi
jl 0x401c8c
xor ecx, ecx
test esi, esi
jle 0x401cb4
mov al, cl
and al, 0x59
xor byte [ebp + ecx - 0x7540], al
add ecx, 2
cmp ecx, esi
jl 0x401ca2
push edi
lea eax, [ebp - 0x7540]
push eax
lea eax, [ebp - 0x4e2c]
push eax
call fcn.004096ca
add esp, 0xc
test eax, eax
jne 0x401d3d
cmp edi, esi
jne 0x401d3d
test ebx, ebx
je 0x401d3d
cmp ebx, edi
jne 0x401d3d
cmp esi, ebx
jne 0x401d3d
push edi
lea eax, [ebp - 0x4e2c]
push eax
lea eax, [ebp - 0x2718]
push eax
call fcn.004096ca
add esp, 0xc
test eax, eax
jne 0x401d3d
push edi
lea eax, [ebp - 0x2718]
push eax
lea eax, [ebp - 0x7540]
push eax
call fcn.004096ca
add esp, 0xc
test eax, eax
jne 0x401d3d
cmp ebx, 0x2712
jae 0x401d4e
mov esi, dword [ebp - 0x7544]
mov byte [ebp + ebx - 0x2718], al
lea eax, [ebp - 0x2718]
push eax
push esi
call fcn.0040d760
pop ecx
pop ecx
mov eax, esi
jmp 0x401d3f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040827c
leave
ret
call fcn.004083ac
int3
Function at 0x402445
Capabilities:
Get common file path

Disassembly:
push esi
push edi
mov edi, edx
mov esi, ecx
push edi
push esi
push ecx
mov edx, str.Q9INS_PATH
call fcn.00402fc5
add esp, 0xc
test eax, eax
je 0x40247b
push esi
call fcn.0040ca90
pop ecx
cmp byte [eax + esi - 1], 0x5c
jne 0x402483
push esi
call fcn.0040ca90
pop ecx
mov byte [eax + esi - 1], 0
jmp 0x402483
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
call fcn.0040ca90
pop ecx
pop edi
pop esi
ret
Function at 0x402c0b
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
xor eax, eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x844], ecx
push ebx
push ebx
push ebx
push ebx
push 0x439be0
mov word [0x42dc08], ax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
push ebx
test esi, esi
je 0x402e00
push ebx
push 3
push ebx
push ebx
push 0x50
push 0x42dcd2
push esi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
push ebx
test edi, edi
je 0x402df9
push 0x400000
push ebx
push 0x426cae
push ebx
push 0x4308c0
push str.POST
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
jne 0x402c99
push eax
mov edx, edi
mov ecx, esi
jmp 0x402e04
push 0x42db40
push 0x42da78
push 0x42d9b0
push 0x42d8e8
push 0x42d820
push 0x42d758
push 0x42d690
push 0x42d5c8
push 0x42d500
push str.langb5
push str.email
push str.userid
push str.serialnumber
lea eax, [ebp - 0x840]
push str._s_s_s_s_s_s_s_s_s_s_s_s_s
push eax
call fcn.00401474
push 0x64
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.00409570
add esp, 0x48
lea eax, [ebp - 0x70]
push str.Content_type:_application_x_www_form_urlencoded_r_nContent_length:
push eax
call fcn.0040d760
lea eax, [ebp - 0x840]
push eax
call fcn.0040ca90
add esp, 0xc
push eax
lea eax, [ebp - 0x70]
push str._d_r_n_r_n
push eax
call fcn.0040ca90
pop ecx
lea ecx, [ebp - 0x70]
add eax, ecx
push eax
call fcn.00401474
lea eax, [ebp - 0x840]
push eax
call fcn.0040ca90
add esp, 0x10
push eax
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0040ca90
pop ecx
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x402d70
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
jmp 0x402c90
mov eax, dword [ebp - 0x844]
xor ecx, ecx
push ecx
mov dword [ebp - 0x858], eax
mov edx, 0x3e7
push 8
mov byte [eax], cl
lea eax, [ebp - 0x86c]
push eax
push ebx
mov dword [ebp - 0x86c], 0x28
mov dword [ebp - 0x864], ecx
mov dword [ebp - 0x854], edx
mov dword [ebp - 0x850], edx
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
je 0x402d6a
mov eax, dword [ebp - 0x844]
push 0x3e8
push eax
mov word [eax + 0x3e6], 0
call fcn.0040fdca
cmp eax, 0x3e8
mov ecx, 0x3e7
push ebx
cmove eax, ecx
mov edx, edi
mov ecx, dword [ebp - 0x844]
mov byte [ecx + eax], 0
mov ecx, esi
call fcn.00402e1b
xor eax, eax
add esp, 0xc
inc eax
jmp 0x402e0c
xor edx, edx
jmp 0x402c92
xor edx, edx
xor ecx, ecx
call fcn.00402e1b
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040827c
leave
ret
Function at 0x402f03
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f8
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x3f4], eax
mov esi, edx
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x3f8], eax
mov edi, ecx
lea eax, [ebp - 0x3ec]
mov byte [ebx], 0
push str.SoftwareQ9_
push eax
call fcn.0040d760
lea eax, [ebp - 0x3ec]
push esi
push eax
call fcn.0040d770
add esp, 0x10
lea eax, [ebp - 0x3f0]
xor esi, esi
push eax
push 0x20119
push esi
lea eax, [ebp - 0x3ec]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402f9c
lea eax, [ebp + 0x14]
push eax
push ebx
push esi
push esi
push dword [ebp - 0x3f4]
push dword [ebp - 0x3f0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x3f0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebx], 0
jne 0x402faf
push dword [ebp - 0x3f8]
push ebx
call fcn.0040d760
pop ecx
pop ecx
push ebx
call fcn.0040ca90
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040827c
leave
ret

Function at 0x403192
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20106
push esi
push dword [ebp + 0x14]
mov edi, edx
mov dword [ebp - 8], esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4031dd
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 8]
test edi, edi
je 0x403211
push dword [ebp + 0xc]
call fcn.0040ca90
pop ecx
push eax
push dword [ebp + 0xc]
push dword [0x42cb9c]
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ecx, ecx
inc ecx
test eax, eax
push edi
cmove esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x403217
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f4
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
push eax
lea eax, [ebp - 0x3ec]
mov dword [ebp - 0x3f4], ecx
push eax
mov edi, edx
mov byte [esi], 0
call fcn.0040d760
pop ecx
pop ecx
test edi, edi
je 0x403275
lea eax, [ebp - 0x3ec]
push 0x426f74
push eax
call fcn.0040d770
lea eax, [ebp - 0x3ec]
push edi
push eax
call fcn.0040d770
add esp, 0x10
lea eax, [ebp - 0x3f0]
xor edi, edi
push eax
push 0x20119
push edi
lea eax, [ebp - 0x3ec]
push eax
push dword [ebp - 0x3f4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4032bb
lea eax, [ebp + 0x18]
push eax
push esi
push edi
push edi
push ebx
push dword [ebp - 0x3f0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x3f0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esi], 0
jne 0x4032cd
push 0x426cae
push esi
call fcn.0040d760
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x18]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040827c
leave
ret

Function at 0x4032df
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
mov edx, 0x104
lea ecx, [ebp - 0x108]
call fcn.00402445
lea eax, [ebp - 0x108]
push 0x426f74
push eax
call fcn.0040d770
lea eax, [ebp - 0x108]
push str.q9m.sac
push eax
call fcn.0040d770
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
push edi
push 0x426cae
push esi
push 0x42ddc8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.000000000000
push edi
call fcn.0040c780
pop ecx
pop ecx
test eax, eax
jne 0x40335c
mov byte [edi], al
push edi
call fcn.0040ca90
pop ecx
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [ebp - 4]
pop edi
sbb eax, eax
xor ecx, ebp
neg eax
pop esi
call fcn.0040827c
leave
ret
Function at 0x4035f0
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3d04
call fcn.0041fc10
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov edx, 0xa28
push edi
lea ecx, [ebp - 0xa38]
call fcn.00402445
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x1460]
push eax
call fcn.0040d760
lea eax, [ebp - 0x1460]
push str.Q9inisetup.exe
push eax
call fcn.0040d770
lea eax, [ebp - 0xa38]
push 0x426f74
push eax
call fcn.0040d770
lea eax, [ebp - 0xa38]
push str.q9m.sac
push eax
call fcn.0040d770
add esp, 0x20
lea ecx, [ebp - 0x1460]
call fcn.00407e54
test al, al
je 0x4037f3
lea eax, [ebp - 0xa38]
push eax
push 0x12a
lea eax, [ebp - 0x28b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
test eax, eax
je 0x4036e7
xor edi, edi
lea esi, [ebp - 0x28b0]
inc edi
push edi
push 0x4272bc
lea eax, [ebp - 0x10]
push str._s__i
push eax
call fcn.00401474
add esp, 0x10
jmp 0x4036d1
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.0040c780
pop ecx
pop ecx
test eax, eax
je 0x4036dc
push esi
call fcn.0040ca90
inc esi
pop ecx
add esi, eax
cmp byte [esi], 0
jne 0x4036b7
lea eax, [ebp - 0x10]
push eax
jmp 0x4036ec
inc edi
cmp edi, 0x3e8
jle 0x40369e
jmp 0x4036f8
push 0x4272bc
push 0x42ddc8
call fcn.0040d760
pop ecx
pop ecx
push ebx
push 0x42ddc8
push str.q9m.sac
lea eax, [ebp - 0x32d8]
push str._s__s__s
push eax
call fcn.00401474
add esp, 0x14
lea eax, [ebp - 0x32d8]
push 1
push 0
push eax
lea eax, [ebp - 0x1460]
push eax
push 0
push dword [0x4307ec]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push str._sn_rc_MAC
push ebx
call fcn.0040c780
pop ecx
pop ecx
test eax, eax
je 0x4037ee
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0xa38]
push eax
push 0x12c
lea eax, [ebp - 0x3d00]
push eax
push 0x426cae
push 0x427338
push 0x42ddc8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str._rc
push ebx
call fcn.0040a5e0
push str._MAC
push ebx
mov edi, eax
call fcn.0040a5e0
add esp, 0x10
mov esi, eax
test edi, edi
je 0x4037ee
test esi, esi
je 0x4037ee
sub esi, edi
lea eax, [esi - 4]
push eax
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x1e88]
push eax
call fcn.0040c810
add esi, 0xfffffffc
add esp, 0xc
cmp esi, 0xa28
jae 0x403804
lea eax, [ebp - 0x1e88]
mov byte [ebp + esi - 0x1e88], 0
push eax
lea eax, [ebp - 0x3d00]
push eax
call fcn.0040c780
pop ecx
pop ecx
test eax, eax
je 0x4037ee
or eax, 0xffffffff
jmp 0x4037f5
xor eax, eax
inc eax
jmp 0x4037f5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040827c
leave
ret
call fcn.004083ac
int3
Function at 0x40380a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403833
lea ecx, [ebp - 0x24]
push ecx
call eax
jmp 0x40383d
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push ebx
mov eax, 0xffff
mov ebx, 0xeba3495
push esi
push edi
cmp word [ebp - 0x24], ax
je 0x40386e
movzx eax, word [ebp - 4]
imul edi, eax, 0x463
movzx eax, word [ebp - 2]
imul eax, eax, 0xb
add edi, eax
imul eax, dword [ebp - 0x10], 0xa8
add edi, eax
jmp 0x403870
mov edi, ebx
xor esi, esi
cmp esi, 4
je 0x40389b
cmp esi, 9
je 0x40389b
cmp esi, 0xe
je 0x40389b
cmp esi, 0x13
je 0x40389b
xor edx, edx
lea ecx, [esi + 1]
mov eax, edi
div ecx
push 0xa
xor edx, edx
pop ecx
div ecx
add dl, 0x30
jmp 0x40389d
xor dl, dl
mov byte [esi + 0x4315a8], dl
inc esi
cmp esi, 0x14
jl 0x403872
cmp edi, ebx
pop edi
pop esi
pop ebx
jne 0x4038ce
mov byte [0x4315ab], 0x38
mov byte [0x4315b0], 0x38
mov byte [0x4315b5], 0x38
mov byte [0x4315ba], 0x38
jmp 0x4038ea
mov byte [0x4315ab], 0x39
mov byte [0x4315b0], 0x39
mov byte [0x4315b5], 0x39
mov byte [0x4315ba], 0x39
xor eax, eax
inc eax
leave
ret

Function at 0x4038ef
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x108]
push 0x426f74
push eax
call fcn.0040d770
lea eax, [ebp - 0x108]
push str.wmv_win32r2.dll
push eax
call fcn.0040d770
add esp, 0x10
call fcn.00407913
call fcn.0040236f
test eax, eax
jne 0x40394c
call fcn.0040380a
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.0040827c
leave
ret

Function at 0x40395b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push edi
mov esi, edx
mov edi, ecx
push esi
push edi
call ebx
push 8
push dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
inc esi
cmp eax, 4
jne 0x4039d4
push esi
push edi
call ebx
mov ecx, dword [ebp + 8]
push 8
add ecx, 5
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
inc esi
cmp eax, 4
jne 0x4039d4
push esi
push edi
call ebx
mov ecx, dword [ebp + 8]
push 8
add ecx, 0xa
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, 4
jne 0x4039d4
lea eax, [esi + 1]
push eax
push edi
call ebx
mov ecx, dword [ebp + 8]
push 8
add ecx, 0xf
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, 4
jne 0x4039d4
mov al, 1
jmp 0x4039d6
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x403fca
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov dword [ebp - 0x84], eax
mov edi, edx
push dword [ebp + 0xc]
lea eax, [ebp - 0x30]
mov esi, ecx
push str._020lu
push eax
call fcn.00401474
push 0x14
lea eax, [ebp - 0x30]
xor ebx, ebx
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 0x1c], bl
push eax
call fcn.00408ff0
push 0x14
lea eax, [ebp - 0x30]
mov byte [ebp - 0x44], bl
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00408ff0
add esp, 0x28
mov byte [ebp - 0x6c], bl
mov ecx, ebx
mov al, cl
and al, 0xfe
xor byte [ebp + ecx - 0x58], al
inc ecx
cmp ecx, 0x14
jl 0x40402f
mov al, bl
and al, 0x5b
xor byte [ebp + ebx - 0x80], al
add ebx, 2
cmp ebx, 0x14
jl 0x40403d
push ecx
lea eax, [ebp - 0x30]
mov edx, esi
push eax
mov ecx, str.v_p67bce2u
call fcn.00401b5f
pop ecx
lea eax, [ebp - 0x58]
mov edx, edi
push eax
mov ecx, str.lut_b
call fcn.00401b5f
mov edx, dword [ebp - 0x84]
lea eax, [ebp - 0x80]
pop ecx
push eax
mov ecx, str.hfhsfif
call fcn.00401b5f
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040827c
leave
ret

Function at 0x405296
Capabilities:
Terminate thread

Disassembly:
push esi
push 0
push dword [0x43071c]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x43071c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x43071c], 0
push 1
push esi
call dword [sym.imp.USER32.dll_KillTimer]
pop esi
ret