joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414180
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x4160b0
call fcn.00414894
and dword [ebp - 0x24], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov edi, dword [eax + 4]
xor esi, esi
mov edx, 0x4179a0
mov ecx, edi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x413f88
cmp eax, edi
jne 0x413f9a
mov esi, ebx
cmp dword [0x4179a4], ebx
jne 0x413fa7
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x413fd6
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x413f71
cmp dword [0x4179a4], 0
jne 0x413fd0
mov dword [0x4179a4], ebx
push 0x401028
push 0x40101c
call fcn.00414127
pop ecx
pop ecx
test eax, eax
je 0x413fd6
jmp 0x414110
mov dword [0x4174f4], ebx
cmp dword [0x4179a4], ebx
jne 0x413ff9
push 0x401018
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4179a4], 2
test esi, esi
jne 0x414006
xor eax, eax
mov ecx, 0x4179a0
xchg dword [ecx], eax
cmp dword [0x4179b0], 0
je 0x414034
push 0x4179b0
call fcn.004146c0
pop ecx
test eax, eax
je 0x414034
push 0
push 2
push 0
mov esi, dword [0x4179b0]
mov ecx, esi
call dword [0x418378]
call esi
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov ecx, dword [eax]
test ecx, ecx
je 0x414110
mov dword [ebp - 0x20], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x24]
movzx eax, word [ecx]
cmp ax, si
ja 0x4140a4
test ax, ax
je 0x41405d
test edx, edx
jne 0x4140a4
movzx eax, word [ecx]
test ax, ax
je 0x414072
cmp ax, si
ja 0x414072
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x41405d
test byte [ebp - 0x40], 1
je 0x41407e
movzx eax, word [ebp - 0x3c]
jmp 0x414081
push 0xa
pop eax
push eax
push ecx
push 0
push 0x400000
call main
mov dword [0x4174f0], eax
cmp dword [0x417508], 0
jne 0x4140ec
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x4140b5
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x24], edx
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x41404c
cmp dword [0x4174f4], 0
jne 0x414100
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x4174f0]
mov dword [ebp - 4], 0xfffffffe
jmp 0x41411c
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.004148dc
ret
call fcn.004147c8
jmp 0x413f3b

Function at 0x41459f
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4160f8
call fcn.00414a18
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4145ff
cmp eax, 0xffffffff
je 0x4145ff
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x4145f8
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x4145f8
cmp edx, 0x10000000
jae 0x4145f8
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x4145f5
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00414a5d
ret 4
Function at 0x414670
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4146ae
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4146a6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4146b0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x414696
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x414790
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4147a6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4147c1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

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 0x4010a4
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, eax
mov eax, dword [esi]
push edi
sub eax, 0x10
call fcn.00401773
mov ebx, eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
add ebx, 0x10
sub eax, 0x10
mov dword [ebp - 4], ebx
call fcn.00401773
mov edi, eax
mov eax, dword [esi]
add edi, 0x10
xor esi, esi
cmp dword [eax - 0xc], esi
mov dword [ebp + 0x10], edi
jne 0x401206
push 0x3c
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.00423c90
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x48]
push ecx
push esi
push esi
push eax
mov dword [ebp - 0x18], 0x104
mov dword [ebp - 0x48], 0x3c
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x40112e
mov esi, dword [ebp + 8]
call fcn.00401cde
lea eax, [edi - 0x10]
call fcn.0040175b
lea eax, [ebx - 0x10]
jmp 0x401232
push dword [ebp - 0x1c]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x18]
call fcn.004013fc
cmp dword [ebp - 0x3c], 5
mov byte [ebp - 0xc], 0x2f
jne 0x40114b
mov byte [ebp - 0xc], 0x5c
push dword [ebp - 0xc]
lea esi, [ebp - 8]
call fcn.0040143c
mov ebx, eax
test ebx, ebx
jl 0x401184
mov eax, dword [ebp - 8]
mov eax, dword [eax - 0xc]
sub eax, ebx
lea ecx, [ebp - 0xc]
dec eax
push ecx
call fcn.00401456
lea edi, [ebp - 4]
call fcn.0040158b
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040175b
mov edi, dword [ebp + 0x10]
cmp dword [ebp - 0x3c], 3
jne 0x40118e
push 0x3f
jmp 0x401196
cmp dword [ebp - 0x3c], 1
jne 0x4011a2
push 0x3b
lea esi, [ebp - 4]
xor ecx, ecx
call fcn.00401417
mov ebx, eax
test ebx, ebx
jl 0x4011c9
lea eax, [ebp - 0xc]
push eax
mov eax, ebx
lea esi, [ebp - 4]
call fcn.004014a5
mov edi, esi
call fcn.0040158b
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040175b
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
call fcn.0040daaf
lea esi, [ebp - 0xc]
mov dword [esp], 0x4256dc
call fcn.004013cc
mov eax, esi
push eax
lea eax, [ebp - 4]
call fcn.0040d62f
mov eax, dword [ebp - 0xc]
pop ecx
add eax, 0xfffffff0
call fcn.0040175b
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040175b
mov ebx, dword [ebp - 4]
push 0x3a
xor ecx, ecx
lea esi, [ebp - 4]
call fcn.00401417
test eax, eax
jle 0x40123b
add ebx, 0xfffffff0
mov eax, ebx
call fcn.00401773
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
lea eax, [edi - 0x10]
call fcn.0040175b
mov eax, ebx
call fcn.0040175b
mov eax, esi
jmp 0x401289
cmp dword [edi - 0xc], 0
je 0x401258
lea eax, [ebp + 0x10]
call fcn.0040d33b
push dword [ebx - 0xc]
lea eax, [ebp + 0x10]
push ebx
push eax
call fcn.00401c90
jmp 0x401263
lea eax, [ebp - 4]
lea edi, [ebp + 0x10]
call fcn.0040158b
mov esi, dword [ebp + 0x10]
add esi, 0xfffffff0
mov eax, esi
call fcn.00401773
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.0040175b
lea eax, [ebx - 0x10]
call fcn.0040175b
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40128e
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push 0x3c
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.00423c90
add esp, 0xc
push 0x64
pop eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 0x3c], esi
mov eax, dword [eax - 0xc]
push ecx
call fcn.004013fc
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x4012f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x4013be
push edi
push dword [ebp - 0x2c]
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0x28]
call fcn.004013fc
mov edi, dword [ebp + 0x14]
call fcn.0040158b
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040175b
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004013fc
mov edi, dword [ebp + 0x18]
call fcn.0040158b
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040175b
cmp dword [ebp - 0x20], ebx
je 0x40135d
push dword [ebp - 0x20]
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004013fc
mov edi, dword [ebp + 0x1c]
call fcn.0040158b
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040175b
cmp dword [ebp - 0x18], ebx
je 0x401384
push dword [ebp - 0x18]
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004013fc
mov edi, dword [ebp + 0x20]
call fcn.0040158b
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040175b
cmp dword [ebp - 8], ebx
je 0x4013ab
push dword [ebp - 8]
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004013fc
mov edi, dword [ebp + 0x24]
call fcn.0040158b
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040175b
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ax, word [ebp - 0x24]
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
pop edi
lea eax, [esi - 0x10]
call fcn.0040175b
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x401b79
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401b90
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x401ba2
xor eax, eax
jmp 0x401bd3
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401bc5
cmp edi, eax
jae 0x401b9e
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401bb7
cmp edi, eax
jae 0x401b9e
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x401dd4
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x401e1d
push 0xea60
push eax
mov byte [esi + 0x74], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x401e14
cmp dword [ebp - 4], 0x103
jne 0x401e14
push 0
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x64]
sub eax, 0x10
call fcn.0040175b
mov eax, dword [esi + 0x3c]
sub eax, 0x10
call fcn.0040175b
mov eax, dword [esi + 0x24]
sub eax, 0x10
call fcn.0040175b
mov eax, dword [esi + 0x20]
sub eax, 0x10
call fcn.0040175b
mov eax, dword [esi + 0x1c]
sub eax, 0x10
call fcn.0040175b
leave
ret

Function at 0x401e56
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea edi, [esi + 0x24]
call fcn.0040158b
mov eax, dword [ebp + 8]
lea edi, [esi + 0x20]
call fcn.0040158b
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp eax, ebx
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov dword [esi + 8], ebx
je 0x401e89
push eax
call edi
mov al, byte [ebp + 0x10]
mov byte [esi + 0x40], al
mov al, byte [ebp + 0x14]
mov byte [esi + 0x41], al
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x44], eax
mov al, byte [ebp + 0x1c]
mov byte [esi + 0x58], al
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x68], eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x402004
push ebx
push ebx
mov dword [esi + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x401ecc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401ef9
cmp byte [ebp + 0x14], bl
je 0x401ef7
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0x14]
push eax
push dword [esi + 0xc]
mov dword [ebp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [esi + 0xc]
call edi
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc], ebx
jmp 0x401ef9
xor eax, eax
pop edi
pop ebx
leave
ret 0x18
Function at 0x402a0f
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
push edi
push dword [esi + 0x5c]
mov byte [esi + 0x38], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp + 0x14]
mov byte [esi + 0x42], 0
push dword [ebp + 0x10]
mov dword [esi + 0x34], 3
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x402a9f
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0x3e5
cmp eax, ebx
jne 0x402aa1
jmp 0x402a7b
call edi
cmp eax, ebx
jne 0x402a81
push 1
call fcn.00403574
mov eax, esi
call fcn.00403558
test al, al
jne 0x402a8c
push 0xa
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esi + 0x38], 0
je 0x402a58
cmp dword [esi + 0x30], 0
jne 0x402a93
mov eax, dword [esi + 0x2c]
jmp 0x402aa1
mov eax, 0xe0000008
jmp 0x402aa1
mov esi, dword [esi + 0x2c]
test esi, esi
jle 0x402a9f
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x402aa8
Capabilities:
Query remote server for available data

Disassembly:
push ebx
push ebp
push esi
mov esi, eax
push edi
push dword [esi + 0x5c]
xor ebx, ebx
mov byte [esi + 0x38], bl
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push ebx
push ebx
push dword [esp + 0x20]
mov byte [esi + 0x42], bl
push dword [esp + 0x20]
mov dword [esi + 0x34], 8
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x402b33
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebp, 0x3e5
cmp eax, ebp
jne 0x402b35
jmp 0x402b10
call edi
cmp eax, ebp
jne 0x402b15
push 1
call fcn.00403574
mov eax, esi
call fcn.00403558
test al, al
jne 0x402b1f
push 0xa
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esi + 0x38], bl
je 0x402aed
cmp dword [esi + 0x30], ebx
jne 0x402b26
mov eax, dword [esi + 0x2c]
jmp 0x402b35
mov eax, 0xe0000008
jmp 0x402b35
mov esi, dword [esi + 0x2c]
cmp esi, ebx
jle 0x402b33
mov eax, dword [esp + 0x18]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x403731
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00423c90
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0
push eax
mov dword [ebp - 0x3c], 0x3c
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x40376e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403791
mov eax, dword [ebp - 0x30]
cmp eax, 3
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x40378f
cmp eax, 4
je 0x40378f
cmp eax, 1
je 0x40378f
cmp eax, 2
je 0x40378f
push 2
pop eax
jmp 0x403791
xor eax, eax
leave
ret 8

Function at 0x404190
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov eax, esi
neg eax
push edi
lea ecx, [esi + 4]
sbb eax, eax
and eax, ecx
push 0x80
push dword [eax]
call fcn.00422e59
pop ecx
pop ecx
lea edi, [esi + 4]
push edi
xor eax, eax
call fcn.004042c6
mov eax, dword [esi + 0x28]
push dword [eax]
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [edi]
call ebx
mov eax, dword [0x42a5a0]
mov ecx, 0x42a5a0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push 0xdc
lea eax, [ebp - 4]
push eax
call fcn.00401ae3
push 0x40a
push dword [edi]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [ebp - 4]
push edi
push eax
call ebx
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
lea ecx, [esi + 0x30]
push ecx
push 0x404228
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x38], eax
lea eax, [edi - 0x10]
call fcn.0040175b
pop edi
xor eax, eax
pop ebx
leave
ret

Function at 0x40446e
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x404484
xor al, al
jmp 0x4044f9
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov esi, dword [eax - 0xc]
lea eax, [esi + 1]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [edi], eax
jne 0x4044a9
xor al, al
jmp 0x4044f8
push ebx
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 4], ebx
jne 0x4044c9
lea esi, [ebp - 8]
call fcn.00404453
xor al, al
jmp 0x4044f7
mov eax, dword [ebp + 8]
push esi
push dword [eax]
push ebx
call fcn.00423cf0
mov byte [ebx + esi], 0
add esp, 0xc
lea esi, [ebp - 8]
call fcn.00404453
push dword [edi]
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, 1
pop ebx
pop esi
leave
ret 4
Function at 0x404abe
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push esi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x404b3e
push esi
lea eax, [ebp - 4]
push eax
call fcn.00403d8b
test al, al
jne 0x404af5
push 8
pop esi
jmp 0x404b4a
push dword [ebp - 4]
push esi
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x404b3e
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4259c8
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x404b47
cmp dword [ebp - 0x14], 0
je 0x404b47
test edi, edi
mov eax, dword [ebp - 0xc]
je 0x404b33
mov ecx, dword [eax + 8]
mov dword [edi], ecx
test ebx, ebx
je 0x404b47
mov eax, dword [eax + 0xc]
mov dword [ebx], eax
jmp 0x404b47
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
push dword [ebp - 4]
call fcn.00423832
pop ecx
mov eax, esi
pop esi
leave
ret

Function at 0x404b64
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [edi]
push ebx
xor ebx, ebx
push esi
sub eax, 0x10
mov dword [ebp - 4], ebx
call fcn.00401773
add eax, 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea esi, [ebp - 0xc]
call fcn.00403d1d
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x404c7b
push esi
lea eax, [ebp - 4]
push eax
call fcn.00403d8b
test al, al
je 0x404c64
push dword [ebp - 4]
push esi
push dword [ebp - 0x10]
lea esi, [ebp - 0xc]
call fcn.00403d1d
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x404c64
mov eax, dword [0x42a5a0]
mov ecx, 0x42a5a0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x404c0e
cmp dword [ebp - 0x14], ebx
je 0x404c0e
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 2]
push dword [ebp + 8]
movzx eax, word [eax]
push ecx
push eax
jmp 0x404c1b
push dword [ebp + 8]
push 0x4e2
push 0x409
lea eax, [ebp - 8]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.00403d0a
add esp, 0x14
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea esi, [ebp - 8]
call fcn.00403d1d
push eax
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x404c59
cmp dword [ebp - 0x1c], ebx
je 0x404c59
push dword [ebp - 0x20]
push edi
call fcn.00401d22
mov bl, 1
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040175b
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040175b
push dword [ebp - 4]
call fcn.00423832
mov al, bl
jmp 0x404c8e
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040175b
push ebx
call fcn.00423832
xor al, al
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x404dd6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, eax
mov dword [ebp - 4], 0xc8
push dword [ebp - 4]
call fcn.0042382d
pop ecx
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 8]
push ecx
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
jne 0x404e17
inc dword [ebp - 4]
jmp 0x404de6
test eax, eax
jne 0x404e65
cmp dword [ebp - 8], 1
je 0x404e3d
cmp dword [ebp - 8], 4
jne 0x404de6
push dword [ebx]
push 0x425980
push edi
call fcn.00403d0a
add esp, 0xc
mov byte [ebp + 0xf], 1
jmp 0x404e69
mov eax, dword [ebp - 4]
push esi
push ebx
lea esi, [ebp + 0xc]
mov byte [eax + ebx], 0
call fcn.00401cf3
call fcn.0040158b
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040175b
mov byte [ebp + 0xf], 1
pop esi
jmp 0x404e69
mov byte [ebp + 0xf], 0
push ebx
call fcn.00423832
mov al, byte [ebp + 0xf]
pop ecx
pop edi
pop ebx
leave
ret

Function at 0x4050a5
Capabilities:
Get file size

Disassembly:
mov eax, dword [eax]
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4050d3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test esi, esi
mov ebx, eax
je 0x4050ea
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop esi
ret