joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4156a0
Capabilities:
Check http status code
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x19054
call fcn.00430ac0
mov eax, dword [0x44666c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0
push 0
push 1
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
jne 0x41570d
lea eax, [edi + 4]
mov dword [edi], eax
mov byte [eax], 0
push 0x43c7f1
or eax, 0xffffffff
mov esi, edi
call fcn.004139f0
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
cmp eax, ecx
je 0x415871
push eax
call fcn.0041dba1
add esp, 4
mov eax, edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d129
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push ebx
push 0
push 0x102
push 0
push 0
push edx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
xor eax, eax
cmp ebx, eax
jne 0x415738
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x415846
push eax
lea edx, [ebp - 0x19054]
push edx
mov dword [ebp - 0x19050], eax
mov dword [ebp - 0x19054], eax
lea eax, [ebp - 0x19050]
push eax
push 0x20000013
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [ebp - 0x19050], 0x190
ja 0x41583a
push 0x19000
lea edx, [ebp - 0x19004]
push 0
push edx
mov dword [ebp - 0x1904c], 0
call fcn.004256b0
add esp, 0xc
lea eax, [ebp - 0x1904c]
push eax
push 0x19000
lea ecx, [ebp - 0x19004]
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41583a
mov eax, dword [ebp - 0x1904c]
test eax, eax
je 0x41583a
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp + eax - 0x19004], 0
call ebx
push esi
call ebx
lea eax, [ebp - 0x19004]
lea edx, [ebp - 0x19044]
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x19048]
mov dword [ebp - 0x19048], edx
mov byte [ebp - 0x19044], 0
call fcn.004139f0
push 0x19000
lea ecx, [ebp - 0x19004]
push 0
push ecx
call fcn.004256b0
add esp, 0xc
mov edx, esi
push edx
mov eax, edi
call fcn.004138a0
mov eax, dword [ebp - 0x19048]
lea ecx, [ebp - 0x19044]
cmp eax, ecx
je 0x415830
push eax
call fcn.0041dba1
add esp, 4
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
cmp eax, edx
jmp 0x415865
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
push esi
call ebx
lea eax, [edi + 4]
mov dword [edi], eax
mov byte [eax], 0
push 0x43c7f1
or eax, 0xffffffff
mov esi, edi
call fcn.004139f0
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
cmp eax, ecx
je 0x415870
push eax
call fcn.0041dba1
add esp, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
pop esi
call fcn.0041d129
mov esp, ebp
pop ebp
ret
Function at 0x415b60
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
mov eax, dword [0x44666c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebx + 4]
push edi
mov dword [ebx], eax
mov byte [eax], 0
push 0x43c7f1
or eax, 0xffffffff
mov esi, ebx
call fcn.004139f0
lea eax, [ebp - 0x1ac]
mov dword [ebp - 0x1b0], eax
push str.Software_
or eax, 0xffffffff
lea esi, [ebp - 0x1b0]
mov byte [ebp - 0x1ac], 0
call fcn.004139f0
push str.bianya2
mov eax, esi
call fcn.004138f0
mov eax, dword [ebp - 0x1b0]
lea ecx, [ebp - 0x1b4]
push ecx
push 0x20019
push 0
push eax
push 0x80000002
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x415c54
push 0x103
push eax
lea edx, [ebp - 0x10f]
push edx
mov byte [ebp - 0x110], al
call fcn.004256b0
mov edx, dword [ebp - 0x1b4]
add esp, 0xc
lea eax, [ebp - 0x1b8]
push eax
lea ecx, [ebp - 0x110]
push ecx
push 0
push 0
push 0x43c86c
push edx
mov dword [ebp - 0x1b8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x415c47
lea eax, [ebp - 0x110]
push eax
push 0x43c870
mov edi, ebx
call fcn.00413ea0
add esp, 8
mov ecx, dword [ebp - 0x1b4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebx]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415c60
sub eax, edx
test eax, eax
jg 0x415d78
lea edx, [ebp - 0x1b8]
push edx
lea eax, [ebp - 0x1b4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [ebp - 0x1b4]
push ecx
push 0x20006
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x415d78
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x116]
movzx edx, word [ebp - 0x118]
push ecx
movzx ecx, word [ebp - 0x11e]
lea eax, [ebp - 0x164]
push edx
movzx edx, word [ebp - 0x120]
mov dword [ebp - 0x168], eax
movzx eax, word [ebp - 0x11a]
push eax
push ecx
push edx
push str.__d_02d_02d_02d_02d
lea edi, [ebp - 0x168]
mov byte [ebp - 0x164], 0
call fcn.00413ea0
mov edx, dword [ebp - 0x168]
mov eax, edx
add esp, 0x18
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415d20
sub eax, esi
push eax
mov eax, dword [ebp - 0x1b4]
push edx
push 1
push 0
push 0x43c86c
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x1b4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x168]
push edx
or eax, 0xffffffff
mov esi, ebx
call fcn.004139f0
mov eax, dword [ebp - 0x168]
lea ecx, [ebp - 0x164]
cmp eax, ecx
je 0x415d78
push eax
call fcn.0041dba1
add esp, 4
mov eax, dword [ebp - 0x1b0]
lea edx, [ebp - 0x1ac]
cmp eax, edx
je 0x415d91
push eax
call fcn.0041dba1
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, ebx
pop esi
call fcn.0041d129
mov esp, ebp
pop ebp
ret
Function at 0x415db0
Capabilities:
Check if file exists
Create directory
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438098
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x44666c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x140], eax
push 0x43e164
push 0x66
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x415eeb
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push esi
test ebx, ebx
jne 0x415e2a
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
cmp eax, edx
jmp 0x415ef3
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x415eeb
push edi
call fcn.0041c7bf
add esp, 4
mov dword [0x4492f4], eax
test eax, eax
je 0x415e66
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [0x4492f4]
push eax
push edx
call fcn.0041f8d0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x12c
lea eax, [ebp - 0x13c]
push 0
push eax
call fcn.004256b0
push edi
call fcn.0041b9f0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x415ee6
push 0xffffffffffffffff
lea edx, [ebp - 0x13c]
call fcn.0041ba60
add esp, 4
test eax, eax
jne 0x415ee6
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x415ebe
mov edx, dword [ebp + 0xc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
sub esp, 0x44
lea ecx, [ebp + 0xc]
mov eax, esp
mov dword [ebp - 0x144], esp
push ecx
call fcn.004138a0
mov edx, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x140]
push edx
mov edx, edi
call fcn.00415f20
call fcn.0041baa0
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
cmp eax, ecx
je 0x415efe
push eax
call fcn.0041dba1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d129
mov esp, ebp
pop ebp
ret 0x48
Function at 0x415f20
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438060
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x44666c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x184], edi
mov dword [ebp - 0x188], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [edi + 0x98]
cmp eax, ebx
je 0x415f7e
mov ecx, dword [ebp + 8]
push ebx
push ecx
push 0x52c
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [ebp + 8], ebx
jle 0x416107
jmp 0x415f96
mov esi, dword [ebp - 0x188]
push 0x12c
lea edx, [ebp - 0x180]
push 0
push edx
call fcn.004256b0
add esp, 0xc
test esi, esi
jne 0x415fbc
mov dword [0x449324], 0x10000
jmp 0x415fe1
cmp dword [esi], 1
je 0x415fcd
mov dword [0x449324], 0x80000
jmp 0x415fe1
mov ecx, dword [esi + 4]
push ebx
lea edx, [ebp - 0x180]
call fcn.0041afe0
mov dword [0x449324], eax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0
test edi, edi
jne 0x415ff7
mov edi, 0x43c7f1
mov ecx, edi
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x416000
sub ecx, esi
mov esi, ecx
cmp esi, 0x3f
jl 0x416028
lea eax, [esi + 1]
push eax
push 0
mov dword [ebp - 0x54], 0
call fcn.0041e645
add esp, 8
mov dword [ebp - 0x54], eax
push esi
push edi
push eax
call fcn.0041e395
mov ecx, dword [ebp - 0x54]
add esp, 0xc
mov byte [esi + ecx], 0
push 0x43c824
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.004138f0
lea edx, [ebp - 0x17c]
push edx
lea eax, [ebp - 0x54]
call fcn.004138f0
test byte [ebp - 0x78], 0x10
je 0x41606c
mov eax, dword [ebp - 0x54]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp - 0x188]
test eax, eax
jne 0x416082
mov dword [0x449324], 0x10000
jmp 0x4160a5
cmp dword [eax], 1
je 0x416093
mov dword [0x449324], 0x80000
jmp 0x4160a5
mov edx, dword [ebp - 0x54]
mov ecx, dword [eax + 4]
push edx
push ebx
call fcn.0041b6d0
mov dword [0x449324], eax
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x4160c1
mov ecx, dword [ebp - 0x54]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp - 0x184]
mov eax, dword [edx + 0x98]
test eax, eax
je 0x4160e0
push 0
push ebx
push 0x52d
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
cmp eax, ecx
je 0x4160f7
push eax
call fcn.0041dba1
add esp, 4
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x415f90
mov edi, dword [ebp - 0x184]
mov eax, dword [edi + 0x98]
test eax, eax
je 0x416121
push 0
push 0
push 0x52e
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
cmp eax, edx
je 0x416134
push eax
call fcn.0041dba1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d129
mov esp, ebp
pop ebp
ret 0x48
Function at 0x416b20
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436ca3
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x44666c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [edi]
lea eax, [ebp - 0x94]
mov dword [ebp - 0x98], eax
push ecx
or eax, 0xffffffff
lea esi, [ebp - 0x98]
mov byte [ebp - 0x94], 0
call fcn.004139f0
push 0x43c824
mov eax, esi
mov dword [ebp - 4], 0
call fcn.004138f0
push str.BianShell.dll
mov eax, esi
call fcn.004138f0
mov eax, dword [edi]
lea edx, [ebp - 0x50]
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x54]
mov dword [ebp - 0x54], edx
mov byte [ebp - 0x50], 0
call fcn.004139f0
push 0x43c824
mov eax, esi
mov byte [ebp - 4], 1
call fcn.004138f0
lea ecx, [ebp - 0xbc]
test ecx, ecx
je 0x416bf4
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x416be7
lea edx, [ebp - 0xbc]
push edx
call eax
jmp 0x416bf4
lea eax, [ebp - 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0xbc]
cmp ax, 9
je 0x416c07
cmp ax, 6
jne 0x416c0e
push str.BianShell64.dll
jmp 0x416c13
push str.BianShell32.dll
lea eax, [ebp - 0x54]
call fcn.004138f0
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp - 0x54]
push ecx
push edx
call fcn.0041ee7a
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
add esp, 8
cmp eax, ecx
je 0x416c41
push eax
call fcn.0041dba1
add esp, 4
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x94]
cmp eax, edx
je 0x416c5a
push eax
call fcn.0041dba1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d129
mov esp, ebp
pop ebp
ret
Function at 0x416c80
Capabilities:
Create process on windows
Create service
Persist via windows service
Read .ini file
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x44666c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebx]
push esi
push edi
push str.BianYaSrv.exe
push ecx
lea eax, [ebp - 0x130]
push str._s_s
lea edi, [ebp - 0x134]
mov dword [ebp - 0x134], eax
mov byte [ebp - 0x130], 0
call fcn.00413ea0
add esp, 0xc
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edx, dword [ebp - 0x134]
push 0
push 0
push 0
push 0
push 0
push edx
push 1
push 2
push 0x10
push 0xf01ff
push str.BianYaSrv
mov esi, eax
push str.BianYaSrv
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
push 0
mov edi, eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
mov ecx, dword [ebx]
push str.Bianya.exe
push ecx
lea eax, [ebp - 0xec]
push str._s_s
lea edi, [ebp - 0xf0]
mov dword [ebp - 0xf0], eax
mov byte [ebp - 0xec], 0
call fcn.00413ea0
mov edx, dword [ebp - 0xf0]
add esp, 0xc
push 5
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [ebx]
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xac], eax
push ecx
or eax, 0xffffffff
lea esi, [ebp - 0xac]
mov byte [ebp - 0xa8], 0
call fcn.004139f0
push str.DataSysConfig.ini
mov eax, esi
call fcn.004138f0
mov edx, dword [ebp - 0xac]
push edx
push 0x63
lea eax, [ebp - 0x68]
push eax
push 0x43c7f1
push str.RunSetup
push str.SysConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x68]
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x416db0
sub eax, esi
je 0x416e10
mov eax, dword [ebx]
lea edx, [ebp - 0x68]
push edx
push eax
lea ecx, [ebp - 0x174]
push str._s_s
lea edi, [ebp - 0x178]
mov dword [ebp - 0x178], ecx
mov byte [ebp - 0x174], 0
call fcn.00413ea0
mov ecx, dword [ebp - 0x178]
add esp, 0xc
push 5
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, dword [ebp - 0x178]
lea edx, [ebp - 0x174]
cmp eax, edx
je 0x416e10
push eax
call fcn.0041dba1
add esp, 4
mov eax, dword [ebp - 0xac]
lea ecx, [ebp - 0xa8]
pop edi
pop esi
cmp eax, ecx
je 0x416e2b
push eax
call fcn.0041dba1
add esp, 4
mov eax, dword [ebp - 0xf0]
lea edx, [ebp - 0xec]
cmp eax, edx
je 0x416e44
push eax
call fcn.0041dba1
add esp, 4
mov eax, dword [ebp - 0x134]
lea ecx, [ebp - 0x130]
cmp eax, ecx
je 0x416e5d
push eax
call fcn.0041dba1
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.0041d129
mov esp, ebp
pop ebp
ret
Function at 0x417150
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43823b
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x44666c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xa0
call fcn.0041d530
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x41719d
push eax
call fcn.00415a10
jmp 0x41719f
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
mov dword [edi + 0x14], eax
mov edx, dword [ecx]
mov dword [eax + 0x98], edx
mov ecx, dword [ecx + 4]
lea eax, [ebp - 0x50]
mov dword [ebp - 0x54], eax
push ecx
or eax, 0xffffffff
lea esi, [ebp - 0x54]
mov byte [ebp - 0x50], 0
call fcn.004139f0
mov edx, dword [ebp - 0x54]
mov esi, dword [edi + 0x14]
push edx
or eax, 0xffffffff
call fcn.004139f0
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x44]
lea eax, [esi + 0x44]
push ecx
push edx
lea ecx, [ebp + 8]
push ecx
push eax
call fcn.00416e80
call fcn.004028e0
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x50]
cmp eax, edx
je 0x417214
push eax
call fcn.0041dba1
add esp, 4
mov ebx, dword [edi + 0x14]
mov edx, dword [ebx]
mov eax, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417220
sub eax, esi
je 0x417265
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x417244
mov eax, dword [ebx]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov ecx, dword [ebx]
sub esp, 0x44
mov esi, esp
lea eax, [esi + 4]
mov dword [ebp + 8], esp
mov dword [esi], eax
mov byte [eax], 0
push ecx
or eax, 0xffffffff
call fcn.004139f0
push ebx
call fcn.00415db0
mov esi, dword [edi + 0x14]
test esi, esi
je 0x417271
call fcn.004012c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x419720
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x419727
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x4197fd
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x43fae0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x43fae0]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x43fae0]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x43fae0]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x43fae0]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x43fae0]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x43fae0]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x43fae0]
add ecx, 8
sub edx, 8
dec esi
jne 0x419740
pop edi
test edx, edx
je 0x41981a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x43fae0]
inc ecx
dec edx
jne 0x419801
not eax
pop esi
ret

Function at 0x419e90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x419ec6
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x419ebc
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x419ed7
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x10]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.0041f8d0
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret

Function at 0x419f00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x419f33
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x419f2e
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x419f5e
mov eax, dword [esi + 0x14]
push ebx
mov ebx, dword [esi + 0x18]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x419f45
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x10]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.0041f8d0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x18], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x419f73
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x419f6d
cmp byte [esi + 8], 0
je 0x419f6d
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x41a010
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x41a057
cmp byte [esi + 1], 0
je 0x41a05f
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x41a071
cmp byte [esi + 1], 0
je 0x41a065
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x41a079
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], ecx
jmp 0x41a031
xor eax, eax
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x41a079
mov eax, dword [esi + 0x18]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x41a08b
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.0041e3af
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x41a0a5
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0
cmp edi, eax
jbe 0x41a1b9
jmp 0x41a0c9
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x41a0d8
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x41a0ef
mov ebx, 0x404
cmp byte [esi], 0
je 0x41a114
cmp byte [esi + 1], 0
je 0x41a1b9
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x41a117
mov dword [esi + 0x18], eax
cmp byte [esi], 0
mov edi, ebx
je 0x41a140
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41a13b
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x41a169
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x41a151
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.0041f8d0
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x41a1b9
lea eax, [ebx - 3]
test eax, eax
jle 0x41a1ad
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x41a19f
cmp byte [eax + ecx + 1], 0x4b
jne 0x41a19f
cmp byte [eax + ecx + 2], 5
jne 0x41a19f
cmp byte [eax + ecx + 3], 6
je 0x41a1a5
test eax, eax
jg 0x41a180
jmp 0x41a1ad
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jne 0x41a1b9
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x41a0c0
mov eax, dword [ebp - 0x10]
push eax
call fcn.0041dba1
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41bb90
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x44666c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x3f
lea eax, [ebp - 0x7b]
push 0
push eax
mov byte [ebp - 0x7c], 0
call fcn.004256b0
add esp, 0xc
xor eax, eax
jmp 0x41bbc0
mov ecx, eax
shr ecx, 3
movsx edx, byte [ecx + str.Sta_Enctypt]
mov ecx, eax
and ecx, 7
shl edx, cl
inc eax
sar edx, 7
and dl, 1
mov byte [ebp + eax - 0x7d], dl
cmp eax, 0x40
jb 0x41bbc0
push 0x37
lea eax, [ebp - 0x3b]
push 0
push eax
mov byte [ebp - 0x3c], 0
call fcn.004256b0
add esp, 0xc
xor eax, eax
lea esp, [esp]
movsx ecx, byte [eax + str.91__]
movzx edx, byte [ebp + ecx - 0x7d]
movsx ecx, byte [eax + 0x43e3e9]
mov byte [ebp + eax - 0x3c], dl
movzx edx, byte [ebp + ecx - 0x7d]
movsx ecx, byte [eax + 0x43e3ea]
mov byte [ebp + eax - 0x3b], dl
movzx edx, byte [ebp + ecx - 0x7d]
movsx ecx, byte [eax + 0x43e3eb]
mov byte [ebp + eax - 0x3a], dl
movzx edx, byte [ebp + ecx - 0x7d]
mov byte [ebp + eax - 0x39], dl
add eax, 4
cmp eax, 0x38
jl 0x41bc00
lea edx, [ebp - 0x3c]
mov ecx, esi
call fcn.0041bc60
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d129
mov esp, ebp
pop ebp
ret