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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
push 0xef
push ebp
push edi
call fcn.10126d70
mov ebx, eax
mov ecx, 0x8000
movzx eax, word [ebp]
add esp, 0xc
cmp ax, cx
jae 0x10125af2
movzx ecx, byte [ebp + 3]
mov edx, eax
mov eax, dword [edi + 0x48]
and bl, 7
mov esi, dword [edi + 0x40]
shl bl, 3
mov eax, dword [eax + edx*8]
mov eax, dword [eax + ecx*4 + 0x14]
add eax, 0x10
mov dword [esi - 9], 0x8b0000fe
mov dword [esi - 4], eax
add bl, 5
mov byte [esi - 5], bl
lea eax, [esi - 6]
mov dword [edi + 0x40], eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [edi + 0x58]
and eax, 0xef
jne 0x10125b90
mov eax, dword [edi + 4]
or ecx, 0xffffffff
cmp dword [edi], 0xffffffff
mov esi, dword [edi + 0x18]
cmovb ecx, dword [edi]
cmp eax, ecx
cmovae eax, ecx
mov ecx, dword [edi + 8]
cmp ecx, eax
cmovae ecx, eax
mov eax, dword [edi + 0xc]
cmp eax, ecx
cmovae eax, ecx
mov ecx, dword [edi + 0x14]
cmp ecx, eax
cmovae ecx, eax
cmp esi, ecx
cmovae esi, ecx
mov ecx, dword [edi + 0x1c]
cmp ecx, esi
movzx edx, cx
movzx eax, si
cmovae edx, eax
movzx ecx, dx
mov dword [esp + 0x18], ecx
cmp ecx, 0x8000
jb 0x10125b82
mov edx, dword [edi + 0x60]
mov esi, edx
and esi, 0xef
je 0x10125b82
mov eax, dword [edi + 0x48]
mov cl, byte [eax + ecx*8 + 6]
shr edx, cl
test dl, 1
jne 0x10125b7e
bsf eax, esi
movzx ecx, word [edi + eax*4]
push ecx
push edi
call fcn.10127680
add esp, 8
mov esi, eax
jmp 0x10125b93
mov ecx, dword [esp + 0x18]
push ecx
push edi
call fcn.10127680
add esp, 8
mov esi, eax
jmp 0x10125b93
bsr esi, eax
mov eax, dword [edi + 0x5c]
bts eax, esi
mov dword [edi + 0x5c], eax
movzx ecx, word [ebp]
mov eax, dword [edi + 0x48]
movzx eax, byte [eax + ecx*8 + 6]
mov dword [esp + 0x18], eax
test al, al
jns 0x10125bc3
push 0xef
push ecx
push edi
call fcn.10126cb0
add esp, 0xc
mov dword [esp + 0x18], eax
mov ecx, dword [edi + 0x60]
btr ecx, eax
mov dword [edi + 0x60], ecx
cmp byte [ebp + 5], 0x3d
jne 0x10125c04
push 8
push esi
push ebx
push 0x8d0000fe
push edi
call fcn.10126280
push 5
push edi
call fcn.10120820
add esp, 0x1c
mov ebx, 7
dec dword [edi + 0x40]
mov eax, dword [edi + 0x40]
lea ecx, [ebx - 1]
mov byte [eax], 1
mov eax, 0x800000fe
jmp 0x10125c0e
mov eax, 0x8b0000fe
mov ecx, 0x10
push ecx
push esi
push ebx
push eax
push edi
call fcn.10126280
movzx eax, byte [ebp + 3]
lea eax, [eax*4 + 0x14]
push eax
push dword [esp + 0x30]
push esi
push 0x8b0000fe
push edi
call fcn.10126280
add esp, 0x28
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1012e640
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov eax, dword [ebx + 0x10]
mov esi, dword [esp + 0x24]
push edi
cmp dword [eax + 4], 0xfffffff5
jne 0x1012e6b7
mov eax, dword [eax]
mov edx, dword [ebp]
movzx edi, word [eax + 6]
mov eax, edi
add eax, eax
mov ecx, dword [edx + eax*8]
mov eax, ecx
and eax, 0xf0000000
cmp eax, 0x80000000
jne 0x1012e696
nop word [eax + eax]
movzx eax, cx
add eax, eax
mov ecx, dword [edx + eax*8]
mov eax, ecx
and eax, 0xf0000000
cmp eax, 0x80000000
je 0x1012e680
mov eax, ecx
movzx ecx, cx
and eax, 0xf0000000
cmp eax, 0x20000000
push esi
cmovne ecx, edi
push ecx
push ebp
call fcn.10112aa0
add esp, 0xc
test eax, eax
jne 0x1012e71d
mov eax, dword [ebx + 0x10]
lea ecx, [eax + 8]
cmp ecx, dword [ebx + 0x14]
jae 0x1012e72f
cmp dword [eax + 0xc], 0xfffffff5
jne 0x1012e72f
mov eax, dword [ecx]
mov edx, dword [ebp]
movzx edi, word [eax + 6]
mov eax, edi
add eax, eax
mov ecx, dword [edx + eax*8]
mov eax, ecx
and eax, 0xf0000000
cmp eax, 0x80000000
jne 0x1012e6fc
movzx eax, cx
add eax, eax
mov ecx, dword [edx + eax*8]
mov eax, ecx
and eax, 0xf0000000
cmp eax, 0x80000000
je 0x1012e6e6
mov eax, ecx
movzx ecx, cx
and eax, 0xf0000000
cmp eax, 0x20000000
push esi
cmovne ecx, edi
push ecx
push ebp
call fcn.10112aa0
add esp, 0xc
test eax, eax
je 0x1012e72f
push eax
push ebx
call fcn.100f9d20
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
or edx, 0xffffffff
or ebp, edx
cmp esi, 4
jne 0x1012e764
mov ecx, dword [esp + 0x24]
xor edx, edx
pop edi
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
mov eax, dword [ebx + 0x14]
setne dl
add edx, 0xfffffffd
mov dword [eax - 4], edx
mov eax, dword [ebx + 8]
mov dword [eax + 0x9c], edx
lea eax, [esi - 3]
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x24]
xor edi, edi
nop word [eax + eax]
mov ecx, dword [eax + edi*4 + 8]
mov dword [esp + 0x1c], edx
test ecx, ecx
je 0x1012e7b5
mov eax, dword [ebx + 0x10]
cmp dword [eax + edi*8 + 4], 0xfffffff5
jne 0x1012e7b5
mov eax, dword [esp + 0x20]
mov esi, dword [ecx]
push 0
sub ecx, dword [eax]
sar ecx, 4
push ecx
push ebx
call fcn.10112bf0
and esi, 0xf0000000
add esp, 0xc
add eax, 0x10
mov edx, edi
cmp esi, 0x50000000
cmovne edx, dword [esp + 0x1c]
jmp 0x1012e7db
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + edi*8 + 4]
cmp ecx, 0xfffffffb
mov eax, edi
cmovne eax, ebp
mov ebp, eax
cmp ecx, 0xfffffff2
ja 0x1012e7d2
mov ecx, 0xd
jmp 0x1012e7d4
not ecx
mov eax, dword [ecx*4 + 0x101813e0]
mov dword [esp + edi*4 + 0x10], eax
inc edi
mov eax, dword [esp + 0x24]
cmp edi, 2
jl 0x1012e770
mov eax, ebp
xor eax, edx
cmp eax, 1
je 0x1012e82d
mov ecx, dword [esp + 0x28]
cmp ecx, 5
jne 0x1012e802
mov eax, 0xd5a
jmp 0x1012e81e
cmp ecx, 8
jne 0x1012e80e
mov eax, 0xd78
jmp 0x1012e81e
cmp ecx, 0xa
mov eax, 0xd9d
mov edx, 0xdcc
cmovl eax, edx
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
push ebx
call fcn.100f30e0
push dword [esp + edx*4 + 0x10]
push dword [esp + ebp*4 + 0x14]
push 0xd3e
push ebx
call fcn.100f30e0
int3
Function at 0x10132920
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, ecx
push ebp
movzx ebp, word [ebx + 0x74]
lea edx, [ebx + 0x74]
push esi
mov al, byte [ebx + 0x88]
and al, 0x1f
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x34], ebp
push edi
cmp al, 0xe
jne 0x10132978
movzx edx, word [ebx + 0x182]
cmp edx, ebp
jbe 0x10132974
movzx ecx, word [ebx + 0x19a]
cmp ecx, ebp
jbe 0x10132974
nop
cmp ecx, edx
jb 0x10132af4
mov eax, dword [ebx + 0x10]
movzx ecx, word [eax + ecx*8 + 6]
cmp ecx, ebp
ja 0x10132960
mov edx, dword [esp + 0x18]
movzx eax, word [ebx + 0x19c]
cmp eax, ebp
jbe 0x10132afe
mov esi, dword [ebx + 0x10]
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], 0x8000
lea eax, [esi + eax*8]
mov dword [esp + 0x34], eax
movzx eax, word [eax]
movzx ecx, word [esi + eax*8 + 2]
lea ebx, [esi + eax*8]
cmp edx, ebx
je 0x10132af4
movzx edi, word [edx + 2]
cmp byte [esi + edi*8 + 5], 0x1d
lea edx, [esi + edi*8]
jne 0x101329c4
movzx edi, word [edx]
lea edx, [esi + edi*8]
cmp byte [esi + ecx*8 + 5], 0x1d
lea ebp, [esi + ecx*8]
jne 0x101329d5
movzx ecx, word [ebp]
lea ebp, [esi + ecx*8]
mov eax, dword [esp + 0x14]
mov al, byte [eax + 0x79]
mov byte [esp + 0x13], al
cmp al, 0x39
je 0x101329f2
cmp al, 0x38
je 0x101329f2
mov eax, dword [esp + 0x14]
movzx eax, word [eax + 0x74]
jmp 0x101329fe
mov eax, dword [esp + 0x14]
movzx eax, word [eax + 0x74]
movzx eax, word [esi + eax*8]
movzx eax, ax
mov dword [esp + 0x2c], eax
mov al, byte [ebx + 5]
cmp al, 0x39
je 0x10132a15
cmp al, 0x38
je 0x10132a15
movzx eax, word [ebx]
jmp 0x10132a1c
movzx eax, word [ebx]
movzx eax, word [esi + eax*8]
movzx ebx, ax
cmp edi, ecx
je 0x10132ac3
cmp edi, 0x8000
jae 0x10132a3b
cmp ecx, 0x8000
jb 0x10132add
cmp byte [esp + 0x13], 0x38
jne 0x10132ab9
xor eax, eax
mov dword [esp + 0x1c], edi
cmp byte [edx + 5], 0x28
mov dword [esp + 0x20], eax
jne 0x10132a83
movzx esi, word [edx + 2]
cmp si, word [esp + 0x24]
mov esi, dword [esp + 0x28]
jae 0x10132a7f
movzx eax, word [edx]
mov dword [esp + 0x1c], eax
movzx eax, word [edx + 2]
mov edx, dword [esi + eax*8]
cmp dword [esp + 0x1c], ecx
jne 0x10132a79
test edx, edx
jne 0x10132add
mov eax, dword [esp + 0x20]
jmp 0x10132a85
mov edx, eax
jmp 0x10132a85
xor edx, edx
cmp byte [ebp + 5], 0x28
jne 0x10132aad
movzx esi, word [ebp + 2]
cmp si, word [esp + 0x24]
mov esi, dword [esp + 0x28]
jae 0x10132aad
movzx eax, word [ebp + 2]
movzx ecx, word [ebp]
mov eax, dword [esi + eax*8]
cmp edi, ecx
jne 0x10132aad
test eax, eax
jne 0x10132add
cmp dword [esp + 0x1c], ecx
jne 0x10132ac3
cmp edx, eax
je 0x10132ac3
jmp 0x10132add
mov al, byte [ebp + 4]
xor al, byte [edx + 4]
test al, 0x1f
jne 0x10132add
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x10132af4
push ebx
push eax
push dword [esp + 0x1c]
call fcn.10133240
add esp, 0xc
test eax, eax
jne 0x10132af4
mov eax, dword [esp + 0x34]
movzx eax, word [eax + 6]
cmp eax, dword [esp + 0x38]
jbe 0x10132afe
mov edx, dword [esp + 0x18]
jmp 0x10132996
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret
Function at 0x101336d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
movzx eax, word [esp + 0xc]
mov ecx, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 8], eax
push esi
push edi
movzx eax, word [ebp + eax*2 + 0x11a]
cmp eax, ecx
jbe 0x10133744
mov edi, dword [ebp + 0x10]
mov dl, byte [edi + eax*8 + 4]
lea ebx, [edi + eax*8]
movzx eax, word [ebx]
and dl, 0x1f
cmp eax, ecx
je 0x10133771
test dl, dl
jne 0x1013373c
cmp word [esp + 0x1c], 0x40
movzx edx, word [edi + eax*8 + 2]
movzx esi, word [edi + ecx*8 + 2]
je 0x10133728
mov al, byte [edi + esi*8 + 4]
xor al, byte [edi + edx*8 + 4]
test al, 0x1f
jne 0x1013373c
cmp edx, esi
je 0x10133769
cmp edx, 0x8000
jae 0x10133769
cmp esi, 0x8000
jae 0x10133769
movzx eax, word [ebx + 6]
cmp eax, ecx
ja 0x101336f5
mov eax, dword [esp + 0x10]
movzx eax, word [ebp + eax*2 + 0x10c]
cmp eax, ecx
jbe 0x10133769
mov esi, dword [ebp + 0x10]
lea edx, [esi + eax*8]
movzx eax, word [edx]
cmp eax, ecx
je 0x1013377e
movzx eax, word [edx + 6]
cmp eax, ecx
ja 0x10133757
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop edi
xor eax, eax
test dl, dl
pop esi
pop ebp
setne al
pop ebx
pop ecx
ret
test byte [edx + 4], 0x1f
mov eax, 0
pop edi
pop esi
pop ebp
setne al
pop ebx
pop ecx
ret
Function at 0x101633eb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10163092

Function at 0x101633f6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1016321c
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4b3008], 0x8088405
inc edx
mov dword [ebx + 0x4b3008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cd18
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cd49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd31
add dl, dl
jne 0x41cd54
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cda5
xor eax, eax
add dl, dl
jne 0x41cd61
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce42
add dl, dl
jne 0x41cd70
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd7b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd86
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd91
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cd9b
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cd40
mov eax, 1
add dl, dl
jne 0x41cdb3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdbe
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdaa
sub eax, ebx
mov ebx, 1
jne 0x41cdf1
mov ecx, 1
add dl, dl
jne 0x41cdd7
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cde2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdce
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd40
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41ce08
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce13
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdff
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd40
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ce63
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cd40
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e558
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49ba17
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e609
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e5f2
test esi, esi
jbe 0x41e609
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088e4
test eax, eax
jne 0x41e5e4
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e609
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e5c1
jmp 0x41e609
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e609
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ba1e
ret
Function at 0x41ee60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x49c40f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41ee9b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41eeb4
lea eax, [ebp - 0x10]
mov edx, dword [0x4b5270]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41eec7
lea eax, [ebp - 0x10]
mov edx, dword [0x4b5270]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41eed3
adc edx, 0
mov edx, dword [edx*4 + 0x4b40e8]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41efe1
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d74
test eax, eax
je 0x41efd4
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41efd4
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dd4
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d74
test eax, eax
je 0x41efd4
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41efd4
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41efd4
cmp dx, 0x150
ja 0x41efd4
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d74
test eax, eax
je 0x41efd4
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41efd4
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41eff9
inc ebx
cmp ebx, 0x19
jne 0x41ee8d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c416
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x401bd7
pop dword [ebp - 0x28]
mov eax, 0xd351e858
sub eax, 0xd311cc81
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x2f560e22
add dword [ebp - 0x38], 0x1efc3729
mov dword [ebp - 0x34], 0x99a6cc0c
sub dword [ebp - 0x34], 0x67737fc7
mov dword [ebp - 0x30], 0x8347c330
sub dword [ebp - 0x30], 0x36fb7f02
mov dword [ebp - 0x2c], 0x12eba17b
sub dword [ebp - 0x2c], 0x12eba17b
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xdaccb004
add dword [ebp - 0x38], 0x99a5b952
mov dword [ebp - 0x34], 0xb56cd996
add dword [ebp - 0x34], 0x8bff87df
mov dword [ebp - 0x30], 0x65c0a378
add dword [ebp - 0x30], 0xfdaec8f4
mov dword [ebp - 0x2c], 0x5fd9e9f6
sub dword [ebp - 0x2c], 0x5fd9e9f6
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x38a93
push 0
call eax
mov ecx, 0x47b90126
sub ecx, 0x47b8b0ce
xor esi, esi
add esi, eax
mov edi, 0xac0f1bc4
sub edi, 0xabce1bc4
add edi, dword [ebp - 0x28]
mov ebx, 0x4e636e4a
add dword [ebp - 4], edx
mov edx, dword [edi]
mov dword [ebp - 4], 0x610524ff
xor edx, ebx
xor dword [ebp - 0x14], 0xc48465ae
mov dword [esi], edx
xor dword [ebp - 8], 0xb10dffcc
add esi, 4
add edi, 0x4d5d0166
add edi, 0xb2a2fe9e
loop 0x401ceb
add eax, 0xbef2284b
add eax, 0x410f0be8
mov ebx, eax
add eax, 0xbe7a5d49
sub eax, 0xbe7a5d44
mov ecx, 0x5362130
add ecx, 0xfb09ded0
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x435130
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [0x4b5b24]
mov eax, dword [ebp + 0x2114]
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov dword [esp + 0x18], ebx
jle 0x4351da
mov ecx, dword [esp + 0x24]
add ecx, 0x6c
mov dword [esp + 0x10], ecx
xor edi, edi
cmp eax, edi
mov dword [esp + 0x14], edi
jle 0x4351b7
mov ecx, dword [esp + 0x10]
lea ebx, [ebx]
mov esi, dword [ebp + 0x2124]
mov eax, dword [ebx + esi + 4]
sub eax, dword [edi + esi + 4]
add ecx, 4
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + esi]
sub eax, dword [edi + esi]
add edi, 0x288
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x1c]
add edx, eax
mov eax, dword [esp + 0x14]
mov dword [ecx - 4], edx
add eax, 1
cmp eax, dword [ebp + 0x2114]
mov dword [esp + 0x14], eax
jl 0x435170
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0x2114]
add dword [esp + 0x10], 0x80
add ecx, 1
add ebx, 0x288
cmp ecx, eax
mov dword [esp + 0x18], ecx
jl 0x43515c
mov ecx, dword [esp + 0x24]
call fcn.004351f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4

Function at 0x4392a0
Capabilities:
Access peb ldr_data
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x48387b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x49f8b8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
push 0
call fcn.00442270
push eax
push 0x10
push 0x258
push 0x320
call fcn.004415c0
mov eax, dword [0x4aeadc]
add esp, 0x14
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 1
push eax
call fcn.00442250
fldz
add esp, 4
fstp dword [esp]
call fcn.00447330
push 0
call fcn.0043bee0
push str.data_sprmenu.ini
call fcn.00441be0
push str.data__main_font.tga
push str.data_main_font.tga
call fcn.00441e60
push str.data__menu_font.tga
push str.data_menu_font.tga
mov dword [0x4b5b68], eax
call fcn.00441e60
push str.data__work_font.tga
push str.data_work_font.tga
mov dword [0x4b5b64], eax
call fcn.00441e60
mov dword [0x4b5b6c], eax
call fcn.00439230
call fcn.00406450
push 0x244
call fcn.0043a740
add esp, 0x28
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x43937e
mov ecx, eax
call fcn.00443580
jmp 0x439380
xor eax, eax
mov dword [esp + 0x14], 0xffffffff
mov esi, dword [eax]
mov dword [0x4b5b60], eax
add esi, 0x30
call fcn.004391c0
mov ecx, dword [0x4b5b60]
mov edx, dword [esi]
push eax
call edx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret