joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425b90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x14]
push ebx
push esi
push edi
mov ebx, eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00425b60
push ebp
push 0x415910
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
xor edx, edx
call fcn.0040baf0
call sub.kernel32.dll_GetEnvironmentStringsW
mov edi, eax
mov esi, eax
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00420b50
jmp 0x425c65
lea edx, [ebp - 4]
mov eax, esi
call fcn.0040ba10
mov edx, dword [ebp - 4]
mov ecx, 1
mov al, 0x3d
call fcn.0040c680
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx - 1]
mov eax, dword [ebp - 4]
mov edx, 1
call fcn.0040c3f0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00420b50
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.0040c1d0
test eax, eax
jne 0x425c58
push dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x425c46
mov ecx, dword [ecx - 4]
sub ecx, ebx
lea edx, [ebx + 1]
mov eax, dword [ebp - 4]
call fcn.0040c3f0
jmp 0x425c6c
mov eax, esi
call fcn.00404f20
lea eax, [esi + eax*2]
lea esi, [eax + 2]
cmp word [esi], 0
jne 0x425bf0
push edi
call sub.kernel32.dll_FreeEnvironmentStringsW
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00425b60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x425c90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor esi, esi
call sub.kernel32.dll_GetEnvironmentStringsA
mov ebx, eax
mov edi, eax
test eax, eax
je 0x425cc4
jmp 0x425cbf
add esi, 1
mov eax, edi
call fcn.00404f00
add eax, edi
lea edi, [eax + 1]
cmp byte [edi], 0
jne 0x425cb0
push ebx
call sub.kernel32.dll_FreeEnvironmentStringsA
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x425ce0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 4]
push ebx
push esi
push edi
mov esi, eax
mov dword [ebp - 4], edx
mov eax, edx
xor edx, edx
call fcn.00409460
call sub.kernel32.dll_GetEnvironmentStringsA
mov edi, eax
mov ebx, eax
test eax, eax
je 0x425d4f
jmp 0x425d1f
sub esi, 1
mov eax, ebx
call fcn.00404f00
add eax, ebx
lea ebx, [eax + 1]
cmp byte [ebx], 0
setne dl
cmp esi, 1
setg al
and dl, al
jne 0x425d10
cmp byte [ebx], 0
je 0x425d4f
mov ecx, dword [ebp - 4]
xor dx, dx
mov eax, ebx
call fcn.00409e10
mov eax, dword [ebp - 4]
xor cl, cl
mov dx, 1
call fcn.0040ab30
push edi
call sub.kernel32.dll_FreeEnvironmentStringsA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425e00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x78]
push ebx
push esi
push edi
mov esi, eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x5c], 0
xor eax, eax
push fcn.00425df0
push ebp
push 0x415910
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x44]
xor cl, cl
mov edx, 0x44
call dword [0x62f980]
mov dword [ebp - 0x44], 0x44
mov word [ebp - 0x14], 1
mov ecx, 1
mov edx, esi
mov al, 0x22
call fcn.0040c680
test eax, eax
jne 0x425e80
mov eax, 0x66a680
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], esi
mov eax, 0x66a680
mov dword [ebp - 0x60], eax
lea edx, [ebp - 0x68]
lea eax, [ebp - 0x5c]
mov ecx, 2
call fcn.0040bc80
jmp 0x425e8a
lea eax, [ebp - 0x5c]
mov edx, esi
call fcn.0040baf0
test ebx, ebx
je 0x425ec0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x78], eax
mov eax, 0x66a690
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ebx
mov eax, 0x66a558
mov dword [ebp - 0x6c], eax
lea edx, [ebp - 0x78]
lea eax, [ebp - 0x5c]
mov ecx, 3
call fcn.0040bc80
jmp 0x425ed0
mov ecx, 0x66a558
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x5c]
call fcn.0040bb30
test edi, 1
setne al
movzx eax, al
neg eax
lea edx, [ebp - 0x54]
push edx
lea edx, [ebp - 0x44]
push edx
push 0
push 0
push 0x20
push eax
push 0
push 0
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x425efd
mov eax, 0x6f82e0
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x425f58
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], 0x12
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], 0
lea eax, [ebp - 0x78]
push eax
push 1
mov ecx, dword [str.Failed_to_execute___s___error_code:__d]
mov eax, 0x668808
mov edx, 1
call fcn.00422e40
mov edi, eax
call sub.kernel32.dll_GetLastError
mov dword [edi + 0x10], eax
mov edx, 0x425f4a
mov ecx, ebp
mov eax, edi
call fcn.004157d0
mov ebx, dword [ebp - 0x54]
push 0xffffffffffffffff
push ebx
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0xffffffff
je 0x425f88
lea eax, [ebp - 0x58]
push eax
push ebx
call sub.kernel32.dll_GetExitCodeProcess
push ebx
call sub.kernel32.dll_CloseHandle
push dword [ebp - 0x50]
call sub.kernel32.dll_CloseHandle
mov esi, dword [ebp - 0x58]
jmp 0x425fe5
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], 0x12
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], 0
lea eax, [ebp - 0x78]
push eax
push 1
mov ecx, dword [str.Failed_to_execute___s___error_code:__d]
mov eax, 0x668808
mov edx, 1
call fcn.00422e40
mov edi, eax
call sub.kernel32.dll_GetLastError
mov dword [edi + 0x10], eax
push ebx
call sub.kernel32.dll_CloseHandle
push dword [ebp - 0x50]
call sub.kernel32.dll_CloseHandle
mov edx, 0x425fd7
mov ecx, ebp
mov eax, edi
call fcn.004157d0
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00425df0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426020
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x6f9140], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x6f8d40], eax
mov eax, dword [ebp - 0x90]
mov dword [0x6f8d50], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x6f8d60], eax
mov eax, dword [ebp - 0x88]
mov dword [0x6f8d70], eax
mov edx, 0x6f8d81
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.00403340
lea eax, [ebp - 0x80]
call fcn.00404f00
mov byte [0x6f8d80], al
mov eax, 0x66a694
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x6f9150], eax
test eax, eax
je 0x4260bf
mov eax, 0x66a6a0
push eax
push dword [0x6f9150]
call sub.kernel32.dll_GetProcAddress
mov dword [0x6f9140], eax
cmp dword [0x6f8d50], 6
jae 0x4260db
mov dword [0x6305a0], 0
cmp dword [0x6f8d50], 6
jb 0x4260ee
cmp dword [0x6f8d60], 1
jb 0x4260ee
mov dword [0x6305b0], 2
cmp dword [0x6f9150], 0
je 0x426135
cmp dword [0x6f8d50], 6
jb 0x426116
mov eax, str.GetTimeZoneInformationForYear
push eax
push dword [0x6f9150]
call sub.kernel32.dll_GetProcAddress
mov dword [0x630cf0], eax
cmp dword [0x6f9150], 0
je 0x426135
mov eax, str.GetFinalPathNameByHandleA
push eax
push dword [0x6f9150]
call sub.kernel32.dll_GetProcAddress
mov dword [0x630ce0], eax
mov esp, ebp
pop ebp
ret
Function at 0x43d900
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov eax, edx
xor edx, edx
call fcn.0040baf0
call sub.kernel32.dll_GetEnvironmentStringsW
mov dword [ebp - 0x10], eax
test eax, eax
je 0x43d974
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
jmp 0x43d947
sub dword [ebp - 4], 1
mov eax, dword [ebp - 0xc]
call fcn.00404f20
shl eax, 1
add eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp word [eax], 0
je 0x43d957
cmp dword [ebp - 4], 1
jg 0x43d930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0
je 0x43d96c
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.0040ba10
push dword [ebp - 0x10]
call sub.kernel32.dll_FreeEnvironmentStringsW
mov esp, ebp
pop ebp
ret

Function at 0x43dd00
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov byte [ebp - 0xc], cl
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_GetLocaleInfoW
mov dword [ebp - 0x1c], eax
cmp eax, 2
jle 0x43ddb0
mov eax, dword [ebp - 0x1c]
sub eax, 2
test eax, eax
jl 0x43ddcc
mov dword [ebp - 0x20], 0xffffffff
nop word [eax + eax]
add dword [ebp - 0x20], 1
mov edx, dword [ebp - 0x20]
mov dx, word [ebp + edx*2 - 0x18]
mov word [ebp - 0x24], dx
mov edx, dword [ebp - 0x20]
mov dx, word [ebp + edx*2 - 0x18]
cmp dx, 0x20
jb 0x43ddcc
sub dx, 0x20
je 0x43dda0
add dx, 0xff80
je 0x43dda0
sub dx, 0x1f62
jb 0x43ddcc
sub dx, 1
jbe 0x43dda0
sub dx, 6
je 0x43dda0
sub dx, 0x26
jne 0x43ddcc
nop dword [eax]
cmp eax, dword [ebp - 0x20]
jg 0x43dd48
jmp 0x43ddcc
cmp dword [ebp - 0x1c], 2
jne 0x43ddc0
mov ax, word [ebp - 0x18]
mov word [ebp - 0x24], ax
jmp 0x43ddcc
mov al, byte [ebp - 0xc]
call fcn.0040be30
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
sub ax, 0x7f
jbe 0x43de50
sub ax, 0x21
je 0x43de70
sub ax, 0x17
je 0x43de80
sub ax, 0x222
je 0x43de90
sub ax, 0x392
je 0x43dea0
sub ax, 1
je 0x43deb0
sub ax, 0x1996
je 0x43dec0
sub ax, 1
je 0x43ded0
sub ax, 6
je 0x43dee0
sub ax, 0xb
je 0x43df00
sub ax, 0x1b
je 0x43def0
sub ax, 0x367
je 0x43df10
jmp 0x43df20
mov ax, word [ebp - 0x24]
call fcn.0040bed0
mov byte [ebp - 0x10], al
jmp 0x43df30
mov byte [ebp - 0x10], 0x20
jmp 0x43df30
mov byte [ebp - 0x10], 0x2e
jmp 0x43df30
mov byte [ebp - 0x10], 0x27
jmp 0x43df30
mov byte [ebp - 0x10], 0x2c
jmp 0x43df30
mov byte [ebp - 0x10], 0x27
jmp 0x43df30
mov byte [ebp - 0x10], 0x20
jmp 0x43df30
mov byte [ebp - 0x10], 0x20
jmp 0x43df30
mov byte [ebp - 0x10], 0x20
jmp 0x43df30
mov byte [ebp - 0x10], 0x20
jmp 0x43df30
mov byte [ebp - 0x10], 0x2d
jmp 0x43df30
mov byte [ebp - 0x10], 0x27
jmp 0x43df30
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x10], al
nop word [eax + eax]
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x44cb30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10c]
push ebx
push esi
push edi
mov esi, eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.0044cb20
push ebp
push 0x415910
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp + 0xc]
push edi
push ebx
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x18], eax
test eax, eax
jne 0x44cc21
cmp byte [ebp + 8], 0
je 0x44cbf0
push 0xff
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
mov eax, edi
call fcn.00405710
lea ecx, [ebp - 0xc]
lea eax, [ebp - 0x10c]
xor dx, dx
call fcn.00409d30
lea eax, [ebp - 0xc]
xor cl, cl
xor dx, dx
call fcn.0040ab30
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov eax, 0x672ea4
mov edx, 1
call fcn.00422e40
mov edx, 0x44cb7c
mov ecx, ebp
call fcn.004157d0
mov dword [ebp - 4], edi
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov eax, 0x672ea4
mov edx, 1
call fcn.00422e40
mov edx, 0x44cbf0
mov ecx, ebp
call fcn.004157d0
push dword [esi + 0x18]
push ebx
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x44cce1
cmp byte [ebp + 8], 0
je 0x44ccb0
push 0xff
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
mov eax, edi
call fcn.00405710
lea ecx, [ebp - 0xc]
lea eax, [ebp - 0x10c]
xor dx, dx
call fcn.00409d30
lea eax, [ebp - 0xc]
xor cl, cl
xor dx, dx
call fcn.0040ab30
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov eax, 0x672ea4
mov edx, 1
call fcn.00422e40
mov edx, 0x44cc3f
mov ecx, ebp
call fcn.004157d0
mov dword [ebp - 4], edi
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov eax, 0x672ea4
mov edx, 1
call fcn.00422e40
mov edx, 0x44ccb0
mov ecx, ebp
call fcn.004157d0
push dword [esi + 0x18]
push ebx
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x1c]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.0044c2d0
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0044cb20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4533c0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
push dword [eax + 8]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x4533da
mov dword [ebx + 0x10], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45d670
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x204]
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0x204], 0
lea eax, [ebp - 0x200]
call fcn.0040ef60
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
xor eax, eax
push fcn.0045d5d0
push ebp
push 0x415910
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je case.0x45d7c3.0
mov eax, dword [ebp - 8]
mov edx, dword [eax]
xor eax, eax
test edx, edx
je 0x45d733
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0
jne 0x45d790
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0xf
jne case.0x45d7c3.0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004610c0
mov dword [ebp - 0x80], eax
test eax, eax
je case.0x45d7c3.0
mov eax, dword [ebp - 0x80]
mov eax, dword [eax]
mov edx, 0x673328
call fcn.0040e500
test al, al
je case.0x45d7c3.0
mov eax, dword [ebp - 0x80]
test dword [eax + 0x3c], 4
je case.0x45d7c3.0
nop dword [eax + eax]
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x10], 0
je 0x45d7b9
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 4]
je 0x45d7b3
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx]
jne 0x45d7b9
mov byte [ebp - 0x10], 1
jmp 0x45d7bd
mov byte [ebp - 0x10], 0
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
jmp dword [eax*4 + 0x672abc]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0045d5d0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x462d50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x20c]
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
sub eax, 1
cmp eax, 0x102
ja 0x462d90
lea eax, [ebp - 0x20c]
mov edx, ebx
call fcn.00462b50
jmp 0x462d99
mov eax, ebx
xor edx, edx
call fcn.0040baf0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ab0f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
lea edi, [ecx - 1]
test edi, edi
jl 0x4ab11f
mov ebx, 0xffffffff
nop
add ebx, 1
mov cl, al
xor cl, byte [edx]
movzx esi, cl
mov ecx, eax
shr ecx, 8
xor ecx, dword [esi*4 + 0x6f9cc0]
mov eax, ecx
add edx, 1
cmp ebx, edi
jl 0x4ab100
pop edi
pop esi
pop ebx
ret
Function at 0x4ac010
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
test edx, edx
jne 0x4ac020
xor eax, eax
jmp 0x4ac0c7
not ebx
jmp 0x4ac095
movzx edi, byte [edx]
xor edi, ebx
and edi, 0xff
mov esi, ebx
shr esi, 8
xor esi, dword [edi*4 + 0x633d00]
mov ebx, esi
movzx edi, byte [edx + 1]
xor edi, esi
and edi, 0xff
mov esi, ebx
shr esi, 8
xor esi, dword [edi*4 + 0x633d00]
mov ebx, esi
movzx edi, byte [edx + 2]
xor edi, esi
and edi, 0xff
mov esi, ebx
shr esi, 8
xor esi, dword [edi*4 + 0x633d00]
mov ebx, esi
movzx edi, byte [edx + 3]
xor edi, esi
and edi, 0xff
mov esi, ebx
shr esi, 8
xor esi, dword [edi*4 + 0x633d00]
mov ebx, esi
add edx, 4
sub ecx, 4
cmp ecx, 4
jae 0x4ac028
jmp 0x4ac0bf
movzx edi, byte [edx]
xor edi, ebx
and edi, 0xff
mov esi, ebx
shr esi, 8
xor esi, dword [edi*4 + 0x633d00]
mov ebx, esi
add edx, 1
sub ecx, 1
test ecx, ecx
jne 0x4ac0a0
not ebx
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4d76a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 1
je 0x4d76bb
jmp 0x4d76c7
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4d76cf
jmp 0x4d76d8
jmp 0x4d777f
xor eax, eax
push 0x4d775f
push ebp
push 0x415ce0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_LoadResource
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x1c], 0
jne 0x4d770e
jmp 0x4d7732
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_SizeofResource
mov ebx, eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x1c]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, dword [ebp - 0xc]
mov ecx, ebx
call fcn.0044c2d0
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
jne 0x4d7741
jmp 0x4d7754
cmp dword [ebp - 8], 0
jne 0x4d7749
jmp 0x4d7754
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
jmp 0x4d777f
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4d9580
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
lea esp, [esp - 4]
mov esi, eax
cmp dword [eax + 0x14], 0xca
jne 0x4d95b7
mov eax, esi
call fcn.004ddf90
cmp byte [esi + 0x40], 0
je 0x4d95b0
mov dword [esi + 0x14], 0xcf
mov byte [esp], 1
jmp 0x4d9667
mov dword [esi + 0x14], 0xcb
cmp dword [esi + 0x14], 0xcb
jne 0x4d9648
mov eax, dword [esi + 0x188]
cmp byte [eax + 0x10], 0
je 0x4d963b
nop dword [eax]
cmp dword [esi + 8], 0
je 0x4d95e5
mov eax, esi
mov edx, dword [esi + 8]
call dword [edx]
mov eax, esi
mov edx, dword [esi + 0x188]
call dword [edx]
mov ebx, eax
test eax, eax
jne 0x4d9600
mov byte [esp], 0
jmp 0x4d9667
cmp ebx, 2
je 0x4d963b
cmp dword [esi + 8], 0
je 0x4d95e5
cmp ebx, 3
sete al
cmp ebx, 1
sete dl
or al, dl
je 0x4d95d8
mov eax, dword [esi + 8]
add dword [eax + 4], 1
mov eax, dword [esi + 8]
mov edx, dword [eax + 4]
cmp edx, dword [eax + 8]
jl 0x4d95d8
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x114]
add dword [edx + 8], eax
jmp 0x4d95d8
mov eax, dword [esi + 0x70]
mov dword [esi + 0x78], eax
jmp 0x4d965d
cmp dword [esi + 0x14], 0xcc
je 0x4d965d
mov ecx, dword [esi + 0x14]
mov dl, 0x14
mov eax, esi
call fcn.004d9950
mov eax, esi
call fcn.004d9680
mov byte [esp], al
mov al, byte [esp]
lea esp, [esp + 4]
pop esi
pop ebx
ret
Function at 0x4f2780
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x38]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_GetProcessAffinityMask
test eax, eax
je 0x4f27d8
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
nop dword [eax]
mov eax, 1
mov ecx, dword [ebp - 0x2c]
shl eax, cl
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x30]
and eax, dword [ebp - 0x38]
je 0x4f27c9
add dword [ebp - 4], 1
add dword [ebp - 0x2c], 1
cmp dword [ebp - 0x2c], 0x1f
jle 0x4f27b0
jmp 0x4f27e7
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x500d10
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov byte [ebp - 0xc], 0
mov eax, dword [ebp - 8]
push dword [eax - 8]
call sub.user32.dll_GetClipboardData
mov edx, dword [ebp - 8]
mov dword [edx - 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax - 0x14], 0
jne 0x500d3e
jmp 0x500dac
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalSize
mov edx, dword [ebp - 8]
mov dword [edx - 0x1c], eax
mov eax, dword [ebp - 8]
cmp dword [eax - 0x1c], 0
jg 0x500d5a
jmp 0x500dac
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalLock
mov edx, dword [ebp - 8]
mov dword [edx - 0x18], eax
xor eax, eax
push fcn.00500cf0
push ebp
push 0x415910
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax - 0x18]
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 0x1c]
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
call dword [ebx + 0x84]
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00500cf0
mov byte [ebp - 0xc], 1
mov al, byte [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x501530
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x24]
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
xor eax, eax
push fcn.00501510
push ebp
push 0x415910
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
push eax
push 2
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x501583
jmp 0x501608
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
push edx
push eax
lea eax, [ebp - 0x1c]
call fcn.0046dd70
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x10]
call fcn.0046dcc0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
cmp dword [0x6321e0], 0
je 0x5015ba
jmp 0x5015bf
call fcn.0046e360
mov ebx, dword [0x6321e0]
mov eax, str._DataSize
push eax
push dword [ebp - 0x18]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x20]
mov edx, str.TWin32WidgetSet.ClipboardGetOwnerShip_DataHandle
mov eax, ebx
call fcn.0046f870
mov eax, dword [ebp - 0xc]
mov byte [eax - 0x10], 0
jmp 0x50165f
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x14], eax
xor eax, eax
push fcn.005014f0
push ebp
push 0x415910
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
mov ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
call dword [ebx + pe_nt_image_headers32]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.005014f0
push dword [ebp - 0x10]
push dword [ebp - 4]
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00501510
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x56dcb0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
xor eax, eax
push fcn.0056dc90
push ebp
push 0x415910
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x6b8320]
lea eax, [ebp - 0x10]
call fcn.0040af60
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextLengthW
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.0040b290
cmp dword [ebp - 0xc], 0
jg 0x56dd0a
jmp 0x56dd2a
mov eax, dword [ebp - 0xc]
lea eax, [eax + 1]
push eax
mov eax, dword [ebp - 0x10]
cmp eax, 0
jne 0x56dd1e
mov eax, 0x6f82e0
push eax
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextW
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.0040b290
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.0040b9d0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
cmp edx, 0
je 0x56dd54
mov edx, dword [edx - 4]
mov eax, dword [ebp - 0x14]
cmp eax, 0
jne 0x56dd61
mov eax, 0x6f82e0
call fcn.00443880
mov eax, dword [ebp - 8]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0056dc90
mov esp, ebp
pop ebp
ret