joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4135b0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x18
mov eax, dword [eax + 4]
push esi
add eax, 0xfffffe00
push edi
cmp eax, 8
mov esi, ecx
ja case.0x4135cc.515
jmp dword [eax*4 + 0x413738]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov ecx, dword [esi + 0x1c]
mov edi, eax
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x413663
mov eax, dword [esi + 0x25c]
cmp edi, eax
je case.0x4135cc.515
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je case.0x4135cc.515
mov eax, dword [esi + 0x25c]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne case.0x4135cc.515
mov ecx, esi
call fcn.00413560
mov dword [esi + 0x25c], 0
pop edi
pop esi
add esp, 0x18
ret 4
test edi, edi
je case.0x4135cc.515
mov eax, dword [esi + 0x25c]
cmp edi, eax
je case.0x4135cc.515
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4136b5
mov edx, dword [esi + 0x25c]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4136b5
mov dword [esi + 0x25c], eax
push 0
push edi
mov ecx, esi
call fcn.00412fa0
test eax, eax
je case.0x4135cc.515
jmp 0x413717
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
push edx
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov edi, eax
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4136fd
cmp edi, dword [esi + 0x25c]
je case.0x4135cc.515
jmp 0x41364a
test edi, edi
je case.0x4135cc.515
cmp edi, dword [esi + 0x25c]
je case.0x4135cc.515
push 0
push edi
mov ecx, esi
call fcn.00412fa0
test eax, eax
je case.0x4135cc.515
push 0x2ee0
push 0x190
push edi
mov ecx, esi
mov dword [esi + 0x25c], edi
call fcn.00413400
pop edi
pop esi
add esp, 0x18
ret 4
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, 0x454580
cmp edx, dword [eax]
je 0x42201b
add eax, 8
inc ecx
cmp eax, 0x454610
jl 0x42200c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x454580]
jne 0x422149
mov eax, dword [0x45a0dc]
cmp eax, 1
je 0x422123
test eax, eax
jne 0x42204c
cmp dword [0x453ad8], 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 0x447f50
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 0x447f30
push eax
call fcn.00422390
push dword [esi + 0x454584]
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 + 0x454584]
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 0x425be0
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 0x425bf5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
cmp byte [esi], 0
jne 0x425c01
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ebp, dword [esp + 0x14]
push ebp
call fcn.00425ba0
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, ebx
je 0x425cfa
push 0x8000
push esi
call fcn.004232ad
mov esi, eax
add esp, 8
cmp esi, ebx
jge 0x425c35
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 0x425c55
call fcn.0041f9ce
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
call fcn.00432109
mov edi, eax
add esp, 4
cmp edi, 1
jae 0x425c74
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 0x425c93
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 0x425cb5
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 0x425cd4
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 0x425d45
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 0x425d26
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 0x427160
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jne 0x427173
mov dword [ebp - 4], 0xffffffff
jmp 0x4271bc
mov eax, dword [0x454f80]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
je 0x4271bc
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp - 4]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
mov edx, dword [eax*4 + 0x454b80]
xor edx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
sub ecx, 1
mov dword [ebp + 0xc], ecx
cmp dword [ebp + 0xc], 0
jne 0x427181
mov edx, dword [ebp - 4]
mov dword [0x454f80], edx
mov eax, dword [ebp - 4]
xor eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x42bce0
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 0x42bf90
Capabilities:
Get hostname

Disassembly:
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42bf9e
mov dword [eax], 0
push ebx
mov ebx, dword [esp + 8]
push ebp
push ebx
call fcn.0042c3b0
mov ebp, dword [esp + 0x28]
add esp, 4
cmp ebp, 0x493e0
mov dword [0x45a4ac], 0
jb 0x42bfcb
cmp ebp, 0x6ddd00
jbe 0x42bfd0
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 0x42c058
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.0042bd90
push ebx
push 0x42c100
mov dword [ebx], 0
call fcn.0042bce0
push ebp
push esi
call fcn.0042bdb0
mov al, byte [ebx]
add esp, 0x14
test al, 2
pop edi
pop esi
mov dword [ebx], 0
je 0x42c0dc
push ebp
push ebx
call fcn.0042c230
mov ecx, dword [esp + 0x28]
add esp, 8
test ecx, ecx
je 0x42c0b5
mov dword [ecx], eax
cmp eax, 1
jne 0x42c0c8
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.0042c3b0
add esp, 4
xor eax, eax
pop ebp
pop ebx
ret
push ebx
call fcn.0042c3b0
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x42c0f3
mov dword [eax], 2
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x42c600
Capabilities:
Get hostname

Disassembly:
sub esp, 0x200
push esi
mov esi, dword [esp + 0x208]
mov eax, dword [esi + 0x24]
test eax, eax
jge 0x42c66c
lea eax, [esp + 0x104]
push 0x100
push eax
call sub.WSOCK32.dll_gethostname
test eax, eax
je 0x42c635
xor eax, eax
pop esi
add esp, 0x200
ret
lea ecx, [esp + 4]
push ecx
push esi
call fcn.0042c540
add esp, 8
test eax, eax
jne 0x42c64f
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 0x42c7c0
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 0x42c80a
test eax, eax
jl 0x42c80a
add esi, eax
cmp esi, edi
jge 0x42c813
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x2023
mov dword [esp + 0x10], eax
jb 0x42c7d7
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 0x42def0
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 [0x4487f0]
fnstsw ax
test ah, 1
jne 0x42e03a
fld qword [esp + esi + 0x30]
fst qword [esp + 8]
fcomp qword [0x4487e8]
fnstsw ax
test ah, 0x41
je 0x42e03a
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.0042e1f0
add esp, 0x20
test eax, eax
je 0x42e03a
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 0x42e03a
add esi, 8
cmp esi, 0x18
jl 0x42df2d
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 0x42e03a
cmp esi, 0xffffffff
je 0x42e03a
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 0x42e042
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 0x42e060
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 [0x4487f0]
fnstsw ax
test ah, 1
jne 0x42e1aa
fld qword [esp + esi + 0x30]
fst qword [esp + 8]
fcomp qword [0x4487e8]
fnstsw ax
test ah, 0x41
je 0x42e1aa
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.0042e1f0
add esp, 0x20
test eax, eax
je 0x42e1aa
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 0x42e1aa
add esi, 8
cmp esi, 0x18
jl 0x42e09d
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 0x42e1aa
cmp esi, 0xffffffff
je 0x42e1aa
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 0x42e1b2
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 0x431a60
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 0x431b2b
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 0x431b2b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x431ade
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x431ae9
or bh, 8
and edi, 0x8000000
je 0x431b04
mov eax, dword [0x45badc]
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 0x431b2b
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 0x431f00
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 0x431f2b
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 0x431f4f
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 0x431f6a
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 0x436d8b
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 0x436dcd
call fcn.0043e47f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x436dcd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x436dc4
xor eax, eax
jmp 0x436dd5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00436ddb
pop edi
pop esi
pop ebx
ret 4

Function at 0x43ee43
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 0x43ee71
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43ee8f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043eda9
jmp 0x43ee8f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43ee8f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0043eda9
test edi, edi
mov eax, edi
jne 0x43ee79
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x41f2f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49bbfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0049026d
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41f372
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048d58d
mov eax, dword [eax]
push 0x4c41d0
push eax
call fcn.0047ff54
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004904f8
test bl, bl
je 0x41f372
push 0x4c41d0
lea ecx, [esp + 0xc]
call fcn.00490888
push 0x4c7dbc
lea ecx, [esp + 0xc]
call fcn.00490888
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41f3ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004904f8
jmp 0x41f479
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x41f432
lea edx, [esp + 0x7c]
push 0x4c7db8
push edx
call fcn.0047ff54
add esp, 8
test eax, eax
je 0x41f432
lea eax, [esp + 0x7c]
push 0x4c7db4
push eax
call fcn.0047ff54
add esp, 8
test eax, eax
je 0x41f432
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41f3c2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004904f8
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x41fc90
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41fcf2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc