joyce8/EMBER2024-capa huggingface dataset:
Function at 0x598885
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00592769
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00592769
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x5988fc
cmp word [ecx], dx
je 0x5988fc
mov eax, dword [0x5c54a4]
push edi
dec eax
push eax
push 0x5c5390
call fcn.00598824
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x59896f
cmp word [eax], dx
je 0x59896f
mov eax, dword [edi]
test eax, eax
je 0x598920
cmp word [eax], dx
je 0x598920
lea eax, [ebp - 0x10]
push eax
call fcn.005981f2
jmp 0x598929
lea eax, [ebp - 0x10]
push eax
call fcn.0059828d
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x598999
mov eax, dword [0x5c538c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5c5080
call fcn.00598824
add esp, 0xc
test al, al
je 0x598999
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x598964
cmp word [eax], di
je 0x598964
lea eax, [ebp - 0x10]
push eax
call fcn.005981f2
pop ecx
jmp 0x59899b
lea eax, [ebp - 0x10]
push eax
call fcn.0059828d
jmp 0x598961
mov eax, dword [edi]
test eax, eax
je 0x598986
cmp word [eax], dx
je 0x598986
lea eax, [ebp - 0x10]
push eax
call fcn.005981a7
pop ecx
jmp 0x598999
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x598a64
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.005986a9
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x598a64
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x598a64
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x598a64
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5989f1
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0059390d
test ebx, ebx
je 0x598a5f
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0059390d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x598a64
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x598a64
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.005829a0
add esp, 0x10
xor eax, eax
inc eax
jmp 0x598a66
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057e94f
leave
ret
Function at 0x599cd7
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00599c53
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x599e46
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x599e46
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x599dfb
jg 0x599d33
test eax, eax
je 0x599df1
push 1
push 0x1000
call fcn.005932fc
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x599d56
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x599de8
push 0x8000
push ebx
call fcn.00591c44
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x599d7f
jg 0x599d7a
cmp ecx, 0x1000
jb 0x599d7f
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005904db
add esp, 0x10
cmp eax, 0xffffffff
je 0x599dc4
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x599d7a
jl 0x599dab
test ecx, ecx
jne 0x599d6c
push dword [ebp - 0xc]
push ebx
call fcn.00591c44
push esi
call fcn.00593359
add esp, 0xc
xor ebx, ebx
jmp 0x599e54
cmp byte [edi + 0x24], 0
je 0x599ddb
cmp dword [edi + 0x20], 5
jne 0x599ddb
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x599de6
mov ebx, dword [edi + 0x18]
jmp 0x599de8
xor ebx, ebx
push esi
call fcn.00593359
pop ecx
jmp 0x599e54
test ecx, ecx
jg 0x599dbd
jl 0x599dfb
test eax, eax
jae 0x599dbd
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00599950
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x599e1b
cmp byte [edi + 0x1c], 0
je 0x599dbd
jmp 0x599e4c
push ebx
call fcn.005996fe
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x599dbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x599e54
cmp byte [edi + 0x1c], 0
je 0x599e51
mov ebx, dword [edi + 0x18]
jmp 0x599e54
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00599950
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x59a0f4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x59a13f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0059a28f
test al, al
jne 0x59a139
sub edx, 2
cmp edx, edi
jne 0x59a11f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x59a161
lea eax, [edi + 2]
cmp edx, eax
je 0x59a161
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0059a040
add esp, 0x10
jmp 0x59a25b
push esi
lea ecx, [ebp - 0x255]
call fcn.0059a28f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x59a1a4
push dword [ebp - 0x25c]
jmp 0x59a151
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x59a1e1
cmp word [ebp - 0x226], 0
je 0x59a202
cmp word [ebp - 0x226], ax
jne 0x59a1e1
cmp word [ebp - 0x224], 0
je 0x59a202
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0059a040
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x59a24e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x59a1bb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x59a236
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x59a25b
push 0x599e70
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00588520
add esp, 0x10
jmp 0x59a22b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057e94f
leave
ret

Function at 0x59f060
Capabilities:
Parse pe header

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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6cf000]
mov dword [edi + 0x72a120], 0xf4abf997
push edi
jmp 0xd1b0ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xd1b0d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd1b0c0
mov eax, 1
add ebx, ebx
jne 0xd1b0e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xd1b0f4
jne 0xd1b113
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd1b113
dec eax
add ebx, ebx
jne 0xd1b100
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xd1b0d8
add ebx, ebx
jne 0xd1b10f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xd1b165
xor ecx, ecx
sub eax, 3
jb 0xd1b12b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xd1b19a
sar eax, 1
mov ebp, eax
jmp 0xd1b136
add ebx, ebx
jne 0xd1b136
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd1b104
inc ecx
add ebx, ebx
jne 0xd1b144
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd1b104
add ebx, ebx
jne 0xd1b151
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xd1b146
jne 0xd1b162
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xd1b146
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xd1b184
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xd1b176
jmp 0xd1b0c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xd1b184
add edi, ecx
jmp 0xd1b0c6
pop esi
mov edi, esi
mov ecx, 0x2aebd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xd1b1a2
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0xd1b1a7
lea edi, [esi + 0x917000]
mov eax, dword [edi]
or eax, eax
je 0xd1b218
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x91fec4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x920054]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xd1b1cd
mov ecx, edi
jns 0xd1b1fc
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x920058]
or eax, eax
je 0xd1b212
mov dword [ebx], eax
add ebx, 4
jmp 0xd1b1ea
call dword [esi + 0x920068]
mov ebp, dword [esi + 0x92005c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
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 0xd1b24c
sub esp, 0xffffff80
jmp 0x4040c8
Function at 0x407458
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x407467
pop dword [ebp - 0x48]
mov eax, 0x9d2c4dcc
add eax, 0x6314269b
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x3944a610
add dword [ebp - 0x58], 0x150d9f3b
mov dword [ebp - 0x54], 0xd7568bb8
add dword [ebp - 0x54], 0x5adcc08d
mov dword [ebp - 0x50], 0xcf8addeb
add dword [ebp - 0x50], 0x7cc16643
mov dword [ebp - 0x4c], 0x26ac458b
add dword [ebp - 0x4c], 0xd953ba75
lea eax, [ebp - 0x58]
push eax
mov eax, 0x9db26953
add eax, 0x628e1725
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xc1fce240
sub dword [ebp - 0x58], 0x4d8a78ea
mov dword [ebp - 0x54], 0x611a86dc
add dword [ebp - 0x54], 0xe051da99
mov dword [ebp - 0x50], 0xb89c39e5
add dword [ebp - 0x50], 0xaad33287
mov dword [ebp - 0x4c], 0x9296ad46
add dword [ebp - 0x4c], 0x6d6952ba
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x1c8b0f20
sub eax, 0x1c4a8ea4
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x38c64
push 0
call eax
mov ecx, 0xdc5776b8
add ecx, 0x23a8d7f9
mov edi, eax
mov ebx, 0x53f3f180
add ebx, 0xac512280
add ebx, dword [ebp - 0x48]
mov esi, 0xeab0447a
sub esi, 0xa720d04b
mov edx, dword [ebx]
sub dword [ebp - 0x18], 0x4408ccc
xor edx, esi
xor dword [ebp - 0x10], edx
mov dword [edi], edx
sub dword [ebp - 0x30], esi
add edi, 4
add ebx, 0x13f66d70
sub ebx, 0x13f66d6c
loop 0x407589
add eax, 0x12d97
xor ebx, ebx
add ebx, eax
add eax, 0xffc59195
add eax, 0x3a6e70
mov ecx, 0xa79a027e
sub ecx, 0xa75a027e
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ed0
nop
mov ecx, 0x3b664f9c
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x77b82427
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x402156
Capabilities:
Hash data with md5

Disassembly:
push esi
xor eax, eax
push 0x40
lea esi, [ecx + 0x5c]
push eax
push esi
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
call fcn.004179f0
add esp, 0xc
mov byte [esi], 0x80
pop esi
ret

Function at 0x40218f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x43c5a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 0x48], eax
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x14], bl
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp + 0xc]
stosw word es:[edi], ax
push 0x436bd8
push ecx
stosb byte es:[edi], al
call fcn.00413785
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4021d7
xor al, al
jmp 0x4022d6
push esi
push 2
push ebx
push edi
call fcn.00413e9e
push edi
call fcn.00413da7
push ebx
push ebx
push edi
mov esi, eax
call fcn.00413e9e
push esi
call fcn.00413265
push edi
push esi
push 1
push eax
mov dword [ebp - 0x44], eax
call fcn.004139a2
mov ecx, dword [ebp - 0x40]
add esp, 0x30
push esi
mov esi, dword [ebp - 0x44]
push esi
call fcn.004022e6
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x14]
push eax
call fcn.004023aa
test esi, esi
je 0x40222b
push esi
call fcn.004131ef
pop ecx
push edi
call fcn.00413f89
pop ecx
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x37]
mov byte [ebp - 0x38], bl
rep stosd dword es:[edi], eax
mov byte [ebp - 0x3c], bl
mov word [ebp - 0x3b], ax
push 0x10
lea eax, [ebp - 0x3c]
push eax
movzx eax, byte [ebp + ebx - 0x14]
push eax
call fcn.0041364d
add esp, 0xc
cmp byte [ebp - 0x3b], 0
jne 0x402291
lea edi, [ebp - 0x38]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402264
mov ax, word [0x436bdc]
lea edx, [ebp - 0x3c]
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x40227a
lea edi, [ebp - 0x38]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402287
jmp 0x4022ab
lea edx, [ebp - 0x3c]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x402296
lea edi, [ebp - 0x38]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4022a3
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
cmp ebx, 0x10
jl 0x402246
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x38]
mov ecx, edx
sub eax, ecx
pop esi
mov cl, byte [edx]
mov byte [eax + edx], cl
inc edx
test cl, cl
jne 0x4022ca
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004124f9
leave
ret 8
Function at 0x403003
Capabilities:
Delete file

Disassembly:
push 0x170
mov eax, 0x42bb67
call fcn.0041599c
mov esi, dword [ebp + 8]
push 0xf
xor ecx, ecx
pop ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x13c], ecx
mov byte [ebp - 0x14c], cl
push 0x104
lea eax, [ebp - 0x11c]
push eax
push ecx
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x164]
call fcn.004012b5
mov edi, 0x436bc0
push edi
mov byte [ebp - 4], 1
call fcn.00401001
pop ecx
push eax
push ecx
push edi
lea ecx, [ebp - 0x164]
call fcn.00402bdc
push eax
push 0
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x164]
call fcn.00401b80
push eax
lea ecx, [ebp - 0x14c]
call fcn.00401acd
lea ecx, [ebp - 0x17c]
call fcn.004012e4
push str.Aisinosysinfo.inf
lea edx, [ebp - 0x14c]
lea ecx, [ebp - 0x17c]
call fcn.00401dcd
pop ecx
push eax
mov ecx, esi
call fcn.00401acd
lea ecx, [ebp - 0x17c]
call fcn.004012e4
mov dword [ebp - 0x120], ebx
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x124], ebx
mov byte [ebp - 0x134], bl
call fcn.0040157a
mov esi, str.Aisinosystem.inf
push esi
mov byte [ebp - 4], 2
call fcn.00401001
pop ecx
push eax
push esi
lea ecx, [ebp - 0x134]
call fcn.00401c85
cmp dword [ebp - 0x120], 0x10
lea eax, [ebp - 0x134]
cmovae eax, dword [ebp - 0x134]
push ebx
push eax
call fcn.00414180
pop ecx
pop ecx
test eax, eax
jne 0x40314a
cmp dword [ebp - 0x120], 0x10
lea eax, [ebp - 0x134]
cmovae eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x134]
call fcn.004012e4
lea ecx, [ebp - 0x164]
call fcn.004012e4
lea ecx, [ebp - 0x14c]
call fcn.004012e4
xor eax, eax
call fcn.0041595a
ret 4
Function at 0x403a41
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x43c5a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
mov esi, dword [eax]
cmp esi, eax
je 0x403a89
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401a84
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x1c]
call fcn.004012e4
mov esi, dword [esi]
cmp esi, dword [edi]
jne 0x403a5d
mov ecx, edi
call fcn.00403ab0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004124f9
leave
ret

Function at 0x404003
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
lea ecx, [ebx - 3]
xor esi, esi
xor eax, eax
mov dword [ebp - 4], edx
test ecx, ecx
jle 0x4040ce
lea eax, [ecx - 1]
push 3
pop ecx
xor edx, edx
div ecx
push 3
pop edx
lea ecx, [eax + 1]
mov eax, ecx
mov dword [ebp - 8], ecx
mov ebx, ecx
shl eax, 2
imul ecx, ecx, 3
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov esi, dword [ecx]
mov ecx, esi
shr ecx, 8
and ecx, 0xf
mov eax, esi
shr eax, 0x16
shl ecx, 2
and eax, edx
or ecx, eax
call fcn.00403fc6
mov ecx, esi
shr ecx, 0x10
and ecx, 0x3f
movsx edx, al
call fcn.00403fc6
movsx eax, al
shl eax, 8
or edx, eax
mov ecx, esi
shr ecx, 0xc
mov eax, esi
and eax, 3
and ecx, 0xf
shl eax, 4
or ecx, eax
shl edx, 8
call fcn.00403fc6
movsx eax, al
shr esi, 2
or edx, eax
and esi, 0x3f
mov ecx, esi
shl edx, 8
call fcn.00403fc6
mov ecx, dword [ebp - 4]
movsx eax, al
or edx, eax
mov dword [edi], edx
push 3
pop edx
add ecx, edx
add edi, 4
mov dword [ebp - 4], ecx
dec ebx
jne 0x404049
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
jmp 0x4040d0
mov ecx, edx
cmp eax, ebx
jge 0x404166
sub ebx, eax
xor edx, edx
mov dword [ebp + 8], edx
test ebx, ebx
jle 0x4040f4
push ebx
push ecx
lea eax, [ebp + 8]
push eax
call fcn.00415210
mov edx, dword [ebp + 8]
add esp, 0xc
mov ecx, edx
shr ecx, 2
and ecx, 0x3f
call fcn.00403fc6
mov byte [edi], al
mov ecx, edx
shr ecx, 0xc
mov eax, edx
and eax, 3
and ecx, 0xf
shl eax, 4
or ecx, eax
call fcn.00403fc6
push 0x3d
mov byte [edi + 1], al
pop eax
cmp ebx, 1
jle 0x404146
mov ecx, edx
shr ecx, 8
and ecx, 0xf
mov eax, edx
shr eax, 0x16
shl ecx, 2
and eax, 3
or ecx, eax
call fcn.00403fc6
push 0x3d
mov cl, al
pop eax
jmp 0x404148
mov cl, al
mov byte [edi + 2], cl
cmp ebx, 2
jle 0x40415d
shr edx, 0x10
and edx, 0x3f
mov ecx, edx
call fcn.00403fc6
mov byte [edi + 3], al
add edi, 4
add esi, 4
mov byte [edi], 0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x404263
Capabilities:
Delete file

Disassembly:
push 0x70
mov eax, 0x42bd11
call fcn.0041599c
mov edi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x7c], eax
xor eax, eax
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x5c], al
mov dword [ebp - 4], eax
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x78], eax
call fcn.00401a84
mov byte [ebp - 4], 1
cmp dword [esi + 0x10], 0
jne 0x4042ec
lea eax, [ebp - 0x2c]
cmp eax, ebx
je 0x4042b8
push 0xffffffffffffffff
push 0
push ebx
mov ecx, eax
call fcn.0040157a
push ecx
push 0x436bbc
lea ecx, [ebp - 0x2c]
call fcn.00401b05
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
dec ecx
push ecx
inc eax
push eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401b80
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401acd
lea ecx, [ebp - 0x74]
call fcn.004012e4
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x44]
call fcn.00401a84
push ecx
mov esi, 0x436bc0
push esi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00401b05
mov ecx, dword [ebp - 0x34]
sub ecx, eax
cmp ecx, 1
je 0x404325
push esi
call fcn.00401001
pop ecx
push eax
push esi
lea ecx, [ebp - 0x44]
call fcn.00401c85
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x44]
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00403427
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [edi + 0x14], 0x10
jb 0x404350
mov edi, dword [edi]
push edi
push str.MyDownLoad_strFileName:_s
call fcn.00403c7f
pop ecx
pop ecx
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
call fcn.004043a1
mov esi, dword [ebp - 0x78]
push esi
push str.MyDownLoad_res_code:_d
call fcn.00403c7f
pop ecx
pop ecx
neg esi
lea ecx, [ebp - 0x44]
sbb esi, esi
call fcn.004012e4
lea ecx, [ebp - 0x2c]
call fcn.004012e4
lea ecx, [ebp - 0x5c]
call fcn.004012e4
mov eax, esi
call fcn.0041595a
ret 0xc
Function at 0x404712
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x43c5a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
test ecx, ecx
jne 0x404733
xor eax, eax
jmp 0x40480d
push esi
mov esi, ecx
push edi
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x14]
mov ecx, eax
ror ecx, 8
mov esi, 0xff00ff00
and ecx, esi
rol eax, 8
mov edx, 0xff00ff
and eax, edx
or ecx, eax
mov eax, dword [ebp - 0x10]
xor ecx, 0xa3b1bac6
mov dword [ebp - 0xa4], ecx
mov ecx, eax
ror ecx, 8
and ecx, esi
rol eax, 8
and eax, edx
or ecx, eax
mov eax, dword [ebp - 0xc]
xor ecx, 0x56aa3350
mov dword [ebp - 0xa0], ecx
mov ecx, eax
ror ecx, 8
and ecx, esi
rol eax, 8
and eax, edx
or ecx, eax
mov eax, dword [ebp - 8]
xor ecx, 0x677d9197
mov dword [ebp - 0x9c], ecx
mov ecx, eax
ror ecx, 8
and ecx, esi
rol eax, 8
and eax, edx
or ecx, eax
xor ecx, 0xb27022dc
mov dword [ebp - 0x98], ecx
xor esi, esi
mov ecx, dword [esi + 0x436b38]
xor ecx, dword [ebp + esi - 0x98]
xor ecx, dword [ebp + esi - 0x9c]
xor ecx, dword [ebp + esi - 0xa0]
call fcn.004046ef
mov edx, eax
rol edx, 0x17
mov ecx, eax
rol ecx, 0xd
xor edx, ecx
xor edx, dword [ebp + esi - 0xa4]
xor edx, eax
mov dword [ebp + esi - 0x94], edx
mov dword [esi + ebx], edx
add esi, 4
cmp esi, 0x80
jl 0x4047be
xor eax, eax
pop edi
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004124f9
leave
ret