joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c5f3c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x4c5f5b
mov eax, dword [0x5ce940]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4c5f68
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4c5f95
je 0x4c5fa7
sub ecx, 0x100
je 0x4c5fb5
sub ecx, 0x100
je 0x4c5fbc
sub ecx, 0x100
je 0x4c5fae
jmp 0x4c5fc3
sub ecx, 0x600
je 0x4c5fbc
sub ecx, 0x100
je 0x4c5fa7
jmp 0x4c5fc3
mov edi, 1
jmp 0x4c5fc8
mov edi, 2
jmp 0x4c5fc8
mov edi, 4
jmp 0x4c5fc8
mov edi, 5
jmp 0x4c5fc8
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4c5fef
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x5ce3b8]
test al, 0x80
je 0x4c5fe8
mov ebx, 0x80
jmp 0x4c6001
mov ebx, 1
jmp 0x4c6001
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4c6001
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4c6013
je 0x4c601c
dec eax
je 0x4c6025
jmp 0x4c602e
mov dword [ebp - 4], CreateStatusWindowA
jmp 0x4c603d
mov dword [ebp - 4], 0x40000000
jmp 0x4c603d
mov dword [ebp - 4], 0xc0000000
jmp 0x4c603d
push 1
call fcn.004c703c
pop ecx
mov ebx, eax
jmp 0x4c612d
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4c6059
sub eax, 0x10
je 0x4c6060
sub eax, 0x10
je 0x4c6069
sub eax, 0x10
je 0x4c6072
jmp 0x4c6072
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4c6079
mov dword [ebp - 8], 1
jmp 0x4c6079
mov dword [ebp - 8], 2
jmp 0x4c6079
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileW
mov esi, eax
cmp eax, 0xffffffff
jne 0x4c60e6
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4c60db
test byte [ebp + 0xd], 1
je 0x4c60d6
mov ebx, 0x50
jmp 0x4c60db
mov ebx, 2
push ebx
call fcn.004c703c
pop ecx
mov ebx, eax
jmp 0x4c612d
mov edi, esi
push edi
call fcn.004c5b14
pop ecx
test eax, eax
je 0x4c60fa
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4c6106
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004c6d80
add esp, 8
mov ebx, eax
inc eax
jne 0x4c612d
push 4
call fcn.004c703c
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c6304
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4c6320
call fcn.004c70a0
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4c633b
test bl, 1
je 0x4c633b
mov dword [0x5cf8dc], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4c6b6c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.00469728
pop ecx
mov ebx, eax
test eax, eax
jne 0x4c6b90
xor eax, eax
jmp 0x4c6c39
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x4c6bb1
cmp esi, 0x104
jb 0x4c6bbc
push ebx
call fcn.00469a68
pop ecx
xor eax, eax
jmp 0x4c6c39
cmp byte [ebx + 1], 0x3a
jne 0x4c6bec
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
jae 0x4c6bec
push ebx
call fcn.00469a68
pop ecx
xor eax, eax
jmp 0x4c6c39
inc esi
test edi, edi
je 0x4c6c2f
cmp esi, dword [ebp + 0x10]
jbe 0x4c6c01
push ebx
call fcn.00469a68
pop ecx
xor eax, eax
jmp 0x4c6c39
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.00469a68
pop ecx
mov eax, edi
jmp 0x4c6c39
push esi
push ebx
call fcn.0046aa8c
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4c6c40
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x4c6c85
lea eax, [ebp - 0x10c]
push eax
push 0x103
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
je 0x4c6c74
cmp eax, dword [ebp + 0x10]
jle 0x4c6d0e
mov dword [0x5cf8dc], 8
xor eax, eax
jmp 0x4c6d79
cmp dword [0x5d2658], 1
jne 0x4c6cca
mov eax, ebx
lea ecx, [ebp - 0x10c]
mov edx, eax
add dl, 0x40
add ecx, 3
mov byte [ebp - 0x10c], dl
mov dl, al
mov byte [ebp - 0x10b], 0x3a
mov byte [ebp - 0x10a], 0x5c
mov byte [ebp - 0x109], 0
mov ah, 0x47
mov esi, ecx
int 0x21
jae 0x4c6d0e
xor eax, eax
jmp 0x4c6d79
call sub.KERNEL32.DLL_GetLogicalDrives
lea ecx, [ebx - 1]
mov edx, 1
shl edx, cl
test edx, eax
je 0x4c6d0a
add bl, 0x40
lea eax, [ebp - 8]
mov byte [ebp - 4], bl
lea edx, [ebp - 0x10c]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x2e
mov byte [ebp - 1], 0
push eax
push edx
lea ecx, [ebp - 4]
push 0x103
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
jmp 0x4c6d0e
xor eax, eax
jmp 0x4c6d79
lea edx, [ebp - 0x10c]
push edx
call fcn.004c4990
pop ecx
cmp eax, dword [ebp + 0x10]
jl 0x4c6d2e
mov dword [0x5cf8dc], 0x22
xor eax, eax
jmp 0x4c6d79
test edi, edi
jne 0x4c6d50
mov edx, dword [ebp + 0x10]
push edx
call fcn.00469728
pop ecx
mov edi, eax
test eax, eax
jne 0x4c6d50
mov dword [0x5cf8dc], 8
xor eax, eax
jmp 0x4c6d79
push edi
mov esi, edi
xor eax, eax
lea edi, [ebp - 0x10c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c8138
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x208
call fcn.00469728
pop ecx
mov ebx, eax
test eax, eax
jne 0x4c815c
xor eax, eax
jmp 0x4c81f7
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.DLL_GetFullPathNameW
mov esi, eax
test esi, esi
je 0x4c817d
cmp esi, 0x104
jb 0x4c8188
push ebx
call fcn.00469a68
pop ecx
xor eax, eax
jmp 0x4c81f7
cmp word [ebx + 2], 0x3a
jne 0x4c81c1
mov dx, word [ebx]
lea ecx, [ebp - 0xc]
mov word [ebp - 0xc], dx
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x5c
mov word [ebp - 6], 0
push ecx
call sub.KERNEL32.DLL_GetDriveTypeW
cmp eax, 2
jae 0x4c81c1
push ebx
call fcn.00469a68
pop ecx
xor eax, eax
jmp 0x4c81f7
inc esi
test edi, edi
je 0x4c81eb
cmp esi, dword [ebp + 0x10]
jbe 0x4c81d6
push ebx
call fcn.00469a68
pop ecx
xor eax, eax
jmp 0x4c81f7
push ebx
push edi
call fcn.004c4c5c
add esp, 8
push ebx
call fcn.00469a68
pop ecx
mov eax, edi
jmp 0x4c81f7
add esi, esi
push esi
push ebx
call fcn.0046aa8c
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c8200
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x4c8245
lea eax, [ebp - 0x214]
push eax
push 0x103
call sub.KERNEL32.DLL_GetCurrentDirectoryW
test eax, eax
je 0x4c8234
cmp eax, dword [ebp + 0x10]
jle 0x4c82dc
mov dword [0x5cf8dc], 8
xor eax, eax
jmp 0x4c8330
cmp dword [0x5d2658], 1
jne 0x4c8290
mov edx, ebx
lea ecx, [ebp - 0x214]
add dx, 0x40
add ecx, 3
mov word [ebp - 0x214], dx
mov dl, bl
mov word [ebp - 0x212], 0x3a
mov word [ebp - 0x210], 0x5c
mov word [ebp - 0x20e], 0
mov esi, ecx
mov ah, 0x47
int 0x21
jae 0x4c82dc
xor eax, eax
jmp 0x4c8330
call sub.KERNEL32.DLL_GetLogicalDrives
lea ecx, [ebx - 1]
mov edx, 1
shl edx, cl
test edx, eax
je 0x4c82d8
add bx, 0x40
lea eax, [ebp - 0xc]
mov word [ebp - 8], bx
lea edx, [ebp - 0x214]
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0x2e
mov word [ebp - 2], 0
push eax
push edx
lea ecx, [ebp - 8]
push 0x103
push ecx
call sub.KERNEL32.DLL_GetFullPathNameW
jmp 0x4c82dc
xor eax, eax
jmp 0x4c8330
lea edx, [ebp - 0x214]
push edx
call fcn.004c4c44
pop ecx
cmp eax, dword [ebp + 0x10]
jl 0x4c82fc
mov dword [0x5cf8dc], 0x22
xor eax, eax
jmp 0x4c8330
test edi, edi
jne 0x4c831e
mov edx, dword [ebp + 0x10]
push edx
call fcn.00469728
pop ecx
mov edi, eax
test eax, eax
jne 0x4c831e
mov dword [0x5cf8dc], 8
xor eax, eax
jmp 0x4c8330
lea edx, [ebp - 0x214]
push edx
push edi
call fcn.004c4c5c
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4cb640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4cb6a2
call fcn.004cb5f0
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004c4990
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004c4990
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4cb700
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x5cf8e4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4cb7da
cmp dword [0x5cf8e0], 0
jne 0x4cb7da
cmp dword [0x5cfc0c], 0
je 0x4cb794
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004cb4f0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4cb77a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004cb4f0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4cb77a
lea ebx, [ebp - 0x84]
jmp 0x4cb77b
inc ebx
call fcn.004cb6bc
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4cb815
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x5cf8e8
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004c4990
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x5cf8eb
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4cb815
cmp dword [0x5cf8e0], 0
je 0x4cb7f4
cmp dword [0x5cf8e0], 0xffffffff
je 0x4cb815
push esi
call dword [0x5cf8e0]
pop ecx
mov eax, dword [0x5cf8e4]
test eax, eax
je 0x4cb815
cmp dword [0x5cf8e4], 0xffffffff
je 0x4cb815
cmp byte [eax], 0
je 0x4cb815
push esi
push eax
call fcn.004cb640
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ccf60
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x5d2670], 0
jne 0x4ccfe1
cmp dword [0x5d26a0], 0
jne 0x4ccf90
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x5d26a0], eax
test eax, eax
jne 0x4ccf90
push 0x5cfab8
call fcn.004cb82c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x5d26a0]
jmp 0x4ccfa4
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004c4990
pop ecx
mov edi, eax
test eax, eax
jne 0x4ccf9c
lea edi, [ebp + 1]
push edi
call fcn.00469728
pop ecx
mov ebx, eax
mov dword [0x5d2674], ebx
test ebx, ebx
jne 0x4ccfce
xor eax, eax
jmp 0x4cd0a4
push edi
mov edx, dword [0x5d26a0]
push edx
push ebx
call fcn.004c47c8
add esp, 0xc
jmp 0x4cd001
xor esi, esi
mov ebx, dword [0x5d2670]
jmp 0x4ccffb
push eax
call fcn.004c4990
pop ecx
test eax, eax
jne 0x4ccff7
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4ccfeb
lea ebx, [esi + 4]
push 4
mov dword [0x5d2678], ebx
inc ebx
push ebx
call fcn.0046a238
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4cd024
xor eax, eax
jmp 0x4cd0a4
cmp dword [0x5d2670], 0
jne 0x4cd055
xor esi, esi
mov ebx, dword [0x5d2674]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4cd046
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004c4990
pop ecx
mov edi, eax
test eax, eax
jne 0x4cd03c
jmp 0x4cd086
xor esi, esi
mov ebx, dword [0x5d2670]
mov eax, dword [esp]
mov edi, eax
jmp 0x4cd080
push eax
call fcn.004c4990
pop ecx
test eax, eax
je 0x4cd075
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4cd079
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4cd064
mov eax, dword [0x5d2670]
test eax, eax
je 0x4cd096
push eax
call fcn.00469a68
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x5d2670], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4cd108
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x5d2680], 0
jne 0x4cd194
cmp dword [0x5d26b4], 0
jne 0x4cd138
call sub.KERNEL32.DLL_GetEnvironmentStringsW
mov dword [0x5d26b4], eax
test eax, eax
jne 0x4cd138
push str.GetEnvironmentStrings_failed
call fcn.004cb82c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x5d26b4]
jmp 0x4cd151
lea eax, [edi + 1]
add edi, edi
add edi, 2
add ebp, eax
inc esi
add ebx, edi
push ebx
call fcn.004c4c44
pop ecx
mov edi, eax
test eax, eax
jne 0x4cd144
lea edi, [ebp + 1]
mov eax, edi
add eax, eax
push eax
call fcn.00469728
pop ecx
mov ebx, eax
mov dword [0x5d2684], ebx
test ebx, ebx
jne 0x4cd17f
xor eax, eax
jmp 0x4cd25b
add edi, edi
mov edx, dword [0x5d26b4]
push edi
push edx
push ebx
call fcn.004c47c8
add esp, 0xc
jmp 0x4cd1b4
xor esi, esi
mov ebx, dword [0x5d2680]
jmp 0x4cd1ae
push eax
call fcn.004c4c44
pop ecx
test eax, eax
jne 0x4cd1aa
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4cd19e
lea ebx, [esi + 4]
push 4
mov dword [0x5d2688], ebx
inc ebx
push ebx
call fcn.0046a238
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4cd1d7
xor eax, eax
jmp 0x4cd25b
cmp dword [0x5d2680], 0
jne 0x4cd20c
xor esi, esi
mov ebx, dword [0x5d2684]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4cd1fd
mov dword [ebp], ebx
add edi, edi
add edi, 2
add ebp, 4
inc esi
add ebx, edi
push ebx
call fcn.004c4c44
pop ecx
mov edi, eax
test eax, eax
jne 0x4cd1ef
jmp 0x4cd23d
xor esi, esi
mov ebx, dword [0x5d2680]
mov eax, dword [esp]
mov edi, eax
jmp 0x4cd237
push eax
call fcn.004c4c44
pop ecx
test eax, eax
je 0x4cd22c
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4cd230
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4cd21b
mov eax, dword [0x5d2680]
test eax, eax
je 0x4cd24d
push eax
call fcn.00469a68
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x5d2680], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40110c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x816030]
jne 0x401116
repz ret
jmp fcn.00401d41

Function at 0x40a6cc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406ace
and dword [ebp - 4], 0
cmp dword [0x818894], 0
mov ebx, eax
jne 0x40a77d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a82e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a82e
push eax
call fcn.00406a5c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x818894], eax
call esi
push eax
call fcn.00406a5c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x818898], eax
call esi
push eax
call fcn.00406a5c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x81889c], eax
call esi
push eax
call fcn.00406a5c
pop ecx
mov dword [0x8188a4], eax
test eax, eax
je 0x40a77d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406a5c
pop ecx
mov dword [0x8188a0], eax
mov eax, dword [0x8188a0]
cmp eax, ebx
je 0x40a7d5
cmp dword [0x8188a4], ebx
je 0x40a7d5
push eax
call fcn.00406ad7
push dword [0x8188a4]
mov esi, eax
call fcn.00406ad7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a7d5
test edi, edi
je 0x40a7d5
call esi
test eax, eax
je 0x40a7cc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a7cc
test byte [ebp - 0xc], 1
jne 0x40a7d5
or dword [ebp + 0x10], 0x200000
jmp 0x40a80e
mov eax, dword [0x818898]
cmp eax, ebx
je 0x40a80e
push eax
call fcn.00406ad7
pop ecx
test eax, eax
je 0x40a80e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a80e
mov eax, dword [0x81889c]
cmp eax, ebx
je 0x40a80e
push eax
call fcn.00406ad7
pop ecx
test eax, eax
je 0x40a80e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x818894]
call fcn.00406ad7
pop ecx
test eax, eax
je 0x40a82e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a830
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cf44
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 0x41cf75
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf5d
add dl, dl
jne 0x41cf80
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cfd1
xor eax, eax
add dl, dl
jne 0x41cf8d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d06e
add dl, dl
jne 0x41cf9c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfb2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfbd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cfc7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf6c
mov eax, 1
add dl, dl
jne 0x41cfdf
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfea
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfd6
sub eax, ebx
mov ebx, 1
jne 0x41d01d
mov ecx, 1
add dl, dl
jne 0x41d003
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d00e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cffa
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d034
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d03f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d02b
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 0x41cf6c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d08f
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 0x41cf6c
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 0x41f0a0
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], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x43f58e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ef
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
jmp 0x41f10e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f180
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f169
test esi, esi
jbe 0x41f180
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f15b
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 0x41f180
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f138
jmp 0x41f180
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f180
mov eax, edx
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 0x43f595
ret
Function at 0x4202d8
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 word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x4408f3
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 0x420313
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x42032c
lea eax, [ebp - 0x10]
mov edx, dword [0x45d54c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x42033f
lea eax, [ebp - 0x10]
mov edx, dword [0x45d54c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42034b
adc edx, 0
mov edx, dword [edx*4 + 0x45c378]
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 0x4204c5
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4204b8
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4204b8
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420456
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420456
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420456
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420456
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4204b8
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4204b8
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
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 0x4204dd
inc ebx
cmp ebx, 0x19
jne 0x420305
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4408fa
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret