joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f1c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x314
mov eax, dword [0x4b0650]
xor eax, esp
mov dword [esp + 0x310], eax
mov eax, dword [0x4b3130]
push ebx
push ebp
mov ebp, dword [esp + 0x320]
push esi
test eax, eax
je 0x43f204
push eax
push 0x49b31c
lea eax, [esp + 0x14]
push eax
push 0xe6
call fcn.0043e6c0
add esp, 0x10
jmp 0x43f296
call fcn.0042ebc0
test eax, eax
je 0x43f24f
lea ecx, [esp + 0x114]
push ecx
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ebx, [esp + 0x114]
call fcn.0042ec80
mov esi, eax
test esi, esi
jne 0x43f278
pop esi
pop ebp
mov eax, 7
pop ebx
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.00477bf8
add esp, 0x314
ret
lea eax, [esp + 0x114]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x114]
push ecx
call fcn.0042edc0
mov esi, eax
add esp, 4
test esi, esi
je 0x43f232
push esi
push 0x49b31c
lea edx, [esp + 0x14]
push edx
push 0xe6
call fcn.0043e6c0
push esi
call fcn.0047a4f8
add esp, 0x14
mov ecx, str.etilqs_
call fcn.0042dae0
lea ecx, [esp + 0xc]
mov edx, eax
call fcn.0042dae0
lea eax, [edx + eax + 0x11]
cmp eax, ebp
jl 0x43f2d0
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.00477bf8
add esp, 0x314
ret
lea ecx, [esp + 0xc]
call fcn.0042dae0
test eax, eax
jbe 0x43f2eb
dec ecx
mov edi, edi
cmp byte [ecx + eax], 0x5c
jne 0x43f2eb
sub eax, 1
jne 0x43f2e0
lea ecx, [esp + 0xc]
push ecx
push str._setilqs_
push edi
add ebp, 0xffffffef
push ebp
mov byte [esp + eax + 0x1c], 0
call fcn.0043e6c0
mov ecx, edi
call fcn.0042dae0
mov esi, eax
lea edx, [edi + esi]
push edx
push 0xf
call fcn.00437c70
add esp, 0x18
mov ecx, 3
movzx eax, byte [edi + esi]
xor edx, edx
mov ebx, 0x3e
div ebx
add esi, 5
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 5], al
movzx eax, byte [edi + esi - 4]
xor edx, edx
div ebx
movzx eax, byte [edi + esi - 3]
movzx edx, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 4], dl
xor edx, edx
div ebx
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 3], al
movzx eax, byte [edi + esi - 2]
xor edx, edx
div ebx
movzx eax, byte [edi + esi - 1]
movzx edx, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 2], dl
xor edx, edx
div ebx
sub ecx, 1
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 1], al
jne 0x43f320
mov byte [edi + esi], cl
mov ecx, dword [esp + 0x31c]
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00477bf8
add esp, 0x314
ret
Function at 0x43f6e0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x114
mov eax, dword [0x4b0650]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x118]
lea ecx, [esp + 8]
push ecx
push 0x104
push eax
push edx
mov dword [esp + 0x14], 0x200
call fcn.0043f5f0
add esp, 0x10
test eax, eax
jne 0x43f7dd
push esi
lea eax, [esp + 0xc]
call fcn.0042f140
mov esi, eax
test esi, esi
je 0x43f7a8
push edi
call fcn.0042ebc0
test eax, eax
mov eax, esi
je 0x43f76e
cmp word [esi], 0
je 0x43f757
cmp word [eax], 0x5c
je 0x43f752
add eax, 2
cmp word [eax], 0
jne 0x43f741
jmp 0x43f757
xor ecx, ecx
mov word [eax], cx
lea edx, [esp + 8]
push edx
mov eax, edx
push eax
lea ecx, [esp + 0x14]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x43f798
cmp byte [esi], 0
je 0x43f783
cmp byte [eax], 0x5c
je 0x43f780
inc eax
cmp byte [eax], 0
jne 0x43f773
jmp 0x43f783
mov byte [eax], 0
lea eax, [esp + 8]
push eax
mov ecx, eax
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call fcn.0047a4f8
add esp, 4
test edi, edi
pop edi
jne 0x43f7c3
mov eax, 0x200
pop esi
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00477bf8
add esp, 0x114
ret
mov eax, dword [esp + 8]
pop esi
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00477bf8
add esp, 0x114
ret
mov ecx, dword [esp + 0x110]
mov eax, dword [esp + 4]
xor ecx, esp
call fcn.00477bf8
add esp, 0x114
ret
Function at 0x440c80
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
test ebx, ebx
jne 0x440c8d
xor eax, eax
pop ebx
ret
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, 0x50
call fcn.00437860
mov edi, eax
test edi, edi
jne 0x440ca7
pop edi
pop esi
pop ebx
ret
mov eax, dword [ebx]
push ebp
mov ebp, dword [esp + 0x1c]
push ebp
push eax
push esi
call fcn.0043afe0
mov dword [edi], eax
mov ecx, dword [ebx + 8]
push ebp
push ecx
push esi
call fcn.00440b30
mov dword [edi + 8], eax
mov edx, dword [ebx + 0xc]
push ebp
push edx
push esi
call fcn.00447480
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x10]
push ebp
push eax
push esi
call fcn.0043afe0
mov dword [edi + 0x10], eax
mov ecx, dword [ebx + 0x14]
push ebp
push ecx
push esi
call fcn.00447480
mov dword [edi + 0x14], eax
mov edx, dword [ebx + 0x18]
push ebp
push edx
push esi
call fcn.0043afe0
mov dword [edi + 0x18], eax
mov al, byte [ebx + 4]
add esp, 0x48
mov byte [edi + 4], al
mov ecx, dword [ebx + 0x1c]
push ebp
push ecx
push esi
call fcn.00440c80
mov dword [edi + 0x1c], eax
mov edx, dword [ebx + 0x28]
push ebp
push edx
push esi
call fcn.00447480
mov dword [edi + 0x28], eax
mov eax, dword [ebx + 0x2c]
push ebp
push eax
push esi
call fcn.00447480
mov dword [edi + 0x2c], eax
xor eax, eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov cx, word [ebx + 6]
add esp, 0x24
mov dword [edi + 0x24], eax
or eax, 0xffffffff
mov edx, 0xfff7
pop ebp
and cx, dx
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], eax
mov word [edi + 6], cx
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x44b030
Capabilities:
Get system information on windows

Disassembly:
xor eax, eax
push 0x4b3da0
mov dword [0x4b3da0], eax
mov dword [0x4b3da4], eax
mov dword [0x4b3da8], eax
mov dword [0x4b3dac], eax
mov dword [0x4b3db0], eax
mov dword [0x4b3db4], eax
mov dword [0x4b3db8], eax
mov dword [0x4b3dbc], eax
mov dword [0x4b3dc0], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 1
push 0x4afdd8
call fcn.00437390
add esp, 8
xor eax, eax
ret
push 0xa
call fcn.00455a00
add esp, 4
test eax, eax
jne 0x44b044
mov eax, 7
ret
push eax
call fcn.0042d800
add esp, 4
jmp 0x445800
Function at 0x452650
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [edi + 0x3c]
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
xor esi, esi
cmp dword [ecx], esi
jne 0x452678
mov eax, dword [edi + 0x78]
push edi
call fcn.00430cb0
add esp, 4
test eax, eax
jne 0x452764
mov esi, eax
mov ecx, dword [edi + 0x18]
cmp ecx, dword [edi + 0x24]
jbe 0x4526b0
mov eax, dword [edi + 0x80]
push 0
cdq
push ecx
push edx
push eax
call fcn.00478870
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x10], edx
push 5
lea edx, [esp + 0x10]
call fcn.0042d250
mov eax, dword [edi + 0x18]
add esp, 4
mov dword [edi + 0x24], eax
push ebx
test ebp, ebp
je 0x452761
mov ebx, dword [ebp + 0xc]
cmp ebx, dword [edi + 0x18]
ja 0x452756
test byte [ebp + 0x14], 0x20
jne 0x452756
mov eax, dword [edi + 0x80]
cdq
push edx
push eax
lea ecx, [ebx - 1]
push 0
push ecx
call fcn.00478870
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
cmp ebx, 1
jne 0x4526f7
mov esi, ebp
call fcn.00430c00
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x80]
mov esi, dword [ebp]
push edx
push eax
mov eax, dword [edi + 0x3c]
push ecx
push esi
call fcn.0042d1c0
add esp, 0x10
mov dword [esp + 0xc], eax
cmp ebx, 1
jne 0x45273b
mov edx, dword [esi + 0x18]
lea eax, [esi + 0x18]
mov dword [edi + 0x64], edx
mov ecx, dword [eax + 4]
mov dword [edi + 0x68], ecx
mov edx, dword [eax + 8]
mov dword [edi + 0x6c], edx
mov eax, dword [eax + 0xc]
mov dword [edi + 0x70], eax
cmp ebx, dword [edi + 0x20]
jbe 0x452743
mov dword [edi + 0x20], ebx
mov ecx, dword [ebp]
mov eax, dword [edi + 0x58]
push ecx
call fcn.0044b900
mov esi, dword [esp + 0x10]
add esp, 4
mov ebp, dword [ebp + 8]
test esi, esi
je 0x4526b1
mov eax, esi
pop ebx
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x4779de
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4b0650]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00477973
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00477c40
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x477a2d
cmp dword [ebp - 0x1c], 5
jb 0x477a45
jmp 0x477a41
cmp dword [ebp - 0x10], 1
jne 0x477a45
cmp dword [ebp - 0x1c], 4
ja 0x477a41
jne 0x477a45
cmp dword [ebp - 0x18], 0
jbe 0x477a45
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4a5e44
call fcn.0041a210
test eax, eax
jge 0x477a66
mov byte [0x4b1c58], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00477bf8
add ebp, 0x78
leave
ret

Function at 0x477bf8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b0650]
jne 0x477c02
repz ret
jmp fcn.0047db45
Function at 0x4784fc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x478539
cmp dword [ebp + 0x14], edi
je 0x478539
cmp ecx, edi
jne 0x478540
call fcn.0047ce18
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004789aa
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x478554
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x478575
cmp ebx, 0xffffffff
je 0x478564
push ebx
push edi
push ecx
call fcn.00477c40
add esp, 0xc
cmp esi, edi
je 0x478521
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x478521
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x478591
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x478598
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x478689
test word [esi + 0xc], 0x10c
je 0x4785ec
mov eax, dword [esi + 4]
test eax, eax
je 0x4785ec
jl 0x4786ea
cmp ebx, eax
mov edi, ebx
jb 0x4785bd
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x478691
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00478a39
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x478681
cmp ebx, dword [ebp - 0xc]
jb 0x478659
cmp dword [ebp - 0xc], 0
je 0x478616
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x47860b
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x478612
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x478621
mov eax, SysReAllocString
cmp ebx, eax
ja 0x478621
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4786bd
push eax
push dword [ebp - 8]
push esi
call fcn.0047f384
pop ecx
push eax
call fcn.0048082d
add esp, 0xc
test eax, eax
je 0x4786fc
cmp eax, 0xffffffff
je 0x4786ea
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x478681
push esi
call fcn.0048014c
cmp eax, 0xffffffff
pop ecx
je 0x4786ee
cmp dword [ebp - 4], 0
je 0x4786bd
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4785a0
mov eax, dword [ebp + 0x14]
jmp 0x47853b
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4786a8
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00477c40
add esp, 0xc
call fcn.0047ce18
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x478531
cmp dword [ebp + 0xc], 0xffffffff
je 0x4786d3
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00477c40
add esp, 0xc
call fcn.0047ce18
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x478531
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x47853b
or dword [esi + 0xc], 0x10
jmp 0x4786ee
Function at 0x47e98f
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4b0820]
je 0x47e9aa
inc edi
cmp edi, 0x17
jb 0x47e99b
cmp edi, 0x17
jae 0x47eb2a
push ebp
push 3
call fcn.00489306
cmp eax, 1
pop ecx
je 0x47eaf6
push 3
call fcn.00489306
test eax, eax
pop ecx
jne 0x47e9de
cmp dword [0x4b0680], 1
je 0x47eaf6
cmp ebx, 0xfc
je 0x47eb29
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4b3550
push ebp
call fcn.00480932
add esp, 0xc
test eax, eax
je 0x47ea14
push esi
push esi
push esi
push esi
push esi
call fcn.004788ae
add esp, 0x14
push 0x104
mov esi, 0x4b3569
push esi
push 0
mov byte [0x4b366d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x47ea58
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00480932
add esp, 0xc
test eax, eax
je 0x47ea58
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004788ae
add esp, 0x14
push esi
call fcn.0047cc90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x47ea9d
push esi
call fcn.0047cc90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4b3864
push 0x4a64dc
sub ecx, eax
push ecx
push eax
call fcn.0047ae9f
add esp, 0x14
test eax, eax
je 0x47ea9d
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004788ae
add esp, 0x14
jmp 0x47ea9f
xor esi, esi
push 0x4a64d8
push ebx
push ebp
call fcn.00489295
add esp, 0xc
test eax, eax
je 0x47eabf
push esi
push esi
push esi
push esi
push esi
call fcn.004788ae
add esp, 0x14
push dword [edi*8 + 0x4b0824]
push ebx
push ebp
call fcn.00489295
add esp, 0xc
test eax, eax
je 0x47eae1
push esi
push esi
push esi
push esi
push esi
call fcn.004788ae
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004890d8
add esp, 0xc
jmp 0x47eb29
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x47eb29
cmp ebp, 0xffffffff
je 0x47eb29
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4b0824]
push dword [esi]
call fcn.0047cc90
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4890d8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0047de1d
xor ebx, ebx
cmp dword [0x4b3d4c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4891ae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x48928e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x48928e
push eax
call fcn.0047ddaf
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4b3d4c], eax
call esi
push eax
call fcn.0047ddaf
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4b3d50], eax
call esi
push eax
call fcn.0047ddaf
mov dword [0x4b3d54], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0047e60b
test eax, eax
pop ecx
pop ecx
je 0x48917c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004788ae
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4891ae
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0047ddaf
cmp eax, ebx
pop ecx
mov dword [0x4b3d5c], eax
je 0x4891ae
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0047ddaf
pop ecx
mov dword [0x4b3d58], eax
mov eax, dword [0x4b3d58]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x489233
cmp dword [0x4b3d5c], ecx
je 0x489233
push eax
call fcn.0047de26
push dword [0x4b3d5c]
mov esi, eax
call fcn.0047de26
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x489233
cmp edi, ebx
je 0x489233
call esi
cmp eax, ebx
je 0x489200
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x489200
test byte [ebp - 0x18], 1
jne 0x489233
lea eax, [ebp - 0x10]
push eax
call fcn.0047e642
test eax, eax
pop ecx
je 0x48921b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004788ae
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x48922a
or dword [ebp + 0x10], 0x200000
jmp 0x48926e
or dword [ebp + 0x10], 0x40000
jmp 0x48926e
mov eax, dword [0x4b3d50]
cmp eax, dword [ebp - 8]
je 0x48926e
push eax
call fcn.0047de26
cmp eax, ebx
pop ecx
je 0x48926e
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x48926e
mov eax, dword [0x4b3d54]
cmp eax, dword [ebp - 8]
je 0x48926e
push eax
call fcn.0047de26
cmp eax, ebx
pop ecx
je 0x48926e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b3d4c]
call fcn.0047de26
cmp eax, ebx
pop ecx
je 0x48928e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x489290
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x40de38
nop
nop
mov ecx, 0x319f0dd7
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..text
mov ebx, 0x4304d8
nop
mov ecx, 0x2e2691a
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x123f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0123f1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x123f07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x123f06a
add dl, dl
jne 0x123f089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x123f0dc
xor eax, eax
add dl, dl
jne 0x123f096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x123f17d
add dl, dl
jne 0x123f0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x123f0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x123f0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x123f0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x123f0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x123f075
mov eax, 1
add dl, dl
jne 0x123f0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x123f0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x123f0e1
sub eax, ebx
mov ebx, 1
jne 0x123f128
mov ecx, 1
add dl, dl
jne 0x123f10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x123f119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x123f105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x123f075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x123f13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x123f14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x123f136
cmp eax, 0x7d00
jae 0x123f16d
cmp eax, 0x500
jb 0x123f168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x123f075
cmp eax, 0x7f
ja 0x123f170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x123f075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x123f19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x123f075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40335c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x47c020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4033f4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4033d4
xor eax, eax
push ebp
push 0x4033cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403410
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4033d4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x47c020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x47c020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4040f8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47e04c], 0
je 0x404159
cmp word [0x47e220], 0xd7b2
jne 0x404121
cmp dword [0x47e228], 0
jbe 0x404121
mov eax, 0x47e21c
call dword [0x47e238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47c06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404180
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47c030], 0
jne 0x404175
push 0
push 0x47c064
push 0x47c06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4042b4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402a74
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x47e04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40427c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc