joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411638
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
call fcn.00411bbb
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 4]
push ecx
mov edi, 0xf003f
push edi
xor ebx, ebx
push ebx
push eax
mov esi, 0x80000001
push esi
call dword [0x422004]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call main
cmp dword [ebp - 0xc], ebx
je 0x4116be
cmp dword [ebp + 8], ebx
je 0x411716
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
call fcn.00411bbb
mov eax, dword [eax]
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 4]
push ecx
push ebx
push edi
push ebx
push ebx
push ebx
push eax
push esi
call dword [0x42200c]
mov esi, eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call main
cmp esi, ebx
je 0x4116be
xor eax, eax
jmp 0x411719
mov esi, dword [section..rdata]
push 4
lea eax, [ebp + 8]
push eax
push 4
push ebx
push str.FullDump
push dword [ebp - 4]
call esi
cmp dword [ebp + 8], ebx
je 0x4116ff
cmp dword [ebp + 8], 2
je 0x4116ff
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push ebx
push str.HASH
push dword [ebp - 4]
call esi
jmp 0x41170d
push str.HASH
push dword [ebp - 4]
call dword [0x422014]
push dword [ebp - 4]
call dword [0x422010]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41171e
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x432024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x214], 0
and word [ebp - 0x20c], 0
push esi
push edi
push 0x206
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.0041e5f8
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x20c]
push eax
call dword [0x4224fc]
push eax
call dword [0x42245c]
lea eax, [ebp - 0x20c]
push eax
call dword [0x422144]
cmp word [ebp + eax*2 - 0x20e], 0x5c
mov esi, dword [0x4220d8]
mov edi, 0x427324
je 0x4117a6
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
push str.TencentQQMiscQQTroubleShoot
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [0x422468]
test eax, eax
jne 0x4117e5
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [0x4221b4]
test eax, eax
jne 0x4117e5
push dword [ebp - 0x210]
call fcn.004102be
pop ecx
jmp 0x411800
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
push dword [ebp - 0x210]
lea ecx, [ebp - 0x20c]
call fcn.004047a6
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
xor ecx, ebp
pop esi
call fcn.0041e4d6
leave
ret
Function at 0x4118a2
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x644
mov eax, 0x41fbd3
call fcn.0041eefb
mov eax, dword [ebp + 8]
mov dword [ebp - 0x644], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp eax, esi
jne 0x4118ca
xor eax, eax
jmp 0x4119e4
push eax
lea eax, [ebp - 0x640]
push eax
call fcn.00411bbb
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 0x634]
push ecx
push 0x20019
push esi
push eax
push 0x80000001
call dword [0x422004]
mov edi, eax
mov eax, dword [ebp - 0x640]
add eax, 0xfffffff0
call main
cmp edi, esi
jne 0x4118c3
push 0x618
lea eax, [ebp - 0x62e]
push esi
push eax
mov word [ebp - 0x630], si
call fcn.0041e5f8
add esp, 0xc
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x648]
push eax
push esi
push str.ExtRptFile
push dword [ebp - 0x634]
mov dword [ebp - 0x648], 1
mov dword [ebp - 0x64c], 0x30c
call dword [0x422008]
cmp eax, esi
je 0x411974
push dword [ebp - 0x634]
call dword [0x422010]
jmp 0x4118c3
lea eax, [ebp - 0x63c]
push eax
lea ecx, [ebp - 0x630]
call fcn.004047a6
lea eax, [ebp - 0x638]
push eax
mov ecx, 0x4274b4
mov dword [ebp - 4], esi
call fcn.004047a6
mov ecx, dword [ebp - 0x644]
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x63c]
push eax
mov byte [ebp - 4], 1
call fcn.00414844
pop ecx
pop ecx
push dword [ebp - 0x634]
call dword [0x422010]
mov eax, dword [ebp - 0x638]
add eax, 0xfffffff0
call main
mov eax, dword [ebp - 0x63c]
add eax, 0xfffffff0
call main
xor eax, eax
inc eax
call fcn.0041ef7e
ret
Function at 0x4119ea
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x650
mov eax, 0x41fb95
call fcn.0041eefb
mov eax, dword [ebp + 8]
mov dword [ebp - 0x654], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x650], eax
mov eax, dword [ebp + 0x10]
xor esi, esi
cmp eax, esi
jne 0x411a1b
xor eax, eax
jmp 0x411bb5
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.00411bbb
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 0x640]
push ecx
push 0x20019
push esi
push eax
push 0x80000001
call dword [0x422004]
mov edi, eax
mov eax, dword [ebp - 0x658]
add eax, 0xfffffff0
call main
cmp edi, esi
jne 0x411a14
push 0x410
lea eax, [ebp - 0x636]
push esi
push eax
mov word [ebp - 0x638], si
call fcn.0041e5f8
mov edi, dword [0x422008]
add esp, 0xc
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x64c]
push eax
push esi
push str.InstallDir
push dword [ebp - 0x640]
mov ebx, 0x208
mov dword [ebp - 0x64c], 1
mov dword [ebp - 0x648], ebx
call edi
cmp eax, esi
je 0x411ac8
push dword [ebp - 0x640]
call dword [0x422010]
jmp 0x411a14
lea eax, [ebp - 0x63c]
push eax
lea ecx, [ebp - 0x638]
call fcn.004047a6
lea eax, [ebp - 0x644]
push eax
mov ecx, 0x4274b4
mov dword [ebp - 4], esi
call fcn.004047a6
mov ecx, dword [ebp - 0x654]
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x63c]
push eax
mov byte [ebp - 4], 1
call fcn.00414844
push ebx
lea eax, [ebp - 0x21e]
push esi
push eax
mov word [ebp - 0x220], si
call fcn.0041e5f8
add esp, 0x14
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x64c]
push eax
push esi
push str.ExcDir
push dword [ebp - 0x640]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x64c], ebx
mov dword [ebp - 0x648], 0x104
call edi
test eax, eax
jne 0x411b8b
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x63c]
push eax
call fcn.00401445
mov ecx, dword [ebp - 0x650]
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x63c]
push eax
call fcn.00414844
pop ecx
pop ecx
push dword [ebp - 0x640]
call dword [0x422010]
mov eax, dword [ebp - 0x644]
add eax, 0xfffffff0
call main
mov eax, dword [ebp - 0x63c]
add eax, 0xfffffff0
call main
mov eax, ebx
call fcn.0041ef7e
ret
Function at 0x411c01
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x4204a3
call fcn.0041ee92
xor edi, edi
cmp dword [ebp + 8], edi
je 0x411ca1
xor eax, eax
mov esi, str.CrashCount
cmp eax, esi
je 0x411ca1
lea eax, [ebp - 0x14]
push eax
call fcn.004102be
mov dword [ebp - 4], edi
lea eax, [ebp - 0x10]
mov dword [esp], str.BREvent.ini
push eax
lea ecx, [ebp - 0x14]
call fcn.00404989
pop ecx
pop ecx
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call dword [0x422468]
test eax, eax
jne 0x411cb0
push edi
push edi
push 2
push edi
push 3
push 0x40000000
push dword [ebp - 0x10]
call dword [0x422194]
cmp eax, 0xffffffff
jne 0x411ca9
call dword [0x422140]
push eax
push dword [ebp - 0x10]
push str._AddEventLog__create_file___s__failed___ld_
push 0x426430
call fcn.00414b27
mov eax, dword [ebp - 0x10]
add esp, 0x10
add eax, 0xfffffff0
call main
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call main
xor eax, eax
call fcn.0041ef6a
ret
push eax
call dword [0x4220c8]
push dword [ebp - 0x10]
push edi
push esi
push dword [ebp + 8]
call dword [0x4221a8]
mov ebx, eax
inc ebx
push ebx
push esi
push dword [ebp + 8]
mov edi, 0x426430
push str._s:_s_lu
push edi
call fcn.00414b27
push ebx
lea eax, [ebp - 0x18]
push 0x4276c8
push eax
call fcn.00410f85
mov eax, dword [eax]
add esp, 0x20
push dword [ebp - 0x10]
push eax
push esi
push dword [ebp + 8]
call dword [0x4221b0]
mov ebx, eax
mov eax, dword [ebp - 0x18]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call main
test bl, bl
je 0x411d24
call dword [0x422140]
push eax
push dword [ebp - 0x10]
push str._AddEventLog__write_file___s__failed___ld_
push edi
jmp 0x411c83
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call main
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call main
xor eax, eax
inc eax
jmp 0x411ca3

Function at 0x411d42
Capabilities:
Check if file exists

Disassembly:
push 0x214
mov eax, 0x41f6ac
call fcn.0041eefb
xor edi, edi
push 0x206
lea eax, [ebp - 0x216]
mov esi, ecx
push edi
mov dword [ebp - 0x21c], edi
push eax
mov dword [ebp - 0x220], esi
mov word [ebp - 0x218], di
call fcn.0041e5f8
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [0x4221cc]
mov ebx, dword [0x422288]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call ebx
cmp eax, edi
pop ecx
pop ecx
je 0x411daa
mov word [eax], di
call fcn.004045ad
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 4], edi
push esi
mov dword [ebp - 0x21c], 1
call fcn.00401445
push str._txupd.exe
push esi
call fcn.0040485b
push dword [esi]
call dword [0x422468]
test eax, eax
jne 0x411e4c
push dword [esi]
mov edi, 0x426430
push str.txupd___s__not_exist_so_uplevel_dir
push edi
call fcn.00414b27
lea eax, [ebp - 0x218]
push 0x5c
push eax
call ebx
add esp, 0x14
test eax, eax
je 0x411e08
and word [eax], 0
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00401445
push str._txupd.exe
push esi
call fcn.0040485b
push dword [esi]
push str.txupd___s_
push edi
call fcn.00414b27
add esp, 0xc
push dword [esi]
call dword [0x422468]
test eax, eax
jne 0x411e4c
push dword [esi]
push str.txupd___s__not_exist_error
push edi
call fcn.00414b27
add esp, 0xc
mov eax, esi
call fcn.0041ef7e
ret
Function at 0x411f6a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [0x422008]
test eax, eax
jne 0x411fcd
cmp dword [ebp + 0xc], 1
je 0x411fa6
cmp dword [ebp + 0xc], 2
je 0x411fa6
push 0xd
pop eax
jmp 0x411fcd
test edi, edi
mov eax, dword [ebp - 4]
je 0x411fc7
test eax, eax
je 0x411fc3
test al, 1
jne 0x411fa1
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x411fc7
jmp 0x411fa1
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x415289
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push esi
push str.OpenUrlWithDefBrowserInternal__url_s
push 0x42641c
call fcn.00414b27
call fcn.004152f2
push 0x38
mov edi, eax
lea eax, [ebp - 0x38]
push 0
push eax
mov dword [ebp - 0x3c], 0x3c
call fcn.0041e5f8
add esp, 0x18
mov dword [ebp - 0x38], 0x500
call dword [0x4224fc]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x2c], esi
call dword [0x422460]
test eax, eax
je 0x4152ea
mov al, 1
jmp 0x4152ef
test edi, edi
setne al
pop edi
leave
ret
Function at 0x4155c4
Capabilities:
Create process on windows
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x432024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.OpenUrlWithIEInternal__url_s
push 0x42641c
call fcn.00414b27
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call fcn.0041e5f8
add esp, 0x18
push ebx
push 0x26
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [0x42245c]
cmp word [ebp - 0x210], bx
je 0x41563e
lea eax, [ebp - 0x210]
push eax
call dword [0x4222b4]
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x41563e
mov al, 1
jmp 0x415640
xor al, al
xor ecx, ecx
cmp al, bl
sete cl
mov esi, 0x104
push esi
lea eax, [ebp - 0x210]
lea ecx, [ecx*2 + str.Internet_ExplorerIEXPLORE.EXE]
call fcn.00414a12
pop ecx
lea eax, [ebp - 0x210]
push eax
call dword [0x4221d8]
cmp eax, 0xffffffff
jne 0x41568b
push esi
mov ecx, str.iexplore.exe
lea eax, [ebp - 0x210]
mov word [ebp - 0x210], bx
call fcn.00414a12
pop ecx
push 5
push ebx
push edi
lea eax, [ebp - 0x210]
push eax
push str.open
call dword [0x4224fc]
push eax
call dword [0x422458]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov al, cl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e4d6
leave
ret
Function at 0x415c6b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x432024]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
mov esi, dword [0x4220b4]
push edi
call esi
and dword [esp + 8], 0
mov dword [ebx + 0x18], eax
xor eax, eax
lea edi, [esp + 0xc]
stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
call dword [0x422088]
mov edi, dword [0x4220d0]
call edi
mov dword [esp + 0x10], eax
call esi
mov esi, dword [esp + 0xc]
xor dword [esp + 0x10], eax
xor esi, dword [esp + 0x10]
push 0
xor esi, dword [esp + 0xc]
call dword [0x422370]
xor esi, eax
pop ecx
jne 0x415cd5
inc esi
lea eax, [esp + 8]
push eax
push eax
push eax
lea eax, [esp + 0x1c]
push eax
mov dword [ebx + 0x1c], esi
call dword [0x4220a8]
push eax
call dword [0x4220ac]
lea eax, [esp + 0x18]
push eax
call dword [0x4220a4]
call edi
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x18]
sub eax, edx
sbb ecx, edi
xor edi, edi
push edi
push 0x2710
push ecx
push eax
call fcn.0041efa0
sub esi, eax
push 0x206
lea eax, [esp + 0x26]
push edi
push eax
mov dword [ebx + 0x20], esi
mov word [esp + 0x2c], di
call fcn.0041e5f8
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [esp + 0x24]
push eax
push edi
call dword [0x4221cc]
lea eax, [esp + 0x20]
push eax
call dword [0x4222b4]
pop ecx
lea edi, [esp + eax*2 + 0x20]
jmp 0x415d78
lea eax, [edi - 2]
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x415d80
cmp cx, 0x2f
je 0x415d80
mov edi, eax
lea eax, [esp + 0x20]
cmp edi, eax
ja 0x415d64
push edi
call dword [0x4222b4]
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [esp + 0x24]
push edi
push eax
call dword [0x422374]
add esp, 0xc
lea eax, [esp + 0x20]
push 0x2e
push eax
call dword [0x422288]
pop ecx
pop ecx
xor ecx, ecx
cmp eax, ecx
je 0x415db4
mov word [eax], cx
cmp word [esp + 0x20], cx
push esi
lea eax, [esp + 0x24]
jne 0x415dcc
mov word [esp + 0x24], cx
mov ecx, str.log.tlg
jmp 0x415dd1
mov ecx, str..tlg
call fcn.00414a12
pop ecx
push 1
lea edi, [ebx + 0x24]
and word [edi], 0
push 0x1a
push edi
call dword [0x4224fc]
push eax
call dword [0x42245c]
cmp word [edi], 0
je 0x415e14
push edi
call dword [0x4222b4]
cmp word [ebx + eax*2 + 0x22], 0x5c
pop ecx
je 0x415e14
push esi
mov ecx, 0x427324
mov eax, edi
call fcn.00414a12
pop ecx
push esi
mov ecx, str.Tencent_
mov eax, edi
call fcn.00414a12
pop ecx
push 0
push edi
call dword [0x4221b4]
push esi
mov ecx, str.Logs_
mov eax, edi
call fcn.00414a12
pop ecx
push 0
push edi
call dword [0x4221b4]
push esi
lea ecx, [esp + 0x24]
mov eax, edi
call fcn.00414a12
mov dword [esp], str.NoTXLog
push 0
call dword [0x4220b8]
push eax
call dword [0x4221c4]
test eax, eax
je 0x415e71
mov byte [ebx + 0x23f], 1
jmp 0x415e77
push ebx
call fcn.00415b6e
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
xor ecx, esp
call fcn.0041e4d6
mov esp, ebp
pop ebp
ret
Function at 0x417f68
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push str.M_GetAdaptersAddresses_begin.
mov edi, str.bugreport
push edi
call fcn.00414b27
xor ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 8], ebx
xor esi, esi
mov dword [ebp - 4], ebx
lea eax, [ebp - 8]
push eax
push esi
push ebx
push ebx
push 2
call fcn.0041ee80
cmp eax, 0x6f
mov dword [ebp - 0xc], eax
jne 0x418000
cmp esi, ebx
je 0x417fae
push esi
call fcn.0041e5f2
pop ecx
push dword [ebp - 8]
call fcn.0041e4c4
mov esi, eax
cmp esi, ebx
pop ecx
je 0x417feb
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jl 0x417f8d
cmp esi, ebx
je 0x417fd1
push esi
call fcn.0041e5f2
pop ecx
push dword [ebp - 0xc]
push str.GetAdaptersAddresses_failed___ld_.
push edi
call fcn.00414b27
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
call dword [0x422140]
push eax
push str.Allocate_memory_failed___ld__in_M_GetAdaptersAddresses.
push edi
call fcn.00414b27
add esp, 0xc
cmp dword [ebp - 0xc], ebx
jne 0x417fc6
cmp esi, ebx
je 0x417fd1
push dword [ebp + 8]
mov ecx, esi
call fcn.0041802e
mov edi, eax
cmp edi, ebx
je 0x418023
push dword [ebp + 8]
call fcn.004189aa
mov edi, eax
push esi
call fcn.0041e5f2
pop ecx
mov eax, edi
jmp 0x417fe4

Function at 0x418f6e
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
test edx, edx
push edi
mov edi, dword [ebp + 8]
jle 0x418fd8
sub ecx, edi
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
push esi
inc byte [eax + 0x100]
movzx ecx, byte [eax + 0x100]
lea esi, [ecx + eax]
mov cl, byte [esi]
add byte [eax + 0x101], cl
movzx ecx, byte [eax + 0x101]
mov dl, byte [esi]
add ecx, eax
mov bl, byte [ecx]
mov byte [esi], bl
mov byte [ecx], dl
movzx ecx, byte [eax + 0x101]
movzx edx, byte [eax + 0x100]
mov cl, byte [ecx + eax]
add cl, byte [edx + eax]
mov edx, dword [ebp - 8]
movzx ecx, cl
mov cl, byte [ecx + eax]
xor cl, byte [edx + edi]
mov byte [edi], cl
inc edi
dec dword [ebp - 4]
jne 0x418f85
pop esi
pop ebx
pop edi
leave
ret
Function at 0x419e40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esi + 0x2c]
push edi
lea esp, [esp]
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea edx, [ecx + ebp - 0x106]
cmp eax, edx
mov dword [esp + 0xc], edi
jb 0x419ed0
mov eax, dword [esi + 0x38]
push ebp
lea ecx, [eax + ebp]
push ecx
push eax
call fcn.0041e60a
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], ebp
sub dword [esi + 0x6c], ebp
add esp, 0xc
sub dword [esi + 0x5c], ebp
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x419e9f
sub eax, ebp
jmp 0x419ea1
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x419e90
mov ecx, dword [esi + 0x40]
mov edx, ebp
lea ecx, [ecx + ebp*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x419ec0
sub eax, ebp
jmp 0x419ec2
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x419eb1
add edi, ebp
mov dword [esp + 0xc], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x41a002
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [esp + 0xc]
mov ebx, eax
cmp ebx, ecx
mov dword [esp + 0x10], edx
jbe 0x419ef8
mov ebx, ecx
test ebx, ebx
je 0x419f4c
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x419f1a
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.0041ad80
jmp 0x419f33
cmp eax, 2
jne 0x419f3a
mov ecx, dword [edi]
test ecx, ecx
mov eax, dword [edi + 0x30]
jne 0x419f2c
xor eax, eax
jmp 0x419f37
mov edx, ebx
call fcn.00418fe0
mov edx, dword [esp + 0x10]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.0041e60a
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x419f76
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
add edx, eax
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x419f8a
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x419e50
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x41a002
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x419fd1
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x419fb1
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.0041e5f8
add esp, 0xc
add ebx, edi
pop edi
pop ebp
mov dword [esi + 0x16c0], ebx
pop ebx
add esp, 8
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x41a002
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x419feb
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call fcn.0041e5f8
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x41ca2b
Capabilities:
Hash data with md5

Disassembly:
push 0x5c
push 0
push esi
call fcn.0041e5f8
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
and dword [esi + 0x58], 0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
ret
Function at 0x495b40
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
xor ebx, ebx
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x495b84
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
dec ecx
je 0x495b82
dec ecx
jne 0x495b84
cmp eax, 5
jne 0x495b79
test edx, edx
jne 0x495b79
xor ebx, ebx
jmp 0x495b84
cmp eax, 5
jl 0x495b84
mov bl, 1
jmp 0x495b84
xor ebx, ebx
mov eax, ebx
add esp, 0x94
pop ebx
ret
Function at 0x24561812
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
cmp dword [esi + 0x1b0], 0xffffffff
je 0x2456185f
lea eax, [ebp - 8]
push 8
push eax
push dword [esi + 0x190]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.245650b6
pop ecx
test eax, eax
pop ecx
jl 0x24561869
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x24561869
mov dword [esi + 0x1d0], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x1d4], eax
mov ecx, esi
call fcn.24561c10
pop esi
leave
ret
lea eax, [esi + 0x1d0]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.24565047
add esp, 0xc
test eax, eax
jl 0x245618ac
lea eax, [ebp - 8]
push eax
push dword [esi + 0x190]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0xffff0000
push 0
push 0x142
push dword [esi + 0x190]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x2456185f
push 0
push 0
push 0x14e
push dword [esi + 0x190]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call fcn.245618ca
jmp 0x24561866

Function at 0x24565129
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
cmp eax, esi
push edi
je 0x24565140
mov dword [eax], esi
push esi
push pe_nt_image_headers32
push 3
push esi
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 4], ebx
jne 0x2456516d
mov eax, 0x80070005
jmp 0x245651f8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 2
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, esi
je 0x245651e8
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, esi
je 0x245651d6
lea ecx, [ebp + 8]
push esi
push ecx
push dword [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp ebx, esi
je 0x245651cf
push dword [ebp + 0xc]
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, eax
cmp ebx, esi
jl 0x245651cf
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x245651db
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x245651db
mov ebx, 0x80070005
jmp 0x245651db
mov ebx, 0x8007000e
cmp ebx, esi
jge 0x245651ed
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x245651ed
mov ebx, 0x80070005
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret