joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43bc70
Capabilities:
Extract cabinet on windows

Disassembly:
sub esp, 0x228
push ebx
mov ebx, dword [esp + 0x230]
push ebp
push esi
test ebx, ebx
jne 0x43bc92
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x228
ret 8
lea eax, [esp + 0x10]
push eax
push 1
push 0x43bad0
push 0x43bac0
push 0x43baa0
push 0x43ba80
push fcn.0043ba60
push 0x43ba50
push 0x43ba40
call sub.CABINET.DLL_FDICreate
mov ebp, eax
add esp, 0x24
test ebp, ebp
jne 0x43bcd6
pop esi
pop ebp
pop ebx
add esp, 0x228
ret 8
push 0
push 0x8020
push ebx
call fcn.0043ba60
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x43bd04
push ebp
call sub.CABINET.DLL_FDIDestroy
add esp, 4
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x228
ret 8
lea ecx, [esp + 0x1c]
push ecx
push esi
push ebp
call sub.CABINET.DLL_FDIIsCabinet
add esp, 0xc
test eax, eax
jne 0x43bd35
push esi
call dword [sym.imp.MSVCRT.dll__close]
push ebp
call sub.CABINET.DLL_FDIDestroy
add esp, 8
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x228
ret 8
push edi
push esi
call dword [sym.imp.MSVCRT.dll__close]
push 0x5c
push ebx
call dword [sym.imp.ntdll.dll_strrchr]
mov edx, eax
add esp, 0xc
test edx, edx
jne 0x43bd9b
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x138]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x47c558
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x43bde4
lea edi, [edx + 1]
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x138]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, edx
lea edx, [esp + 0x38]
sub esi, ebx
lea ecx, [esi + 1]
push ecx
push ebx
push edx
call dword [sym.imp.ntdll.dll_strncpy]
add esp, 0xc
mov byte [esp + esi + 0x39], 0
mov edi, dword [esp + 0x240]
test edi, edi
jne 0x43be10
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x480088
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x43be2b
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x480088
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push 0
push 0x43baf0
lea eax, [esp + 0x44]
push 0
lea ecx, [esp + 0x148]
push eax
push ecx
push ebp
call sub.CABINET.DLL_FDICopy
add esp, 0x1c
cmp eax, 1
pop edi
push ebp
je 0x43be6e
call sub.CABINET.DLL_FDIDestroy
add esp, 4
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x228
ret 8
call sub.CABINET.DLL_FDIDestroy
add esp, 4
dec eax
neg eax
sbb eax, eax
pop esi
pop ebp
inc eax
pop ebx
add esp, 0x228
ret 8
Function at 0x43be90
Capabilities:
Check http status code
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov eax, 0x10020
call sub.ntdll.dll__chkstk
mov ecx, dword [0x47c268]
mov eax, dword [0x47c264]
mov edx, dword [0x47c26c]
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
mov eax, dword [0x47c270]
push esi
lea ecx, [esp + 0x24]
push 0x84000100
push ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x1003c]
push eax
mov eax, dword [esp + 0x10044]
lea edx, [esp + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
cmp ebx, esi
mov dword [esp + 0x14], ebx
jne 0x43bf0d
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x10020
ret
mov edx, dword [esp + 0x1003c]
push 0x47c260
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
cmp edi, esi
jne 0x43bf39
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x10020
ret
lea eax, [esp + 0x1c]
push esi
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0x20000013
push ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x43bf7a
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 0x11
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10020
ret
mov eax, dword [esp + 0x18]
cmp eax, 0xc8
jb 0x43c05a
cmp eax, 0x12c
jae 0x43c05a
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
call ebx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
mov ebp, eax
push edx
lea eax, [esp + 0x34]
push 0x4000
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x43c009
mov eax, dword [esp + 0x10]
push edi
test eax, eax
je 0x43c03d
push eax
lea edx, [esp + 0x38]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [esp + 0x20]
add esp, 0x10
add esi, eax
call ebx
mov ecx, dword [esp + 0x10040]
sub eax, ebp
cmp eax, ecx
ja 0x43c023
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
push 0x4000
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x43bfbc
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10020
ret
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10020
ret
call dword [sym.imp.MSVCRT.dll_fflush]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10020
ret
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10020
ret
Function at 0x43c080
Capabilities:
Create http request

Disassembly:
push esi
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
je 0x43c0be
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push edi
push eax
push ecx
push edx
push esi
call fcn.0043be90
add esp, 0x10
mov edi, eax
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
pop edi
pop esi
ret
mov eax, 5
pop esi
ret

Function at 0x43c0d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x214]
push esi
push edi
mov edi, dword [esp + 0x218]
push 0x5c
push edi
mov byte [ebx], 0
call dword [sym.imp.ntdll.dll_strrchr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x43c106
pop edi
pop esi
pop ebx
add esp, 0x208
ret
mov ecx, dword [esp + 0x224]
lea eax, [esi + 1]
mov dword [ecx], eax
mov cl, byte [eax]
test cl, cl
jne 0x43c124
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x208
ret
lea edx, [esp + 0x110]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x110]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov edx, eax
test edx, edx
jne 0x43c156
pop edi
pop esi
pop ebx
add esp, 0x208
ret
lea edi, [esp + 0x110]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
cmp esi, edx
je 0x43c218
sub esi, edx
lea ecx, [esi + 1]
cmp ecx, 0x104
jbe 0x43c188
pop edi
pop esi
pop ebx
add esp, 0x208
ret
cmp ecx, 0x7fffffff
ja 0x43c1b7
test ecx, ecx
mov esi, ecx
lea eax, [esp + 0xc]
je 0x43c1b7
lea ecx, [esp + 0xc]
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x43c1af
mov byte [eax], cl
inc eax
dec esi
jne 0x43c1a0
jmp 0x43c1b3
test esi, esi
jne 0x43c1b4
dec eax
mov byte [eax], 0
mov cl, byte [esp + 0xc]
lea eax, [esp + 0xc]
test cl, cl
je 0x43c1d3
cmp byte [eax], 0x5c
jne 0x43c1cb
mov byte [eax], 0x2f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43c1c3
mov ecx, dword [esp + 0x220]
cmp ecx, 0x7fffffff
ja 0x43c218
test ecx, ecx
mov esi, ecx
mov eax, ebx
je 0x43c218
lea edx, [esp + 0xd]
sub edx, ebx
mov cl, byte [edx + eax]
test cl, cl
je 0x43c210
mov byte [eax], cl
inc eax
dec esi
jne 0x43c1f0
dec eax
pop edi
pop esi
pop ebx
mov byte [eax], 0
mov eax, 1
add esp, 0x208
ret
test esi, esi
jne 0x43c215
dec eax
mov byte [eax], 0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x208
ret
Function at 0x43c230
Capabilities:
Get file version info

Disassembly:
sub esp, 0x110
lea eax, [esp + 8]
push ebx
mov ebx, dword [esp + 0x118]
push ebp
push esi
push edi
push eax
push ebx
xor esi, esi
xor ebp, ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x43c307
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x43c307
push esi
push edi
push ebp
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x43c307
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push 0x45f260
push esi
mov dword [esp + 0x24], ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x43c305
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
xor edx, edx
mov ecx, dword [eax]
mov dx, word [eax]
shr ecx, 0x10
push ecx
push edx
push 0x47c274
lea eax, [esp + 0x28]
push 0x104
push eax
call edi
add esp, 0x14
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push ecx
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x43c307
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x12c]
mov eax, dword [esp + 0x128]
push ecx
push 0x44ae40
push edx
push eax
call edi
add esp, 0x10
mov ebp, 1
jmp 0x43c311
xor ebp, ebp
mov ecx, dword [esp + 0x128]
mov byte [ecx], 0
test esi, esi
je 0x43c31f
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
Function at 0x43cb10
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
push esi
lea eax, [esp + 8]
push 1
push eax
push ecx
xor esi, esi
call fcn.00415170
add esp, 0xc
test eax, eax
je 0x43cb56
cmp word [eax], 0x5a4d
jne 0x43cb56
mov ecx, dword [eax + 0x3c]
add ecx, eax
je 0x43cb56
mov edx, dword [esp + 8]
add edx, eax
cmp ecx, edx
ja 0x43cb56
cmp dword [ecx], 0x4550
jne 0x43cb56
cmp word [ecx + 6], si
je 0x43cb56
mov esi, 1
push eax
call fcn.00415210
add esp, 4
mov eax, esi
pop esi
ret
Function at 0x43d410
Capabilities:
Copy file
Delete file
Move file
Set file attributes

Disassembly:
sub esp, 0x104
push ebp
push esi
mov esi, dword [esp + 0x110]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push esi
call edi
mov ebp, dword [esp + 0x118]
push 0x80
push ebp
call edi
push 0
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x43d45a
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x104
ret
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_rand]
call ebx
push eax
push esi
push 0x47c3d4
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.00407080
lea ecx, [esp + 0x24]
push ecx
call fcn.00414f90
add esp, 0x18
test eax, eax
jne 0x43d461
lea edx, [esp + 0x10]
push 0x80
push edx
call edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea ecx, [esp + 0x10]
push 1
push ecx
push esi
call edi
test eax, eax
pop ebx
jne 0x43d4c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x104
ret
push 0
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x43d4f0
push 4
lea edx, [esp + 0x10]
push 0
push edx
call edi
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x104
ret
push 1
lea eax, [esp + 0x10]
push esi
push eax
call edi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x104
ret
Function at 0x43e8ae
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x43e8df
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x43e8e6
cmp ebx, dword [ebp + 8]
jae 0x43e8e6
xor eax, eax
jmp 0x43eacc
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x43e8f7
xor eax, eax
inc eax
jmp 0x43eacb
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x43e909
cmp ecx, edx
jae 0x43e96d
cmp dword [eax + 4], 0
je 0x43e912
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x43e8fe
cmp dword [ebp + 8], 0
je 0x43e92c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x43e96d
cmp eax, esi
jae 0x43e96d
mov ecx, dword [0x480fe8]
mov esi, ebx
and esi, 0xfffff000
xor eax, eax
test ecx, ecx
jle 0x43e94e
cmp dword [eax*4 + 0x480ff0], esi
je 0x43e974
inc eax
cmp eax, ecx
jl 0x43e940
lea eax, [ebp + 8]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
or edi, 0xffffffff
push edi
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
jl 0x43e9e4
mov eax, dword [ebp + 8]
jmp 0x43e9e6
xor eax, eax
jmp 0x43eacb
test eax, eax
jle 0x43e8ef
xor edx, edx
mov ebx, 0x481030
inc edx
mov edi, ebx
xchg dword [edi], edx
test edx, edx
jne 0x43e8ef
cmp dword [eax*4 + 0x480ff0], esi
je 0x43e9c3
lea eax, [ecx - 1]
test eax, eax
jl 0x43e9b0
cmp dword [eax*4 + 0x480ff0], esi
je 0x43e9ac
dec eax
jns 0x43e9a0
test eax, eax
jge 0x43e9c1
cmp ecx, 0x10
jge 0x43e9bc
inc ecx
mov dword [0x480fe8], ecx
lea eax, [ecx - 1]
jmp 0x43e9c3
je 0x43e9db
xor edx, edx
test eax, eax
jl 0x43e9db
lea ecx, [edx*4 + 0x480ff0]
mov edi, dword [ecx]
inc edx
cmp edx, eax
mov dword [ecx], esi
mov esi, edi
jle 0x43e9c9
xor eax, eax
xchg dword [ebx], eax
jmp 0x43e8ef
xor eax, eax
test eax, eax
je 0x43eac9
cmp dword [ebp - 8], 0x1000000
jne 0x43eac9
test byte [ebp - 0xc], 0xcc
je 0x43ea5b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x43eac9
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x43eac9
cmp word [eax + 0x18], 0x10b
jne 0x43eac9
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x43eac9
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x43ea5b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x43ea5b
test byte [ecx + 0x27], 0x80
jne 0x43e96d
xor eax, eax
inc eax
mov ecx, eax
mov edx, 0x481030
xchg dword [edx], ecx
test ecx, ecx
jne 0x43eacb
mov ecx, dword [0x480fe8]
test ecx, ecx
mov edx, ecx
jle 0x43ea8a
lea eax, [ecx*4 + 0x480fec]
cmp dword [eax], esi
je 0x43ea8a
dec edx
sub eax, 4
test edx, edx
jg 0x43ea7e
test edx, edx
jne 0x43eabb
push 0xf
pop ebx
cmp ecx, ebx
jg 0x43ea97
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x43eaaf
lea eax, [edx*4 + 0x480ff0]
mov edi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], esi
mov esi, edi
jle 0x43ea9d
cmp ecx, 0x10
jge 0x43eabb
inc ecx
mov dword [0x480fe8], ecx
xor eax, eax
mov ecx, 0x481030
xchg dword [ecx], eax
jmp 0x43e8ef
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43f9e0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
ret
Function at 0x40bed9
Capabilities:
Parse pe header

Disassembly:
lea esp, [esp]
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0x14
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0x9254a83c
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x1c], pe_nt_image_headers32
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
jne 0x40bf24
mov eax, dword [ebp - 0x2c]
jmp 0x40c06c
mov eax, dword [ebp - 8]
movzx edx, word [eax]
cmp edx, 0x5a4d
je 0x40bf3a
mov eax, dword [ebp - 0x2c]
jmp 0x40c06c
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [eax + 0x3c]
mov dword [ebp - 0x14], edx
jmp 0x40c025
mov dword [ebp - 0x28], 0xf45363ff
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
cmp dword [ebp + 0xc], 0
je 0x40c002
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp - 0x14]
jmp 0x40bfe5
mov dword [eax], edx
cmp dword [ebp + 0x14], 0
je 0x40c069
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
jmp 0x40c067
mov dword [eax], ecx
jmp 0x40c002
cmp dword [ebp + 0x10], 0
je 0x40bfb4
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], 0x6ab31977
mov edx, dword [ebp - 0x10]
jmp 0x40bfb2
mov dword [ebp - 0x28], 0x4052b110
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0x4550
je 0x40c03c
mov eax, dword [ebp - 0x2c]
jmp 0x40c06c
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
jmp 0x40bf71
mov dword [eax], edx
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x424b00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4c8bc0]
xor edx, edx
cmp eax, edx
jne 0x424b26
xor eax, eax
mov byte [eax + 0x4c8ac0], al
inc eax
cmp eax, 0x100
jl 0x424b0e
mov dword [0x4c8bc0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4c8ac0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x424bb7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x424b8a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x424b58
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x424c30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x424c83
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x424c6a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x429221
cmp eax, 8
jg 0x429221
cmp dword [esp + 0x8c], 2
jl 0x429221
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x429221
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x429221
mov eax, dword [esp + 0x80]
test eax, eax
je 0x429087
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x42920a
mov ebp, dword [0x478440]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x4290b9
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x4291f1
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x4290d9
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [0x478450]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x429118
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x47844c]
lea ecx, [esp + 0x28]
push ecx
call dword [0x47840c]
test eax, eax
jne 0x4291d8
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.00428610
cmp eax, 1
jne 0x429202
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00428ec0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x4290cd
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x42920a
jmp 0x4290a4
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.00428210
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c