joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412cd0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x5c1260], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, eax
xor edx, edx
mov eax, ebp
call fcn.00412eb0
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x5c1260]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00403460
call sub.kernel32.dll_GetCommandLineA
mov dword [0x5544b0], eax
mov ebx, eax
jmp 0x412e73
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x412d58
cmp byte [ebx], 0
je 0x412e7c
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x412dd3
mov al, byte [ebx]
cmp al, 1
jb 0x412dc8
sub al, 0x20
jbe 0x412d98
sub al, 2
je 0x412dac
jmp 0x412dc8
mov al, byte [ebp - 0x114]
test al, al
je 0x412dd8
add dword [ebp - 0x110], 1
jmp 0x412dd0
cmp byte [ebx + 1], 0x22
je 0x412dc3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x412dd0
add ebx, 1
jmp 0x412dd0
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x412d88
test dword [ebp - 0x10c], 0xffffffff
je 0x412e6c
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.00412eb0
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x5c1260]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x412e63
mov al, byte [ebx]
cmp al, 1
jb 0x412e58
sub al, 0x20
jbe 0x412e28
sub al, 2
je 0x412e3c
jmp 0x412e58
mov al, byte [ebp - 0x114]
test al, al
je 0x412e68
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x412e60
cmp byte [ebx + 1], 0x22
je 0x412e53
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x412e60
add ebx, 1
jmp 0x412e60
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x412e18
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x412d5b
mov ebx, dword [ebp - 0x10c]
mov dword [0x5c1250], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x5c1260
call fcn.00410540
mov eax, dword [0x5c1260]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426a70
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 0x426b1a
mov eax, dword [ebp - 0x1c]
sub eax, 2
test eax, eax
jl 0x426b36
mov dword [ebp - 0x20], 0xffffffff
lea esi, [esi]
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
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 0x426b36
sub dx, 0x20
je 0x426b10
sub dx, 0x80
je 0x426b10
sub dx, 0x1f62
jb 0x426b36
sub dx, 1
jbe 0x426b10
sub dx, 6
je 0x426b10
sub dx, 0x26
jne 0x426b36
nop
jmp 0x426b10
cmp eax, dword [ebp - 0x20]
jg 0x426ab8
lea esi, [esi]
jmp 0x426b36
cmp dword [ebp - 0x1c], 2
jne 0x426b2a
mov ax, word [ebp - 0x18]
mov word [ebp - 0x24], ax
jmp 0x426b36
mov al, byte [ebp - 0xc]
call fcn.0040ae80
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
sub ax, 0x7f
jbe 0x426bb4
sub ax, 0x21
je 0x426bc8
sub ax, 0x17
je 0x426bd4
sub ax, 0x222
je 0x426be0
sub ax, 0x392
je 0x426be8
sub ax, 1
je 0x426bf0
sub ax, 0x1996
je 0x426bf8
sub ax, 1
je 0x426c00
sub ax, 6
je 0x426c08
sub ax, 0xb
je 0x426c18
sub ax, 0x1b
je 0x426c10
sub ax, 0x367
je 0x426c20
jmp 0x426c28
mov ax, word [ebp - 0x24]
call fcn.0040af20
mov byte [ebp - 0x10], al
jmp 0x426c30
mov byte [ebp - 0x10], 0x20
jmp 0x426c30
mov byte [ebp - 0x10], 0x2e
jmp 0x426c30
mov byte [ebp - 0x10], 0x27
jmp 0x426c30
mov byte [ebp - 0x10], 0x2c
jmp 0x426c30
mov byte [ebp - 0x10], 0x27
jmp 0x426c30
mov byte [ebp - 0x10], 0x20
jmp 0x426c30
mov byte [ebp - 0x10], 0x20
jmp 0x426c30
mov byte [ebp - 0x10], 0x20
jmp 0x426c30
mov byte [ebp - 0x10], 0x20
jmp 0x426c30
mov byte [ebp - 0x10], 0x2d
jmp 0x426c30
mov byte [ebp - 0x10], 0x27
jmp 0x426c30
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x10], al
mov esi, esi
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x433b50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x118]
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x110], al
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00433b40
push ebp
push 0x413b80
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push edi
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x10], eax
test eax, eax
jne 0x433c60
mov al, byte [ebp - 0x110]
test al, al
je 0x433c29
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00404bd0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00409010
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.00409e00
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 edx, 1
mov eax, 0x576e20
call fcn.0044b8e0
mov edx, 0x433bba
mov ecx, ebp
call fcn.00413a20
jmp 0x433c60
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x576e20
call fcn.0044b8e0
mov edx, 0x433c29
mov ecx, ebp
call fcn.00413a20
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x433d24
mov al, byte [ebp - 0x110]
test al, al
je 0x433ced
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00404bd0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00409010
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.00409e00
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 edx, 1
mov eax, 0x576e20
call fcn.0044b8e0
mov edx, 0x433c7e
mov ecx, ebp
call fcn.00413a20
jmp 0x433d24
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x576e20
call fcn.0044b8e0
mov edx, 0x433ced
mov ecx, ebp
call fcn.00413a20
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.004334d0
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00433b40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x436fa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, 0x577aac
call fcn.0040c970
test al, al
je 0x437086
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
call fcn.004370a0
xor eax, eax
push fcn.00436f90
push ebp
push 0x413b80
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 + 0xc4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x18]
mov byte [edx + 0x18], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x1a]
mov byte [edx + 0x1a], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x1b]
mov byte [edx + 0x1b], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x1c]
mov byte [edx + 0x1c], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 8]
add eax, 0x30
call fcn.00408780
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 8]
call fcn.00436190
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 8]
call fcn.00435c50
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
call dword [ecx + 0xb0]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00436f90
jmp 0x437091
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.004392b0
mov esp, ebp
pop ebp
ret
Function at 0x4435b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc20]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc10], 0
xor eax, eax
push fcn.004435a0
push ebp
push 0x413b80
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xfffffff
mov edx, dword [ebp - 4]
lea eax, [ebp - 0xc10]
call fcn.00408780
lea eax, [ebp - 0xc10]
call fcn.00403970
lea eax, [ebp - 0xc1c]
push eax
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x443610
mov eax, 0x5c12f0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc18], eax
cmp eax, 0xc00
jbe 0x4436ba
mov edx, dword [ebp - 0xc18]
lea eax, [ebp - 0xc0c]
call fcn.0040f510
xor eax, eax
push fcn.00443590
push ebp
push 0x413b80
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0xc0c]
push dword [ebp - 0xc18]
push dword [ebp - 0xc1c]
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x44366c
mov eax, 0x5c12f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4436a8
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, 0x57c54c
push eax
push dword [ebp - 0xc0c]
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4436a8
mov eax, dword [ebp - 0xc20]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
lea esi, [esi]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00443590
jmp 0x443718
lea eax, [ebp - 0xc08]
push eax
push dword [ebp - 0xc18]
push dword [ebp - 0xc1c]
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x4436dc
mov eax, 0x5c12f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x443718
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, 0x57c54c
push eax
lea eax, [ebp - 0xc08]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x443718
mov eax, dword [ebp - 0xc20]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
mov esi, esi
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004435a0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x44cab0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov edi, eax
mov esi, edx
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
xor eax, eax
push fcn.0044caa0
push ebp
push 0x413b80
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test ebx, ebx
jle 0x44cb20
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.0040b230
cmp ebx, 1
jle 0x44cb10
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
xor dx, dx
call fcn.0040ab70
jmp 0x44cb2b
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00408780
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.0044caa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44cf30
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.0044cf20
push ebp
push 0x413b80
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x5c2adc]
xor edx, edx
call fcn.00408780
mov dword [ebx*4 + 0x5c2afc], 0xffffffff
cmp ebx, 7
jl 0x44cf58
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x44cfe4
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.00409180
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.004441f0
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x44cfe4
push 4
push ebx
push esi
mov eax, 0x44ce00
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x44ce90
push eax
call sub.kernel32.dll_EnumCalendarInfoA
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0044cf20
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44d620
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x5c2b40], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x5c29a0], eax
mov eax, dword [ebp - 0x90]
mov dword [0x5c29b0], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x5c29c0], eax
mov eax, dword [ebp - 0x88]
mov dword [0x5c29d0], eax
mov edx, 0x5c29e1
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.00403460
lea eax, [ebp - 0x80]
call fcn.004045c0
mov byte [0x5c29e0], al
mov eax, 0x57ca10
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x5c2b50], eax
test eax, eax
je 0x44d6c0
mov eax, 0x57ca1c
push eax
push dword [0x5c2b50]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5c2b40], eax
nop
cmp dword [0x5c29b0], 6
jae 0x44d6d4
mov dword [0x5556b0], 0
nop
cmp dword [0x5c29b0], 6
jb 0x44d6f0
cmp dword [0x5c29c0], 1
jb 0x44d6f0
mov dword [0x5556c0], 2
mov esp, ebp
pop ebp
ret

Function at 0x4612a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov edx, eax
xor eax, eax
lea ebx, [edx + 1]
movzx ecx, byte [edx]
add ecx, 1
and ecx, 0xff
add edx, ecx
jmp 0x4612d1
mov ecx, eax
shl ecx, 5
sub ecx, eax
movzx esi, byte [ebx]
xor ecx, esi
mov eax, ecx
add ebx, 1
cmp edx, ebx
ja 0x4612c0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48fb20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
lea esi, [ecx - 1]
test esi, esi
jl 0x48fb5c
mov edi, 0xffffffff
lea esi, [esi]
add edi, 1
mov cl, al
xor cl, byte [edx]
and ecx, 0xff
mov ebx, ecx
mov ecx, eax
shr ecx, 8
xor ecx, dword [ebx*4 + 0x5c3310]
mov eax, ecx
add edx, 1
cmp esi, edi
jg 0x48fb38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4916c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 8], eax
lea esi, [esi]
mov edx, edi
mov eax, dword [edx + 0x30]
mov ecx, dword [edx + 0x68]
sub eax, ecx
sub eax, dword [edx + 0x60]
mov dword [ebp - 4], eax
test eax, eax
jne 0x491705
mov eax, edi
cmp dword [eax + 0x60], 0
jne 0x491705
cmp dword [eax + 0x68], 0
jne 0x491705
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x4917f4
cmp dword [ebp - 4], 0xffffffff
jne 0x491714
sub dword [ebp - 4], 1
jmp 0x4917f4
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, eax
mov eax, edx
mov edx, ecx
mov esi, eax
sub edx, 0x106
sbb esi, 0
add edx, ecx
adc esi, eax
mov eax, dword [edi + 0x60]
xor ecx, ecx
cmp esi, ecx
jl 0x491745
jg 0x4917f4
cmp edx, eax
ja 0x4917f4
mov eax, dword [edi + 0x2c]
add eax, dword [ebp - 8]
mov edx, dword [edi + 0x2c]
mov ecx, dword [ebp - 8]
call fcn.00403460
mov eax, dword [ebp - 8]
sub dword [edi + 0x64], eax
mov eax, dword [ebp - 8]
sub dword [edi + 0x60], eax
mov eax, dword [ebp - 8]
sub dword [edi + 0x50], eax
mov ebx, dword [edi + 0x40]
mov eax, dword [edi + 0x38]
lea eax, [eax + ebx*2]
mov dword [ebp - 0x10], eax
lea esi, [esi]
sub dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
movzx edx, word [eax]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
ja 0x49179b
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov word [edx], ax
jmp 0x4917a3
mov eax, dword [ebp - 0x10]
mov word [eax], 0
sub ebx, 1
jne 0x491778
mov ebx, dword [ebp - 8]
mov eax, dword [edi + 0x34]
lea eax, [eax + ebx*2]
mov dword [ebp - 0x10], eax
lea esi, [esi]
sub dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
movzx edx, word [eax]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
ja 0x4917db
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov word [eax], dx
jmp 0x4917e3
mov eax, dword [ebp - 0x10]
mov word [eax], 0
sub ebx, 1
jne 0x4917b8
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea esi, [esi]
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x491863
mov eax, edi
mov edx, dword [eax + 0x2c]
mov ecx, dword [eax + 0x60]
mov eax, dword [eax + 0x68]
add eax, ecx
add edx, eax
mov eax, dword [edi]
mov ecx, dword [ebp - 4]
call fcn.00491340
mov ebx, eax
add dword [edi + 0x68], ebx
cmp dword [edi + 0x68], 3
jb 0x49184c
mov eax, edi
mov edx, dword [eax + 0x2c]
mov eax, dword [eax + 0x60]
movzx eax, byte [edx + eax]
mov dword [edi + 0x3c], eax
mov eax, edi
mov edx, dword [eax + 0x2c]
mov ecx, dword [eax + 0x60]
movzx edx, byte [edx + ecx + 1]
mov esi, dword [eax + 0x3c]
mov ecx, dword [eax + 0x4c]
shl esi, cl
xor edx, esi
and edx, dword [eax + 0x48]
mov dword [edi + 0x3c], edx
mov eax, edi
cmp dword [eax + 0x68], 0x106
jae 0x491863
mov eax, dword [eax]
cmp dword [eax + 4], 0
jne 0x4916d8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ae1c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
cmp edx, 1
jne 0x4ae1e4
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
call dword [edx + 0x34]
mov dword [ebp - 8], eax
lea esi, [esi]
cmp dword [ebp - 8], 0
je 0x4ae2aa
mov esi, esi
xor eax, eax
push 0x4ae28b
push ebp
push 0x413f00
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040ca60
mov eax, dword [ebp - 8]
mov byte [eax + 0xc], 0
mov eax, dword [ebp - 8]
mov byte [eax + 0xe], 0
mov edx, 1
mov eax, 0x577708
call fcn.00435440
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
call fcn.004ae450
mov edx, dword [ebp - 8]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 8]
call fcn.004ae4c0
mov edx, dword [ebp - 8]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 8]
call fcn.004ae530
mov edx, dword [ebp - 8]
mov dword [edx + 0x30], eax
mov dword [ebp - 0xc], 1
cmp dword [ebp - 8], 0
je 0x4ae280
cmp dword [ebp - 4], 0
je 0x4ae280
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x44]
nop
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
jmp 0x4ae2aa
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b6c00
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
jne 0x4b6c28
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
lea esi, [esi]
cmp dword [ebp - 0xc], 0
je 0x4b6cd6
mov esi, esi
xor eax, eax
push 0x4b6cb7
push ebp
push 0x413f00
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 + 0x14], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 0
je 0x4b6c8c
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_SizeofResource
mov ebx, eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, dword [ebp - 0xc]
mov ecx, ebx
call fcn.004334d0
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
je 0x4b6cac
cmp dword [ebp - 8], 0
je 0x4b6cac
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
jmp 0x4b6cd6
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b89c0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x4b89f4
mov eax, esi
call fcn.004bcdf0
cmp byte [esi + 0x40], 0
je 0x4b89ec
mov dword [esi + 0x14], 0xcf
mov bl, 1
jmp 0x4b8aa5
mov dword [esi + 0x14], 0xcb
nop
cmp dword [esi + 0x14], 0xcb
jne 0x4b8a84
mov eax, dword [esi + 0x184]
cmp byte [eax + 0x10], 0
je 0x4b8a7c
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4b8a28
mov eax, esi
mov edx, dword [esi + 8]
call dword [edx]
lea esi, [esi]
mov eax, esi
mov edx, dword [esi + 0x184]
call dword [edx]
mov edi, eax
test edi, edi
jne 0x4b8a40
xor bl, bl
jmp 0x4b8aa5
cmp edi, 2
je 0x4b8a7a
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4b8a18
cmp edi, 3
je 0x4b8a58
cmp edi, 1
jne 0x4b8a18
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 0x4b8a18
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x110]
add dword [edx + 8], eax
mov esi, esi
jmp 0x4b8a18
mov esi, esi
mov eax, dword [esi + 0x70]
mov dword [esi + 0x78], eax
jmp 0x4b8a9c
cmp dword [esi + 0x14], 0xcc
je 0x4b8a9c
mov ecx, dword [esi + 0x14]
mov eax, esi
mov dl, 0x14
call fcn.004b8e00
lea esi, [esi]
mov eax, esi
call fcn.004b8ab0
mov bl, al
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4db780
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x30]
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], 8
mov eax, fcn.004d9e20
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.00412a30
mov dword [ebp - 0x20], eax
mov eax, str.MAINICON
push eax
push dword [0x5c12d0]
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4db7d8
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x1c], eax
mov esi, esi
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov eax, str.Window
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassW
test ax, ax
setne byte [ebp - 8]
cmp byte [ebp - 8], 0
je 0x4db854
or dword [ebp - 0x30], 0x800
cmp dword [0x56e4e0], 6
jb 0x4db82c
or dword [ebp - 0x30], 0x20000
mov esi, esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov eax, str.HintWindow
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassW
test ax, ax
setne byte [ebp - 8]
mov esi, esi
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4dc950
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
je 0x4dc9e8
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
jle 0x4dc9e8
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.004dc930
push ebp
push 0x413b80
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 eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004dc930
mov byte [ebp - 0xc], 1
mov al, byte [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret