joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403470
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, edx
mov esi, ecx
mov eax, 0xaaaaaaab
lea ecx, [edi + 2]
mul ecx
shr edx, 1
lea eax, [edx*4 + 1]
push eax
push 8
call dword [0x23b0c4]
push eax
call dword [0x23b0c0]
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x40357a
mov dword [ebp - 0xc], ecx
push ebx
mov ebx, ecx
test edi, edi
je 0x403569
lea eax, [ebp - 4]
sub eax, esi
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
xor edx, edx
lea ecx, [edx + 3]
nop word [eax + eax]
test edi, edi
je 0x4034da
mov al, byte [esi]
dec edi
inc edx
jmp 0x4034dc
xor al, al
mov byte [ebx + esi], al
inc esi
sub ecx, 1
jne 0x4034d0
movzx ecx, byte [ebp - 4]
mov ebx, dword [ebp - 0xc]
mov eax, ecx
sub dword [ebp - 8], 3
and ecx, 3
shr eax, 2
shl ecx, 4
movzx eax, byte [eax + 0x231040]
mov byte [ebx], al
movzx eax, byte [ebp - 3]
mov dword [ebp - 0xc], eax
shr eax, 4
or eax, ecx
movzx eax, byte [eax + 0x231040]
mov byte [ebx + 1], al
cmp edx, 1
jbe 0x40354f
mov ecx, dword [ebp - 0xc]
movzx eax, byte [ebp - 2]
and ecx, 0xf
shr eax, 6
shl ecx, 2
or eax, ecx
movzx eax, byte [eax + 0x231040]
mov byte [ebx + 2], al
cmp edx, 2
jbe 0x403553
movzx eax, byte [ebp - 2]
and eax, 0x3f
mov al, byte [eax + 0x231040]
jmp 0x403555
mov byte [ebx + 2], 0x3d
mov al, 0x3d
mov byte [ebx + 3], al
add ebx, 4
mov dword [ebp - 0xc], ebx
test edi, edi
jne 0x4034c2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov byte [ebx], 0
test eax, eax
je 0x403577
sub ebx, ecx
mov dword [eax], ebx
mov eax, ecx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
xor esi, esi
mov eax, dword [edi + 0x3c]
mov ebx, dword [eax + edi + 0x78]
mov eax, dword [ebx + edi + 0x20]
add ebx, edi
add eax, edi
mov dword [ebp - 4], eax
mov ecx, dword [ebx + 0x1c]
add ecx, edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebx + 0x24]
add ecx, edi
mov dword [ebp - 0xc], ecx
cmp dword [ebx + 0x18], esi
jbe 0x406454
mov eax, dword [eax + esi*4]
add eax, edi
push edx
push eax
call dword [0x23b0e4]
test eax, eax
je 0x40645d
mov eax, dword [ebp - 4]
inc esi
mov edx, dword [ebp - 8]
cmp esi, dword [ebx + 0x18]
jb 0x406437
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + esi*2]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408330
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
xor esi, esi
mov al, byte [esi + 0x23a0ac]
mov byte [ebp + esi - 0xd8], al
inc esi
cmp esi, 0x20
jb 0x408342
test edi, edi
je 0x408370
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ecx + edi]
mov byte [ebp + ecx - 0xb8], al
inc ecx
cmp ecx, 0x10
jb 0x408360
xor ecx, ecx
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
xor esi, esi
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x68], 0x30
mov dword [ebp - 0x64], ecx
nop word [eax + eax]
mov al, byte [ebp + esi - 0xd8]
mov byte [ebp + ecx - 0x50], al
inc ecx
test cl, 0x3f
jne 0x4083f5
xor eax, eax
movzx edx, byte [ebp + eax - 0x4d]
movzx ecx, byte [ebp + eax - 0x4e]
shl edx, 8
or edx, ecx
movzx ecx, byte [ebp + eax - 0x4f]
shl edx, 8
or edx, ecx
movzx ecx, byte [ebp + eax - 0x50]
shl edx, 8
or edx, ecx
mov dword [ebp + eax - 0xa8], edx
add eax, 4
cmp eax, 0x40
jb 0x4083b3
lea edx, [ebp - 0xa8]
lea ecx, [ebp - 0x60]
call fcn.00406290
xor ecx, ecx
inc esi
cmp esi, 0x30
jb 0x4083a0
mov ecx, dword [ebp - 0x68]
mov eax, 0x78
and ecx, 0x3f
mov esi, 0x38
sub eax, ecx
sub esi, ecx
cmp ecx, 0x38
mov edx, 0x23a020
lea ecx, [ebp - 0x68]
cmovae esi, eax
push esi
call fcn.00406210
mov edi, dword [ebp - 0x68]
add esp, 4
sub edi, esi
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x68], edi
sbb esi, 0
xor edx, edx
mov dword [ebp - 0x64], esi
nop dword [eax]
movzx ecx, byte [ebp + edx - 0x4d]
movzx eax, byte [ebp + edx - 0x4e]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp + edx - 0x4f]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp + edx - 0x50]
shl ecx, 8
or ecx, eax
mov dword [ebp + edx - 0xa8], ecx
add edx, 4
cmp edx, 0x38
jb 0x408440
lea eax, [edi*8]
shld esi, edi, 3
lea edx, [ebp - 0xa8]
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x6c], esi
call fcn.00406290
movzx eax, byte [ebp - 0x60]
mov ecx, dword [ebp - 0x60]
mov byte [ebp - 0x10], al
mov eax, ecx
shr eax, 8
mov byte [ebp - 0xf], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0xe], al
movzx eax, byte [ebp - 0x5c]
mov byte [ebp - 0xc], al
shr ecx, 0x18
mov byte [ebp - 0xd], cl
mov ecx, dword [ebp - 0x5c]
mov eax, ecx
shr eax, 8
mov byte [ebp - 0xb], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0xa], al
movzx eax, byte [ebp - 0x58]
shr ecx, 0x18
mov byte [ebp - 8], al
mov byte [ebp - 9], cl
mov ecx, dword [ebp - 0x58]
mov eax, ecx
shr eax, 8
mov byte [ebp - 7], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 6], al
movzx eax, byte [ebp - 0x54]
shr ecx, 0x18
mov byte [ebp - 4], al
mov byte [ebp - 5], cl
mov ecx, dword [ebp - 0x54]
mov eax, ecx
shr eax, 8
mov byte [ebp - 3], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [ebp - 2], al
mov byte [ebp - 1], cl
test ebx, ebx
je 0x408524
xor ecx, ecx
mov al, byte [ebp + ecx - 0x10]
mov byte [ecx + ebx], al
inc ecx
cmp ecx, 0x10
jb 0x408517
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40abb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
jmp 0x40abca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40abd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40abc0
mov eax, 1
add ebx, ebx
jne 0x40abe3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40abd8
jne 0x40abf4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40abd8
xor ecx, ecx
sub eax, 3
jb 0x40ac08
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40ac7a
mov ebp, eax
add ebx, ebx
jne 0x40ac13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40ac20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40ac44
inc ecx
add ebx, ebx
jne 0x40ac30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40ac25
jne 0x40ac41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40ac25
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40ac64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40ac55
jmp 0x40abc6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40ac64
add edi, ecx
jmp 0x40abc6
pop esi
lea edi, [esi + 0x8000]
mov eax, dword [edi]
or eax, eax
je 0x40accc
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xad98]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xadd4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40ac81
mov ecx, edi
jns 0x40acb0
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 + 0xaddc]
or eax, eax
je 0x40acc6
mov dword [ebx], eax
add ebx, 4
jmp 0x40ac9e
call dword [esi + 0xadd8]
mov ebp, dword [esi + 0xade0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x40ad00
sub esp, 0xffffff80
jmp 0x401584

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1001b520
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 0x10
push ebx
push esi
mov dword [ebp - 4], eax
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x24]
push eax
movzx eax, cx
push eax
push edi
mov dword [ebp - 8], edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x1001b59c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x1001b59c
cmp dword [ebp - 8], 0
jne 0x1001b56f
mov eax, dword [ebp - 4]
mov bl, 1
mov dword [eax], esi
jmp 0x1001b59e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1001b59c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x1001b59c
push esi
push eax
mov eax, dword [ebp - 4]
push dword [eax]
push dword [ebp - 8]
call fcn.10033542
add esp, 0x10
mov bl, 1
jmp 0x1001b59e
xor bl, bl
cmp dword [ebp + 0x1c], 0x10
jb 0x1001b5af
push dword [ebp + 8]
call fcn.10027712
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001b980
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067b3a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100864b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.1004ff5e
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x1001ba26
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.10041753
push 0x10084704
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.10033a26
push edi
push esi
call fcn.1004ccfd
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100325a2
mov esp, ebp
pop ebp
ret 4
Function at 0x1001ba50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067b3a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100864b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x18], esi
call fcn.1004ff5e
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x1001baf6
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.10041753
push 0x10084704
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.10033a26
push edi
push 0x3f
push esi
call fcn.1004eb1e
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100325a2
mov esp, ebp
pop ebp
ret 8

Function at 0x1001cb10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x1001cb41
lea esp, [esp]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x1001cb30
pop edi
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x1001d340
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x1001d371
lea ecx, [ecx]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x1001d360
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x10023cc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100693e3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100864b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x10095e4c
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx], 0x10095e4c
mov byte [ebp - 4], 1
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x1007750b
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.10027250
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4e360b
Capabilities:
Terminate process

Disassembly:
call fcn.004e3618
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x485400
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5c05e8]
xor edx, edx
cmp eax, edx
jne 0x485426
xor eax, eax
mov byte [eax + 0x5c04e8], al
inc eax
cmp eax, 0x100
jl 0x48540e
mov dword [0x5c05e8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5c04e8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4854b7
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 0x48548a
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 0x485458
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x485530
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 0x485583
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 0x48556a
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 0x4898f0
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 0x489b11
cmp eax, 8
jg 0x489b11
cmp dword [esp + 0x8c], 2
jl 0x489b11
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 0x489b11
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x489b11
mov eax, dword [esp + 0x80]
test eax, eax
je 0x489977
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 0x489afa
mov ebp, dword [0x53564c]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x4899a9
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x489ae1
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x4899c9
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 [0x53563c]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x489a08
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x535640]
lea ecx, [esp + 0x28]
push ecx
call dword [0x535684]
test eax, eax
jne 0x489ac8
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.00488f00
cmp eax, 1
jne 0x489af2
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.004897b0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x4899bd
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x489afa
jmp 0x489994
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.00488b00
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
Function at 0x48c600
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x48c798
cmp ebp, ebx
jle 0x48c798
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x48c65e
dec eax
or eax, 0xfffffff8
inc eax
je 0x48c665
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x48c674
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x48c67b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00521274
add esp, 4
cmp eax, ebx
je 0x48c69c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.00521274
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x48c78e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x48c775
mov al, byte [edx]
cmp al, 0xc0
jbe 0x48c761
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x48c756
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x48c764
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x48c764
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x48c700
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x48c6f1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret