joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441b10
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x44]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x441b30
mov ebx, eax
sar ebx, 1
cmp ebx, 0xfffffffb
jge 0x441b4b
mov eax, 0xffffffff
jmp 0x441b4e
add eax, 0xa
push eax
call fcn.00409a50
add esp, 4
mov dword [eax], 0x3f005c
mov dword [eax + 4], 0x5c003f
mov word [eax + 8], 0
mov ecx, eax
add ecx, 8
movzx edx, word [esi]
test dx, dx
je 0x441b91
add esi, 2
nop
nop
nop
nop
nop
nop
mov word [ecx], dx
add ecx, 2
movzx edx, word [esi]
add esi, 2
test dx, dx
jne 0x441b80
mov word [ecx], 0
lea ecx, [ebx*2 + 8]
mov word [esp + 0xc], cx
lea ecx, [ebx*2 + 0xa]
mov word [esp + 0xe], cx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 0x18
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0x40
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 4], 0xd3d2d5d4
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 6
ja 0x441c40
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 4]
add ecx, 0xfb70ca8a
xor ecx, edx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x14]
add cl, 0xa1
mov edx, dword [esp]
mov byte [esp + edx + 4], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 7
jb 0x441c10
mov esi, dword [esp + 4]
mov ecx, dword [0x44d0a8]
test ecx, ecx
je 0x441ca3
xor edx, edx
mov ebx, dword [0x44d0ac]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebx + edx*8], 0x88a3caae
je 0x441c70
inc edx
cmp ecx, edx
jne 0x441c60
jmp 0x441ca3
mov ecx, dword [ebx + edx*8 + 4]
cmp ecx, esi
je 0x441ca3
lea edx, [esp + 4]
lea esi, [esp + 0x18]
push edi
push ebp
push edx
push esi
push dword [esp + 0x5c]
push dword [esp + 0x5c]
push 6
push dword [0x44d0b0]
push ecx
mov edi, eax
call fcn.0043f8b0
add esp, 0x24
mov esi, eax
mov eax, edi
push eax
call fcn.00409a60
add esp, 4
mov eax, esi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x441cc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov ebx, dword [ebp + 8]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + eax + 2], 0
lea eax, [eax + 2]
jne 0x441ce0
mov esi, eax
sar esi, 1
cmp esi, 0xfffffffb
jge 0x441cfb
mov eax, 0xffffffff
jmp 0x441cfe
add eax, 0xa
push eax
call fcn.00409a50
add esp, 4
mov dword [eax], 0x3f005c
mov dword [eax + 4], 0x5c003f
lea ecx, [esi + 4]
mov word [eax + 8], 0
mov edx, eax
add edx, 8
movzx edi, word [ebx]
test di, di
je 0x441d41
add ebx, 2
nop
nop
nop
mov word [edx], di
add edx, 2
movzx edi, word [ebx]
add ebx, 2
test di, di
jne 0x441d30
mov word [edx], 0
mov edx, ecx
and edx, 0xfffd
and esi, 2
mov edi, esi
xor edi, 2
imul edi, edx
or ecx, 2
imul ecx, esi
lea edx, [ecx + edi]
mov word [esp + 4], dx
add ecx, edi
add ecx, 2
mov word [esp + 6], cx
mov dword [esp + 8], eax
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0x40
lea ecx, [esp + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0xd3d2d5d4
mov word [esp + 0x2c], 0
mov byte [esp + 0x2e], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 6
ja 0x441e00
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x28]
add ecx, 0xfb70ca8a
xor ecx, edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
add cl, 0xa1
mov edx, dword [esp]
mov byte [esp + edx + 0x28], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 7
jb 0x441dd0
mov esi, dword [esp + 0x28]
mov ecx, dword [0x44d0a8]
test ecx, ecx
je 0x441e59
xor edx, edx
mov edi, dword [0x44d0ac]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x8896be63
je 0x441e30
inc edx
cmp ecx, edx
jne 0x441e20
jmp 0x441e59
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, esi
je 0x441e59
lea edx, [esp + 0x28]
lea esi, [esp + 0x10]
push edx
push esi
push 2
push dword [0x44d0b0]
push ecx
mov edi, eax
call fcn.0043f8b0
add esp, 0x14
mov esi, eax
mov eax, edi
push eax
call fcn.00409a60
add esp, 4
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x441e6f
mov eax, dword [esp + 0x48]
mov dword [ecx], eax
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x441e80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov dword [esp + 8], 0xd3d2d5d4
mov word [esp + 0xc], 0
mov byte [esp + 0xe], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 6
ja 0x441ef3
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 8]
add eax, 0xfb70ca8a
xor eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
add al, 0xa1
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 7
jb 0x441ec0
mov esi, dword [ebp + 0xc]
mov eax, dword [esp + 8]
mov edx, dword [0x44d0a8]
test edx, edx
je 0x441f48
mov ecx, dword [ebp + 8]
xor edi, edi
mov ebx, dword [0x44d0ac]
nop
cmp dword [ebx + edi*8], 0x77a9e0c4
je 0x441f20
inc edi
cmp edx, edi
jne 0x441f10
jmp 0x441f48
mov edx, dword [ebx + edi*8 + 4]
cmp edx, eax
je 0x441f48
lea eax, [esp + 8]
lea edi, [esp + 0x24]
push 5
push 0x18
push eax
push edi
push ecx
push 5
push dword [0x44d0b0]
push edx
call fcn.0043f8b0
add esp, 0x20
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x441f55
mov edx, dword [esp + 0x10]
mov dword [esi], edx
test ecx, ecx
je 0x441f61
cmp byte [esp + 0x1d], 0
setne byte [ecx]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x441f70
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [esp + 8], 0xd3d2d5d4
mov word [esp + 0xc], 0
mov byte [esp + 0xe], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x441fce
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
add eax, 0xfb70ca8a
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0xa1
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x441fa0
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 8]
mov ecx, dword [0x44d0a8]
test ecx, ecx
je 0x44202c
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
xor ebx, ebx
mov ebp, dword [0x44d0ac]
cmp dword [ebp + ebx*8], 0x72e9dc72
je 0x442001
inc ebx
cmp ecx, ebx
jne 0x441ff0
jmp 0x44202c
mov ecx, dword [ebp + ebx*8 + 4]
cmp ecx, eax
je 0x44202c
lea eax, [esp + 0x10]
push 0
push 0
push edi
push edx
push eax
push 0
push 0
push 0
push esi
push 9
push dword [0x44d0b0]
push ecx
call fcn.0043f8b0
add esp, 0x30
mov edi, dword [esp + 0x38]
cmp eax, 0x103
jne 0x4420e6
mov dword [esp + 8], 0xd3d2d5d4
mov word [esp + 0xc], 0
mov byte [esp + 0xe], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 6
ja 0x442091
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 8]
add eax, 0xfb70ca8a
xor eax, ecx
mov dword [esp], eax
mov eax, dword [esp]
add al, 0xa1
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 7
jb 0x442060
mov eax, dword [esp + 8]
mov ecx, dword [0x44d0a8]
test ecx, ecx
je 0x4420de
xor edx, edx
mov ebx, dword [0x44d0ac]
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebx + edx*8], 0x7e28bda7
je 0x4420c0
inc edx
cmp ecx, edx
jne 0x4420b0
jmp 0x4420de
mov ecx, dword [ebx + edx*8 + 4]
cmp ecx, eax
je 0x4420de
push 0
push 0
push esi
push 3
push dword [0x44d0b0]
push ecx
call fcn.0043f8b0
add esp, 0x18
test eax, eax
js 0x4420e6
mov eax, dword [esp + 0x10]
test edi, edi
je 0x4420f9
xor ecx, ecx
cmp eax, 0xc0000011
je 0x4420f7
mov ecx, dword [esp + 0x14]
mov dword [edi], ecx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x442110
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [esp + 8], 0xd3d2d5d4
mov word [esp + 0xc], 0
mov byte [esp + 0xe], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x44216e
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
add eax, 0xfb70ca8a
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0xa1
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x442140
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 8]
mov ecx, dword [0x44d0a8]
test ecx, ecx
je 0x4421cc
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
xor ebx, ebx
mov ebp, dword [0x44d0ac]
cmp dword [ebp + ebx*8], 0xe6919031
je 0x4421a1
inc ebx
cmp ecx, ebx
jne 0x442190
jmp 0x4421cc
mov ecx, dword [ebp + ebx*8 + 4]
cmp ecx, eax
je 0x4421cc
lea eax, [esp + 0x10]
push 0
push 0
push edi
push edx
push eax
push 0
push 0
push 0
push esi
push 9
push dword [0x44d0b0]
push ecx
call fcn.0043f8b0
add esp, 0x30
mov edi, dword [esp + 0x38]
cmp eax, 0x103
jne 0x442286
mov dword [esp + 8], 0xd3d2d5d4
mov word [esp + 0xc], 0
mov byte [esp + 0xe], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 6
ja 0x442231
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 8]
add eax, 0xfb70ca8a
xor eax, ecx
mov dword [esp], eax
mov eax, dword [esp]
add al, 0xa1
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 7
jb 0x442200
mov eax, dword [esp + 8]
mov ecx, dword [0x44d0a8]
test ecx, ecx
je 0x44227e
xor edx, edx
mov ebx, dword [0x44d0ac]
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebx + edx*8], 0x7e28bda7
je 0x442260
inc edx
cmp ecx, edx
jne 0x442250
jmp 0x44227e
mov ecx, dword [ebx + edx*8 + 4]
cmp ecx, eax
je 0x44227e
push 0
push 0
push esi
push 3
push dword [0x44d0b0]
push ecx
call fcn.0043f8b0
add esp, 0x18
test eax, eax
js 0x442286
mov eax, dword [esp + 0x10]
test edi, edi
je 0x442290
mov ecx, dword [esp + 0x14]
mov dword [edi], ecx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4422a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
xor ebx, ebx
nop
nop
nop
cmp word [edi + ebx], 0
lea ebx, [ebx + 2]
jne 0x4422c0
add ebx, 0xfffffffe
and ebx, 0xfffe
mov word [esp + 0xc], bx
add ebx, 2
mov word [esp + 0xe], bx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], 0x18
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], 0x40
lea eax, [esp + 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 4], 0xd3d2d5d4
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x44236e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov edi, dword [esp]
movzx edi, byte [esp + edi + 4]
add eax, 0xfb70ca8a
xor eax, edi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
add al, 0xa1
mov edi, dword [esp]
mov byte [esp + edi + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x442340
mov eax, dword [esp + 4]
mov edi, dword [0x44d0a8]
test edi, edi
je 0x4423c2
xor ebx, ebx
mov ebp, dword [0x44d0ac]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebp + ebx*8], 0x81105f7a
je 0x4423a1
inc ebx
cmp edi, ebx
jne 0x442390
jmp 0x4423c2
mov edi, dword [ebp + ebx*8 + 4]
cmp edi, eax
je 0x4423c2
lea eax, [esp + 0x18]
push esi
push eax
push edx
push ecx
push 4
push dword [0x44d0b0]
push edi
call fcn.0043f8b0
add esp, 0x1c
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x407d30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
push 0x40
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x407d53
mov eax, 1
jmp 0x407e5e
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x5a4d
jne 0x407d69
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x3c], 0
jne 0x407d73
mov eax, 2
jmp 0x407e5e
mov edx, dword [ebp + 0x10]
push edx
push 0xf8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x407d9e
mov eax, 1
jmp 0x407e5e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0x4550
jne 0x407dc4
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x58]
cmp edx, 0x10b
jne 0x407dc4
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x46]
test ecx, ecx
jne 0x407dce
mov eax, 2
jmp 0x407e5e
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x46]
imul eax, eax, 0x28
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x140], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x140]
push eax
call fcn.0041a210
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x138], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x138], 0
jne 0x407e0f
mov eax, 3
jmp 0x407e5e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x54]
lea ecx, [ecx + eax + 0x18]
mov edx, dword [ebp + 8]
mov dword [edx + 0x13c], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x140]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x13c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
push eax
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x407e5c
mov eax, 1
jmp 0x407e5e
xor eax, eax
pop ebp
ret

Function at 0x408800
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x408816
xor eax, eax
jmp 0x408856
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
jne 0x40883b
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x18]
cmp eax, 0x10b
je 0x40883f
xor eax, eax
jmp 0x408856
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
push ecx
call fcn.00408860
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x41af50
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x41af80
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x41af93
xor eax, eax
jmp 0x41b051
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x41afae
xor eax, eax
jmp 0x41b051
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
je 0x41afcc
xor eax, eax
jmp 0x41b051
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
jmp 0x41b00e
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x18]
jae 0x41b04f
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.0041a230
add esp, 8
test eax, eax
jne 0x41b04d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x41b051
jmp 0x41b005
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402770
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x4051d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405209
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040324c
jmp 0x405212
mov eax, ebx
mov edx, esi
call fcn.00403200
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40521c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x40523d
mov al, byte [esp]
jmp 0x40523f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4069b0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4069f8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040694c
mov eax, dword [ebp - 4]
call fcn.004033e8
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4069ff
lea eax, [ebp - 4]
call fcn.0040316c
ret

Function at 0x406c00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406c8e
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c4b
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.0040324c
jmp 0x406c78
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c5f
lea eax, [ebp - 4]
call fcn.0040316c
jmp 0x406c6e
lea edx, [ebp - 4]
call fcn.00406ac4
test ebx, ebx
je 0x406c6e
dec ebx
jmp 0x406c50
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00403200
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c95
lea eax, [ebp - 4]
call fcn.0040316c
ret

Function at 0x406c9c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404da4
add esp, 0x104
pop ebx
ret
Function at 0x406de4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x406f1c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x406f06
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x406e41
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x406f06
cmp dword [ebp - 0x10], 0
jne 0x406e56
mov eax, dword [ebp - 8]
call fcn.0040316c
mov bl, 1
jmp 0x406f06
cmp dword [ebp - 0x10], 0x70000000
jb 0x406e64
call fcn.00405848
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
lea eax, [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.0040324c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.004033f4
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je 0x406e0a
test eax, eax
jne 0x406f06
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x406eb4
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x406f06
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
jmp 0x406ebf
dec esi
test esi, esi
je 0x406ecd
mov eax, dword [ebp - 0x14]
cmp byte [eax + esi - 1], 0
je 0x406ebe
cmp dword [ebp - 0xc], 7
jne 0x406ed8
test esi, esi
je 0x406ed8
inc esi
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.004034c4
cmp dword [ebp - 0xc], 7
jne 0x406ef9
test esi, esi
je 0x406ef9
lea eax, [ebp - 0x14]
call fcn.004033f4
mov byte [eax + esi - 1], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.004031bc
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406f23
lea eax, [ebp - 0x14]
call fcn.0040316c
ret

Function at 0x407864
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40c55c
mov eax, esi
mov edx, 8
test al, 1
je 0x407880
shr eax, 1
xor eax, 0xedb88320
jmp 0x407882
shr eax, 1
dec edx
jne 0x407873
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40786c
pop esi
ret

Function at 0x407898
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40c558], 0
jne 0x4078bb
call fcn.00407864
push 1
push 0x40c558
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x4078e6
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40c55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4078c1
mov eax, ebx
pop edi
pop esi
pop ebx
ret