joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x402e21
jl 0x402e17
test esi, esi
jne 0x402e21
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x402e38
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
pop ebp
ret 0xc
push edi
mov edi, esi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
test eax, eax
je 0x402e6e
cmp eax, dword [ebp + 0xc]
mov ecx, ebx
cmovb esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
push esi
push eax
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
add dword [ebp + 8], esi
add esp, 0xc
mov ecx, ebx
sub edi, esi
push esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x402edd
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const]
lea ecx, [ebx + 0x3c]
cmp eax, ecx
jne 0x402e96
push dword [ebx + 0x54]
mov eax, dword [ebx + 0x50]
mov ecx, ebx
push eax
push eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, edi
cmp edi, 0xfff
jbe 0x402ecb
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x402edd
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x402ea5
test ecx, ecx
je 0x402edd
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
pop ebp
ret 0xc
Function at 0x402ef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x402f15
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x402f80
jg 0x402f3b
test esi, esi
je 0x402f80
test ecx, ecx
jl 0x402fba
jg 0x402f45
test eax, eax
je 0x402fba
cmp edi, ecx
jg 0x402f55
jl 0x402f4f
cmp esi, eax
jae 0x402f55
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push dword [ebp + 0x10]
push dword [ebp + 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 0x10]
add esp, 0xc
add dword [ebp + 8], eax
mov ecx, ebx
sub esi, eax
sbb edi, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
mov eax, dword [ebp + 8]
test edi, edi
jl 0x402fa7
jg 0x402f8d
test esi, esi
je 0x402fa7
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x402fa7
push ecx
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
jmp 0x402f8d
Function at 0x403fda
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404019
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404019
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404019
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404019
cmp dword [ecx + 0x74], 0xe
jbe 0x404019
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10fe4f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x876000]
push edi
jmp 0x10fe50a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10fe511
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10fe500
mov eax, 1
add ebx, ebx
jne 0x10fe523
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10fe534
jne 0x10fe553
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10fe553
dec eax
add ebx, ebx
jne 0x10fe540
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10fe518
add ebx, ebx
jne 0x10fe54f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x10fe5a5
xor ecx, ecx
sub eax, 3
jb 0x10fe56b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10fe5da
sar eax, 1
mov ebp, eax
jmp 0x10fe576
add ebx, ebx
jne 0x10fe576
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10fe544
inc ecx
add ebx, ebx
jne 0x10fe584
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10fe544
add ebx, ebx
jne 0x10fe591
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10fe586
jne 0x10fe5a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10fe586
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10fe5c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10fe5b6
jmp 0x10fe506
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10fe5c4
add edi, ecx
jmp 0x10fe506
pop esi
mov edi, esi
mov ecx, 0xa2b2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10fe5e2
cmp byte [edi], 0x3f
jne 0x10fe5e2
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 al, bl
loop 0x10fe5e7
lea edi, [esi + 0xcfa000]
mov eax, dword [edi]
or eax, eax
je 0x10fe65f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd08200]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd08368]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10fe614
mov ecx, edi
jns 0x10fe643
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 + 0xd0836c]
or eax, eax
je 0x10fe659
mov dword [ebx], eax
add ebx, 4
jmp 0x10fe631
call dword [esi + 0xd0837c]
mov ebp, dword [esi + 0xd08370]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x10fe693
sub esp, 0xffffff80
jmp 0x50af4a
Function at 0x405d7e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a1244], 0
push esi
jne 0x405db5
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d8f
mov dword [ecx*4 + 0x7a1240], eax
inc ecx
cmp ecx, 0x100
jl 0x405d8a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405de6
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a1240]
xor eax, esi
inc ecx
dec edx
jne 0x405dc8
pop edi
not eax
pop esi
ret 0xc

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x17851918
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x25337c81
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x10070e7a
Capabilities:
Encode data using xor

Disassembly:
pushfd
mov byte [esp], ah
inc dl
jmp 0x10046440
seta dl
mov dl, byte [esi]
jmp 0x1006caa4

Function at 0x1007658b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x1007016e
pushal
jmp 0x10070d59
pushf
pushal
call fcn.10070e7a
pushal
pushal
push dword [esp + 0x40]
ret 0x44
clc
add dl, dl
pushfd
lea esp, [esp + 4]
jne 0x10070864
jae 0x10046241
mov dl, dl
push eax
pushf
pop word [esp + 2]
setno dl
pushal
pushfd
mov dl, byte [esi]
call fcn.10070d83
jle 0x10069d83
je 0x100466e6
cmc
setle dl
mov esi, dword [eax + 0x3c]
rcl dl, cl
and dx, bp
movsx edx, cl
test ch, 0xb
add esi, eax
shl dx, 7
movzx dx, cl
mov edx, dword [esi + 0x78]
cmc
test edx, edx
push eax
call fcn.1006e25a
Function at 0x1fa46b0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1fa46ba
pushal
call 0x1fa46c0
pop ebp
sub ebp, 0x10
sub ebp, 0x1ba46b0
jmp 0x1fa46d6
mov eax, 0x1ba46b0
add eax, ebp
add eax, 0x4c
mov ecx, 0x5cc
mov edx, 0xc40f1f9f
xor byte [eax], dl
inc eax
dec ecx
jne 0x1fa46ed
jmp 0x1fa4700
adc al, 0x52
adc al, 0x16
mov dword [0x1e9f9f9f], eax
pop esi
lahf
lahf
lahf
pushfd
push edx
daa
wait
lahf
lahf
lahf
and eax, 0x9f9f9fb7
push 0x14579c7d
push ds
xchg ebx, eax
lahf
lahf
lahf
pushfd
pop edx
adc bh, bl
mov ebx, 0xbb9b1663
adc bh, bl
mov ebx, 0xbb9b1663
mul dword [ebx - 0x4f]
int 0x9f
imul dword [ebx]
mov bh, dh
sahf
sahf
mov bl, 0xbb
not dword [eax - 0x1c]
dec ecx
int3
Function at 0x593d20
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, ecx
mov ebx, edx
mov dword [ebp - 4], edi
test edi, edi
je 0x593e4f
test ebx, ebx
je 0x593e4f
mov eax, 0xaaaaaaab
mul ebx
mov eax, ebx
shr edx, 1
push esi
mov esi, ebx
lea ecx, [edx + edx*2]
sub eax, ecx
je 0x593d57
lea esi, [ecx + 3]
mov eax, 0xaaaaaaab
mul esi
mov esi, edx
shr esi, 1
call dword [0x41b00c]
mov ecx, eax
lea eax, [esi*4 + 0x100]
push eax
push 8
push ecx
call dword [0x41b044]
mov dword [ebp - 0x10], eax
mov byte [eax + esi*4], 0
test ebx, ebx
je 0x593e48
not dword [ebp - 4]
lea esi, [eax + 2]
lea ecx, [ebx - 1]
mov dword [ebp - 8], esi
mov eax, 0xaaaaaaab
add edi, 2
mul ecx
mov eax, edx
mov edx, 2
shr eax, 1
inc eax
mov dword [ebp - 0xc], eax
nop dword [eax]
mov ecx, dword [ebp - 4]
movzx eax, byte [edi - 2]
add ecx, edi
shl eax, 8
cmp ecx, ebx
jae 0x593dc8
movzx ecx, byte [edi - 1]
or ecx, eax
jmp 0x593dca
mov ecx, eax
shl ecx, 8
cmp edx, ebx
jae 0x593dd8
movzx eax, byte [edi]
or eax, ecx
jmp 0x593dda
mov eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + 0x420ae0]
mov byte [esi - 2], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x420ae0]
mov byte [esi - 1], cl
mov ecx, dword [ebp - 4]
add ecx, edi
cmp ecx, ebx
jae 0x593e14
mov ecx, eax
shr ecx, 6
and ecx, 0x3f
mov cl, byte [ecx + 0x420ae0]
jmp 0x593e16
mov cl, 0x3d
mov esi, dword [ebp - 8]
mov byte [esi], cl
cmp edx, ebx
jae 0x593e2a
and eax, 0x3f
mov al, byte [eax + 0x420ae0]
jmp 0x593e2c
mov al, 0x3d
mov byte [esi + 1], al
add edi, 3
add esi, 4
add edx, 3
sub dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
jne 0x593db0
mov eax, dword [ebp - 0x10]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x593f90
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
call dword [0x41b00c]
push 0x408
push 8
push eax
mov dword [ebp - 0xc], eax
call dword [0x41b044]
movaps xmm1, xmmword [0x421c00]
mov edi, eax
mov ecx, 8
mov dword [edi], 0
lea edx, [edi + 0x28]
mov dword [edi + 4], 0
lea eax, [ecx - 8]
movd xmm0, eax
lea edx, [edx + 0x40]
pshufd xmm0, xmm0, 0
lea eax, [ecx - 4]
paddd xmm0, xmm1
movups xmmword [edx - 0x60], xmm0
movd xmm0, eax
lea eax, [ecx + 4]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [edx - 0x50], xmm0
movd xmm0, ecx
add ecx, 0x10
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [edx - 0x40], xmm0
movd xmm0, eax
lea eax, [ecx - 8]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [edx - 0x30], xmm0
cmp eax, 0x100
jl 0x593fd4
xor edx, edx
xor ebx, ebx
xor esi, esi
nop word [eax + eax]
mov eax, dword [ebp + 8]
mov ecx, dword [edi + esi*4 + 8]
mov al, byte [edx + eax]
add al, cl
add al, bl
movzx ebx, al
mov eax, dword [edi + ebx*4 + 8]
mov dword [edi + esi*4 + 8], eax
lea eax, [edx + 1]
xor edx, edx
mov dword [edi + ebx*4 + 8], ecx
inc esi
cmp eax, 0x20
cmovl edx, eax
cmp esi, 0x100
jl 0x594040
mov edx, dword [edi]
xor esi, esi
mov ebx, dword [edi + 4]
cmp dword [ebp - 4], esi
jle 0x5940b0
nop dword [eax]
inc dl
movzx edx, dl
mov ecx, dword [edi + edx*4 + 8]
lea eax, [ebx + ecx]
movzx ebx, al
mov eax, dword [edi + ebx*4 + 8]
mov dword [edi + edx*4 + 8], eax
mov dword [edi + ebx*4 + 8], ecx
add cl, al
movzx eax, cl
mov ecx, dword [ebp - 8]
mov al, byte [edi + eax*4 + 8]
xor byte [esi + ecx], al
inc esi
cmp esi, dword [ebp - 4]
jl 0x594080
push edi
push 0
push dword [ebp - 0xc]
mov dword [edi], edx
mov dword [edi + 4], ebx
call dword [0x41b0d0]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x596e20
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
test bl, 7
jne 0x596efa
push esi
push edi
push ebx
call fcn.00597aaf
mov esi, dword [ebp + 8]
mov edx, eax
xor al, al
mov dword [ebp - 8], edx
mov ecx, ebx
mov edi, edx
rep stosb byte es:[edi], al
mov ecx, ebx
mov edi, edx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
add esp, 4
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x596eee
mov esi, dword [ebx + edx]
lea eax, [ebx + edx]
mov dword [ebp - 0xc], eax
lea eax, [ebx + 4]
add eax, edx
mov dword [ebp + 8], 0x20
mov dword [ebp - 0x10], eax
mov edi, dword [eax]
mov eax, 0xc6ef3720
mov ebx, dword [ebp + 0x10]
mov edx, esi
shr edx, 5
mov ecx, esi
shl ecx, 4
xor edx, ecx
mov ecx, eax
shr ecx, 0xb
add edx, esi
and ecx, 3
mov ecx, dword [ebx + ecx*4]
add ecx, eax
add eax, 0x61c88647
xor edx, ecx
sub edi, edx
mov edx, edi
mov ecx, edi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ebx + ecx*4]
add ecx, eax
xor edx, ecx
sub esi, edx
sub dword [ebp + 8], 1
jne 0x596e83
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 8]
add ebx, 8
mov dword [ebp - 4], ebx
mov dword [eax], esi
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
cmp ebx, dword [ebp + 0xc]
jb 0x596e64
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
pop edi
pop esi
mov dword [eax], edx
mov eax, dword [ebp + 0x1c]
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x597560
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x138c
call fcn.005a9c00
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov dword [esp + 0xc], edi
call fcn.00597a4a
mov dword [esp + 0x1394], 0xffffffff
mov esi, 1
mov dword [esp + 0x14], eax
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, esi
mov dword [esp + esi*4 + 0x14], eax
inc esi
cmp esi, 0x270
jb 0x597594
xor eax, eax
mov dword [esp + 0x10], 0x270
test ebx, ebx
je 0x59760d
xor esi, esi
lea ecx, [esp + 0x10]
call fcn.00597630
mov ecx, 0x3e
mul ecx
cmp eax, ecx
jae 0x5975f4
cmp eax, 4
jae 0x5975f4
mov edi, ecx
nop dword [eax + eax]
lea ecx, [esp + 0x10]
call fcn.00597630
mul edi
cmp eax, 4
jb 0x5975e0
mov edi, dword [esp + 0xc]
mov al, byte [edx + 0x420b24]
mov byte [esi + edi], al
inc esi
cmp esi, ebx
jb 0x5975c0
mov byte [esi + edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [eax + edi], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x597630
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x59768d
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x597650
mov eax, dword [esi]
jmp 0x597767
cmp eax, 0x4e0
jb 0x597767
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub esi, 1
jne 0x5976a6
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
nop
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd50]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub esi, 1
jne 0x5976f0
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5981f4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x41b104]
test eax, eax
je 0x598233
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x598233
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x598233
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x598233
cmp dword [ecx + 0x74], 0xe
jbe 0x598233
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x5a97b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5a97dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5a97dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10003b09
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x28
push 0x249288
call 0x10008ee0
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov esi, 0x14c
cmp word [eax + 4], si
jne 0x10003b35
add eax, 0x78
jmp 0x10003b3a
add eax, 0x88
mov esi, dword [eax]
add esi, ecx
cmp dword [eax], edx
je 0x10003c28
cmp dword [eax + 4], edx
je 0x10003c28
cmp dword [esi + 0x1c], edx
je 0x10003c28
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x28], eax
cmp eax, edx
je 0x10003c28
mov eax, dword [esi + 0x1c]
add eax, ecx
mov dword [ebp - 0x30], eax
cmp dword [esi + 0x24], edx
je 0x10003c18
mov edi, dword [esi + 0x24]
add edi, ecx
mov dword [ebp - 0x38], edi
mov ebx, dword [esi + 0x20]
add ebx, ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
jae 0x10003c28
and dword [ebp - 0x1c], 0
xor eax, eax
inc eax
je 0x10003ba9
movzx ecx, word [edi]
add ecx, dword [esi + 0x10]
cmp eax, ecx
jmp 0x10003bda
mov eax, dword [ebx]
add eax, ecx
mov dword [ebp - 0x2c], eax
xor ecx, ecx
inc ecx
je 0x10003bc7
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10003be3
push ecx
push eax
call dword [0x249094]
test eax, eax
jmp 0x10003bda
push eax
call dword [0x249034]
mov edx, dword [ebp - 0x2c]
call fcn.100062b9
xor ecx, ecx
cmp ecx, eax
jne 0x10003be3
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 0
je 0x10003c02
movzx eax, word [edi]
mov ecx, dword [ebp - 0x30]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x20], eax
xor eax, eax
je 0x10003c28
mov ecx, dword [ebx]
add ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x10003c28
add ebx, 4
mov dword [ebp - 0x34], ebx
inc edi
inc edi
mov dword [ebp - 0x38], edi
inc dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
jmp 0x10003b8a
mov dword [ebp - 0x20], eax
jmp 0x10003c28
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
call 0x10008f1b
ret 4

Function at 0x100060b4
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x100062b9
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
test edx, edx
je 0x100062fe
or eax, 0xffffffff
test esi, esi
je 0x100062fa
push edi
mov cl, byte [edx]
movzx edi, al
movzx ecx, cl
xor edi, ecx
and edi, 0xf
shr eax, 4
xor eax, dword [edi*4 + 0x249238]
shr ecx, 4
mov edi, eax
and edi, 0xf
xor ecx, edi
shr eax, 4
xor eax, dword [ecx*4 + 0x249238]
dec esi
inc edx
test esi, esi
jne 0x100062c8
pop edi
not eax
jmp 0x10006300
xor eax, eax
not eax
pop esi
ret