joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412d20
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 [0x5d4260], 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.00412f00
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x5d4260]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00403480
call sub.kernel32.dll_GetCommandLineA
mov dword [0x5644b0], eax
mov ebx, eax
jmp 0x412ec3
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x412da8
cmp byte [ebx], 0
je 0x412ecc
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x412e23
mov al, byte [ebx]
cmp al, 1
jb 0x412e18
sub al, 0x20
jbe 0x412de8
sub al, 2
je 0x412dfc
jmp 0x412e18
mov al, byte [ebp - 0x114]
test al, al
je 0x412e28
add dword [ebp - 0x110], 1
jmp 0x412e20
cmp byte [ebx + 1], 0x22
je 0x412e13
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x412e20
add ebx, 1
jmp 0x412e20
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x412dd8
test dword [ebp - 0x10c], 0xffffffff
je 0x412ebc
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.00412f00
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x5d4260]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x412eb3
mov al, byte [ebx]
cmp al, 1
jb 0x412ea8
sub al, 0x20
jbe 0x412e78
sub al, 2
je 0x412e8c
jmp 0x412ea8
mov al, byte [ebp - 0x114]
test al, al
je 0x412eb8
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x412eb0
cmp byte [ebx + 1], 0x22
je 0x412ea3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x412eb0
add ebx, 1
jmp 0x412eb0
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x412e68
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x412dab
mov ebx, dword [ebp - 0x10c]
mov dword [0x5d4250], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x5d4260
call fcn.00410590
mov eax, dword [0x5d4260]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428580
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 0x42862a
mov eax, dword [ebp - 0x1c]
sub eax, 2
test eax, eax
jl 0x428646
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 0x428646
sub dx, 0x20
je 0x428620
sub dx, 0x80
je 0x428620
sub dx, 0x1f62
jb 0x428646
sub dx, 1
jbe 0x428620
sub dx, 6
je 0x428620
sub dx, 0x26
jne 0x428646
nop
jmp 0x428620
cmp eax, dword [ebp - 0x20]
jg 0x4285c8
lea esi, [esi]
jmp 0x428646
cmp dword [ebp - 0x1c], 2
jne 0x42863a
mov ax, word [ebp - 0x18]
mov word [ebp - 0x24], ax
jmp 0x428646
mov al, byte [ebp - 0xc]
call fcn.0040aed0
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
sub ax, 0x7f
jbe 0x4286c4
sub ax, 0x21
je 0x4286d8
sub ax, 0x17
je 0x4286e4
sub ax, 0x222
je 0x4286f0
sub ax, 0x392
je 0x4286f8
sub ax, 1
je 0x428700
sub ax, 0x1996
je 0x428708
sub ax, 1
je 0x428710
sub ax, 6
je 0x428718
sub ax, 0xb
je 0x428728
sub ax, 0x1b
je 0x428720
sub ax, 0x367
je 0x428730
jmp 0x428738
mov ax, word [ebp - 0x24]
call fcn.0040af70
mov byte [ebp - 0x10], al
jmp 0x428740
mov byte [ebp - 0x10], 0x20
jmp 0x428740
mov byte [ebp - 0x10], 0x2e
jmp 0x428740
mov byte [ebp - 0x10], 0x27
jmp 0x428740
mov byte [ebp - 0x10], 0x2c
jmp 0x428740
mov byte [ebp - 0x10], 0x27
jmp 0x428740
mov byte [ebp - 0x10], 0x20
jmp 0x428740
mov byte [ebp - 0x10], 0x20
jmp 0x428740
mov byte [ebp - 0x10], 0x20
jmp 0x428740
mov byte [ebp - 0x10], 0x20
jmp 0x428740
mov byte [ebp - 0x10], 0x2d
jmp 0x428740
mov byte [ebp - 0x10], 0x27
jmp 0x428740
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 0x435c20
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.00435c10
push ebp
push 0x413bd0
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 0x435d30
mov al, byte [ebp - 0x110]
test al, al
je 0x435cf9
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00404bf0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00409060
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.00409e50
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, 0x5871c0
call fcn.0044ee30
mov edx, 0x435c8a
mov ecx, ebp
call fcn.00413a70
jmp 0x435d30
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, 0x5871c0
call fcn.0044ee30
mov edx, 0x435cf9
mov ecx, ebp
call fcn.00413a70
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x435df4
mov al, byte [ebp - 0x110]
test al, al
je 0x435dbd
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00404bf0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00409060
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.00409e50
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, 0x5871c0
call fcn.0044ee30
mov edx, 0x435d4e
mov ecx, ebp
call fcn.00413a70
jmp 0x435df4
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, 0x5871c0
call fcn.0044ee30
mov edx, 0x435dbd
mov ecx, ebp
call fcn.00413a70
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.004355a0
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00435c10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x439090
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, 0x587e4c
call fcn.0040c9c0
test al, al
je 0x439176
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
call fcn.00439190
xor eax, eax
push fcn.00439080
push ebp
push 0x413bd0
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.004087d0
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.00438280
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 8]
call fcn.00437d20
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.00439080
jmp 0x439181
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0043b3a0
mov esp, ebp
pop ebp
ret
Function at 0x4456a0
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.00445690
push ebp
push 0x413bd0
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.004087d0
lea eax, [ebp - 0xc10]
call fcn.00403990
lea eax, [ebp - 0xc1c]
push eax
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x445700
mov eax, 0x5d42f0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc18], eax
cmp eax, 0xc00
jbe 0x4457aa
mov edx, dword [ebp - 0xc18]
lea eax, [ebp - 0xc0c]
call fcn.0040f560
xor eax, eax
push fcn.00445680
push ebp
push 0x413bd0
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 0x44575c
mov eax, 0x5d42f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x445798
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, 0x58c8ec
push eax
push dword [ebp - 0xc0c]
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x445798
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.00445680
jmp 0x445808
lea eax, [ebp - 0xc08]
push eax
push dword [ebp - 0xc18]
push dword [ebp - 0xc1c]
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x4457cc
mov eax, 0x5d42f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x445808
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, 0x58c8ec
push eax
lea eax, [ebp - 0xc08]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x445808
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.00445690
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x450000
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.0044fff0
push ebp
push 0x413bd0
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 0x450070
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.0040b280
cmp ebx, 1
jle 0x450060
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.0040abc0
jmp 0x45007b
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004087d0
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.0044fff0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x450480
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.00450470
push ebp
push 0x413bd0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x5d5aec]
xor edx, edx
call fcn.004087d0
mov dword [ebx*4 + 0x5d5b0c], 0xffffffff
cmp ebx, 7
jl 0x4504a8
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 0x450534
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.004091d0
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.004462e0
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x450534
push 4
push ebx
push esi
mov eax, 0x450350
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x4503e0
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.00450470
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x450b70
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x5d5b50], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x5d59b0], eax
mov eax, dword [ebp - 0x90]
mov dword [0x5d59c0], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x5d59d0], eax
mov eax, dword [ebp - 0x88]
mov dword [0x5d59e0], eax
mov edx, 0x5d59f1
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.00403480
lea eax, [ebp - 0x80]
call fcn.004045e0
mov byte [0x5d59f0], al
mov eax, 0x58ce00
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x5d5b60], eax
test eax, eax
je 0x450c10
mov eax, 0x58ce0c
push eax
push dword [0x5d5b60]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5d5b50], eax
nop
cmp dword [0x5d59c0], 6
jae 0x450c24
mov dword [0x5656b0], 0
nop
cmp dword [0x5d59c0], 6
jb 0x450c40
cmp dword [0x5d59d0], 1
jb 0x450c40
mov dword [0x5656c0], 2
mov esp, ebp
pop ebp
ret

Function at 0x4646b0
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 0x4646e1
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 0x4646d0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4940e0
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 0x49411c
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 + 0x5d6320]
mov eax, ecx
add edx, 1
cmp esi, edi
jg 0x4940f8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x495c80
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 0x495cc5
mov eax, edi
cmp dword [eax + 0x60], 0
jne 0x495cc5
cmp dword [eax + 0x68], 0
jne 0x495cc5
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x495db4
cmp dword [ebp - 4], 0xffffffff
jne 0x495cd4
sub dword [ebp - 4], 1
jmp 0x495db4
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 0x495d05
jg 0x495db4
cmp edx, eax
ja 0x495db4
mov eax, dword [edi + 0x2c]
add eax, dword [ebp - 8]
mov edx, dword [edi + 0x2c]
mov ecx, dword [ebp - 8]
call fcn.00403480
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 0x495d5b
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov word [edx], ax
jmp 0x495d63
mov eax, dword [ebp - 0x10]
mov word [eax], 0
sub ebx, 1
jne 0x495d38
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 0x495d9b
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov word [eax], dx
jmp 0x495da3
mov eax, dword [ebp - 0x10]
mov word [eax], 0
sub ebx, 1
jne 0x495d78
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 0x495e23
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.00495900
mov ebx, eax
add dword [edi + 0x68], ebx
cmp dword [edi + 0x68], 3
jb 0x495e0c
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 0x495e23
mov eax, dword [eax]
cmp dword [eax + 4], 0
jne 0x495c98
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b4240
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 0x4b4264
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 0x4b432a
mov esi, esi
xor eax, eax
push 0x4b430b
push ebp
push 0x413f50
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040cab0
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, 0x587aa8
call fcn.00437510
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
call fcn.004b44d0
mov edx, dword [ebp - 8]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 8]
call fcn.004b4540
mov edx, dword [ebp - 8]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 8]
call fcn.004b45b0
mov edx, dword [ebp - 8]
mov dword [edx + 0x30], eax
mov dword [ebp - 0xc], 1
cmp dword [ebp - 8], 0
je 0x4b4300
cmp dword [ebp - 4], 0
je 0x4b4300
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 0x4b432a
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4bcf70
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 0x4bcf8b
jmp 0x4bcf98
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
nop
cmp dword [ebp - 0xc], 0
je 0x4bcfa0
jmp 0x4bcfa8
jmp 0x4bd056
xor eax, eax
push 0x4bd033
push ebp
push 0x413f50
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
jne 0x4bcfde
jmp 0x4bd004
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.004355a0
mov esi, esi
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
jne 0x4bd013
jmp 0x4bd028
cmp dword [ebp - 8], 0
jne 0x4bd01b
jmp 0x4bd028
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 0x4bd056
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4bee40
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 0x4bee74
mov eax, esi
call fcn.004c3270
cmp byte [esi + 0x40], 0
je 0x4bee6c
mov dword [esi + 0x14], 0xcf
mov bl, 1
jmp 0x4bef25
mov dword [esi + 0x14], 0xcb
nop
cmp dword [esi + 0x14], 0xcb
jne 0x4bef04
mov eax, dword [esi + 0x184]
cmp byte [eax + 0x10], 0
je 0x4beefc
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4beea8
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 0x4beec0
xor bl, bl
jmp 0x4bef25
cmp edi, 2
je 0x4beefa
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4bee98
cmp edi, 3
je 0x4beed8
cmp edi, 1
jne 0x4bee98
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 0x4bee98
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x110]
add dword [edx + 8], eax
mov esi, esi
jmp 0x4bee98
mov esi, esi
mov eax, dword [esi + 0x70]
mov dword [esi + 0x78], eax
jmp 0x4bef1c
cmp dword [esi + 0x14], 0xcc
je 0x4bef1c
mov ecx, dword [esi + 0x14]
mov eax, esi
mov dl, 0x14
call fcn.004bf280
lea esi, [esi]
mov eax, esi
call fcn.004bef30
mov bl, al
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e3470
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 0x4e349e
jmp 0x4e350c
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 0x4e34ba
jmp 0x4e350c
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.004e3450
push ebp
push 0x413bd0
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.004e3450
mov byte [ebp - 0xc], 1
mov al, byte [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret