joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b8510
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
push edi
push esi
push ebx
mov ecx, dword [esp + 0x1c]
push ecx
mov edx, dword [esp + 0x1c]
push edx
mov eax, dword [esp + 0x1c]
push eax
call fcn.004b8120
add esp, 0xc
test eax, eax
js 0x4b875c
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0xf0]
xor ebp, ebp
lea edi, [eax*4]
cmp ebp, edi
jge 0x4b8596
lea ebx, [esi + edi*4]
mov ecx, esi
nop
mov edx, dword [ecx]
mov eax, dword [ebx]
mov dword [ecx], eax
mov dword [ebx], edx
mov edx, dword [ecx + 4]
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov dword [ebx + 4], edx
mov edx, dword [ecx + 8]
mov eax, dword [ebx + 8]
mov dword [ecx + 8], eax
mov dword [ebx + 8], edx
mov edx, dword [ecx + 0xc]
mov eax, dword [ebx + 0xc]
add ebp, 4
sub edi, 4
mov dword [ecx + 0xc], eax
mov dword [ebx + 0xc], edx
add ecx, 0x10
sub ebx, 0x10
cmp ebp, edi
jl 0x4b8550
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 0xf0]
mov ebx, 1
cmp eax, 1
jmp 0x4b8754
add esi, 0x10
mov ecx, dword [esi]
mov edi, ecx
shr edi, 0x10
and edi, 0xff
mov al, byte [edi*4 + str.ccccwwww]
mov ebp, ecx
shr ebp, 0x18
xor edx, edx
and eax, 0xff
mov dl, byte [ebp*4 + str.ccccwwww]
mov eax, dword [eax*4 + 0x5267b0]
movzx ebp, ch
xor eax, dword [edx*4 + 0x526bb0]
mov dl, byte [ebp*4 + str.ccccwwww]
and edx, 0xff
xor eax, dword [edx*4 + 0x5263b0]
and ecx, 0xff
xor edx, edx
mov dl, byte [ecx*4 + str.ccccwwww]
mov ecx, dword [esi + 4]
mov ebp, ecx
shr ebp, 0x10
xor eax, dword [edx*4 + 0x525fb0]
and ebp, 0xff
mov dword [esi], eax
mov edi, ecx
mov al, byte [ebp*4 + str.ccccwwww]
shr edi, 0x18
xor edx, edx
and eax, 0xff
mov dl, byte [edi*4 + str.ccccwwww]
mov eax, dword [eax*4 + 0x5267b0]
movzx edi, ch
xor eax, dword [edx*4 + 0x526bb0]
mov dl, byte [edi*4 + str.ccccwwww]
and edx, 0xff
xor eax, dword [edx*4 + 0x5263b0]
and ecx, 0xff
xor edx, edx
mov dl, byte [ecx*4 + str.ccccwwww]
mov ecx, dword [esi + 8]
mov edi, ecx
shr edi, 0x10
xor eax, dword [edx*4 + 0x525fb0]
and edi, 0xff
mov dword [esi + 4], eax
mov ebp, ecx
mov al, byte [edi*4 + str.ccccwwww]
shr ebp, 0x18
xor edx, edx
and eax, 0xff
mov dl, byte [ebp*4 + str.ccccwwww]
mov eax, dword [eax*4 + 0x5267b0]
movzx ebp, ch
xor eax, dword [edx*4 + 0x526bb0]
mov dl, byte [ebp*4 + str.ccccwwww]
and edx, 0xff
xor eax, dword [edx*4 + 0x5263b0]
and ecx, 0xff
xor edx, edx
mov dl, byte [ecx*4 + str.ccccwwww]
mov ecx, dword [esi + 0xc]
mov ebp, ecx
xor eax, dword [edx*4 + 0x525fb0]
shr ebp, 0x10
and ebp, 0xff
mov dword [esi + 8], eax
mov edi, ecx
mov al, byte [ebp*4 + str.ccccwwww]
shr edi, 0x18
xor edx, edx
and eax, 0xff
mov dl, byte [edi*4 + str.ccccwwww]
mov ebp, dword [eax*4 + 0x5267b0]
movzx edi, ch
xor ebp, dword [edx*4 + 0x526bb0]
mov dl, byte [edi*4 + str.ccccwwww]
and edx, 0xff
xor ebp, dword [edx*4 + 0x5263b0]
and ecx, 0xff
xor edx, edx
mov dl, byte [ecx*4 + str.ccccwwww]
xor ebp, dword [edx*4 + 0x525fb0]
mov dword [esi + 0xc], ebp
inc ebx
mov edi, dword [esp + 0x1c]
cmp dword [edi + 0xf0], ebx
jg 0x4b85b0
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4b9960
Capabilities:
Encrypt data using aes
Reference aes constants
Resolve function by parsing pe exports

Disassembly:
cmp dword [esp + 0x10], 1
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
je 0x4b9990
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
jmp fcn.004b8d40
jmp fcn.004b8770
Function at 0x4b9f70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
push ebx
push edx
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp ebx, 0x80
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
mov byte [esi], 0
jle 0x4b9f95
mov ebx, pe_nt_image_headers32
test ebp, ebp
jle 0x4ba070
cmp ebp, 0x400
jg 0x4ba070
xor edx, edx
jmp 0x4b9fb4
mov al, byte [edx + ecx]
mov byte [edx + esi], al
inc edx
cmp edx, ebx
jl 0x4b9fad
xor eax, eax
mov al, byte [esi + ebx - 1]
xor ecx, ecx
mov edx, ebx
jmp 0x4b9fdc
add al, byte [ecx + esi]
and eax, 0xff
mov al, byte [eax + 0x500d60]
and eax, 0xff
mov byte [edx + esi], al
inc ecx
inc edx
cmp edx, 0x7f
jle 0x4b9fc4
lea edi, [ebp + 7]
neg ebp
mov dword [esp], pe_nt_image_headers32
sar edi, 3
and ebp, 7
sub dword [esp], edi
mov ecx, ebp
mov edx, 0xff
sar edx, cl
xor eax, eax
mov ecx, dword [esp]
mov al, byte [ecx + esi]
and eax, edx
xor ebx, ebx
mov bl, byte [eax + 0x500d60]
mov byte [ecx + esi], bl
mov ecx, dword [esp]
jmp 0x4ba036
lea ebp, [esi + ecx]
xor eax, eax
mov al, byte [ebp + edi]
xor eax, ebx
xor ebx, ebx
mov bl, byte [eax + 0x500d60]
mov byte [ebp], bl
dec ecx
cmp ecx, 0xffffffff
jne 0x4ba020
lea ecx, [esi + 0xfc]
mov ebx, 0x7f
mov esi, esi
lea edi, [edi]
xor eax, eax
mov al, byte [ebx + esi]
xor edx, edx
mov dl, byte [esi + ebx - 1]
shl eax, 8
or eax, edx
mov dword [ecx], eax
sub ecx, 4
sub ebx, 2
jns 0x4ba050
pop eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, 0x400
jmp 0x4b9fa9
Function at 0x4bb190
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, dword [esp + 0x14]
xor eax, eax
mov al, byte [ebx]
mov ecx, dword [esp + 0x18]
shl eax, 8
mov dword [ecx], eax
xor edx, edx
mov dl, byte [ebx + 1]
or eax, edx
mov dword [ecx], eax
xor eax, eax
mov al, byte [ebx + 2]
shl eax, 8
mov dword [ecx + 4], eax
xor edx, edx
mov dl, byte [ebx + 3]
or eax, edx
mov dword [ecx + 4], eax
xor eax, eax
mov al, byte [ebx + 4]
shl eax, 8
mov dword [ecx + 8], eax
xor edx, edx
mov dl, byte [ebx + 5]
or eax, edx
mov dword [ecx + 8], eax
xor eax, eax
mov al, byte [ebx + 6]
shl eax, 8
mov dword [ecx + 0xc], eax
xor edx, edx
mov dl, byte [ebx + 7]
or eax, edx
mov dword [ecx + 0xc], eax
xor eax, eax
mov al, byte [ebx + 8]
shl eax, 8
mov dword [ecx + 0x10], eax
xor edx, edx
mov dl, byte [ebx + 9]
or eax, edx
mov dword [ecx + 0x10], eax
xor eax, eax
mov al, byte [ebx + 0xa]
shl eax, 8
mov dword [ecx + 0x14], eax
xor edx, edx
mov dl, byte [ebx + 0xb]
or eax, edx
mov dword [ecx + 0x14], eax
xor eax, eax
mov al, byte [ebx + 0xc]
shl eax, 8
mov dword [ecx + 0x18], eax
xor edx, edx
mov dl, byte [ebx + 0xd]
or eax, edx
mov dword [ecx + 0x18], eax
xor eax, eax
mov al, byte [ebx + 0xe]
shl eax, 8
mov dword [ecx + 0x1c], eax
xor edx, edx
mov dl, byte [ebx + 0xf]
or eax, edx
mov dword [ecx + 0x1c], eax
mov ebx, ecx
lea esi, [ecx + 0x20]
xor ebp, ebp
nop
lea esi, [esi]
mov edx, dword [ebx + 8]
mov edi, dword [ebx + 4]
mov ecx, edx
mov eax, edi
shr ecx, 7
shl eax, 9
or eax, ecx
and eax, 0xffff
mov dword [esi], eax
mov eax, dword [ebx + 0xc]
mov ecx, eax
shr ecx, 7
shl edx, 9
or edx, ecx
and edx, 0xffff
mov dword [esi + 4], edx
mov edx, dword [ebx + 0x10]
mov ecx, edx
shr ecx, 7
shl eax, 9
or eax, ecx
and eax, 0xffff
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x14]
mov ecx, eax
shr ecx, 7
shl edx, 9
or edx, ecx
and edx, 0xffff
mov dword [esi + 0xc], edx
mov edx, dword [ebx + 0x18]
mov ecx, edx
shr ecx, 7
shl eax, 9
or eax, ecx
and eax, 0xffff
mov dword [esi + 0x10], eax
mov ecx, dword [ebx + 0x1c]
mov eax, ecx
shl edx, 9
shr eax, 7
or edx, eax
and edx, 0xffff
mov dword [esi + 0x14], edx
cmp ebp, 4
mov edx, dword [ebx]
jg 0x4bb30a
mov eax, edx
shr eax, 7
shr edi, 7
shl ecx, 9
shl edx, 9
or ecx, eax
or edx, edi
movzx eax, cx
movzx edi, dx
inc ebp
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edi
add ebx, 0x20
add esi, 0x20
cmp ebp, 5
jle 0x4bb250
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4cf190
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ecx, dword [esp + 0x80]
lea eax, [ecx - 1]
xor ebp, ebp
cmp eax, 0x28
mov edx, dword [esp + 0x7c]
mov dword [esp + 0xc], 0
jle 0x4cf300
mov esi, eax
sub esi, edx
js 0x4cf338
mov eax, dword [esp + 0x78]
sub eax, esi
lea edi, [eax + 0x14]
push eax
push 0x7a
push str..crypto_rsa_rsa_oaep.c
lea ebx, [ecx - 0x15]
push ebx
call fcn.00458b20
add esp, 0x10
test eax, eax
mov ebp, eax
je 0x4cf374
sub esp, 0x10
call fcn.0047a180
mov dword [esp], eax
push ebx
push edi
push 0x14
lea edx, [esp + 0x4c]
push edx
call fcn.004cf030
add esp, 0x20
cmp esi, 0x13
mov edx, esi
jg 0x4cf21d
mov ecx, dword [esp + 0x78]
mov al, byte [ecx]
xor byte [esp + edx + 0x30], al
inc edx
inc ecx
cmp edx, 0x13
jle 0x4cf210
sub esp, 0x10
call fcn.0047a180
mov dword [esp], eax
push 0x14
lea ecx, [esp + 0x44]
push ecx
push ebx
push ebp
call fcn.004cf030
add esp, 0x20
xor edx, edx
jmp 0x4cf247
mov al, byte [edx + edi]
xor byte [edx + ebp], al
inc edx
cmp edx, ebx
jl 0x4cf240
sub esp, 8
push 0
push eax
call fcn.0047a180
mov dword [esp], eax
push 0
lea edi, [esp + 0x24]
push edi
mov edx, dword [esp + 0xa0]
push edx
mov eax, dword [esp + 0xa0]
push eax
call fcn.00479050
mov esi, ebp
mov ecx, 0x14
cld
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb cl
add esp, 0x20
cmp dl, cl
jne 0x4cf300
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x4cf300
mov edx, 0x14
cmp edx, ebx
jge 0x4cf347
jmp 0x4cf2b0
mov al, byte [edx + ebp]
test al, al
jne 0x4cf2bf
inc edx
cmp edx, ebx
jl 0x4cf2b0
mov al, byte [edx + ebp]
dec al
jne 0x4cf300
cmp edx, ebx
lea eax, [edx + 1]
jge 0x4cf300
sub ebx, eax
cmp dword [esp + 0x74], ebx
jl 0x4cf34f
push ecx
push ebx
add eax, ebp
push eax
mov esi, dword [esp + 0x7c]
push esi
call sub.msvcrt.dll_memcpy
add esp, 0x10
sub esp, 0xc
push ebp
call fcn.00458e30
mov eax, ebx
add esp, 0x10
jmp 0x4cf330
sub esp, 0xc
push 0xa8
push str..crypto_rsa_rsa_oaep.c
push 0x79
push 0x7a
push 4
call fcn.0045dc30
add esp, 0x20
test ebp, ebp
je 0x4cf32b
sub esp, 0xc
push ebp
call fcn.00458e30
add esp, 0x10
mov eax, 0xffffffff
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
xor esi, esi
mov dword [esp + 0xc], 1
jmp 0x4cf1c2
mov al, byte [ebp + 0x14]
jmp 0x4cf2bf
sub esp, 0xc
push 0x9b
push str..crypto_rsa_rsa_oaep.c
push 0x6d
push 0x7a
push 4
call fcn.0045dc30
mov ebx, 0xffffffff
add esp, 0x20
jmp 0x4cf2e4
sub esp, 0xc
push 0x7d
push str..crypto_rsa_rsa_oaep.c
push 0x41
push 0x7a
push 4
call fcn.0045dc30
mov eax, 0xffffffff
add esp, 0x20
jmp 0x4cf330
Function at 0x4cf3a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov edx, dword [esp + 0x54]
lea eax, [edx - 0x2a]
cmp eax, dword [esp + 0x5c]
lea esi, [edx - 1]
jl 0x4cf51c
cmp esi, 0x28
jg 0x4cf3e4
sub esp, 0xc
push 0x33
push str..crypto_rsa_rsa_oaep.c
push 0x78
push 0x79
push 4
call fcn.0045dc30
xor edx, edx
add esp, 0x20
add esp, 0x3c
pop ebx
pop esi
pop edi
mov eax, edx
pop ebp
ret
push eax
push 0x37
push str..crypto_rsa_rsa_oaep.c
sub edx, 0x15
mov dword [esp + 0x14], edx
push edx
call fcn.00458b20
mov dword [esp + 0x1c], eax
add esp, 0x10
test eax, eax
je 0x4cf52d
mov edx, dword [esp + 0x50]
sub esp, 8
mov byte [edx], 0
push 0
push eax
mov edi, edx
mov ebp, edx
call fcn.0047a180
mov dword [esp], eax
add ebp, 0x15
push 0
push ebp
mov ebx, dword [esp + 0x7c]
push ebx
mov ecx, dword [esp + 0x7c]
push ecx
mov ebx, esi
call fcn.00479050
sub ebx, dword [esp + 0x7c]
lea eax, [ebx - 0x29]
mov edx, dword [esp + 0x70]
add esp, 0x1c
push eax
add edx, 0x29
push 0
push edx
call sub.msvcrt.dll_memset
mov byte [ebp + ebx - 0x15], 1
lea ebx, [esi + ebp]
sub ebx, dword [esp + 0x6c]
add esp, 0xc
mov ecx, dword [esp + 0x60]
push ecx
mov edx, dword [esp + 0x60]
push edx
sub ebx, 0x14
push ebx
call sub.msvcrt.dll_memcpy
pop ecx
pop ebx
push 0x14
inc edi
push edi
call fcn.00465460
add esp, 0x10
xor edx, edx
test eax, eax
jle 0x4cf3da
sub esp, 0x10
call fcn.0047a180
mov dword [esp], eax
push 0x14
push edi
mov ecx, dword [esp + 0x20]
push ecx
mov eax, dword [esp + 0x28]
push eax
call fcn.004cf030
add esp, 0x20
xor edx, edx
sub esi, 0x14
cmp dword [esp + 8], 0
jle 0x4cf4cf
mov esi, dword [esp + 8]
lea esi, [esi]
mov eax, dword [esp + 0xc]
mov bl, byte [edx + eax]
xor byte [edx + ebp], bl
inc edx
cmp esi, edx
jg 0x4cf4c0
lea ebx, [esp + 0x10]
sub esp, 0x10
call fcn.0047a180
mov dword [esp], eax
push esi
push ebp
push 0x14
push ebx
call fcn.004cf030
add esp, 0x20
xor edx, edx
lea esi, [esi]
mov cl, byte [esp + edx + 0x10]
xor byte [edx + edi], cl
inc edx
cmp edx, 0x13
jle 0x4cf4f0
sub esp, 0xc
mov esi, dword [esp + 0x18]
push esi
call fcn.00458e30
add esp, 0x10
add esp, 0x3c
pop ebx
pop esi
mov edx, 1
pop edi
mov eax, edx
pop ebp
ret
sub esp, 0xc
push 0x2d
push str..crypto_rsa_rsa_oaep.c
push 0x6e
jmp 0x4cf3cc
sub esp, 0xc
push 0x3a
push str..crypto_rsa_rsa_oaep.c
push 0x41
jmp 0x4cf3cc
Function at 0x4d7320
Capabilities:
Check for software breakpoints

Disassembly:
push esi
push ebx
push eax
mov ebx, dword [esp + 0x20]
xor esi, esi
cmp ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
jne 0x4d7370
mov dl, byte [ecx]
lea eax, [edx - 0x6a]
cmp al, 1
ja 0x4d7370
inc ecx
cmp dl, 0x6b
je 0x4d73a0
sub ebx, 2
cmp byte [ebx + ecx], 0xcc
jne 0x4d73e0
push eax
push ebx
push ecx
mov esi, dword [esp + 0x1c]
push esi
call sub.msvcrt.dll_memcpy
add esp, 0x10
mov eax, ebx
pop ebx
pop ebx
pop esi
ret
sub esp, 0xc
push 0x72
push str..crypto_rsa_rsa_x931.c
push 0x89
push pe_nt_image_headers32
push 4
call fcn.0045dc30
add esp, 0x20
pop ebx
pop ebx
mov eax, 0xffffffff
pop esi
ret
lea edx, [ebx - 3]
cmp esi, edx
jge 0x4d73c0
mov esi, esi
lea edi, [edi]
mov al, byte [ecx]
inc ecx
cmp al, 0xba
je 0x4d73c0
cmp al, 0xbb
jne 0x4d73f4
inc esi
cmp esi, edx
jl 0x4d73b0
mov ebx, edx
sub ebx, esi
test esi, esi
jne 0x4d7345
sub esp, 0xc
push 0x8a
push str..crypto_rsa_rsa_x931.c
push 0x8a
jmp 0x4d737f
sub esp, 0xc
push 0x93
push str..crypto_rsa_rsa_x931.c
push 0x8b
jmp 0x4d737f
sub esp, 0xc
push 0x81
jmp 0x4d73d4
Function at 0x4e0200
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebp, dword [esp + 0x48]
xor eax, eax
test ebp, ebp
mov ebx, dword [esp + 0x44]
je 0x4e024c
mov edx, dword [esp + 0x40]
test edx, edx
je 0x4e02b7
test ebx, ebx
je 0x4e0280
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebx
sub esp, 8
lea esi, [esp + 0x18]
push esi
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx + 8]
push eax
call fcn.0046e510
add esp, 0x10
test eax, eax
je 0x4e0260
mov eax, dword [eax + 8]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
cld
mov ecx, 4
mov edi, 0x531d10
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x4e02c5
jmp 0x4e0280
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x531d14
sub esp, 8
lea edx, [esp + 0x18]
push edx
mov ebp, dword [esp + 0x4c]
mov ebx, dword [ebp + 8]
push ebx
call fcn.0046e510
mov edx, eax
add esp, 0x10
xor eax, eax
test edx, edx
je 0x4e024c
mov eax, dword [edx + 8]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push ebp
call sub.msvcrt.dll_getenv
add esp, 0x10
jmp 0x4e024c
sub esp, 0xc
push ebp
call sub.msvcrt.dll_getenv
add esp, 0x10
test eax, eax
jne 0x4e024c
jmp 0x4e0280

Function at 0x4e2990
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xc
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [edx + 4]
cmp dword [ecx + 4], eax
jge 0x4e2a56
mov dword [esp + 8], edx
mov edx, dword [esp + 8]
mov esi, dword [edx + 4]
mov edx, dword [esp + 0x20]
cmp esi, dword [edx + 8]
mov dword [esp + 4], ecx
jg 0x4e2a72
mov ebx, dword [esp + 4]
mov ebp, dword [ebx + 4]
xor edx, edx
cmp ebp, 0
jle 0x4e29fe
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
mov edi, dword [ebx]
mov ebx, dword [ecx]
mov ecx, dword [eax]
mov esi, esi
lea edi, [edi]
mov eax, dword [ecx + edx*4]
xor eax, dword [ebx + edx*4]
mov dword [edi + edx*4], eax
inc edx
cmp ebp, edx
jg 0x4e29f0
cmp esi, edx
jle 0x4e2a1b
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 8]
mov ebx, dword [ebp]
mov ecx, dword [edi]
nop
mov eax, dword [ecx + edx*4]
mov dword [ebx + edx*4], eax
inc edx
cmp esi, edx
jg 0x4e2a10
test esi, esi
mov ebx, esi
mov ecx, esi
jle 0x4e2a8b
mov edx, dword [esp + 0x20]
mov edi, dword [edx]
lea edx, [edi + esi*4 - 4]
lea esi, [esi]
mov esi, dword [edx]
sub edx, 4
test esi, esi
jne 0x4e2a42
lea ebx, [ecx - 1]
test ebx, ebx
mov ecx, ebx
jg 0x4e2a30
mov ecx, dword [esp + 0x20]
mov dword [ecx + 4], ebx
add esp, 0xc
pop ebx
pop esi
pop edi
mov eax, 1
pop ebp
ret
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov edx, dword [esp + 8]
mov esi, dword [edx + 4]
mov edx, dword [esp + 0x20]
cmp esi, dword [edx + 8]
jle 0x4e29c7
sub esp, 8
push esi
push edx
call fcn.00477470
add esp, 0x10
mov ecx, dword [esp + 8]
mov esi, dword [ecx + 4]
jmp 0x4e29c7
mov ebp, dword [esp + 0x20]
mov dword [ebp + 4], esi
add esp, 0xc
pop ebx
pop esi
pop edi
mov eax, 1
pop ebp
ret
Function at 0x4f2750
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x4f27e2
mov eax, dword [0x53e0d0]
test eax, eax
je 0x4f27d6
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x4f2851
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x4f27f7
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.004f23a0
cmp eax, 7
jne 0x4f286f
mov eax, dword [0x53e0d0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x4f2842
mov edx, dword [eax + 0x30]
test edx, edx
js 0x4f2860
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x4f2823
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.004f1bb0
mov eax, dword [0x53e0d0]
jmp 0x4f2772
mov dword [esp], edi
call fcn.004f2210
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x4f2787
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x4f27c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4f27c5
call fcn.004f1bb0
mov eax, dword [0x53e0d0]
jmp 0x4f27b0
call fcn.004f1e80
mov eax, dword [0x53e0d0]
jmp 0x4f277d
call fcn.004f1e80
mov eax, dword [0x53e0d0]
jmp 0x4f27bb
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x40a561
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0040a5e0
jae 0x40a56d
xor ecx, ecx
call fcn.0040a5e0
jae 0x40a597
xor eax, eax
call fcn.0040a5e0
jae 0x40a5a8
mov al, 0x10
call fcn.0040a5e0
adc al, al
jae 0x40a589
jne 0x40a5d5
stosb byte es:[edi], al
jmp 0x40a56e
call fcn.0040a5ec
dec ecx
loop 0x40a5b4
mov eax, ebp
call fcn.0040a5ea
jmp 0x40a5d6
lodsb al, byte [esi]
shr eax, 1
je 0x40a5fc
adc ecx, 2
mov ebp, eax
jmp 0x40a5d6
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0040a5ea
cmp eax, 0x7d00
jae 0x40a5d4
cmp eax, 0x500
jae 0x40a5d5
cmp eax, 0x7f
ja 0x40a5d6
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40a56e
pop ebp
ret 8

Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
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 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18