joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c870
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x4c
push ebx
mov ebx, ecx
push esi
push edi
test ebx, ebx
jne 0x40c880
xor esi, esi
jmp 0x40c883
mov esi, dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
jne 0x40c898
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x40c975
mov edi, dword [ebx + 0x40]
test edi, edi
je 0x40c975
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
mov dword [esp + 0x10], ecx
jl 0x40c975
lea eax, [esp + 0xe]
push 2
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edi, [esp + 0xe]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40c975
push ebp
push eax
push eax
push 0x31
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x20]
push ecx
push 0x3c
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
lea edx, [esp + 0x20]
mov byte [esp + 0x34], 1
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov esi, dword [esp + 0x60]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
push edi
push esi
call ebp
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x48]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x40]
push 0x24
push ecx
push edx
push eax
push esi
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0x60]
push ecx
push esi
call ebp
mov edx, dword [esp + 0x18]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x1c]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4c
ret 8

Function at 0x40f1d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push str.Binary
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40f21e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40f21e
mov ecx, dword [esp + 0x18]
push ecx
push ebx
push eax
call fcn.00425cd0
add esp, 0xc
test eax, eax
jne 0x40f220
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x4131e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43fd9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x258
lea ecx, [esp + 0x30]
call fcn.00410090
mov ecx, dword [0x456054]
mov edx, dword [esp + 0x26c]
xor eax, eax
push 0xc
mov dword [esp + 0x264], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 4]
mov dword [esp + 4], 1
push eax
mov eax, dword [esp + 0x270]
push ecx
push edx
push eax
lea ecx, [esp + 0x44]
call fcn.00410490
lea ecx, [esp + 0x30]
mov dword [esp + 0x260], 0xffffffff
call fcn.004100b0
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
add esp, 0x264
ret
Function at 0x421ff9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x452580
cmp edx, dword [eax]
je 0x42201b
add eax, 8
inc ecx
cmp eax, 0x452610
jl 0x42200c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x452580]
jne 0x422149
mov eax, dword [0x4580dc]
cmp eax, 1
je 0x422123
test eax, eax
jne 0x42204c
cmp dword [0x451ad8], 1
je 0x422123
cmp edx, 0xfc
je 0x422149
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x422083
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00422380
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004212f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4220c6
lea eax, [ebp - 0x1a4]
push eax
call fcn.004212f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x445f50
push edi
call fcn.0041c580
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00422380
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00422390
lea eax, [ebp - 0xa0]
push 0x445f30
push eax
call fcn.00422390
push dword [esi + 0x452584]
lea eax, [ebp - 0xa0]
push eax
call fcn.00422390
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00423e5a
add esp, 0x2c
pop edi
jmp 0x422149
lea eax, [ebp + 8]
lea esi, [esi + 0x452584]
push 0
push eax
push dword [esi]
call fcn.004212f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x426090
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
push edi
cmp esi, ebx
jne 0x4260a5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
cmp byte [esi], 0
jne 0x4260b1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ebp, dword [esp + 0x14]
push ebp
call fcn.00426050
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, ebx
je 0x4261aa
push 0x8000
push esi
call fcn.004232ad
mov esi, eax
add esp, 8
cmp esi, ebx
jge 0x4260e5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 2
push ebx
push esi
call fcn.00420101
add esp, 0xc
test eax, eax
push esi
jge 0x426105
call fcn.0041f9ce
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
call fcn.004301d0
mov edi, eax
add esp, 4
cmp edi, 1
jae 0x426124
push esi
call fcn.0041f9ce
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push ebx
push ebx
push esi
call fcn.00420101
add esp, 0xc
test eax, eax
jge 0x426143
push esi
call fcn.0041f9ce
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
lea eax, [edi + 2]
push eax
call fcn.0041b740
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x426165
push esi
call fcn.0041f9ce
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push ebx
push esi
call fcn.0041fcec
add esp, 0xc
cmp edi, eax
push esi
je 0x426184
call fcn.0041f9ce
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
call fcn.0041f9ce
mov dword [ebp], ebx
mov dword [ebp + 4], edi
mov byte [ebx + edi], 0
mov edi, dword [ebp]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor ebx, ebx
mov dword [ebp + 4], ecx
jmp 0x4261f5
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp + 4], ecx
inc ecx
push ecx
call fcn.0041b740
mov edx, eax
add esp, 4
cmp edx, ebx
mov dword [ebp], edx
jne 0x4261d6
pop edi
mov dword [ebp + 4], ebx
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
pop edi
mov byte [ebp + 8], 0
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 0x30], ecx
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x426d70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
test ecx, ecx
jne 0x426d85
or eax, 0xffffffff
pop esi
mov dword [0x452f80], eax
not eax
ret
mov esi, dword [esp + 0xc]
mov eax, dword [0x452f80]
test esi, esi
je 0x426db2
push ebx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x452b80]
xor eax, edx
inc ecx
dec esi
jne 0x426d93
pop ebx
mov dword [0x452f80], eax
pop esi
not eax
ret
Function at 0x426f90
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, 0x2000
xor eax, eax
lea edi, [esi + 0x3efc0]
push 0x10000
rep stosd dword es:[edi], eax
lea edi, [esi + 0x1efc0]
mov eax, 0x80
xor ebx, ebx
push edi
push esi
mov dword [esi + 0x28], 0x10
mov dword [esi + 0x2c], 8
mov dword [esi + 0x30], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 8], ebx
call fcn.00426dc0
add esp, 0xc
cmp eax, 1
mov dword [esi + 0x20], eax
jge 0x426ff2
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], ebx
pop edi
pop esi
pop ebx
ret
cmp eax, 0x106
mov dword [esi + 0x1c], ebx
jae 0x427014
cmp dword [esi + 0x1c], ebx
jne 0x427014
push esi
call fcn.00427040
mov eax, dword [esi + 0x20]
add esp, 4
cmp eax, 0x106
jb 0x426ffc
mov dword [esi + 0xc], ebx
xor eax, eax
mov edx, dword [esi + 0xc]
xor ecx, ecx
mov cl, byte [edi + eax]
and edx, 0x1ff
and ecx, 0x3fff
shl edx, 5
xor ecx, edx
inc eax
cmp eax, 2
mov dword [esi + 0xc], ecx
jb 0x427019
pop edi
pop esi
pop ebx
ret
Function at 0x429d40
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push 0
push ecx
call fcn.0041c350
add esp, 0xc
ret

Function at 0x429ff0
Capabilities:
Get hostname

Disassembly:
mov eax, dword [esp + 0x18]
test eax, eax
je 0x429ffe
mov dword [eax], 0
push ebx
mov ebx, dword [esp + 8]
push ebp
push ebx
call fcn.0042a410
mov ebp, dword [esp + 0x28]
add esp, 4
cmp ebp, 0x493e0
mov dword [0x4584ac], 0
jb 0x42a02b
cmp ebp, 0x6ddd00
jbe 0x42a030
mov ebp, 0x36ee80
push esi
push edi
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x11c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebx + 0x130]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov dword [ebx + 0x118], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebx + 0x1e1]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x24]
mov byte [edx], 0
test edi, edi
je 0x42a0b8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebx + 0x161]
push 0x80
push eax
mov byte [eax], 0
call sub.WSOCK32.dll_gethostname
lea esi, [ebx + 0x1f4]
push esi
call fcn.00429df0
push ebx
push 0x42a160
mov dword [ebx], 0
call fcn.00429d40
push ebp
push esi
call fcn.00429e10
mov al, byte [ebx]
add esp, 0x14
test al, 2
pop edi
pop esi
mov dword [ebx], 0
je 0x42a13c
push ebp
push ebx
call fcn.0042a290
mov ecx, dword [esp + 0x28]
add esp, 8
test ecx, ecx
je 0x42a115
mov dword [ecx], eax
cmp eax, 1
jne 0x42a128
mov eax, dword [ebx]
pop ebp
or al, 1
mov dword [ebx], eax
mov eax, 1
pop ebx
ret
push ebx
mov dword [ebx], 0
call fcn.0042a410
add esp, 4
xor eax, eax
pop ebp
pop ebx
ret
push ebx
call fcn.0042a410
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x42a153
mov dword [eax], 2
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x42a660
Capabilities:
Get hostname

Disassembly:
sub esp, 0x200
push esi
mov esi, dword [esp + 0x208]
mov eax, dword [esi + 0x24]
test eax, eax
jge 0x42a6cc
lea eax, [esp + 0x104]
push 0x100
push eax
call sub.WSOCK32.dll_gethostname
test eax, eax
je 0x42a695
xor eax, eax
pop esi
add esp, 0x200
ret
lea ecx, [esp + 4]
push ecx
push esi
call fcn.0042a5a0
add esp, 8
test eax, eax
jne 0x42a6af
pop esi
add esp, 0x200
ret
lea edx, [esp + 4]
lea eax, [esp + 0x104]
push edx
push eax
call fcn.00421a60
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x24], eax
mov ecx, dword [esi + 0x24]
xor eax, eax
test ecx, ecx
setg al
pop esi
add esp, 0x200
ret
Function at 0x42a820
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x14]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x10], esi
mov edx, dword [esp + 0x18]
mov eax, edi
sub eax, esi
push ebx
lea ecx, [esi + ebp]
push eax
push ecx
push edx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x42a86a
test eax, eax
jl 0x42a86a
add esi, eax
cmp esi, edi
jge 0x42a873
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x2023
mov dword [esp + 0x10], eax
jb 0x42a837
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x42bf50
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x30], edx
mov edx, dword [ebp + 0x20]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
xor esi, esi
fld qword [esp + esi + 0x30]
fcomp qword [0x4467f0]
fnstsw ax
test ah, 1
jne 0x42c09a
fld qword [esp + esi + 0x30]
fst qword [esp + 8]
fcomp qword [0x4467e8]
fnstsw ax
test ah, 0x41
je 0x42c09a
lea eax, [esp + 0x1e]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x1e]
push ecx
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x22]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
call fcn.00426ab0
add esp, 0x20
test eax, eax
je 0x42c09a
mov dx, word [esp + 0x14]
mov ax, word [esp + 0x16]
mov cx, word [esp + 0x18]
mov word [esp + 0x20], dx
mov dx, word [esp + 0x1a]
mov word [esp + 0x22], ax
mov ax, word [esp + 0x1c]
mov word [esp + 0x28], dx
mov word [esp + 0x2a], ax
lea edx, [esp + esi + 0x48]
mov word [esp + 0x26], cx
mov cx, word [esp + 0x1e]
lea eax, [esp + 0x20]
push edx
push eax
mov word [esp + 0x34], cx
mov word [esp + 0x36], 0
call edi
test eax, eax
je 0x42c09a
add esi, 8
cmp esi, 0x18
jl 0x42bf8d
mov ecx, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x42c09a
cmp esi, 0xffffffff
je 0x42c09a
lea edx, [esp + 0x58]
lea eax, [esp + 0x50]
push edx
lea ecx, [esp + 0x4c]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
push esi
jne 0x42c0a2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42c0c0
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x30], edx
mov edx, dword [ebp + 0x20]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
xor esi, esi
fld qword [esp + esi + 0x30]
fcomp qword [0x4467f0]
fnstsw ax
test ah, 1
jne 0x42c20a
fld qword [esp + esi + 0x30]
fst qword [esp + 8]
fcomp qword [0x4467e8]
fnstsw ax
test ah, 0x41
je 0x42c20a
lea eax, [esp + 0x1e]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x1e]
push ecx
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x22]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
call fcn.00426ab0
add esp, 0x20
test eax, eax
je 0x42c20a
mov dx, word [esp + 0x14]
mov ax, word [esp + 0x16]
mov cx, word [esp + 0x18]
mov word [esp + 0x20], dx
mov dx, word [esp + 0x1a]
mov word [esp + 0x22], ax
mov ax, word [esp + 0x1c]
mov word [esp + 0x28], dx
mov word [esp + 0x2a], ax
lea edx, [esp + esi + 0x48]
mov word [esp + 0x26], cx
mov cx, word [esp + 0x1e]
lea eax, [esp + 0x20]
push edx
push eax
mov word [esp + 0x34], cx
mov word [esp + 0x36], 0
call edi
test eax, eax
je 0x42c20a
add esi, 8
cmp esi, 0x18
jl 0x42c0fd
mov ecx, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x42c20a
cmp esi, 0xffffffff
je 0x42c20a
lea edx, [esp + 0x58]
lea eax, [esp + 0x50]
push edx
lea ecx, [esp + 0x4c]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
push esi
jne 0x42c212
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42f840
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0041c2a0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42f90b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42f90b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42f8be
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x42f8c9
or bh, 8
and edi, 0x8000000
je 0x42f8e4
mov eax, dword [0x459adc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42f90b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42fce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x42fd0b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x42fd2f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42fd4a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x434b66
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x434ba8
call fcn.0043c25f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x434ba8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x434b9f
xor eax, eax
jmp 0x434bb0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00434bb6
pop edi
pop esi
pop ebx
ret 4

Function at 0x43cc23
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x43cc51
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43cc6f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043cb89
jmp 0x43cc6f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43cc6f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0043cb89
test edi, edi
mov eax, edi
jne 0x43cc59
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402fd8
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403430
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x463024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4034c8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4034a8
xor eax, eax
push ebp
push 0x4034a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4034e4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4034a8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x463024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x463024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4041d0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46504c], 0
je 0x404231
cmp word [0x465220], 0xd7b2
jne 0x4041f9
cmp dword [0x465228], 0
jbe 0x4041f9
mov eax, 0x46521c
call dword [0x465238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x463070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404258
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x463034], 0
jne 0x40424d
push 0
push 0x463068
push 0x463070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret