joyce8/EMBER2024-capa huggingface dataset:
Function at 0x564930
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section._5500928
lea edi, [esi - 0x13e000]
push edi
or ebp, 0xffffffff
jmp 0x564952
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x564959
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x564948
mov eax, 1
add ebx, ebx
jne 0x56496b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x56497c
jne 0x56499b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x56499b
dec eax
add ebx, ebx
jne 0x564988
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x564960
add ebx, ebx
jne 0x564997
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5649ed
xor ecx, ecx
sub eax, 3
jb 0x5649b3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x564a22
sar eax, 1
mov ebp, eax
jmp 0x5649be
add ebx, ebx
jne 0x5649be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x56498c
inc ecx
add ebx, ebx
jne 0x5649cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x56498c
add ebx, ebx
jne 0x5649d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5649ce
jne 0x5649ea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5649ce
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x564a0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5649fe
jmp 0x56494e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x564a0c
add edi, ecx
jmp 0x56494e
pop esi
mov edi, esi
mov ecx, 0x1182
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x564a2a
cmp byte [edi], 0x13
jne 0x564a2a
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 0x564a2f
lea edi, [esi + 0x161000]
mov eax, dword [edi]
or eax, eax
je 0x564aa7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x16eaf0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x16eb48]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x564a5c
mov ecx, edi
jns 0x564a8b
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 + 0x16eb50]
or eax, eax
je 0x564aa1
mov dword [ebx], eax
add ebx, 4
jmp 0x564a79
call dword [esi + 0x16eb4c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x564ad8
cmp al, 0xef
ja 0x564acb
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x564aad
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x564aba
mov ebp, dword [esi + 0x16eb54]
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 0x564b0c
sub esp, 0xffffff80
jmp 0x41f530
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cc40
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 0x41cc71
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc59
add dl, dl
jne 0x41cc7c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cccd
xor eax, eax
add dl, dl
jne 0x41cc89
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd6a
add dl, dl
jne 0x41cc98
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cca3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ccae
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ccb9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41ccc3
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cc68
mov eax, 1
add dl, dl
jne 0x41ccdb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cce6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ccd2
sub eax, ebx
mov ebx, 1
jne 0x41cd19
mov ecx, 1
add dl, dl
jne 0x41ccff
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cd0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ccf6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cc68
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cd30
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cd3b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cd27
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 0x41cc68
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cd8b
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 0x41cc68
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 0x41e214
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 0x14856d3
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 0x41e2c5
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 0x41e2ae
test esi, esi
jbe 0x41e2c5
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088dc
test eax, eax
jne 0x41e2a0
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 0x41e2c5
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e27d
jmp 0x41e2c5
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e2c5
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 0x14856da
ret
Function at 0x41eb1c
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 0x14860cb
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 0x41eb57
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41eb70
lea eax, [ebp - 0x10]
mov edx, dword [0x149e258]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41eb83
lea eax, [ebp - 0x10]
mov edx, dword [0x149e258]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41eb8f
adc edx, 0
mov edx, dword [edx*4 + 0x149d0e8]
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 0x41ec9d
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.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ec90
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dcc
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.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ec90
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ec90
cmp dx, 0x150
ja 0x41ec90
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.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ec90
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 0x41ecb5
inc ebx
cmp ebx, 0x19
jne 0x41eb49
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x14860d2
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x409cd8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x340], eax
call fcn.00409275
push cs
xchg ebx, eax
dec ecx
sti
and byte [ebp - 0x534], 0
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
mov byte [ebp - 0x52f], 0xfb
mov byte [ebp - 0x52e], 0xf8
mov byte [ebp - 0x52d], 0xe4
mov byte [ebp - 0x52c], 0xf2
mov byte [ebp - 0x52b], 0xdf
mov byte [ebp - 0x52a], 0xf6
mov byte [ebp - 0x529], 0xf9
mov byte [ebp - 0x528], 0xf3
mov byte [ebp - 0x527], 0xfb
mov byte [ebp - 0x526], 0xf2
mov byte [ebp - 0x525], 0x97
lea eax, [ebp - 0x534]
push eax
call fcn.00409285
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040923a
add esp, 0xc
mov dword [ebp - 0x680], eax
invalid

Function at 0x409db3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x65d], 0x88
mov byte [ebp - 0x65c], 0xb9
mov byte [ebp - 0x65b], 0x94
mov byte [ebp - 0x65a], 0x94
mov byte [ebp - 0x659], 0x97
mov byte [ebp - 0x658], 0x9b
mov byte [ebp - 0x657], 0xf8
lea eax, [ebp - 0x664]
push eax
call fcn.00409285

Function at 0x409df0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040923a
add esp, 0xc
mov dword [ebp - 0x67c], eax
and byte [ebp - 0x524], 0
and byte [ebp - 0x523], 0
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
mov byte [ebp - 0x51f], 0x8f
mov byte [ebp - 0x51e], 0x8b
mov byte [ebp - 0x51d], 0x9a
mov byte [ebp - 0x51c], 0xac
mov byte [ebp - 0x51b], 0x98
mov byte [ebp - 0x51a], 0x8f
mov byte [ebp - 0x519], 0x8f
mov byte [ebp - 0x518], 0xea
lea eax, [ebp - 0x524]
call dword [eax - 0x18]
sbb ah, dh
invalid
call [ecx + 0x50]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040923a
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.00409275
or cl, byte [ebx]
or ebp, dword [edi - 0x135a7fde]
cli
invalid
inc dword [eax]
and byte [ebp - 0x513], 0
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
cli
invalid
call [edx - 0x3a]
test esp, esi
cli
invalid
push dword [ebp - 0x3a]
test ebp, esi
cli
invalid
push dword [eax - 0x3a]
test esi, esi
cli
invalid
invalid
jns 0x409ea0
test edi, esi
cli
invalid
dec dword [edi - 0x3a]
test eax, edi
cli
invalid
push dword [ebp - 0x3a]
test ecx, edi
cli
invalid
jmp dword [esi - 0x3a]
test edx, edi
cli
invalid
invalid

Function at 0x416590
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4165bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4165bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x433005
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x6e89383d
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..rdata
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x18430d3d
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x403490
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x414
push ebx
lea eax, [esp + 0x10]
push esi
xor ebx, ebx
push eax
push 0x20008
mov byte [esp + 0x10], bl
mov byte [esp + 0x11], bl
mov byte [esp + 0x12], bl
mov byte [esp + 0x13], bl
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4034dc
pop esi
mov eax, 1
pop ebx
add esp, 0x414
ret
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push 0x400
push edx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, dword [esp + 0x14]
mov esi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
jne 0x403517
pop esi
mov eax, 1
pop ebx
add esp, 0x414
ret
lea edx, [esp + 0x10]
lea eax, [esp + 8]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x403548
pop esi
mov eax, 1
pop ebx
add esp, 0x414
ret
mov eax, dword [esp + 0x1c]
push ebp
xor ebp, ebp
xor esi, esi
cmp eax, ebx
push edi
jbe 0x403581
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea edi, [esp + 0x28]
mov ecx, dword [edi]
mov edx, dword [esp + 0x18]
push ecx
push edx
call ebx
test eax, eax
jne 0x40357c
mov eax, dword [esp + 0x24]
inc esi
add edi, 8
cmp esi, eax
jb 0x403560
jmp 0x403581
mov ebp, 1
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x414
ret
Function at 0x407606
Capabilities:
Resume thread
Suspend thread

Disassembly:
push 0xffffffffffffffff
push 0x41d3f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x624]
test eax, eax
je 0x407628
call fcn.0040ee70
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov eax, dword [esi + 0x620]
test eax, eax
je 0x4076ec
mov eax, dword [eax + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [0x42a0f0]
test eax, eax
je 0x407650
push 5
call eax
add esp, 4
mov ecx, dword [esi + 0x55c]
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push edi
push 0
push 0
push 0x466
push ecx
call ebp
mov edi, dword [esi + 0x74]
lea edx, [esp + 0x10]
push 0x932c
push edx
call fcn.00410710
add esp, 8
mov eax, dword [eax]
push 0x14
push edi
push eax
mov ecx, esi
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CWnd::MessageBoxA
cmp eax, 6
lea ecx, [esp + 0x10]
sete bl
mov dword [esp + 0x1c], 0xffffffff
call fcn.004193cc
test bl, bl
je 0x4076b7
mov ecx, esi
call fcn.0040ee70
mov eax, dword [esi + 0x55c]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x465
push eax
call ebp
mov ecx, dword [esi + 0x620]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x42a0f0]
pop edi
pop ebp
pop ebx
test eax, eax
je 0x4076ec
push 1
call eax
add esp, 4
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40a340
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41d798
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push edi
mov edi, dword [esp + 0x38]
mov esi, ecx
push edi
call fcn.00409260
push edi
lea ecx, [esp + 0xc]
call fcn.00413060
mov ecx, dword [esi + 0x2f8]
mov eax, dword [esi + 0x2ec]
test ecx, ecx
mov dword [esp + 0x30], 0
je 0x40a38d
or eax, 0x10000
mov ecx, dword [esi + 0x300]
test ecx, ecx
je 0x40a39c
or eax, 0x20000
mov ecx, dword [esi + 0x30c]
test ecx, ecx
je 0x40a3ab
or eax, 0x400000
mov ecx, dword [esi + 0x308]
test ecx, ecx
je 0x40a3ba
or eax, 0x800000
mov ecx, dword [esi + 0x384]
test ecx, ecx
je 0x40a3c9
or eax, 0x100000
mov ecx, dword [esi + 0x38c]
test ecx, ecx
je 0x40a3d8
or eax, 0x40000
mov ecx, dword [esi + 0x398]
test ecx, ecx
je 0x40a3e7
or eax, 0x80000
mov ecx, dword [esi + 0x310]
test ecx, ecx
je 0x40a3f3
or al, 0x10
mov ecx, dword [0x42a028]
test ecx, ecx
je 0x40a402
or eax, 0x4000000
push 1
push eax
push 0x425128
push esi
lea ecx, [esp + 0x18]
call fcn.00413190
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call fcn.00413100
mov ecx, dword [esp + 0x28]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 4

Function at 0x40a500
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x204
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
push edi
mov edi, dword [esp + 0x21c]
lea esi, [esp + 0x14]
xor ebp, ebp
lea eax, [esp + 0x10]
push 0
push eax
push 1
push esi
push edi
call ebx
test eax, eax
je 0x40a559
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40a559
mov al, byte [esi]
cmp al, 0xd
je 0x40a54c
cmp al, 0xa
je 0x40a54c
inc ebp
inc esi
cmp ebp, 0x200
jl 0x40a51d
jmp 0x40a559
lea ecx, [esp + 0x10]
push 0
push ecx
push 1
push esi
push edi
call ebx
mov ecx, dword [esp + 0x218]
lea edx, [esp + 0x14]
push edx
mov byte [esi], 0
call sub.MFC42.DLL_CString::operator_1
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x204
ret
Function at 0x40be10
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41da38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], 0
test eax, eax
mov esi, 0x42594c
jne 0x40be4b
mov esi, 0x425948
mov eax, dword [esp + 0x28]
lea ecx, [esp + 8]
push eax
push 0x500
push 0x500
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
or edi, 0xffffffff
lea ecx, [esp + 8]
push edi
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::MakeUpper
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x42595c
push eax
call esi
add esp, 8
test eax, eax
je 0x40beca
mov ecx, dword [esp + 8]
push str.FALSE
push ecx
call esi
add esp, 8
test eax, eax
je 0x40beca
mov edx, dword [esp + 8]
push 0x425950
push edx
call esi
add esp, 8
test eax, eax
jne 0x40beea
lea ecx, [esp + 8]
mov dword [esp + 0x14], edi
call fcn.004193cc
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov eax, dword [esp + 8]
push 0x429eb4
push eax
call esi
add esp, 8
mov dword [esp + 0x14], edi
test eax, eax
lea ecx, [esp + 8]
jne 0x40bf1d
call fcn.004193cc
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
call fcn.004193cc
mov ecx, dword [esp + 0xc]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40cb60
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x41db01
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50c
push ebx
push esi
mov esi, dword [esp + 0x524]
lea ecx, [esp + 0xc]
lea eax, [esi + 0xc]
push eax
call sub.MFC42.DLL_CString::CString_1
xor ebx, ebx
cmp word [esi + 0x232], bx
mov dword [esp + 0x51c], ebx
je 0x40cbe2
push 0x425be8
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find_1
lea ecx, [esp + 8]
push eax
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x520], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 8]
mov byte [esp + 0x51c], bl
call fcn.004193cc
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push 0x500
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x40ccc8
mov edx, dword [esp + 0x528]
lea ecx, [esp + 8]
push edx
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 8]
mov byte [esp + 0x51c], 2
mov ecx, dword [eax - 8]
mov al, byte [ecx + eax - 1]
cmp al, 0x5c
je 0x40cc37
push 0x5c
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 0x10]
lea ecx, [esp + 8]
push eax
call fcn.004193de
mov ecx, dword [esp + 8]
push ebx
push ecx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
jne 0x40cc83
lea ecx, [esp + 8]
mov byte [esp + 0x51c], bl
call fcn.004193cc
lea ecx, [esp + 0xc]
mov dword [esp + 0x51c], 0xffffffff
call fcn.004193cc
mov eax, 1
jmp 0x40ccde
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
mov byte [esp + 0x51c], bl
lea ecx, [esp + 8]
je 0x40ccc3
call fcn.004193cc
lea ecx, [esp + 0xc]
mov dword [esp + 0x51c], 0xffffffff
call fcn.004193cc
mov eax, 1
jmp 0x40ccde
call fcn.004193cc
lea ecx, [esp + 0xc]
mov dword [esp + 0x51c], 0xffffffff
call fcn.004193cc
xor eax, eax
mov ecx, dword [esp + 0x514]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x518
ret 8
Function at 0x40cd00
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41db20
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0x610], 0xffffffff
jne 0x40cd38
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
push edi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x390]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov dword [esp + 0x1c], 0
je 0x40cded
mov eax, dword [esi + 0x610]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esi + 0x3a4]
shr eax, 0xa
cmp eax, ecx
jbe 0x40cded
mov ecx, dword [esi + 0x610]
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 0x610]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea eax, [esp + 0xc]
push 0x9343
push eax
call fcn.00410710
add esp, 8
mov ecx, dword [eax]
lea edx, [esp + 8]
push ecx
push str._s_r_n
push edx
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call fcn.004193cc
mov eax, dword [esp + 8]
lea edx, [esp + 0x10]
push 0
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esi + 0x610]
push eax
call edi
mov ecx, dword [esp + 0x24]
lea edx, [esp + 8]
push ecx
push str._s_r_n
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x14]
add esp, 0xc
lea edx, [esp + 0x10]
mov ecx, dword [eax - 8]
push 0
push edx
push ecx
push eax
mov eax, dword [esi + 0x610]
push eax
call edi
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.004193cc
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4