joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48c6d5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x48c6f9
cmp dword [esi + 8], edi
jge 0x48c6f1
push esi
call fcn.00487cca
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x48c722
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x48c705
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x48c73c
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x48c72d
xor dl, dl
jmp 0x48c732
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x48c724
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x48c76f
push 0x10a9c0
call fcn.00487bed
pop ecx
jmp 0x48c7af
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x48c77f
push 0x10a9d0
jmp 0x48c767
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x48c799
push edi
push ecx
push esi
call fcn.0048fa07
add esp, 0xc
test eax, eax
je 0x48c7af
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004b3ff0
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x4b1db6
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x1427f8
call fcn.004b2c30
push 1
call fcn.004b180d
pop ecx
test al, al
jne 0x4b1c6d
push 7
call fcn.004b2a7f
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.004b17d8
mov byte [ebp - 0x24], al
mov eax, dword [0x14a868]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4b1c66
test eax, eax
jne 0x4b1cd7
mov dword [0x14a868], ecx
push 0x105860
push 0x105838
call fcn.004cbd0c
pop ecx
pop ecx
test eax, eax
je 0x4b1cba
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4b1db0
push 0x105834
push 0x1057ac
call fcn.004cbcb0
pop ecx
pop ecx
mov dword [0x14a868], 2
jmp 0x4b1cdc
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004b197a
pop ecx
call fcn.004b2d89
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x4b1d0c
push esi
call fcn.004b18f0
pop ecx
test al, al
je 0x4b1d0c
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.004b2834
call esi
call fcn.004b2d8f
mov esi, eax
cmp dword [esi], edi
je 0x4b1d2a
push esi
call fcn.004b18f0
pop ecx
test al, al
je 0x4b1d2a
push dword [esi]
call fcn.004c3586
pop ecx
call fcn.004b2b9b
movzx eax, ax
push eax
call fcn.004cbc6a
push eax
push edi
push 0xfffff000
call fcn.00405fd0
mov esi, eax
call fcn.004c3495
test al, al
jne 0x4b1d55
push esi
call fcn.004c35be
test bl, bl
jne 0x4b1d5e
call fcn.004c3561
push edi
push 1
call fcn.004b1997
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4b1db0
call fcn.004b2c76
ret
call fcn.004b2cda
jmp 0x4b1c4e

Function at 0x4cfec9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cfd48
Function at 0x4dea40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x4dea69
push dword [esi + 0xfc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x4dea9f
push dword [esi + 0xf8]
lea eax, [eax + eax*2]
push 1
add eax, 0x11d3b4
push 2
push eax
call fcn.004c1fd3
push dword [esi + 0xf8]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004c1fd3
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4ed530
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [ecx - 0xc8]
mov edx, dword [edi]
cmp eax, 0x64
jb 0x4ed55f
push 0x11f814
push edx
call fcn.004de570
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebp
ret
cmp ecx, 0xc8
je 0x4ed576
push ecx
push 0x11f830
push edx
call fcn.004de610
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x4ed58d
push edi
call fcn.004ed070
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x14
jne 0x4ed5a1
push edi
call fcn.004ecb70
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x15
jne 0x4ed5b5
push edi
call fcn.004ecfd0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x16
jne 0x4ed5c5
push edi
call fcn.004ed050
mov esi, eax
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x4f5030
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.004c7b00
add esp, 0x18
test eax, eax
je 0x4f5052
cmp eax, 0xffffffff
jne 0x4f5054
xor eax, eax
pop ebp
ret

Function at 0x4f57b0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x4f6440
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x146aa0]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4f646d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x4f64b4
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x4f64ba
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4f651b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x4f64e0
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x4f6547
mov eax, dword [esi + 4]
push 1
push 0x1216f4
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x1216f5
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4f6520
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4f6f00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [ebp + 8], ecx
cmp ecx, 2
jne 0x4f6f29
push dword [eax + 8]
mov ebx, dword [ebp + 0x10]
mov eax, dword [esi + 0xc]
push ebx
push 1
push dword [ebp + 0xc]
call eax
jmp 0x4f6f5f
cmp dword [esi + 8], 0
jne 0x4f6f4e
push 0x12c28c
push dword [eax + 8]
call fcn.004bb457
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4f6f4e
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
push dword [esi + 8]
mov ebx, dword [ebp + 0x10]
push ebx
push 1
push dword [ebp + 0xc]
call fcn.004bb730
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4f6f6c
cmp edi, ebx
jbe 0x4f6f8a
cmp dword [ebp + 8], 2
je 0x4f6f84
push dword [esi + 8]
call fcn.004bb4e4
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4e8b1c
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbdc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov bl, 1
lea esi, [ebp - 0x421]
mov eax, edi
mov edx, ebx
call fcn.004e88d0
mov byte [esi], al
inc ebx
inc esi
cmp bl, 0x41
jne 0x4e8b38
mov bl, 0x1c
mov esi, str.91__
lea edi, [ebp - 0x41]
movzx edx, byte [esi]
mov eax, dword [ebp - 8]
call fcn.004e88d0
mov byte [edi], al
movzx edx, byte [esi + 0x1c]
mov eax, dword [ebp - 8]
call fcn.004e88d0
mov byte [edi + 0x1c], al
inc edi
inc esi
dec bl
jne 0x4e8b54
mov bl, 1
lea esi, [ebp - 0x3a1]
mov ecx, esi
lea eax, [ebp - 0x421]
mov edx, ebx
call fcn.004e8ab0
inc ebx
add esi, 0x30
cmp bl, 0x11
jne 0x4e8b7e
mov bl, 1
mov eax, 0x58598c
lea edx, [ebp - 0xa1]
cmp bl, 0x20
ja 0x4e8bb7
movzx ecx, byte [eax]
movzx ecx, byte [ebp + ecx - 0x422]
mov byte [edx], cl
jmp 0x4e8bc4
movzx ecx, byte [eax]
movzx ecx, byte [ebp + ecx - 0x422]
mov byte [edx], cl
inc ebx
inc edx
inc eax
cmp bl, 0x41
jne 0x4e8ba3
mov byte [ebp - 9], 1
lea esi, [ebp - 0x3a1]
cmp byte [ebp + 8], 0
je 0x4e8bee
lea ecx, [ebp - 0x61]
mov edx, esi
lea eax, [ebp - 0x81]
call fcn.004e8938
jmp 0x4e8c15
movzx eax, byte [ebp - 9]
mov edx, 0x11
sub edx, eax
mov eax, edx
add eax, eax
lea eax, [eax + eax*2]
lea edx, [ebp + eax*8 - 0x3d1]
lea ecx, [ebp - 0x61]
lea eax, [ebp - 0x81]
call fcn.004e8938
mov bl, 0x20
lea eax, [ebp - 0xa1]
movzx edx, byte [eax]
xor byte [eax + 0x40], dl
inc eax
dec bl
jne 0x4e8c1d
push esi
lea esi, [ebp - 0x81]
lea edi, [ebp - 0xa1]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
push esi
lea esi, [ebp - 0x61]
lea edi, [ebp - 0x81]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
inc byte [ebp - 9]
add esi, 0x30
cmp byte [ebp - 9], 0x11
jne 0x4e8bd6
mov bl, 0x40
mov esi, 0x5859cc
lea eax, [ebp - 0x3e1]
movzx edx, byte [esi]
cmp dl, 0x20
ja 0x4e8c83
movzx edx, dl
movzx edx, byte [ebp + edx - 0x82]
mov byte [eax], dl
jmp 0x4e8c90
movzx edx, dl
movzx edx, byte [ebp + edx - 0xc2]
mov byte [eax], dl
inc eax
inc esi
dec bl
jne 0x4e8c6c
mov bl, 1
lea esi, [ebp - 0x3e1]
movzx ecx, byte [esi]
mov eax, dword [ebp - 4]
mov edx, ebx
call fcn.004e88f8
inc ebx
inc esi
cmp bl, 0x41
jne 0x4e8c9e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x574b44
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffbd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1424], ecx
mov dword [ebp - 0x1428], ecx
mov dword [ebp - 0x1420], ecx
mov dword [ebp - 0x141c], ecx
mov dword [ebp - 0x1418], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x574df9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1418]
mov ecx, ebx
mov edx, 0x574e14
call fcn.00406b1c
mov eax, dword [ebp - 0x1418]
call fcn.004067d4
push eax
call fcn.00409980
mov eax, ebx
call fcn.0045d964
test al, al
je 0x574dc6
xor eax, eax
push ebp
push 0x574c1c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x20
mov ecx, ebx
mov dl, 1
mov eax, dword [0x471d30]
call fcn.00477dd0
mov ebx, eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
sub eax, 0x1400
sbb edx, 0
push edx
push eax
mov eax, ebx
call fcn.00477914
lea edx, [ebp - 0x1411]
mov ecx, 0x1400
mov eax, ebx
call fcn.00477b48
mov eax, ebx
call fcn.004045f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x574c58
lea eax, [ebp - 4]
lea edx, [ebp - 0x1411]
mov ecx, 0x1401
push 0
call fcn.00405be0
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00406964
push 0x574e58
call fcn.00409980
mov edx, dword [ebp - 8]
mov eax, 0x574e70
call fcn.004070b4
mov ebx, eax
cmp ebx, 1
jl 0x574dc6
push 0x574e78
call fcn.00409980
mov edx, dword [ebp - 8]
mov eax, 0x574e90
call fcn.004070b4
mov esi, eax
cmp esi, 1
jl 0x574dc6
add ebx, 3
push 0x574e98
call fcn.00409980
cmp esi, ebx
jl 0x574dc6
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
sub ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00406d9c
lea eax, [ebp - 0x1420]
mov ecx, dword [ebp - 0xc]
mov edx, 0x574eb0
call fcn.00406b1c
mov eax, dword [ebp - 0x1420]
call fcn.004067d4
push eax
call fcn.00409980
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x574d24
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x574d24
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00405a78
test eax, eax
je 0x574d2d
sub eax, 4
mov eax, dword [eax]
dec eax
jl 0x574dc6
mov dl, 1
mov eax, dword [0x471ad8]
call fcn.004778bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x574dbf
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea edx, [ebp - 0x1428]
mov eax, dword [0x58872c]
mov eax, dword [eax]
call fcn.004d04d4
mov eax, dword [ebp - 0x1428]
lea edx, [ebp - 0x1424]
call fcn.0045dd70
lea eax, [ebp - 0x1424]
mov edx, 0x574ecc
call fcn.00406a9c
mov eax, dword [ebp - 0x1424]
push eax
call fcn.00467084
mov ecx, eax
mov eax, dword [ebp - 0x10]
pop edx
mov ebx, dword [eax]
call dword [ebx + 0x80]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x574dc6
mov eax, dword [ebp - 0x10]
call fcn.004045f8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x574e00
lea eax, [ebp - 0x1428]
mov edx, 5
call fcn.00406740
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00406740
lea eax, [ebp - 4]
call fcn.004058a8
ret
Function at 0x5758c4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, edx
call fcn.00409830
sub eax, dword [esi]
cmp eax, 0x7530
jb 0x5758e1
mov bl, 1
call fcn.00409830
mov dword [esi], eax
jmp 0x5758e3
xor ebx, ebx
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x576510
Capabilities:
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov edi, edx
xor ebx, ebx
mov eax, edi
call fcn.004067d4
mov esi, eax
push esi
call fcn.004096bc
cmp eax, 3
jne 0x576568
push esi
call fcn.004096cc
cmp eax, 1
je 0x576568
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
mov eax, dword [0x58849c]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0xc]
jne 0x576564
cmp eax, dword [ebp + 8]
jae 0x576568
jmp 0x576566
jge 0x576568
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x402de9
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x1ac]
sub esp, 0x22c
mov eax, dword [0x4bca50]
xor eax, ebp
mov dword [ebp + 0x1a8], eax
mov eax, dword [ebp + 0x1b4]
push ebx
push esi
push edi
push 0x4acb48
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], eax
call fcn.004018f6
lea eax, [ebp - 0x7c]
push eax
call fcn.00403053
mov ebx, 0x208
push ebx
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.00470920
mov eax, dword [ebp - 0x78]
add esp, 0x10
cmp dword [ebp - 0x64], 8
jae 0x402e46
lea eax, [ebp - 0x78]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x4ac9d8
push eax
lea eax, [ebp - 0x60]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x60]
push eax
call edi
test eax, eax
lea eax, [ebp - 0x60]
je 0x402eb7
push 0x4aca18
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x60]
push eax
call fcn.00401a34
mov ecx, dword [ebp - 0x80]
push 0x4aca20
call fcn.0040197d
push 0
push 1
lea ecx, [ebp - 0x7c]
call fcn.00401a58
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x1a8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047099a
add ebp, 0x1ac
leave
ret
push ebx
push 0
push eax
call fcn.00470920
mov eax, dword [ebp - 0x78]
add esp, 0xc
cmp dword [ebp - 0x64], 8
jae 0x402ecf
lea eax, [ebp - 0x78]
push 0x4aca24
push eax
lea eax, [ebp - 0x60]
push eax
call esi
lea eax, [ebp - 0x60]
push eax
call edi
test eax, eax
je 0x402eea
lea eax, [ebp - 0x60]
jmp 0x402e6b
lea eax, [ebp - 0x7c]
push eax
call fcn.00403d28
mov ecx, eax
call fcn.00403d53
push ebx
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.00470920
mov eax, dword [ebp - 0x78]
add esp, 0xc
cmp dword [ebp - 0x64], 8
jae 0x402f15
lea eax, [ebp - 0x78]
push 0x4ac9d8
push eax
lea eax, [ebp - 0x60]
push eax
call esi
lea eax, [ebp - 0x60]
push eax
call edi
test eax, eax
lea eax, [ebp - 0x60]
jne 0x402e6b
push ebx
push 0
push eax
call fcn.00470920
mov eax, dword [ebp - 0x78]
add esp, 0xc
cmp dword [ebp - 0x64], 8
jae 0x402f4a
lea eax, [ebp - 0x78]
push 0x4aca24
push eax
lea eax, [ebp - 0x60]
push eax
call esi
lea eax, [ebp - 0x60]
push eax
call edi
test eax, eax
je 0x402f9e
push 0x4aca18
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x60]
push eax
call fcn.00401a34
mov ecx, dword [ebp - 0x80]
push 0x4aca20
call fcn.0040197d
xor esi, esi
inc esi
push 0
push 1
lea ecx, [ebp - 0x7c]
call fcn.00401a58
mov eax, esi
jmp 0x402e9f
xor esi, esi
jmp 0x402f8b
Function at 0x402fa2
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x4bca50]
xor eax, ebp
mov dword [ebp + 0x1a4], eax
push esi
mov esi, ecx
push 0x4acb48
lea ecx, [ebp - 0x80]
call fcn.004018f6
lea eax, [ebp - 0x80]
push eax
call fcn.00402de9
pop ecx
test eax, eax
je 0x40304f
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x62]
push eax
call fcn.00470920
mov eax, dword [ebp - 0x7c]
add esp, 0xc
cmp dword [ebp - 0x68], 8
jae 0x402fff
lea eax, [ebp - 0x7c]
push str.download_interface.dll
push eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40304f
lea eax, [ebp - 0x64]
push eax
mov ecx, esi
call fcn.00401a34
xor esi, esi
inc esi
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.00401a58
mov ecx, dword [ebp + 0x1a4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0047099a
add ebp, 0x1a8
leave
ret
xor esi, esi
jmp 0x40302b

Function at 0x403053
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x4bca50]
xor eax, ebp
mov dword [ebp + 0x38c], eax
push esi
mov esi, dword [ebp + 0x398]
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.00470920
or dword [ebp - 0x78], 0xffffffff
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
push str.instdir
push str.SOFTWAREThunder_NetworkThunderOem_thunder_backwnd
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], 0x200
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x403101
lea eax, [ebp - 0x74]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4030c3
sub eax, edx
sar eax, 1
je 0x403101
lea eax, [ebp - 0x74]
push eax
mov ecx, esi
call fcn.00401a34
mov eax, dword [esi + 0x14]
dec eax
push eax
mov ecx, esi
call fcn.00403205
cmp word [eax], 0x5c
je 0x4030fc
push 0x4aca20
mov ecx, esi
call fcn.0040197d
xor eax, eax
inc eax
jmp 0x403103
xor eax, eax
mov ecx, dword [ebp + 0x38c]
xor ecx, ebp
pop esi
call fcn.0047099a
add ebp, 0x390
leave
ret
Function at 0x403119
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x4bca50]
xor eax, ebp
mov dword [ebp + 0x38c], eax
push esi
mov esi, dword [ebp + 0x398]
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.00470920
or dword [ebp - 0x78], 0xffffffff
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
push str.Path
push str.SOFTWAREThunder_NetworkXmp
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], 0x200
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4031a9
lea eax, [ebp - 0x74]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x403189
sub eax, edx
sar eax, 1
je 0x4031a9
lea eax, [ebp - 0x74]
push eax
mov ecx, esi
call fcn.00401a34
xor eax, eax
inc eax
jmp 0x4031ab
xor eax, eax
mov ecx, dword [ebp + 0x38c]
xor ecx, ebp
pop esi
call fcn.0047099a
add ebp, 0x390
leave
ret

Function at 0x4032fe
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov ebx, eax
cmp dword [ebp + 8], esi
je 0x403389
cmp dword [ebp + 0xc], esi
je 0x403389
cmp ebx, esi
jle 0x403389
push esi
push 0x80
push 2
push esi
push esi
push 7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40333a
mov eax, 0x80004005
jmp 0x40338e
push edi
push esi
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor edi, edi
push esi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push ebx
add eax, edi
push eax
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403372
cmp dword [ebp + 8], esi
jle 0x403372
sub ebx, dword [ebp + 8]
add edi, dword [ebp + 8]
cmp ebx, esi
jg 0x403347
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x40337b
mov dword [eax], edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
jmp 0x40338e
mov eax, 0x86180008
pop esi
pop ebx
leave
ret

Function at 0x403392
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push edi
mov eax, 0x80
push eax
push 3
push edi
push edi
push eax
push dword [ebp + 8]
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4033c2
mov eax, 0x80004005
jmp 0x4033db
lea eax, [ebp + 0xc]
push eax
push ebx
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x403459
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jg 0x403476
mov eax, 0x80004005
jmp 0x4034f1
lea eax, [esi + 4]
push edi
push eax
call fcn.0046f72f
pop ecx
mov edi, eax
push edi
push esi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4034b2
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4aca20
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4034b9
mov eax, 0x80004005
jmp 0x4034f0
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0xa]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [edx], ecx
mov edx, dword [eax + 8]
mov ecx, 0xffff
and edx, ecx
mov dword [esi], edx
movzx edx, word [eax + 0xe]
mov esi, dword [ebp + 0x14]
mov dword [esi], edx
mov eax, dword [eax + 0xc]
and eax, ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [ecx], eax
call fcn.00470646
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret