joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45de50
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4827f8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a02b4]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0xffffffff
xor edi, edi
mov dword [esp + 0x44], edi
mov eax, edx
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], edi
mov word [esp + 0x24], di
lea esi, [eax + 2]
jmp 0x45dea0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x45dea0
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x28]
call fcn.004020a0
mov eax, dword [esp + 0x24]
mov ebp, 8
cmp dword [esp + 0x38], ebp
jae 0x45decd
lea eax, [esp + 0x24]
push edi
push 0x80
push 4
push edi
push 1
push Ordinal_4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
setne al
test al, al
sete bl
cmp dword [esp + 0x38], ebp
mov dword [esp + 0x14], esi
jb 0x45df08
mov eax, dword [esp + 0x24]
push eax
call fcn.00468cbd
add esp, 4
test bl, bl
jne 0x45df71
cmp esi, 0xffffffff
mov dword [esp + 0x1c], edi
je 0x45df4e
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x45df32
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45df4e
mov edx, dword [esp + 0x18]
push 1
push 0
push 0
push edx
call fcn.00479520
mov edi, eax
xor eax, eax
add edi, ebp
adc edx, eax
mov dword [esp + 0x1c], edx
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
xor ebx, ebx
cmp ebp, ebx
je 0x45df71
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
jne 0x45df81
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp esi, 0xffffffff
je 0x45df7d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x45dfdb
cmp esi, 0xffffffff
je 0x45df99
push ebx
lea ecx, [esp + 0x1c]
push ecx
push edi
push eax
push esi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
mov dword [esp + 0x48], ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp esi, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x45dfbd
push esi
call ebx
test eax, eax
je 0x45dfbd
or esi, 0xffffffff
mov dword [esp + 0x14], esi
push edi
mov edi, dword [esp + 0x50]
push ebp
call fcn.0045e0d0
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp esi, 0xffffffff
je 0x45dfd9
push esi
call ebx
mov eax, edi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4
Function at 0x45e000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.0041d460
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [eax + 0x38]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x45e0ba
call fcn.0041d460
mov eax, dword [eax + 0x38]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x45e0ba
call fcn.0041d460
mov eax, dword [eax + 0x38]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x45e0b3
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x45e0ac
test ebp, ebp
je 0x45e0ac
push edi
push eax
push ebp
call fcn.0046dd30
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
mov edi, dword [esp + 0x18]
push esi
call fcn.0045e0d0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
Function at 0x464720
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x20
push ebx
mov dword [esi + 0x20], ecx
mov eax, dword [ecx]
mov edx, dword [eax + 0xc0]
push ebp
push edi
call edx
mov ecx, dword [esi + 0x20]
mov edx, dword [eax + 4]
mov ebp, dword [eax]
mov edi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
add edx, dword [ecx + 0x15c]
add ebp, dword [ecx + 0x158]
sub edi, dword [ecx + 0x160]
sub ebx, dword [ecx + 0x164]
cmp byte [ecx + 0x549], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0x40000080
je 0x464776
mov dword [esp + 0xc], 0x400000a0
mov eax, dword [ecx]
mov edx, dword [eax + 0x128]
call edx
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + 0x178]
sub ebx, ecx
push ebx
sub edi, ebp
push edi
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push 0
push ecx
push 0
push edx
mov eax, esi
call fcn.0041d550
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx]
mov edx, dword [eax + 0x128]
call edx
mov edi, eax
call fcn.00419810
mov eax, dword [eax]
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push eax
push 0x30
push ecx
call edi
mov edx, dword [esi + 0x20]
mov eax, dword [edx + 0x544]
mov ecx, dword [esi + 4]
push 0
push eax
push 0xc5
push ecx
call edi
mov eax, dword [esi + 0x20]
cmp byte [eax + 0x549], 0
je 0x464802
movzx edx, word [eax + 0x54a]
mov eax, dword [esi + 4]
push 0
push edx
push 0xcc
push eax
call edi
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 0x16c]
lea eax, [esp + 0x10]
push eax
call edx
mov ebx, 8
cmp dword [eax + 0x18], ebx
jb 0x464823
mov eax, dword [eax + 4]
jmp 0x464826
add eax, 4
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [esp + 0x28], ebx
jb 0x464844
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00468cbd
add esp, 4
mov edx, dword [esi + 4]
push 0
push 0
push 0xb9
push edx
call edi
mov eax, dword [esi + 4]
push 0
push 3
push 0xd3
push eax
call edi
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0x120]
call eax
mov edx, dword [esi + 4]
movzx ecx, al
push ecx
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esi + 0x20]
movzx ecx, byte [eax + 0x548]
mov edx, dword [esi + 4]
push 0
push ecx
push 0xcf
push edx
call edi
mov eax, dword [esi + 4]
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x4648c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4827c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a02b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
add edi, 1
lea eax, [edi + edi]
call fcn.00478f20
mov esi, esp
test esi, esi
je 0x46497f
mov ecx, dword [ebx + 4]
push edi
push esi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor edi, edi
mov eax, esi
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], di
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x464930
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [ebp - 0x2c]
call fcn.004020a0
push 0xffffffffffffffff
mov dword [ebp - 4], edi
mov esi, dword [ebx + 0x20]
push edi
lea edx, [ebp - 0x2c]
push edx
lea eax, [esi + 0x36c]
call fcn.00401e00
mov eax, dword [esi]
mov edx, dword [eax + 0x11c]
mov ecx, esi
call edx
cmp dword [ebp - 0x14], 8
jb 0x46497f
mov eax, dword [ebp - 0x28]
push eax
call fcn.00468cbd
add esp, 4
xor eax, eax
lea esp, [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00468c2b
mov esp, ebp
pop ebp
ret 4
Function at 0x466770
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x481c60
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a02b4]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x50], 0
cmp dword [eax + 0x18], 8
jb 0x4667ae
mov eax, dword [eax + 4]
jmp 0x4667b1
add eax, 4
push 0
push 0x80
push 3
push 0
push 3
push Ordinal_4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x24], ebx
je 0x466860
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4667f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x466859
mov ecx, dword [esp + 0x14]
push 1
push 0
push 0
push ecx
call fcn.00479520
mov edi, eax
xor eax, eax
add edi, esi
adc edx, eax
lea esi, [esp + 0x14]
mov dword [esp + 0x18], edx
call fcn.00402590
mov byte [esp + 0x50], 1
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x466859
push 0
lea ecx, [esp + 0x5c]
push ecx
push edi
push ebp
push ebx
mov dword [esp + 0x6c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x466850
cmp dword [esp + 0x58], 0
seta al
test al, al
jne 0x466876
push ebp
call fcn.00468d1d
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov esi, dword [esp + 0x5c]
call fcn.00402630
mov eax, dword [esi + 4]
cmp edi, eax
ja 0x466888
mov eax, edi
mov dword [esi + 0xc], eax
lea eax, [esp + 0x28]
call fcn.00466d20
mov eax, dword [esi + 8]
push 0
push eax
push ebp
lea edx, [esp + 0x34]
push edx
mov eax, edi
call fcn.00466da0
test al, al
lea ecx, [esp + 0x14]
jne 0x4668d3
call fcn.00402600
lea esi, [esp + 0x24]
call fcn.0040f200
xor al, al
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
call fcn.00402600
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x466ad0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x481c28
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
mov eax, dword [0x4a02b4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov eax, dword [edi + 0x20]
cmp eax, ebx
je 0x466b1f
mov eax, dword [eax + 8]
cmp eax, ebx
je 0x466b13
push eax
call fcn.00468d1d
add esp, 4
mov eax, dword [edi + 0x20]
push eax
call fcn.00468cbd
add esp, 4
mov dword [edi + 0x20], ebx
mov byte [edi + 0x24], bl
cmp dword [edi + 0x1c], 8
jb 0x466b30
mov eax, dword [edi + 8]
jmp 0x466b33
lea eax, [edi + 8]
push ebx
push ebx
push 3
push ebx
push ebx
push Ordinal_4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x466c85
mov esi, edi
call fcn.00466ca0
mov eax, dword [edi + 0x20]
cmp eax, ebx
je 0x466c55
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [esp + 0x14]
push ecx
push 2
push eax
push ebp
mov dword [esp + 0x24], ebx
call esi
test eax, eax
je 0x466c55
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
seta al
cmp al, bl
je 0x466c55
cmp ecx, 2
jne 0x466c55
mov eax, dword [edi + 0x20]
add eax, ecx
je 0x466c55
push ebx
lea edx, [esp + 0x14]
push edx
push ecx
push eax
push ebp
mov dword [esp + 0x24], ebx
call esi
test eax, eax
je 0x466c55
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
seta al
cmp al, bl
je 0x466c55
cmp ecx, 2
jne 0x466c55
mov eax, dword [edi + 0x20]
push ecx
add eax, 4
lea esi, [esp + 0x14]
lea ecx, [esp + 0x18]
call fcn.0040f270
test al, al
je 0x466c55
cmp dword [esp + 0x10], 2
jne 0x466c55
mov eax, dword [edi + 0x20]
movzx eax, word [eax + 4]
xor ecx, ecx
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00468610
mov ecx, dword [edi + 0x20]
mov dword [ecx + 8], eax
mov eax, dword [edi + 0x20]
movzx edx, word [eax + 4]
mov eax, dword [eax + 8]
add esp, 4
shl edx, 4
push edx
lea ecx, [esp + 0x18]
call fcn.0040f270
test al, al
je 0x466c4c
mov eax, dword [edi + 0x20]
movzx ecx, word [eax + 4]
shl ecx, 4
cmp dword [esp + 0x10], ecx
jne 0x466c4c
mov byte [edi + 0x24], 1
jmp 0x466c7e
mov esi, edi
call fcn.00466cf0
jmp 0x466c7e
mov eax, dword [edi + 0x20]
cmp eax, ebx
je 0x466c78
mov eax, dword [eax + 8]
cmp eax, ebx
je 0x466c6c
push eax
call fcn.00468d1d
add esp, 4
mov edx, dword [edi + 0x20]
push edx
call fcn.00468cbd
add esp, 4
mov dword [edi + 0x20], ebx
mov byte [edi + 0x24], bl
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x468c2b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a02b4]
jne 0x468c35
repz ret
jmp fcn.0046f3f8
Function at 0x46a869
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x46a8a6
cmp dword [ebp + 0x14], edi
je 0x46a8a6
cmp ecx, edi
jne 0x46a8ad
call fcn.00469944
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00469067
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x46a8c1
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x46a8e2
cmp ebx, 0xffffffff
je 0x46a8d1
push ebx
push edi
push ecx
call fcn.0046f200
add esp, 0xc
cmp esi, edi
je 0x46a88e
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x46a88e
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x46a8fe
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x46a905
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x46a9f6
test word [esi + 0xc], 0x10c
je 0x46a959
mov eax, dword [esi + 4]
test eax, eax
je 0x46a959
jl 0x46aa57
cmp ebx, eax
mov edi, ebx
jb 0x46a92a
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x46a9fe
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00468827
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x46a9ee
cmp ebx, dword [ebp - 0xc]
jb 0x46a9c6
cmp dword [ebp - 0xc], 0
je 0x46a983
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x46a978
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x46a97f
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x46a98e
mov eax, SysReAllocString
cmp ebx, eax
ja 0x46a98e
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x46aa2a
push eax
push dword [ebp - 8]
push esi
call fcn.0047554c
pop ecx
push eax
call fcn.00477454
add esp, 0xc
test eax, eax
je 0x46aa69
cmp eax, 0xffffffff
je 0x46aa57
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x46a9ee
push esi
call fcn.00475ec9
cmp eax, 0xffffffff
pop ecx
je 0x46aa5b
cmp dword [ebp - 4], 0
je 0x46aa2a
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x46a90d
mov eax, dword [ebp + 0x14]
jmp 0x46a8a8
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x46aa15
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0046f200
add esp, 0xc
call fcn.00469944
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x46a89e
cmp dword [ebp + 0xc], 0xffffffff
je 0x46aa40
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0046f200
add esp, 0xc
call fcn.00469944
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x46a89e
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x46a8a8
or dword [esi + 0xc], 0x10
jmp 0x46aa5b
Function at 0x46f6db
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4a02e0]
je 0x46f6f6
inc edi
cmp edi, 0x17
jb 0x46f6e7
cmp edi, 0x17
jae 0x46f876
push ebp
push 3
call fcn.004797b2
cmp eax, 1
pop ecx
je 0x46f842
push 3
call fcn.004797b2
test eax, eax
pop ecx
jne 0x46f72a
cmp dword [0x4a00f8], 1
je 0x46f842
cmp ebx, 0xfc
je 0x46f875
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4a2cf8
push ebp
call fcn.0046f528
add esp, 0xc
test eax, eax
je 0x46f760
push esi
push esi
push esi
push esi
push esi
call fcn.00468f6b
add esp, 0x14
push 0x104
mov esi, 0x4a2d11
push esi
push 0
mov byte [0x4a2e15], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x46f7a4
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0046f528
add esp, 0xc
test eax, eax
je 0x46f7a4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00468f6b
add esp, 0x14
push esi
call fcn.0046c470
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x46f7e9
push esi
call fcn.0046c470
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4a300c
push 0x48893c
sub ecx, eax
push ecx
push eax
call fcn.00478a16
add esp, 0x14
test eax, eax
je 0x46f7e9
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00468f6b
add esp, 0x14
jmp 0x46f7eb
xor esi, esi
push 0x488938
push ebx
push ebp
call fcn.00478955
add esp, 0xc
test eax, eax
je 0x46f80b
push esi
push esi
push esi
push esi
push esi
call fcn.00468f6b
add esp, 0x14
push dword [edi*8 + 0x4a02e4]
push ebx
push ebp
call fcn.00478955
add esp, 0xc
test eax, eax
je 0x46f82d
push esi
push esi
push esi
push esi
push esi
call fcn.00468f6b
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004795f5
add esp, 0xc
jmp 0x46f875
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x46f875
cmp ebp, 0xffffffff
je 0x46f875
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4a02e4]
push dword [esi]
call fcn.0046c470
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4795f5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0046e9d4
xor ebx, ebx
cmp dword [0x4a3504], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4796cb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4797ab
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4797ab
push eax
call fcn.0046e966
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4a3504], eax
call esi
push eax
call fcn.0046e966
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4a3508], eax
call esi
push eax
call fcn.0046e966
mov dword [0x4a350c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0046e576
test eax, eax
pop ecx
pop ecx
je 0x479699
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00468f6b
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4796cb
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0046e966
cmp eax, ebx
pop ecx
mov dword [0x4a3514], eax
je 0x4796cb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046e966
pop ecx
mov dword [0x4a3510], eax
mov eax, dword [0x4a3510]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x479750
cmp dword [0x4a3514], ecx
je 0x479750
push eax
call fcn.0046e9dd
push dword [0x4a3514]
mov esi, eax
call fcn.0046e9dd
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x479750
cmp edi, ebx
je 0x479750
call esi
cmp eax, ebx
je 0x47971d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x47971d
test byte [ebp - 0x18], 1
jne 0x479750
lea eax, [ebp - 0x10]
push eax
call fcn.0046e5ad
test eax, eax
pop ecx
je 0x479738
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00468f6b
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x479747
or dword [ebp + 0x10], 0x200000
jmp 0x47978b
or dword [ebp + 0x10], 0x40000
jmp 0x47978b
mov eax, dword [0x4a3508]
cmp eax, dword [ebp - 8]
je 0x47978b
push eax
call fcn.0046e9dd
cmp eax, ebx
pop ecx
je 0x47978b
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x47978b
mov eax, dword [0x4a350c]
cmp eax, dword [ebp - 8]
je 0x47978b
push eax
call fcn.0046e9dd
cmp eax, ebx
pop ecx
je 0x47978b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a3504]
call fcn.0046e9dd
cmp eax, ebx
pop ecx
je 0x4797ab
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4797ad
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x139b058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x139b1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x139b07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x139b06a
add dl, dl
jne 0x139b089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x139b0dc
xor eax, eax
add dl, dl
jne 0x139b096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x139b17d
add dl, dl
jne 0x139b0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x139b0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x139b0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x139b0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x139b0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x139b075
mov eax, 1
add dl, dl
jne 0x139b0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x139b0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x139b0e1
sub eax, ebx
mov ebx, 1
jne 0x139b128
mov ecx, 1
add dl, dl
jne 0x139b10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x139b119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x139b105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x139b075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x139b13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x139b14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x139b136
cmp eax, 0x7d00
jae 0x139b16d
cmp eax, 0x500
jb 0x139b168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x139b075
cmp eax, 0x7f
ja 0x139b170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x139b075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x139b19e
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 0x139b075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x828bc
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x88428
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
xor edx, edx
mov dword [eax + 0x14], edx
xor edx, edx
mov dword [eax + 0x18], edx
ret