joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401271
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x1c
push esi
push ecx
pop esi
sub ecx, ecx
mov edx, dword [esi + 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
add edx, esi
mov dword [eax], ecx
mov eax, 0x14c
push edi
push ecx
pop edi
cmp word [edx + 4], ax
jne 0x4013b8
push ebx
mov ebx, dword [edx + 0x88]
mov dword [ebp - 0x14], ebx
or ebx, ebx
je 0x4013b7
cmp dword [edx + 0x8c], ecx
je 0x4013b7
movzx eax, word [edx + 0x14]
add eax, 0x18
add eax, edx
movzx edx, word [edx + 6]
or edx, edx
je 0x4013b7
cmp dword [eax + 0xc], ebx
je 0x4012e2
inc ecx
add eax, 0x28
cmp ecx, edx
jb 0x4012d0
jmp 0x4013b7
mov edx, dword [eax + 0x14]
add edx, esi
push 0
movzx ecx, word [edx + 0xe]
movzx eax, word [edx + 0xc]
add ecx, eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], ecx
pop ebx
je 0x4013b7
xor eax, eax
mov esi, dword [edx + eax*8 + 0x14]
and esi, 0x7fffffff
add esi, edx
push 0
movzx ecx, word [esi + 0xe]
movzx eax, word [esi + 0xc]
add ecx, eax
mov dword [ebp - 0x18], ecx
pop ecx
mov dword [ebp - 0xc], ecx
je 0x4013aa
xor eax, eax
cmp word [esi + eax*8 + 0x10], 0x65
jne 0x40139a
mov ecx, dword [esi + eax*8 + 0x14]
and ecx, 0x7fffffff
add ecx, edx
mov dword [ebp - 8], 0
movzx eax, word [ecx + 0xe]
mov dword [ebp - 4], eax
movzx eax, word [ecx + 0xc]
add dword [ebp - 4], eax
je 0x401393
sub eax, eax
mov edx, 0x409
cmp word [ecx + eax*8 + 0x10], dx
mov edx, dword [ebp - 0x10]
je 0x401376
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
movzx eax, ax
cmp eax, dword [ebp - 4]
jb 0x401356
jmp 0x401393
mov ecx, dword [ecx + eax*8 + 0x14]
mov edi, dword [ebp + 0xc]
mov eax, dword [ecx + edx]
sub eax, dword [ebp - 0x14]
add eax, edx
mov dword [edi], eax
mov eax, dword [ecx + edx + 4]
mov ecx, dword [ebp + 0x10]
sub edi, edi
mov dword [ecx], eax
inc edi
or edi, edi
jne 0x4013b7
mov ecx, dword [ebp - 0xc]
inc ecx
movzx eax, cx
mov dword [ebp - 0xc], ecx
cmp eax, dword [ebp - 0x18]
jb 0x401329
or edi, edi
jne 0x4013b7
inc ebx
movzx eax, bx
cmp eax, dword [ebp - 0x1c]
jb 0x401302
pop ebx
mov eax, edi
pop edi
pop esi
leave
ret 0xc

Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
push ebx
push esi
push edi
mov edi, edx
mov ebx, edi
shr ebx, 2
and edi, 3
mov esi, ecx
test ebx, ebx
je 0x4013f3
mov al, byte [ebp + 0xc]
mov edx, dword [esi]
add al, bl
movzx ecx, al
mov eax, dword [ebp + 8]
ror edx, cl
xor edx, eax
sub edx, ebx
mov dword [esi], edx
add esi, 4
dec ebx
jne 0x4013d6
jmp 0x4013f6
mov eax, dword [ebp + 8]
test edi, edi
je 0x401400
xor byte [esi], al
inc esi
dec edi
jne 0x4013fa
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x401407
Capabilities:
Terminate process

Disassembly:
push ebx
mov eax, 0x4d99f7
mov ebx, 0x12345678
mov ecx, 0x12345678
mov edx, 0x12345678
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [section..data], eax
jmp loc.0047950e
Function at 0x4e1650
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x88000]
push edi
jmp 0x4e166a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4e1671
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e1660
mov eax, 1
add ebx, ebx
jne 0x4e1683
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4e1694
jne 0x4e16b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e16b3
dec eax
add ebx, ebx
jne 0x4e16a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4e1678
add ebx, ebx
jne 0x4e16af
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4e1705
xor ecx, ecx
sub eax, 3
jb 0x4e16cb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4e173a
sar eax, 1
mov ebp, eax
jmp 0x4e16d6
add ebx, ebx
jne 0x4e16d6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e16a4
inc ecx
add ebx, ebx
jne 0x4e16e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e16a4
add ebx, ebx
jne 0x4e16f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4e16e6
jne 0x4e1702
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4e16e6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4e1724
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4e1716
jmp 0x4e1666
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4e1724
add edi, ecx
jmp 0x4e1666
pop esi
mov edi, esi
mov ecx, 0x3eac
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4e1742
cmp byte [edi], 0x11
jne 0x4e1742
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 0x4e1747
lea edi, [esi + 0xda000]
mov eax, dword [edi]
or eax, eax
je 0x4e17bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe7698]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe783c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4e1774
mov ecx, edi
jns 0x4e17a3
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 + 0xe7844]
or eax, eax
je 0x4e17b9
mov dword [ebx], eax
add ebx, 4
jmp 0x4e1791
call dword [esi + 0xe7840]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4e17f0
cmp al, 0xef
ja 0x4e17e3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4e17c5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4e17d2
mov ebp, dword [esi + 0xe7848]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4e1824
sub esp, 0xffffff80
jmp 0x4288dd
Function at 0x10002bb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x10002bbf
pop dword [ebp - 0x4c]
mov eax, 0x10002bbf
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x3d7d6
push 0
mov eax, 0x584f898
sub eax, 0xf583173c
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0xb6b1c322
sub ecx, 0xb6b170b3
mov ebx, eax
mov edi, 0x1002e200
add edi, dword [ebp - 0x4c]
mov edx, 0xd7afb36
sub edx, 0x3ba1fe14
mov esi, dword [edi]
xor dword [ebp - 0x30], 0xabd7c985
sub esi, edx
sub dword [ebp - 0x34], 0x80ecb453
mov dword [ebx], esi
add dword [ebp - 0x48], edi
add ebx, 0x1afa8f9f
sub ebx, 0x1afa8f9b
add edi, 4
loop 0x10002c13
add eax, 0xeeca16df
add eax, 0x113725b0
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xb5c0aeee
add ecx, 0x5a3f5112
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x4019e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x401a0c
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 edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x401a34
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x401a3a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x401aa2
jg 0x401a51
test esi, esi
je 0x401aa2
test ecx, ecx
jl 0x401a9d
jg 0x401a5b
test eax, eax
je 0x401a9d
cmp edi, ecx
jg 0x401a6f
jl 0x401a65
cmp esi, eax
jae 0x401a6f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x401aa5
mov ecx, dword [ebp + 8]
jmp 0x401aaf
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x401ac9
jg 0x401aaf
test esi, esi
je 0x401ac9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x401ac9
push eax
push esi
push 1
push ecx
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 [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401ae0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x401b0c
jl 0x401b00
test ecx, ecx
jne 0x401b0c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x401b25
push eax
push ecx
push esi
mov ecx, ebx
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
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x401b73
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x401b79
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x401b79
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x401be6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x401ba2
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x401bd4
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x401be6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x401bb0
test edi, edi
je 0x401be6
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
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401f60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x406040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x401f90
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402bbc
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x401fcc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x401fcc
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402bbc
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4020a3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x401ff4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x402000
movsx eax, bl
jmp 0x402038
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x402062
sub eax, 1
je 0x402062
sub eax, 2
jne 0x4020a3
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402bbc
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x402080
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4020a3
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402bbc
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402bbc
mov esp, ebp
pop ebp
ret 4
Function at 0x402540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x406040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4025fc
cmp byte [esi + 0x3d], 0
je 0x4025fc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4025ea
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x4025b1
sub eax, 1
je 0x4025b5
sub eax, 2
jne 0x4025ea
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402bbc
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4025d3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4025ea
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402bbc
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402bbc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00402bbc
mov esp, ebp
pop ebp
ret

Function at 0x403456
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403495
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403495
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403495
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403495
cmp dword [ecx + 0x74], 0xe
jbe 0x403495
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x418784
Capabilities:
Hash data using murmur3

Disassembly:
enter 0x18, 0
push ebx
push esi
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
shr ecx, 2
mov dword [ebp - 0x10], eax
lea ebx, [edx + ecx*4]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
je 0x4187eb
mov eax, dword [ebp - 0x14]
call fcn.00418884
mov dword [ebp - 8], eax
imul ecx, dword [ebp - 8], 0xcc9e2d51
mov dword [ebp - 8], ecx
rol ecx, 0xf
mov dword [ebp - 8], ecx
imul edx, dword [ebp - 8], 0x1b873593
mov dword [ebp - 8], edx
xor dword [ebp - 0x10], edx
mov ebx, dword [ebp - 0x10]
rol ebx, 0xd
mov dword [ebp - 0x10], ebx
lea esi, [ebx + ebx*4 - 0x19ab949c]
mov dword [ebp - 0x10], esi
add dword [ebp - 0x14], 4
jmp 0x4187a2
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
and eax, 3
cmp eax, 1
je 0x418825
cmp eax, 2
je 0x418818
cmp eax, 3
je 0x41880b
jmp 0x41884b
mov edx, dword [ebp - 0x14]
movzx ecx, byte [edx + 2]
shl ecx, 0x10
xor dword [ebp - 4], ecx
mov esi, dword [ebp - 0x14]
movzx ebx, byte [esi + 1]
shl ebx, 8
xor dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x14]
movzx eax, byte [ecx]
xor dword [ebp - 4], eax
imul edx, dword [ebp - 4], 0xcc9e2d51
mov dword [ebp - 4], edx
rol edx, 0xf
mov dword [ebp - 4], edx
imul ebx, dword [ebp - 4], 0x1b873593
mov dword [ebp - 4], ebx
xor dword [ebp - 0x10], ebx
mov esi, dword [ebp - 0x18]
xor dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x10]
shr eax, 0x10
xor eax, dword [ebp - 0x10]
imul ecx, eax, 0x85ebca6b
mov dword [ebp - 0x10], ecx
shr ecx, 0xd
xor ecx, dword [ebp - 0x10]
imul edx, ecx, 0xc2b2ae35
mov dword [ebp - 0x10], edx
shr edx, 0x10
xor dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
leave
ret 8
Function at 0x420434
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub esp, 0x30
mov dword [esp + 0x1c], esi
mov esi, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], edi
mov ebx, dword [eax + 0x9c8]
mov edi, ebx
dec edi
jns 0x420459
mov edi, 0x26f
mov ebp, ebx
mov eax, dword [esi + 0x9c0]
add ebp, 0xfffffe73
jns 0x42046f
lea ebp, [ebx + 0xe3]
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
cmp ebx, 0x270
jae 0x420533
mov edx, dword [esi + ebx*4]
and edx, 0x80000000
cmp edi, 0x270
mov dword [esp + 0x24], edx
jae 0x42055b
mov ecx, eax
shl ecx, 7
and ecx, 0x9d2c5680
mov edx, dword [esi + edi*4]
and edx, 0x7fffffff
xor eax, ecx
or edx, dword [esp + 0x24]
mov ecx, eax
shl ecx, 0xf
mov dword [esp + 0x28], edx
and ecx, 0xefc60000
shr edx, 1
xor eax, ecx
test dword [esp + 0x28], 1
je 0x4204d8
xor edx, 0x9908b0df
cmp ebp, 0x270
jae 0x420583
mov ecx, dword [esi + ebp*4]
xor ecx, edx
mov dword [esp + 0x2c], ecx
mov ecx, eax
shr ecx, 0x12
xor eax, ecx
cmp ebx, 0x270
jae 0x4205ab
lea ebp, [esi + ebx*4]
mov edx, dword [esp + 0x2c]
mov dword [ebp], edx
mov ecx, dword [ebp]
mov dword [esi + 0x9c0], ecx
mov dword [esi + 0x9c8], edi
mov dword [esi + 0x9c4], eax
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
add esp, 0x30
ret
mov dword [esp + 0x10], 0x270
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x3cc
mov dword [esp], 0x473b40
call fcn.0041bd28
mov dword [esp + 0x10], 0x270
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x3cd
mov dword [esp], 0x473b40
call fcn.0041bd28
mov dword [esp + 0x10], 0x270
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0
mov dword [esp + 4], 0x3d4
mov dword [esp], 0x473b40
call fcn.0041bd28
mov dword [esp + 0x10], 0x270
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x3d6
mov dword [esp], 0x473b40
call fcn.0041bd28
int3
Function at 0x4219c8
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
test al, al
mov dword [esp], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 4], esi
mov dword [esp + 8], edi
je 0x421a4a
push 0
push 0x8000080
push 4
push 0
push 0
push 0x40000000
push ebx
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
cmp eax, 0xffffffff
setne cl
mov edx, 0x4741f0
mov eax, 0x35b
push ecx
push dword [esp + 0x28]
push dword [esp + 0x28]
push ebx
push edx
push 0xa
call fcn.00427224
push 2
push 0
push 0
push edi
call sub.KERNEL32.DLL_SetFilePointer
cmp eax, 0xffffffff
setne cl
push ecx
mov edx, 0x4741f0
mov eax, 0x35c
push dword [esp + 0x28]
push dword [esp + 0x28]
push ebx
push edx
push 0xa
call fcn.00427224
jmp 0x421a86
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push ebx
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
cmp eax, 0xffffffff
setne cl
mov edx, 0x4741f0
mov eax, 0x367
push ecx
push dword [esp + 0x28]
push dword [esp + 0x28]
push ebx
push edx
push 0xa
call fcn.00427224
mov dword [esp + 0x1c], ebx
xor ebx, ebx
cmp dword [esp + 0x14], ebx
je 0x421acc
push 0
lea ecx, [esp + 0x10]
mov edx, dword [esp + 0x18]
push ecx
sub edx, ebx
mov ecx, 0x40000000
cmp edx, ecx
jae 0x421aac
mov esi, edx
jmp 0x421aae
mov esi, ecx
mov edx, dword [esp + 0x20]
add edx, ebx
push esi
push edx
push edi
call sub.KERNEL32.DLL_WriteFile
cmp dword [esp + 0xc], esi
jne 0x421acc
add ebx, dword [esp + 0xc]
cmp ebx, dword [esp + 0x14]
jne 0x421a92
cmp ebx, dword [esp + 0x14]
jne 0x421adc
push edi
call sub.KERNEL32.DLL_CloseHandle
test eax, eax
jne 0x421ae0
xor ecx, ecx
jmp 0x421ae5
mov ecx, 1
mov edx, 0x4741f0
mov eax, 0x374
push ecx
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push edx
push 0xa
call fcn.00427224
mov ebx, dword [esp]
mov esi, dword [esp + 4]
mov edi, dword [esp + 8]
add esp, 0x10
ret 0x14
Function at 0x4225ac
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x28
mov ecx, 9
xor eax, eax
mov dword [esp], edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea ecx, [esp + 4]
push ecx
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [esp + 8]
mov dword [0x49c244], edx
mov edi, dword [esp]
add esp, 0x28
ret

Function at 0x4246ac
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
sub esp, 0x1c
mov dword [esp + 4], ebp
mov ebp, eax
test ebp, ebp
mov dword [esp + 8], esi
mov esi, dword [esp + 0x24]
mov dword [esp], ebx
mov dword [esp + 0xc], edi
je 0x4246d5
mov ecx, dword [esi]
mov eax, esi
call dword [ecx + 0x20]
mov ebx, eax
test eax, eax
jne 0x4246ec
mov ebx, dword [esp]
mov ebp, dword [esp + 4]
mov esi, dword [esp + 8]
mov edi, dword [esp + 0xc]
add esp, 0x1c
xor eax, eax
ret 8
mov eax, esi
call fcn.00424788
xor al, 1
je 0x42472e
mov esi, ebx
imul esi, ebp
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
push edx
push eax
xor eax, eax
call fcn.00418784
mov ebx, dword [esp]
mov ebp, dword [esp + 4]
mov esi, dword [esp + 8]
mov edi, dword [esp + 0xc]
add esp, 0x1c
ret 8
mov dword [esp + 0x18], ebx
xor edi, edi
xor ebx, ebx
test ebp, ebp
je 0x42476f
mov edx, ebx
imul edx, dword [esp + 0x18]
mov ecx, dword [esi]
mov eax, esi
add edx, dword [esp + 0x20]
push edx
call dword [ecx + 0x14]
inc ebx
imul edx, eax, 0xcc9e2d51
rol edx, 0xf
imul ecx, edx, 0x1b873593
xor ecx, edi
rol ecx, 0xd
lea edx, [ecx + ecx*4 - 0x19ab949c]
mov edi, edx
cmp ebx, ebp
jb 0x42473a
mov eax, edi
mov ebx, dword [esp]
mov ebp, dword [esp + 4]
mov esi, dword [esp + 8]
mov edi, dword [esp + 0xc]
add esp, 0x1c
ret 8

Function at 0x424b64
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov dword [esp], ebx
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x20]
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
call fcn.0042a4b0
mov ecx, edx
or ecx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jne 0x424ba1
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x1c], ebx
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x18], 0x270
mov dword [esp + 0x20], ebx
xor edi, edi
imul edx, esi, 0x9e3779bb
rol edx, 5
lea ecx, [edx + edx*4]
mov edx, dword [esp + 0x1c]
mov ebx, ebp
xor ebx, esi
mov dword [edx + edi*4], ecx
mov ecx, ebx
mov eax, esi
rol eax, 0x1a
shl ecx, 9
xor eax, ebx
xor ecx, eax
mov esi, ecx
lea edx, [edi + 1]
imul eax, ecx, 0x9e3779bb
rol eax, 5
mov ecx, dword [esp + 0x1c]
lea eax, [eax + eax*4]
add edi, 2
mov dword [ecx + edx*4], eax
mov edx, ebx
rol edx, 0xd
xor edx, esi
mov ebx, edx
mov ecx, esi
rol ecx, 0x1a
shl edx, 9
xor ecx, ebx
xor edx, ecx
mov ebp, ebx
rol ebp, 0xd
mov esi, edx
cmp edi, 0x270
jb 0x424bbb
mov ebx, dword [esp + 0x20]
mov eax, ebx
mov dword [ebx + 0x9c8], 0x26f
call fcn.0042042c
mov eax, ebx
call fcn.0042042c
mov ebx, dword [esp]
mov ebp, dword [esp + 4]
mov esi, dword [esp + 8]
mov edi, dword [esp + 0xc]
add esp, 0x24
ret