joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ebc6
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
cmp dword [ebx + 0x2c], 0
jne 0x40ebf5
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
mov dword [ebp - 0x5c], edx
call fcn.0048542c
mov dword [ebx + 0x2c], eax
mov edx, dword [ebp - 0x5c]
mov byte [ebx + 0x3c], 0
cmp dword [ebx], 8
mov ecx, dword [ebx + 0x24]
jne 0x40ed5c
test ecx, ecx
je 0x40ec24
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call ecx
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x40ec3b
mov dword [esp], eax
call sub.ADVAPI32.dll_CryptDestroyKey
push ecx
mov dword [ebx + 0x38], 0
cmp dword [ebx + 0x34], 0
jne 0x40ec85
lea edi, [ebp - 0x58]
mov esi, str.Crypto_Pro_GOST_R_34.10_2001_Cryptographic_Service_Provider
mov ecx, 0xf
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x10], 0xf0000000
mov dword [esp + 0xc], 0x4b
lea eax, [ebp - 0x58]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
lea eax, [ebx + 0x34]
mov dword [esp], eax
call sub.ADVAPI32.dll_CryptAcquireContextA
sub esp, 0x14
test eax, eax
je 0x40ed84
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x801e
mov eax, dword [ebx + 0x34]
mov dword [esp], eax
call sub.ADVAPI32.dll_CryptCreateHash
sub esp, 0x14
test eax, eax
je 0x40ed84
mov dword [esp + 0xc], 0
mov eax, dword [ebx + 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.ADVAPI32.dll_CryptHashData
sub esp, 0x10
test eax, eax
je 0x40ed84
lea eax, [ebx + 0x38]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x661e
mov eax, dword [ebx + 0x34]
mov dword [esp], eax
call sub.ADVAPI32.dll_CryptDeriveKey
sub esp, 0x14
test eax, eax
mov eax, dword [ebp - 0x1c]
jne 0x40ed24
mov dword [esp], eax
call sub.ADVAPI32.dll_CryptDestroyHash
push edx
jmp 0x40ed84
mov dword [esp], eax
call sub.ADVAPI32.dll_CryptDestroyHash
push eax
mov dword [esp + 0xc], 0
mov eax, dword [ebx + 0x28]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x38]
mov dword [esp], eax
call sub.ADVAPI32.dll_CryptSetKeyParam
sub esp, 0x10
test eax, eax
sete al
movzx eax, al
jmp 0x40ed89
mov eax, 0x30
test ecx, ecx
je 0x40ed89
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call ecx
xor eax, eax
jmp 0x40ed89
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x410478
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
mov ecx, dword [edx]
mov dword [ebp - 0x28], ecx
mov edx, dword [edx + 4]
mov dword [ebp - 0x24], edx
mov edx, dword [ebp + 0x14]
shr edx, 3
mov dword [ebp - 0x30], edx
xor ebx, ebx
lea edx, [ebp - 0x28]
jmp 0x4104eb
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
call fcn.00411d44
mov ecx, dword [edi + ebx*8]
mov dword [ebp - 0x2c], ecx
xor ecx, dword [ebp - 0x28]
mov dword [esi + ebx*8], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ecx
mov ecx, dword [edi + ebx*8 + 4]
mov dword [ebp - 0x2c], ecx
xor ecx, dword [ebp - 0x24]
mov dword [esi + ebx*8 + 4], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ecx
inc ebx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
cmp ebx, dword [ebp - 0x30]
jb 0x4104a8
mov edx, dword [ebp - 0x30]
shl edx, 3
add edi, edx
add esi, edx
mov edx, dword [ebp + 0x14]
and edx, 7
mov dword [ebp - 0x2c], edx
je 0x410529
mov dword [esp + 8], eax
lea ebx, [ebp - 0x28]
mov dword [esp + 4], ebx
mov dword [esp], ebx
call fcn.00411d44
xor eax, eax
mov dl, byte [ebx + eax]
xor dl, byte [edi + eax]
mov byte [esi + eax], dl
inc eax
cmp eax, dword [ebp - 0x2c]
jb 0x41051a
add esp, 0x3c
pop ebx
pop esi
pop edi
leave
ret

Function at 0x410531
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
shr eax, 3
mov dword [ebp - 0x30], eax
xor ebx, ebx
lea ecx, [ebp - 0x20]
jmp 0x410598
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], ecx
call fcn.00411d44
mov eax, dword [ebp - 0x20]
xor eax, dword [edi + ebx*8]
mov dword [esi + ebx*8], eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
xor eax, dword [edi + ebx*8 + 4]
mov dword [esi + ebx*8 + 4], eax
mov dword [ebp - 0x1c], eax
inc ebx
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
cmp ebx, dword [ebp - 0x30]
jb 0x410561
mov eax, dword [ebp - 0x30]
shl eax, 3
add edi, eax
add esi, eax
mov eax, dword [ebp + 0x14]
and eax, 7
mov dword [ebp - 0x2c], eax
je 0x4105d6
mov dword [esp + 8], edx
lea ebx, [ebp - 0x20]
mov dword [esp + 4], ebx
mov dword [esp], ebx
call fcn.00411d44
xor eax, eax
mov dl, byte [ebx + eax]
xor dl, byte [edi + eax]
mov byte [esi + eax], dl
inc eax
cmp eax, dword [ebp - 0x2c]
jb 0x4105c7
add esp, 0x3c
pop ebx
pop esi
pop edi
leave
ret
Function at 0x41067e
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4107b8
test esi, esi
je 0x4107b8
cmp eax, 0x20
lea ebx, [edx + 0x18c]
jbe 0x4106f2
mov dword [esp], edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
call fcn.00410936
mov eax, dword [ebp - 0x40]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov edx, dword [ebp - 0x3c]
mov dword [esp], edx
call fcn.00411c37
mov dword [esp + 4], ebx
mov edx, dword [ebp - 0x3c]
mov dword [esp], edx
call fcn.00411cc3
mov edx, dword [ebp - 0x3c]
mov dword [edx + 0x1ac], 0x20
xor eax, eax
lea esi, [ebp - 0x38]
jmp 0x41070e
mov edi, ebx
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
mov dword [edx + 0x1ac], eax
jmp 0x4106eb
mov cl, byte [edx + eax + 0x18c]
xor ecx, 0x36
mov byte [esi + eax], cl
inc eax
mov ebx, dword [edx + 0x1ac]
cmp eax, ebx
jb 0x410700
cmp ebx, 0x1f
ja 0x41072e
mov ecx, 0x20
sub ecx, ebx
lea ebx, [ebp + ebx - 0x38]
mov al, 0x36
mov edi, ebx
rep stosb byte es:[edi], al
lea esi, [edx + 0x84]
mov dword [esp], esi
mov dword [ebp - 0x3c], edx
call fcn.00410936
mov dword [esp + 8], 0x20
lea ebx, [ebp - 0x38]
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00411c37
xor eax, eax
mov esi, ebx
mov edx, dword [ebp - 0x3c]
jmp 0x41076d
mov cl, byte [edx + eax + 0x18c]
xor ecx, 0x5c
mov byte [esi + eax], cl
inc eax
mov ebx, dword [edx + 0x1ac]
cmp eax, ebx
jb 0x41075f
cmp ebx, 0x1f
ja 0x41078d
mov ecx, 0x20
sub ecx, ebx
lea ebx, [ebp + ebx - 0x38]
mov al, 0x5c
mov edi, ebx
rep stosb byte es:[edi], al
lea ebx, [edx + 0x108]
mov dword [esp], ebx
mov dword [ebp - 0x3c], edx
call fcn.00410936
mov dword [esp + 8], 0x20
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00411c37
mov edx, dword [ebp - 0x3c]
lea esi, [edx + 0x84]
mov ecx, 0x21
mov edi, edx
rep movsd dword es:[edi], dword [esi]
add esp, 0x4c
pop ebx
pop esi
pop edi
leave
ret
Function at 0x418e5b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
or eax, 0xffffffff
cmp edx, 0x103
jbe case.default.0x418e85
cmp ecx, 7
ja case.default.0x418e85
jmp dword [ecx*4 + 0x496d58]
mov esi, 0x23
jmp 0x418ee4
mov dword [esp + 4], edx
mov dword [esp], edi
call fcn.00418e1b
jmp 0x418f47
mov dword [esp + 4], edx
mov dword [esp], edi
call fcn.00418df1
jmp 0x418f47
mov esi, 5
jmp 0x418ee4
mov esi, 0x25
jmp 0x418ee4
mov esi, 0x10
jmp 0x418ee4
mov dword [esp + 4], edi
mov dword [esp], edx
call sub.KERNEL32.DLL_GetCurrentDirectoryW
push ebx
push ebx
cmp eax, 1
sbb eax, eax
jmp case.default.0x418e85
mov esi, 0x1a
mov dword [esp], str.shell32
call sub.KERNEL32.DLL_LoadLibraryA
push ecx
mov ebx, eax
or eax, 0xffffffff
test ebx, ebx
je case.default.0x418e85
mov dword [esp + 4], str.SHGetSpecialFolderPathW
mov dword [esp], ebx
call sub.KERNEL32.DLL_GetProcAddress
push edx
push edx
test eax, eax
je 0x418f30
mov dword [esp + 0xc], 1
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], 0
call eax
sub esp, 0x10
test eax, eax
jne 0x418f3e
mov dword [esp], ebx
call sub.KERNEL32.DLL_FreeLibrary
push esi
or eax, 0xffffffff
jmp case.default.0x418e85
mov dword [esp], ebx
call sub.KERNEL32.DLL_FreeLibrary
push ebx
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x419972
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x27c
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x270], eax
mov dword [esp + 4], 0x496da0
mov dword [esp], ebx
call fcn.004198f0
mov edi, eax
test eax, eax
jne 0x419b05
lea esi, [ebp - 0x268]
mov dword [esp + 4], esi
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.KERNEL32.DLL_FindFirstFileW
push esi
push esi
mov dword [ebp - 0x26c], eax
inc eax
jne 0x4199cd
mov di, 5
jmp 0x419b05
mov dword [esp + 4], 0x496da4
lea ecx, [ebp - 0x23c]
mov dword [esp], ecx
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x419ab0
mov dword [esp + 4], 0x496da8
lea eax, [ebp - 0x23c]
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x419ab0
jmp 0x419b0f
sub eax, edx
mov dword [ebx + 0xc], eax
mov edx, dword [ebx + 8]
mov word [edx + eax*2], 0
lea ecx, [ebp - 0x23c]
mov dword [esp + 4], ecx
mov dword [esp], ebx
call fcn.004198f0
test eax, eax
jne 0x419af2
mov eax, dword [ebx]
test eax, eax
je 0x419a5d
mov edx, dword [eax]
lea ecx, [ebp - 0x268]
mov dword [esp + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 8]
test eax, eax
jne 0x419af2
test byte [ebp - 0x268], 0x10
je 0x419a8c
mov esi, dword [ebx + 0xc]
mov dword [esp], ebx
call fcn.00419972
test eax, eax
jne 0x419af2
mov eax, dword [ebx + 0xc]
mov edx, eax
sub edx, esi
jb 0x419a8c
sub eax, edx
mov dword [ebx + 0xc], eax
mov edx, dword [ebx + 8]
mov word [edx + eax*2], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x419ab0
mov edx, dword [eax]
lea ecx, [ebp - 0x268]
mov dword [esp + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 8]
test eax, eax
jne 0x419af2
lea eax, [ebp - 0x268]
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x26c]
mov dword [esp], ecx
call sub.KERNEL32.DLL_FindNextFileW
push ecx
push ecx
test eax, eax
jne 0x4199cd
call sub.KERNEL32.DLL_GetLastError
mov esi, 1
cmp eax, 0x12
jne 0x419af4
mov eax, dword [ebp - 0x26c]
mov dword [esp], eax
call sub.KERNEL32.DLL_FindClose
push edx
jmp 0x419b05
mov esi, eax
mov ecx, dword [ebp - 0x26c]
mov dword [esp], ecx
call sub.KERNEL32.DLL_FindClose
push eax
mov edi, esi
mov eax, edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov eax, dword [ebx + 0xc]
mov edx, eax
sub edx, dword [ebp - 0x270]
jb 0x419a1c
jmp 0x419a0e

Function at 0x419d84
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call sub.msvcrt.dll__wmkdir
mov edx, eax
xor eax, eax
inc edx
jne 0x419de0
call sub.msvcrt.dll__errno
mov ebx, dword [eax]
call sub.KERNEL32.DLL_GetLastError
cmp ebx, 2
jne 0x419dc5
cmp eax, 0xce
je 0x419ddb
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
cmp eax, 0x103
ja 0x419ddb
sub ebx, 2
mov eax, 1
cmp ebx, 0x24
ja 0x419de0
mov eax, dword [ebx*4 + 0x496db0]
jmp 0x419de0
mov eax, 0x21
add esp, 0x10
pop ebx
pop esi
leave
ret
Function at 0x419eb8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
jne 0x419ef9
call sub.msvcrt.dll__errno
mov edx, dword [eax]
sub edx, 2
mov eax, 1
cmp edx, 0x24
ja 0x419f00
mov eax, dword [edx*4 + 0x496db0]
jmp 0x419f00
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
xor eax, eax
leave
ret

Function at 0x41b702
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [esp], eax
call sub.msvcrt.dll__strdup
mov dword [ebx + 0x194], eax
mov dword [esp + 8], 0x64
lea edx, [ebx + 4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0041b074
mov dword [ebx + 0x19c], eax
add esp, 0x14
pop ebx
leave
ret
Function at 0x4275c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.0042b56c
call fcn.00427770
call sub.KERNEL32.DLL_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x4275f8
jmp 0x427694
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x4275f7
cmp cl, 0x22
je 0x427650
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test edx, eax
je 0x427670
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x427670
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test edx, eax
jne 0x427630
jmp 0x427670
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test edx, eax
jne 0x427650
cmp cl, 0x22
je 0x4276d0
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x42768e
inc ebx
movzx eax, byte [ebx]
cmp al, 0x20
sete dl
cmp al, 9
sete al
or eax, edx
test al, 1
jne 0x427680
mov dword [esp], 0
call sub.KERNEL32.DLL_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x4276b2
movzx edx, word [ebp - 0x28]
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004013b0
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x427670

Function at 0x429ed8
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov edi, eax
mov eax, dword [eax + 4]
cmp eax, 4
ja 0x429e9c
mov eax, dword [edi]
add eax, 4
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
je 0x429ed1
mov dword [eax], eax
lea edx, [eax + 4]
mov esi, dword [edi + 0xc]
test esi, esi
jne 0x429ec2
mov ecx, dword [edi]
xor eax, eax
mov edi, edx
rep stosb byte es:[edi], al
mov eax, edx
add esp, 0x10
pop esi
pop edi
leave
ret
add eax, dword [edi]
add eax, 3
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
je 0x429ed1
mov ecx, dword [edi + 4]
lea edx, [eax + ecx + 3]
neg ecx
and edx, ecx
mov dword [edx - 4], eax
mov esi, dword [edi + 0xc]
test esi, esi
je 0x429e8b
mov ecx, dword [edi]
mov edi, edx
rep movsb byte es:[edi], byte [esi]
mov eax, edx
add esp, 0x10
pop esi
pop edi
leave
ret
call sub.msvcrt.dll_abort
nop
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [0x4b73a8], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.DLL_CreateSemaphoreA
sub esp, 0x10
mov dword [0x4b73ac], eax
call sub.KERNEL32.DLL_TlsAlloc
cmp eax, 0xffffffff
je 0x429f3c
mov dword [0x4b73b8], eax
mov dword [esp + 4], 0x42a160
mov dword [esp], eax
call fcn.00434040
test eax, eax
jne 0x429f43
leave
ret
call sub.KERNEL32.DLL_GetLastError
jmp 0x429f33
call sub.msvcrt.dll_abort
Function at 0x429f48
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ecx, dword [0x4b737c]
test ecx, ecx
jne 0x429f74
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
test eax, eax
je 0x429ffb
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x42a00d
mov edi, dword [0x4b73b8]
call sub.KERNEL32.DLL_GetLastError
mov esi, eax
mov dword [esp], edi
call sub.KERNEL32.DLL_TlsGetValue
push edx
mov dword [esp], esi
mov dword [ebp - 0x1c], eax
call sub.KERNEL32.DLL_SetLastError
push eax
mov eax, dword [ebp - 0x1c]
mov esi, eax
test eax, eax
je 0x429fce
mov edi, dword [eax]
cmp ebx, edi
jae 0x42a090
dec ebx
mov eax, dword [esi + ebx*4 + 4]
test eax, eax
jne 0x429f69
mov eax, dword [ebp + 8]
call fcn.00429e5c
mov dword [esi + ebx*4 + 4], eax
jmp 0x429f69
lea edi, [ebx + 0x20]
mov dword [esp + 4], 4
mov dword [esp], edi
call sub.msvcrt.dll_calloc
mov esi, eax
test eax, eax
je 0x42a0de
mov dword [eax], edi
mov edx, eax
mov eax, dword [0x4b73b8]
call fcn.00429e34
jmp 0x429fb7
mov eax, edx
call fcn.00429e5c
mov edi, dword [ebp + 8]
mov dword [edi + 8], eax
jmp 0x429f69
cmp dword [0x48e034], 0
je 0x42a114
mov dword [esp], 0x4b73a8
call sub.KERNEL32.DLL_InterlockedIncrement
push edi
test eax, eax
jne 0x42a0e3
mov eax, dword [0x4b737c]
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 8]
test ebx, ebx
jne 0x42a04e
mov ebx, dword [0x4b73c8]
inc ebx
mov dword [0x4b73c8], ebx
mov dword [edx + 8], ebx
test eax, eax
je 0x429f82
mov dword [esp], 0x4b73a8
call sub.KERNEL32.DLL_InterlockedDecrement
push ecx
test eax, eax
js 0x429f82
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [0x4b73ac]
mov dword [esp], eax
call sub.KERNEL32.DLL_ReleaseSemaphore
sub esp, 0xc
jmp 0x429f82
lea edx, [edi + edi]
cmp ebx, edx
jb 0x42a09a
lea edx, [ebx + 0x20]
lea ecx, [edx*4]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [ebp - 0x1c], edx
call sub.msvcrt.dll_realloc
mov esi, eax
test eax, eax
mov edx, dword [ebp - 0x1c]
je 0x42a0de
mov dword [eax], edx
sub edx, edi
lea ecx, [edx*4]
lea edx, [eax + edi*4]
xor eax, eax
mov edi, edx
rep stosb byte es:[edi], al
mov edx, esi
mov eax, dword [0x4b73b8]
call fcn.00429e34
jmp 0x429fb7
call sub.msvcrt.dll_abort
mov dword [esp + 4], 0xffffffff
mov eax, dword [0x4b73ac]
mov dword [esp], eax
call sub.KERNEL32.DLL_WaitForSingleObject
push esi
push esi
test eax, eax
je 0x42a02f
mov dword [esp], 0x4b73a8
call sub.KERNEL32.DLL_InterlockedDecrement
push ebx
jmp 0x42a02f
mov dword [esp], 0x48e038
call sub.KERNEL32.DLL_InterlockedIncrement
push edx
test eax, eax
je 0x42a13d
cmp dword [0x48e034], 0
jne 0x42a14c
mov dword [esp], 0
call sub.KERNEL32.DLL_Sleep
push eax
jmp 0x42a125
call 0x429ed8
mov dword [0x48e034], 1
xor eax, eax
cmp dword [0x4b737c], 0
je 0x42a034
jmp 0x42a01a
Function at 0x42bbb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
mov dword [esp], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 4], esi
mov esi, dword [esp + 0x10]
test ebx, ebx
mov dword [esp + 8], edi
sete al
cmp esi, ecx
sete dl
or eax, edx
xor edi, edi
test al, 1
jne 0x42bc10
test esi, esi
setne al
test ecx, ecx
setne dl
xor eax, edx
test al, 1
jne 0x42bc21
test ebx, ebx
je 0x42bc04
movzx eax, word [esi]
movzx edx, word [ecx]
cmp ax, dx
jne 0x42bc3d
add esi, 2
add ecx, 2
dec ebx
jne 0x42bbf0
xor edi, edi
lea esi, [esi]
lea edi, [edi]
mov eax, edi
mov ebx, dword [esp]
mov esi, dword [esp + 4]
mov edi, dword [esp + 8]
add esp, 0xc
ret
cmp ecx, 1
mov ebx, dword [esp]
sbb eax, eax
and eax, 2
mov esi, dword [esp + 4]
lea edi, [eax - 1]
mov eax, edi
mov edi, dword [esp + 8]
add esp, 0xc
ret
movzx edi, ax
movzx eax, dx
sub edi, eax
jmp 0x42bc10
Function at 0x460cf8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll__read_1
mov ebx, eax
cmp eax, 0xffffffff
je 0x460d30
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
leave
ret
call sub.msvcrt.dll__errno
cmp dword [eax], 4
je 0x460d07
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
leave
ret

Function at 0x442d40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x32000]
push edi
or ebp, 0xffffffff
jmp 0x442d62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x442d69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x442d58
mov eax, 1
add ebx, ebx
jne 0x442d7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x442d8c
jne 0x442d9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x442d9c
dec eax
add ebx, ebx
jne 0x442d98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x442d70
xor ecx, ecx
sub eax, 3
jb 0x442db4
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x442e26
sar eax, 1
mov ebp, eax
jmp 0x442dbf
add ebx, ebx
jne 0x442dbf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x442dcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x442df0
inc ecx
add ebx, ebx
jne 0x442ddc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x442dd1
jne 0x442ded
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x442dd1
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x442e10
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x442e01
jmp 0x442d5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x442e10
add edi, ecx
jmp 0x442d5e
pop esi
mov edi, esi
mov ecx, 0x26a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x442e2e
cmp byte [edi], 5
jne 0x442e2e
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x442e33
lea edi, [esi + 0x40000]
mov eax, dword [edi]
or eax, eax
je 0x442eab
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x441f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x44234]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x442e60
mov ecx, edi
jns 0x442e8f
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 + 0x44238]
or eax, eax
je 0x442ea5
mov dword [ebx], eax
add ebx, 4
jmp 0x442e7d
call dword [esi + 0x4423c]
popal
jmp 0x401f8c