joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437ff4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x46b034]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x43803f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00438193
test al, al
jne 0x438039
sub edx, 2
cmp edx, edi
jne 0x43801f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x438061
lea eax, [edi + 2]
cmp edx, eax
je 0x438061
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00437f3f
add esp, 0x10
jmp 0x43815b
push esi
lea ecx, [ebp - 0x255]
call fcn.00438193
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4380a4
push dword [ebp - 0x25c]
jmp 0x438051
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4380e1
cmp word [ebp - 0x226], 0
je 0x438102
cmp word [ebp - 0x226], ax
jne 0x4380e1
cmp word [ebp - 0x224], 0
je 0x438102
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00437f3f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x43814e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4380bb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x438136
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x43815b
push 0x437d6f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0043e430
add esp, 0x10
jmp 0x43812b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b2a7
leave
ret

Function at 0x438a66
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x438a77
pop esi
ret
push ebx
push edi
push esi
call fcn.00438a2f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00430963
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x438a9f
push ebx
push esi
push edi
call fcn.0041ca70
add esp, 0xc
push 0
call fcn.0042fcfe
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x438e63
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00438ab4
Function at 0x43ea55
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043e9d1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x43ebcd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x43ebcd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43eb7c
jg 0x43eaae
test eax, eax
je 0x43eb72
push 1
push 0x1000
call fcn.00431d8d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43ead4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x43eb69
push 0x8000
push ebx
call fcn.0042c56a
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x43eb00
jg 0x43eafb
cmp ecx, 0x1000
jb 0x43eb00
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042f4cd
add esp, 0x10
cmp eax, 0xffffffff
je 0x43eb45
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x43eafb
jl 0x43eb2c
test ecx, ecx
jne 0x43eaed
push dword [ebp - 0xc]
push ebx
call fcn.0042c56a
push esi
call fcn.0042fcfe
add esp, 0xc
xor edi, edi
jmp 0x43ebde
cmp byte [edi + 0x24], 0
je 0x43eb5c
cmp dword [edi + 0x20], 5
jne 0x43eb5c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x43eb67
mov edi, dword [edi + 0x18]
jmp 0x43eb69
xor edi, edi
push esi
call fcn.0042fcfe
pop ecx
jmp 0x43ebde
test ecx, ecx
jg 0x43eb3e
jl 0x43eb7c
test eax, eax
jae 0x43eb3e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00433344
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43eb9f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43eb3e
jmp 0x43ebd6
push ebx
call fcn.004330d3
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43eb3e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x43ebde
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43ebdb
mov edi, dword [edi + 0x18]
jmp 0x43ebde
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00433344
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43f2f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43f31d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43f31d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x43fba9
Capabilities:
Accept command line arguments

Disassembly:
push 0x9c
mov eax, 0x44eb71
call fcn.0041bbe1
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
xor ecx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x88]
call fcn.00401a79
mov byte [ebp - 4], 1
call fcn.004412e5
push eax
lea ecx, [ebp - 0x70]
call fcn.00405537
push 0x37
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 2
push eax
mov ecx, 0x46f0cc
call fcn.00407b03
mov esi, eax
push 0x462348
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.00401b09
pop ecx
push esi
push eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
push dword [ebp - 0xa4]
call fcn.0040775b
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401a42
lea ecx, [ebp - 0x58]
call fcn.004024e4
lea ecx, [ebp - 0x40]
call fcn.004024e4
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 2
call fcn.004024e4
push 8
pop edi
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
push 0x45b7e0
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00421683
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x43fd06
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0x58]
call fcn.00409c0d
mov byte [ebp - 4], 5
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
push esi
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x58]
push 1
push eax
call fcn.00421962
push esi
push 1
push 1
push 0x4623a0
call fcn.00421962
add esp, 0x20
lea ecx, [ebp - 0x40]
mov edx, 0x491c0c
call fcn.00409c0d
cmp dword [ebp - 0x30], 0
je 0x43fcef
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push esi
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push 1
push eax
call fcn.00421962
add esp, 0x10
push esi
call fcn.00421ac1
pop ecx
lea ecx, [ebp - 0x40]
call fcn.004021d7
lea ecx, [ebp - 0x58]
call fcn.004021d7
lea ecx, [ebp - 0x70]
call fcn.004024e4
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0
call fcn.004024e4
call fcn.004410ee
cmp dword [0x491c68], edi
mov esi, 0x491c54
push ecx
mov eax, esi
mov ecx, esp
cmovae eax, dword [0x491c54]
push eax
call fcn.0040688f
mov ecx, dword [0x491ef8]
call fcn.00443725
pop ecx
test eax, eax
je 0x43fd55
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x491c68], edi
cmovae esi, dword [0x491c54]
push esi
call fcn.00426df1
cmp dword [ebp - 0x18], 0
pop ecx
je 0x43fd9b
cmp dword [ebp - 0x14], edi
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.00408142
test al, al
je 0x43fd9b
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00426df1
pop ecx
mov eax, dword [ebp - 0x14]
cmp eax, edi
jb 0x43fde9
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], ecx
cmp eax, 0x1000
jb 0x43fde0
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00402494
mov eax, dword [ebp - 0xa8]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xa4]
push eax
push ecx
call fcn.0041b2b5
pop ecx
pop ecx
call fcn.0041bb90
ret
Function at 0x4404c5
Capabilities:
Enumerate gui resources
Get graphical window text

Disassembly:
push 0x464
mov eax, 0x44ed12
call fcn.0041bbe1
mov esi, ecx
mov ecx, dword [esi]
call fcn.00443618
mov edx, dword [esi]
lea ecx, [ebp - 0x448]
mov ebx, eax
call fcn.00443636
lea eax, [ebp - 0x470]
xor esi, esi
push eax
mov dword [ebp - 4], esi
push ebx
mov dword [ebp - 0x470], esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 0x46c], esi
mov dword [ebp - 0x468], esi
mov dword [ebp - 0x464], esi
push 0x1c
lea eax, [ebp - 0x460]
mov byte [ebp - 4], 1
push eax
mov ecx, 0x46f0cc
call fcn.00407b03
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x440538
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x468]
lea edi, [ebp - 0x42c]
cmp dword [ebp - 0x46c], eax
cmovne eax, dword [ebp - 0x46c]
mov dword [ebp - 0x468], eax
mov eax, dword [ebp - 0x470]
mov dword [ebp - 0x430], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x418], 7
mov word [ebp - 0x42c], ax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x46c]
mov dword [ebp - 0x414], eax
test ecx, ecx
je 0x4405a2
push ecx
lea ecx, [ebp - 0x42c]
call fcn.0040220d
lea eax, [ebp - 0x430]
push eax
push 0x40ff38
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [ebp - 0x468]
lea ecx, [ebp - 0x42c]
sub esi, dword [ebp - 0x46c]
sar esi, 2
call fcn.004024e4
lea ecx, [ebp - 0x460]
call fcn.004024e4
cmp esi, 1
jle 0x44066e
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.0041cff0
mov esi, dword [ebp - 0x46c]
add esp, 0xc
jmp 0x440660
push 0x200
lea eax, [ebp - 0x410]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [ebp - 0x434], 8
lea eax, [ebp - 0x448]
lea ecx, [ebp - 0x410]
cmovae eax, dword [ebp - 0x448]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x440654
test dx, dx
je 0x440650
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x440654
add ecx, 4
add eax, 4
test dx, dx
jne 0x44062e
xor eax, eax
jmp 0x440659
sbb eax, eax
or eax, 1
test eax, eax
je 0x44066a
add esi, 4
cmp esi, dword [ebp - 0x468]
jne 0x440600
jmp 0x440685
mov ebx, dword [esi]
jmp 0x440685
mov eax, dword [ebp - 0x468]
mov ecx, dword [ebp - 0x46c]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x440685
mov ebx, dword [ecx]
lea ecx, [ebp - 0x46c]
call fcn.00402a01
lea ecx, [ebp - 0x448]
call fcn.004024e4
mov eax, ebx
call fcn.0041bb90
ret
Function at 0x440b99
Capabilities:
Create thread

Disassembly:
push 0x5c
mov eax, 0x44ee40
call fcn.0041bc4d
cmp byte [0x491fb5], 0
jne 0x440c16
xor esi, esi
lea eax, [ebp - 0x48]
push eax
push esi
push 0x491bc0
push 0x402fa0
push esi
push esi
mov dword [0x491f20], esi
mov dword [ebp - 0x48], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], esi
call fcn.004471c0
or dword [ebp - 4], 0xffffffff
mov dword [0x491f20], eax
jmp 0x440bef
cmp dword [ebp - 0x48], 0
je 0x440c0d
push esi
push esi
push 0x502
push dword [ebp - 0x48]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x491f20], 0
je 0x440c1c
call fcn.0041bb9f
ret
lea ecx, [ebp - 0x2c]
call fcn.00402071
mov dword [ebp - 4], 2
call fcn.00406ed4
test al, al
lea eax, [ebp - 0x44]
je 0x440c5c
push 0x2b
push 0x13
push eax
call fcn.0044023a
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401ab8
lea ecx, [ebp - 0x44]
call fcn.004021fd
lea ecx, [ebp - 0x2c]
call fcn.00445e27
jmp 0x440c77
push 0x29
push 0x11
push eax
call fcn.0044023a
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401ab8
lea ecx, [ebp - 0x44]
call fcn.004021fd
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x58]
call fcn.00405461
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x68]
call fcn.00404a01
push 0x467d7c
lea eax, [ebp - 0x68]
push eax
call fcn.0041ec7e
int3

Function at 0x440ca2
Capabilities:
Create thread

Disassembly:
push esi
call fcn.00421ccf
cmp byte [0x491fb5], 0
mov esi, eax
jne 0x440cff
cmp dword [0x491f1c], 0
jne 0x440cff
cmp word [0x491fbe], 3
push edi
mov edi, 0x491fb8
jne 0x440ce3
mov ecx, edi
call fcn.004021a8
test al, 1
je 0x440ce3
mov eax, dword [0x491cd0]
shr eax, 9
test al, 1
je 0x440cfe
push 0x491f24
xor eax, eax
push eax
push edi
push 0x4057c6
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x491f28], eax
pop edi
mov eax, esi
pop esi
ret
Function at 0x440dc9
Capabilities:
Check mutex on windows

Disassembly:
push 0x64
mov eax, 0x44eed0
call fcn.0041bbe1
mov eax, dword [0x491cd0]
shr eax, 0xe
test al, 1
je 0x440e6c
push 0x491bd8
lea ecx, [ebp - 0x28]
call fcn.00405537
and dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
push 0x462378
call fcn.00401a79
push 0x462348
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00401a79
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x28]
call fcn.00409e85
pop ecx
lea ecx, [ebp - 0x58]
call fcn.004024e4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.004024e4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x491f2c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x440e72
lea ecx, [ebp - 0x28]
call fcn.004024e4
call fcn.0041bb90
ret
push 0x2e
push 0x29
lea eax, [ebp - 0x70]
push eax
call fcn.0044023a
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.00445e27
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x38]
call fcn.00405461
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x50]
call fcn.00404a01
push 0x467d7c
lea eax, [ebp - 0x50]
push eax
call fcn.0041ec7e
int3

Function at 0x4412e5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x46b034]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x491c00], 0
push esi
mov esi, 0x491bf0
jne 0x441400
push ebx
lea eax, [ebp - 0x804]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x804]
mov ecx, esi
push eax
call fcn.0040220d
cmp dword [0x491c04], 8
mov eax, esi
cmovae eax, dword [0x491bf0]
xor ebx, ebx
push ebx
push eax
call fcn.00426968
pop ecx
pop ecx
test eax, eax
je 0x44135e
push 0x45b850
mov ecx, esi
call fcn.0040220d
mov ecx, esi
call fcn.00408521
cmp dword [0x491c00], ebx
je 0x441383
cmp dword [0x491c04], 8
mov eax, esi
push ebx
cmovae eax, dword [0x491bf0]
push eax
call fcn.00426968
pop ecx
pop ecx
test eax, eax
je 0x441396
push str.TEMP
call fcn.00427303
pop ecx
push eax
mov ecx, esi
call fcn.0040220d
cmp dword [0x491c00], ebx
je 0x4413bb
cmp dword [0x491c04], 8
mov eax, esi
push ebx
cmovae eax, dword [0x491bf0]
push eax
call fcn.00426968
pop ecx
pop ecx
test eax, eax
je 0x4413ce
push 0x462370
call fcn.00427303
pop ecx
push eax
mov ecx, esi
call fcn.0040220d
cmp dword [0x491c00], ebx
je 0x4413f3
cmp dword [0x491c04], 8
mov eax, esi
push ebx
cmovae eax, dword [0x491bf0]
push eax
call fcn.00426968
pop ecx
pop ecx
test eax, eax
je 0x4413ff
push 0x491bc0
mov ecx, esi
call fcn.0040556d
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041b2a7
leave
ret
Function at 0x445132
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x46b034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
cmp dword [esi + 0xc], 0x201
jne 0x445223
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0041cff0
mov eax, dword [esi + 0x18]
add esp, 0xc
mov dword [ebp - 0x218], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x218]
push eax
push edi
push 0x44b
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x244], eax
xor eax, eax
push 7
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], edi
lea edi, [ebp - 0x234]
pop ecx
mov dword [ebp - 0x254], 0x3c
mov dword [ebp - 0x238], 5
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push dword [ebx + 0x44]
call dword [sym.imp.USER32.dll_HideCaret]
mov eax, dword [ebx + 0xb8]
pop edi
cmp eax, dword [ebx + 0xbc]
je 0x445226
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x445226
and dword [eax], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b2a7
leave
ret 0xc
Function at 0x44ab80
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
xor bl, bl
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x44ab9d
mov eax, dword [esi]
test eax, eax
je 0x44acc1
cmp word [eax], 0
je 0x44acc1
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44acc1
test al, 0x10
jne 0x44acc1
cmp dword [esi + 0x14], 8
jb 0x44abcf
mov esi, dword [esi]
push 0x462398
push esi
call fcn.00421683
mov esi, eax
add esp, 8
test esi, esi
je 0x44acc1
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push esi
movlpd qword [esp + 0x18], xmm0
call fcn.00428cfb
push 2
push 0
push esi
call fcn.0042837c
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00428cfb
lea eax, [esp + 0x34]
push eax
push esi
call fcn.00429232
add esp, 0x24
cmp dword [esp + 0x10], 0x28
jbe 0x44acb8
xor eax, eax
mov dword [esp + 0x20], 0x48535844
push esi
push 1
mov word [esp + 0x40], ax
xorps xmm0, xmm0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x28]
push 0x28
push eax
mov dword [esp + 0x34], 0x28
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
movsd qword [esp + 0x40], xmm0
call fcn.00427965
add esp, 0x10
test eax, eax
je 0x44acb8
mov eax, dword [esp + 0x2c]
not eax
ror eax, 3
cmp eax, dword [esp + 0xc]
jne 0x44acb8
cmp dword [esp + 0x20], 0x48535844
jne 0x44acb8
cmp dword [esp + 0x24], 0x28
jne 0x44acb8
movzx ecx, word [esp + 0x38]
add ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
add ecx, dword [esp + 0x40]
add eax, 0x28
add eax, ecx
cmp eax, dword [esp + 0x10]
sete bl
push esi
call fcn.00421ac1
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41d330
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 0x41d361
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d349
add dl, dl
jne 0x41d36c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d3bd
xor eax, eax
add dl, dl
jne 0x41d379
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d45a
add dl, dl
jne 0x41d388
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d393
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d39e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d3a9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d3b3
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d358
mov eax, 1
add dl, dl
jne 0x41d3cb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d3d6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3c2
sub eax, ebx
mov ebx, 1
jne 0x41d409
mov ecx, 1
add dl, dl
jne 0x41d3ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3e6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d358
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d420
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d42b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d417
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 0x41d358
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d47b
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 0x41d358
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 0x41f5a0
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 0x10b6a8e
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 0x41f5ef
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 0x41f60e
mov ecx, edx
add ecx, ebx
jmp 0x41f60e
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 0x41f60e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f680
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 0x41f669
test esi, esi
jbe 0x41f680
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f65b
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 0x41f680
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f638
jmp 0x41f680
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f680
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 0x10b6a95
ret