joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409863
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x456178]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x260]
mov esi, ecx
push 0x27f4
push eax
call fcn.004033f1
mov ecx, eax
call fcn.004133d6
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
push dword [esi + 4]
call dword [0x444248]
push 0x20a
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00434600
add esp, 0xc
push 0x3ec
push dword [esi + 4]
call dword [0x44423c]
mov ebx, dword [0x444218]
mov edi, eax
test edi, edi
je 0x409919
push edi
call ebx
test eax, eax
je 0x409919
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [0x444238]
test eax, eax
je 0x409919
xor eax, eax
lea ecx, [esi + 0x240]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x218]
push eax
call fcn.00401628
jmp 0x409936
push edi
call ebx
test eax, eax
je 0x409936
lea eax, [esi + 0x240]
cmp dword [eax + 0x14], 8
jb 0x40992e
mov eax, dword [eax]
push eax
push edi
call dword [0x444248]
lea edi, [esi + 0x240]
mov edx, edi
lea ecx, [ebp - 0x248]
call fcn.0040330a
push eax
mov ecx, edi
call fcn.00401e84
xor ebx, ebx
lea ecx, [ebp - 0x248]
push ebx
push 1
call fcn.00401751
mov edx, str.__r_n
mov ecx, edi
call fcn.0040c740
cmp byte [esi + 0x80], bl
je 0x409a98
cmp dword [esi + 0x78], ebx
je 0x409a98
lea ecx, [esi + 0x68]
mov edx, edi
call fcn.0040c510
test al, al
jne 0x409a98
lea ecx, [ebp - 0x280]
call fcn.0040538f
lea eax, [esi + 0x2c4]
push eax
lea ecx, [ebp - 0x248]
call fcn.00401e5c
lea ecx, [ebp - 0x248]
call fcn.0040c830
push 0x25
push 0x3a
pop edx
lea ecx, [ebp - 0x248]
call fcn.0040c680
add esp, 4
push 0x25
push 0x5c
pop edx
call fcn.0040c680
push 7
pop esi
xor eax, eax
mov dword [ebp - 0x21c], esi
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], ax
mov dword [esp], 0x449d80
call fcn.00401628
lea eax, [ebp - 0x230]
push eax
push ecx
lea ecx, [ebp - 0x280]
call fcn.00405443
push 0
push 1
lea ecx, [ebp - 0x230]
mov bl, al
call fcn.00401751
test bl, bl
je 0x409a7d
xor eax, eax
mov dword [ebp - 0x21c], esi
xor ebx, ebx
mov word [ebp - 0x230], ax
push 0x449d80
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], ebx
call fcn.00401628
push edi
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
push ecx
lea ecx, [ebp - 0x280]
call fcn.0040558a
push ebx
push 1
lea ecx, [ebp - 0x230]
call fcn.00401751
jmp 0x409a7f
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x248]
call fcn.00401751
lea ecx, [ebp - 0x280]
call fcn.00405433
push ebx
push 1
lea ecx, [ebp - 0x260]
call fcn.00401751
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004333fa
mov esp, ebp
pop ebp
ret
Function at 0x40d440
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x442628
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x456178]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov eax, dword [0x456178]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x1c], 0
push 0xffffffffffffffff
push eax
push ecx
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.004019ce
mov dword [esp + 0x30], 0
mov edx, 0x24
lea ecx, [esp + 0xc]
call fcn.0040cc20
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [0x444050]
cmp eax, 0xffffffff
setne bl
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x40d4ef
push dword [esp + 0xc]
call fcn.004342bb
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004333fa
add esp, 0x2c
ret

Function at 0x40d630
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x442628
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x456178]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov eax, dword [0x456178]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x1c], 0
push 0xffffffffffffffff
push eax
push ecx
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.004019ce
mov dword [esp + 0x30], 0
mov edx, 0x24
lea ecx, [esp + 0xc]
call fcn.0040cc20
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [0x444050]
cmp eax, 0xffffffff
je 0x40d6cb
test al, 0x10
je 0x40d6cb
mov bl, 1
jmp 0x40d6cd
xor bl, bl
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x40d6e8
push dword [esp + 0xc]
call fcn.004342bb
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004333fa
add esp, 0x2c
ret
Function at 0x40e5e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4427c8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x456178]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov eax, dword [edx]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0
mov eax, dword [edx + 4]
mov ecx, dword [edx + 8]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 0x10]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x18]
mov dword [esi + 0x18], eax
xor eax, eax
mov dword [esi + 0x1c], ecx
add eax, dword [edx + 0x20]
mov ecx, dword [edx + 0x1c]
adc ecx, 0
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], ecx
mov word [esp + 8], ax
lea ecx, [esp + 8]
lea eax, [edx + 0x2c]
mov dword [esp + 0x1c], 7
push eax
mov dword [esp + 0x1c], 0
call fcn.00401628
mov dword [esp + 0x28], 0
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.0040d320
mov dword [esp + 0x28], 0xffffffff
cmp dword [esp + 0x1c], 8
jb 0x40e6af
push dword [esp + 8]
call fcn.004342bb
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], 7
mov dword [esp + 0x18], 0
mov word [esp + 8], ax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 8

Function at 0x410f00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442d8b
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x456178]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
mov eax, dword [0x456178]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
push 0x34
call fcn.0043451f
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 0x30], 0
test esi, esi
je 0x410f6c
push 0x34
push 0
push esi
call fcn.00434600
add esp, 0xc
mov ecx, esi
call fcn.004109a0
mov esi, eax
jmp 0x410f6e
xor esi, esi
mov dword [esp + 0x30], 0xffffffff
lea eax, [edi + 0xc]
push ecx
push 3
push 3
push 0x80000000
push eax
lea ecx, [esi + 0x18]
call fcn.00412ca0
test al, al
jne 0x410fa0
test esi, esi
je 0x410f9c
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor eax, eax
jmp 0x410ff9
push 1
lea eax, [esp + 0x14]
xorps xmm0, xmm0
push eax
push 0
push dword [edi + 8]
movlpd qword [esp + 0x1c], xmm0
call dword [0x4440d4]
mov ecx, eax
mov dword [esp + 0xc], ecx
cmp ecx, 0xffffffff
jne 0x410fd4
call dword [0x444034]
test eax, eax
jne 0x410f90
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
xorps xmm0, xmm0
push edx
push 0
push dword [esp + 0x18]
movlpd qword [esp + 0x20], xmm0
mov eax, dword [esi + 8]
push ecx
lea ecx, [esi + 8]
call dword [eax + 0x14]
test eax, eax
jne 0x410f94
lea eax, [esi + 8]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004333fa
mov esp, ebp
pop ebp
ret
Function at 0x4112a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x442e69
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x456178]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
push 0x18
call fcn.0043451f
add esp, 4
mov dword [edi + 0x20], eax
push eax
call dword [0x4440a4]
mov dword [esp + 0x38], 0
lea esi, [edi + 0x24]
mov dword [esi], 0
xor eax, eax
mov byte [esi + 4], 0
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], 0
mov dword [esp + 0x14], esi
mov word [esi + 8], ax
mov byte [esp + 0x38], 2
lea ecx, [esp + 0x18]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 0x10], 0xffffffff
mov dword [edi + 0x14], 0xffffffff
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push 0x44979c
mov byte [edi + 8], al
mov dword [edi + 0x18], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x1c], eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], eax
mov word [esp + 0x1c], ax
call fcn.00401628
mov byte [esp + 0x38], 3
sub esp, 8
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.00413130
mov byte [esp + 0x38], 2
cmp dword [esp + 0x2c], 8
jb 0x411383
push dword [esp + 0x18]
call fcn.004342bb
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
mov dword [esp + 0x38], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
Function at 0x412e50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x24
xor eax, eax
push ebx
push ebp
push esi
push edi
lea esp, [esp]
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x45e160], ecx
inc eax
cmp eax, 0x100
jb 0x412e60
cmp eax, 0x800
jae 0x412f33
lea esp, [esp]
mov edx, dword [eax*4 + 0x45dd60]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x45e160]
mov dword [eax*4 + 0x45e160], edx
inc eax
cmp eax, 0x800
jb 0x412f10
lea ecx, [esp + 0x10]
mov dword [0x45ae30], 0x4422b0
call fcn.00413200
test eax, eax
je 0x412feb
mov edi, dword [esp + 0x20]
xor ecx, ecx
mov ebp, dword [esp + 0x18]
mov esi, edi
shr esi, 8
mov eax, 0x4571f8
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor edx, edx
mov ebx, dword [esp + 0x14]
cmp dword [eax - 8], ebx
mov ebx, dword [esp + 0x1c]
jne 0x412f89
cmp dword [eax - 4], ebp
jne 0x412f89
cmp dword [eax], ebx
je 0x412f98
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x412f73
or ecx, 0xffffffff
sub ecx, 0
je 0x412fd2
dec ecx
je 0x412fc1
dec ecx
jne 0x412feb
cmp esi, 6
jb 0x412feb
jne 0x412fe1
cmp edi, 0xf
jb 0x412feb
mov dword [0x45ae30], 0x4421d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
cmp esi, 5
jb 0x412feb
jne 0x412fe1
cmp edi, 6
jb 0x412feb
cmp edi, 0xa
jmp 0x412fdf
cmp esi, 6
jb 0x412feb
jne 0x412fe1
cmp edi, 0x100c
je 0x412feb
mov dword [0x45ae30], 0x4421d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x4307c6
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x456178]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x11c], ebx
mov ecx, ebx
movzx eax, byte [ecx + str.cw]
mov byte [eax + 0x45ae40], cl
inc ecx
cmp ecx, 0x100
jb 0x4307e6
movzx edi, byte [ebx + str.cw]
mov eax, edi
mov ecx, edi
and al, 0x80
movzx esi, al
neg esi
lea eax, [edi + edi]
sbb esi, esi
shl ecx, 8
and esi, 0x1b
xor esi, eax
and esi, 0xff
mov edx, esi
xor edx, edi
mov eax, edx
shl eax, 8
or eax, edi
shl eax, 8
or eax, edi
shl eax, 8
or eax, esi
mov dword [ebx*4 + 0x45bf40], eax
mov eax, ecx
or ecx, esi
or eax, edi
shl eax, 8
or eax, esi
shl ecx, 8
shl esi, 8
or ecx, edx
or esi, edx
shl eax, 8
or eax, edx
shl esi, 8
or esi, edi
shl ecx, 8
mov dword [ebx*4 + 0x45c340], eax
or ecx, edi
shl esi, 8
or esi, edi
mov dword [ebx*4 + 0x45c740], ecx
movzx edi, byte [ebx + 0x45ae40]
mov dword [ebx*4 + 0x45cb40], esi
mov eax, edi
and al, 0x80
mov ebx, 0xff
movzx esi, al
neg esi
lea eax, [edi + edi]
sbb esi, esi
and esi, 0x1b
xor esi, eax
and esi, ebx
mov eax, esi
and al, 0x80
movzx ecx, al
neg ecx
lea eax, [esi + esi]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
and ecx, ebx
mov eax, ecx
and al, 0x80
movzx edx, al
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x1b
xor edx, eax
and edx, ebx
mov dword [ebp - 0x120], edx
mov ebx, edx
mov eax, dword [ebp - 0x120]
xor edx, esi
xor eax, ecx
xor ebx, edi
mov ecx, eax
mov dword [ebp - 0x120], eax
xor edx, edi
xor ecx, edi
mov edi, eax
mov eax, edx
shl eax, 8
xor edi, esi
mov esi, dword [ebp - 0x11c]
or eax, ecx
shl eax, 8
or eax, ebx
shl eax, 8
or eax, edi
mov dword [esi*4 + 0x45af40], eax
mov eax, ecx
shl eax, 8
or eax, ebx
shl eax, 8
or eax, edi
shl eax, 8
or eax, edx
mov dword [esi*4 + 0x45b340], eax
mov eax, ebx
shl eax, 8
or eax, edi
shl edi, 8
or edi, edx
shl eax, 8
shl edi, 8
or eax, edx
or edi, ecx
shl eax, 8
shl edi, 8
or eax, ecx
or edi, ebx
mov dword [esi*4 + 0x45b740], eax
mov ebx, esi
mov dword [ebx*4 + 0x45bb40], edi
inc ebx
mov dword [ebp - 0x11c], ebx
cmp ebx, 0x100
jb 0x4307fc
lea eax, [ebp - 0x118]
mov dword [0x45e144], 0x431477
push eax
mov dword [0x45e140], 0x4314d1
mov dword [0x45e148], 0x43156d
mov dword [ebp - 0x118], 0x114
call dword [0x444048]
pop edi
pop esi
pop ebx
test eax, eax
je 0x4309e6
cmp dword [ebp - 0x114], 5
sbb eax, eax
inc eax
je 0x4309e6
lea ecx, [ebp - 0x140]
call fcn.00413200
test eax, eax
je 0x4309e6
mov eax, dword [ebp - 0x128]
shr eax, 0x19
and eax, 1
je 0x4309e6
mov dword [0x45e144], 0x432218
mov dword [0x45e140], 0x432270
mov dword [0x45e148], 0x4323a1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004333fa
mov esp, ebp
pop ebp
ret
Function at 0x431e6a
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, ecx
push ecx
lea esi, [edi + 4]
mov ecx, esi
call fcn.00408990
test al, al
je 0x431e82
pop edi
xor al, al
pop esi
ret
push 0xc
call fcn.0043451f
pop ecx
test eax, eax
je 0x431e9d
push edi
push 0x431e1e
mov ecx, eax
call fcn.00411670
jmp 0x431e9f
xor eax, eax
push eax
mov ecx, esi
call fcn.0040bf3f
mov ecx, esi
call fcn.0040892a
pop edi
mov ecx, eax
pop esi
jmp fcn.004118b0
Function at 0x418f80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4b4068]
xor edx, edx
cmp eax, edx
jne 0x418fa6
xor eax, eax
mov byte [eax + 0x4b3f68], al
inc eax
cmp eax, 0x100
jl 0x418f8e
mov dword [0x4b4068], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4b3f68
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x419037
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 0x41900a
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 0x418fd8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4190b0
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 0x419103
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 0x4190ea
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 0x41d4f0
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 0x41d711
cmp eax, 8
jg 0x41d711
cmp dword [esp + 0x8c], 2
jl 0x41d711
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 0x41d711
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x41d711
mov eax, dword [esp + 0x80]
test eax, eax
je 0x41d577
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 0x41d6fa
mov ebp, dword [0x481548]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x41d5a9
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x41d6e1
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x41d5c9
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 [0x481534]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x41d608
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x48153c]
lea ecx, [esp + 0x28]
push ecx
call dword [0x48157c]
test eax, eax
jne 0x41d6c8
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.0041cb00
cmp eax, 1
jne 0x41d6f2
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.0041d3b0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x41d5bd
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x41d6fa
jmp 0x41d594
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.0041c6d0
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 0x420160
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 0x4202f8
cmp ebp, ebx
jle 0x4202f8
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 0x4201be
dec eax
or eax, 0xfffffff8
inc eax
je 0x4201c5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x4201d4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x4201db
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.004713ab
add esp, 4
cmp eax, ebx
je 0x4201fc
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.004713ab
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 0x4202ee
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 0x4202d5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x4202c1
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x4202b6
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 0x4202c4
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x4202c4
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x420260
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 0x420251
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