joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4398ef
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x43990f
cmp dword [edi + 0x54], 0
jne 0x43990f
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004432c7
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004398b6
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x43d813
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x43d84c
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00437ec9
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00418ad0
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x43f43a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x43f47d
call fcn.004432c7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x43f47d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43f498
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0043eff4
test ebx, ebx
mov esi, eax
je 0x43f496
test edi, edi
je 0x43f496
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4407b7
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x48fac0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x4407f4
push 0x47e780
push 4
push eax
call fcn.0044cabf
push eax
call fcn.004010a0
add esp, 0x10
jmp 0x440806
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x440871
push edi
call fcn.0044cce2
mov edi, dword [eax]
call fcn.0044cce2
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0044ab33
add esp, 0x18
mov ebx, eax
call fcn.0044cce2
cmp dword [eax], 0
je 0x440851
call fcn.0044cce2
push dword [eax]
call fcn.00437e08
pop ecx
jmp 0x440858
call fcn.0044cce2
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x440871
cmp ebx, esi
jae 0x440871
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x440873
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00448e02
leave
ret
Function at 0x443778
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x443781
xor eax, eax
jmp 0x4437ea
cmp dword [esp + 8], 0
jne 0x44378d
call fcn.00437c06
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0044fc18
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4437c8
push dword [esi + 0x10]
call fcn.0044f91e
test eax, eax
pop ecx
jne 0x4437c8
mov esi, dword [esi + 0xc]
call fcn.0044ccf5
push esi
push dword [eax]
push 1
call fcn.00445e6a
push dword [esi + 0x10]
call fcn.0044f94d
test eax, eax
pop ecx
je 0x4437e7
push dword [esi + 0x10]
call fcn.0044f872
push eax
call fcn.004010a0
pop ecx
pop ecx
jmp 0x4437b6
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x4437f3
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x4437fd
call fcn.00437c06
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.00449ba1
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x44382a
mov esi, dword [esi + 0xc]
call fcn.0044ccf5
push esi
push dword [eax]
push 1
call fcn.00445e6a
pop esi
ret 8

Function at 0x444f21
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x444f4f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x444f6d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00444e8b
jmp 0x444f6d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x444f6d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00444e8b
test edi, edi
mov eax, edi
jne 0x444f57
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x493780]
test ecx, ecx
je 0x445030
jmp 0x444f20
ret 8

Function at 0x448e02
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48fac0]
jne 0x448e0c
repz ret
jmp fcn.0045491c

Function at 0x44a081
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x44a0ae
call fcn.0044ccf5
mov dword [eax], esi
call fcn.0044cce2
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004489bd
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x44a08a
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x44a0dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0044cd08
pop ecx
call fcn.0044cce2
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x44a104
test al, 1
je 0x44a104
test byte [esp + 0xc], 2
je 0x44a104
call fcn.0044ccf5
mov dword [eax], 5
call fcn.0044cce2
mov dword [eax], 0xd
jmp 0x44a0d4
xor eax, eax
pop esi
ret
Function at 0x44f97c
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 0x44f9b9
cmp dword [ebp + 0x14], edi
je 0x44f9b9
cmp ecx, edi
jne 0x44f9c0
call fcn.0044cce2
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004489bd
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x44f9d4
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x44f9f5
cmp ebx, 0xffffffff
je 0x44f9e4
push ebx
push edi
push ecx
call fcn.004481f0
add esp, 0xc
cmp esi, edi
je 0x44f9a1
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x44f9a1
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x44fa11
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x44fa18
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x44fb09
test word [esi + 0xc], 0x10c
je 0x44fa6c
mov eax, dword [esi + 4]
test eax, eax
je 0x44fa6c
jl 0x44fb6a
cmp ebx, eax
mov edi, ebx
jb 0x44fa3d
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x44fb11
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00448116
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 0x44fb01
cmp ebx, dword [ebp - 0xc]
jb 0x44fad9
cmp dword [ebp - 0xc], 0
je 0x44fa96
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x44fa8b
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x44fa92
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x44faa1
mov eax, SysReAllocString
cmp ebx, eax
ja 0x44faa1
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x44fb3d
push eax
push dword [ebp - 8]
push esi
call fcn.0044f6bf
pop ecx
push eax
call fcn.0045dd83
add esp, 0xc
test eax, eax
je 0x44fb7c
cmp eax, 0xffffffff
je 0x44fb6a
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x44fb01
push esi
call fcn.00454c7c
cmp eax, 0xffffffff
pop ecx
je 0x44fb6e
cmp dword [ebp - 4], 0
je 0x44fb3d
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 0x44fa20
mov eax, dword [ebp + 0x14]
jmp 0x44f9bb
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x44fb28
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004481f0
add esp, 0xc
call fcn.0044cce2
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x44f9b1
cmp dword [ebp + 0xc], 0xffffffff
je 0x44fb53
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004481f0
add esp, 0xc
call fcn.0044cce2
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x44f9b1
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x44f9bb
or dword [esi + 0xc], 0x10
jmp 0x44fb6e
Function at 0x45062e
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 + 0x48fc50]
je 0x450649
inc edi
cmp edi, 0x17
jb 0x45063a
cmp edi, 0x17
jae 0x4507c9
push ebp
push 3
call fcn.0045e0ae
cmp eax, 1
pop ecx
je 0x450795
push 3
call fcn.0045e0ae
test eax, eax
pop ecx
jne 0x45067d
cmp dword [0x48fa94], 1
je 0x450795
cmp ebx, 0xfc
je 0x4507c8
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x493a98
push ebp
call fcn.0044c679
add esp, 0xc
test eax, eax
je 0x4506b3
push esi
push esi
push esi
push esi
push esi
call fcn.004488c1
add esp, 0x14
push 0x104
mov esi, 0x493ab1
push esi
push 0
mov byte [0x493bb5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4506f7
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0044c679
add esp, 0xc
test eax, eax
je 0x4506f7
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004488c1
add esp, 0x14
push esi
call fcn.00451d20
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x45073c
push esi
call fcn.00451d20
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x493dac
push 0x47f654
sub ecx, eax
push ecx
push eax
call fcn.0044cbf4
add esp, 0x14
test eax, eax
je 0x45073c
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004488c1
add esp, 0x14
jmp 0x45073e
xor esi, esi
push 0x47f650
push ebx
push ebp
call fcn.0045e03d
add esp, 0xc
test eax, eax
je 0x45075e
push esi
push esi
push esi
push esi
push esi
call fcn.004488c1
add esp, 0x14
push dword [edi*8 + 0x48fc54]
push ebx
push ebp
call fcn.0045e03d
add esp, 0xc
test eax, eax
je 0x450780
push esi
push esi
push esi
push esi
push esi
call fcn.004488c1
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0045de80
add esp, 0xc
jmp 0x4507c8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4507c8
cmp ebp, 0xffffffff
je 0x4507c8
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x48fc54]
push dword [esi]
call fcn.00451d20
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 0x45de80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004511f2
xor ebx, ebx
cmp dword [0x4945a8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x45df56
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x45e036
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x45e036
push eax
call fcn.00451184
mov dword [esp], 0x47fb08
push edi
mov dword [0x4945a8], eax
call esi
push eax
call fcn.00451184
mov dword [esp], 0x47faf4
push edi
mov dword [0x4945ac], eax
call esi
push eax
call fcn.00451184
mov dword [0x4945b0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0044ee34
test eax, eax
pop ecx
pop ecx
je 0x45df24
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004488c1
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x45df56
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00451184
cmp eax, ebx
pop ecx
mov dword [0x4945b8], eax
je 0x45df56
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00451184
pop ecx
mov dword [0x4945b4], eax
mov eax, dword [0x4945b4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x45dfdb
cmp dword [0x4945b8], ecx
je 0x45dfdb
push eax
call fcn.004511fb
push dword [0x4945b8]
mov esi, eax
call fcn.004511fb
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x45dfdb
cmp edi, ebx
je 0x45dfdb
call esi
cmp eax, ebx
je 0x45dfa8
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45dfa8
test byte [ebp - 0x18], 1
jne 0x45dfdb
lea eax, [ebp - 0x10]
push eax
call fcn.0044ee6b
test eax, eax
pop ecx
je 0x45dfc3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004488c1
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x45dfd2
or dword [ebp + 0x10], 0x200000
jmp 0x45e016
or dword [ebp + 0x10], 0x40000
jmp 0x45e016
mov eax, dword [0x4945ac]
cmp eax, dword [ebp - 8]
je 0x45e016
push eax
call fcn.004511fb
cmp eax, ebx
pop ecx
je 0x45e016
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x45e016
mov eax, dword [0x4945b0]
cmp eax, dword [ebp - 8]
je 0x45e016
push eax
call fcn.004511fb
cmp eax, ebx
pop ecx
je 0x45e016
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4945a8]
call fcn.004511fb
cmp eax, ebx
pop ecx
je 0x45e036
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45e038
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46530a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x48fac0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0046529f
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.004481f0
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 0x465359
cmp dword [ebp - 0x1c], 5
jb 0x465371
jmp 0x46536d
cmp dword [ebp - 0x10], 1
jne 0x465371
cmp dword [ebp - 0x1c], 4
ja 0x46536d
jne 0x465371
cmp dword [ebp - 0x18], 0
jbe 0x465371
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x481478
call fcn.00465190
test eax, eax
jge 0x465392
mov byte [0x491564], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00448e02
add ebp, 0x78
leave
ret
Function at 0x10005a7a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x10005a89
pop dword [ebp - 0x48]
mov eax, 0x7f259b67
add eax, 0x90dabf22
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xffc03c87
add dword [ebp - 0x58], 0x4e9208c4
mov dword [ebp - 0x54], 0x58247322
add dword [ebp - 0x54], 0xda0ed923
mov dword [ebp - 0x50], 0xf76e7da5
sub dword [ebp - 0x50], 0xab223977
mov dword [ebp - 0x4c], 0x26a006de
add dword [ebp - 0x4c], 0xd95ff922
lea eax, [ebp - 0x58]
push eax
mov eax, 0x8140a3e3
sub eax, 0x713fe3bf
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xabfcabac
add dword [ebp - 0x58], 0xc875bdaa
mov dword [ebp - 0x54], 0xa663f9d9
add dword [ebp - 0x54], 0x9b08679c
mov dword [ebp - 0x50], 0x7ed97668
add dword [ebp - 0x50], 0xe495f604
mov dword [ebp - 0x4c], 0x857e54a0
sub dword [ebp - 0x4c], 0x857e54a0
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x60a6521f
sub eax, 0x50a591f3
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x3540a
push 0
call eax
mov ecx, 0xa7435a38
add ecx, 0x58bce2be
mov esi, eax
mov edi, 0x10047400
add edi, dword [ebp - 0x48]
mov edx, 0x24cdaef8
xor dword [ebp - 0x24], 0x311ce7e6
mov ebx, dword [edi]
mov dword [ebp - 0x14], 0xbfbec33f
xor ebx, edx
add dword [ebp - 0x3c], edx
mov dword [esi], ebx
xor dword [ebp - 0x1c], esi
add esi, 0x7db801f
sub esi, 0x7db801b
add edi, 4
loop 0x10005b9f
add eax, 0xdde87620
add eax, 0x2218708b
xor ebx, ebx
add ebx, eax
add eax, 0xc05f471a
add eax, 0x3fa0b8eb
mov ecx, 0xc9e9c203
sub ecx, 0xb9e9c203
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x4010e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, 0x21b0
push edi
mov dword [ebp - 4], ebx
mov esi, 0x4bb3
mov edi, 0x53
xor ecx, ecx
mov ebx, 0x609f
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x401100
mov eax, dword [ebp + 8]
test eax, eax
je 0x401240
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x401240
cmp eax, edx
jae 0x401240
mov ebx, 0x377d
jmp 0x401140
mov eax, 0x4d4873ed
imul ebx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x401140
mov eax, 0x787a
dec eax
jne 0x401158
jmp 0x401160
inc ecx
mov eax, ecx
and eax, 0x80000003
jns 0x40116f
dec eax
or eax, 0xfffffffc
inc eax
jne 0x401175
add ecx, ecx
jmp 0x40117e
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add ecx, eax
cmp ecx, 0x2e06
jl 0x401160
mov edi, dword [ebp + 8]
sub dword [ebp + 0xc], edi
xor esi, esi
mov edi, edi
inc esi
mov eax, 0x66666667
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
add ecx, ecx
mov eax, esi
sub eax, ecx
jne 0x4011ae
inc esi
cmp esi, 0x58d8
jl 0x401190
mov edx, dword [ebp + 0xc]
xor ecx, ecx
test edx, edx
je 0x4011ce
nop
mov al, byte [ecx + edi + 1]
sub al, 0x1c
xor byte [ecx + edi], al
inc ecx
cmp ecx, edx
jb 0x4011c0
mov ecx, 0x687b
mov edx, 0x14
mov eax, 0x8e
lea ecx, [ecx]
cmp eax, 0x14
cmovl eax, edx
dec ecx
jne 0x4011e0
mov ecx, 0x7b97
mov edx, 0x6f
mov eax, 0xd1
cmp eax, 0x6f
cmovl eax, edx
dec ecx
jne 0x4011f8
mov ebx, 0xab3
mov eax, 0x5397829d
imul ebx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x401206
mov ebx, dword [ebp - 4]
lea esp, [esp]
mov eax, 0x78787879
imul ebx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x401220
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x84210843
imul esi
add edx, esi
sar edx, 7
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x401240
mov eax, 0x326c
mov ecx, 0x15
nop
cmp edi, ecx
cmovg edi, ecx
dec eax
jne 0x401260
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4030c0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0x40311d
mov eax, dword [ebp + 8]
push ebx
push esi
mov ecx, dword [ebp + 0xc]
inc edi
mov bh, byte [edi + ecx - 1]
inc byte [eax]
movzx esi, byte [eax]
movzx edx, byte [esi + eax + 2]
movzx ecx, byte [eax + 1]
add esi, eax
add ecx, edx
movzx edx, cl
mov byte [eax + 1], cl
movzx ecx, byte [edx + eax + 2]
mov bl, byte [esi + 2]
mov byte [esi + 2], cl
mov byte [edx + eax + 2], bl
movzx ecx, byte [esi + 2]
mov edx, dword [ebp + 0xc]
add cl, bl
movzx ecx, cl
movzx ecx, byte [ecx + eax + 2]
xor cl, bh
mov byte [edi + edx - 1], cl
cmp edi, dword [ebp + 0x10]
jb 0x4030d0
pop esi
pop ebx
pop edi
pop ebp
ret
Function at 0x47cc80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x60000]
push edi
or ebp, 0xffffffff
jmp 0x47cca2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x47cca9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47cc98
mov eax, 1
add ebx, ebx
jne 0x47ccbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47cccc
jne 0x47cceb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47cceb
dec eax
add ebx, ebx
jne 0x47ccd8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x47ccb0
add ebx, ebx
jne 0x47cce7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x47cd3d
xor ecx, ecx
sub eax, 3
jb 0x47cd03
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47cd72
sar eax, 1
mov ebp, eax
jmp 0x47cd0e
add ebx, ebx
jne 0x47cd0e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47ccdc
inc ecx
add ebx, ebx
jne 0x47cd1c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47ccdc
add ebx, ebx
jne 0x47cd29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47cd1e
jne 0x47cd3a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47cd1e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47cd5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47cd4e
jmp 0x47cc9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47cd5c
add edi, ecx
jmp 0x47cc9e
pop esi
mov edi, esi
mov ecx, 0x34f3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47cd7a
cmp byte [edi], 0x14
jne 0x47cd7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x47cd7f
lea edi, [esi + 0x7a000]
mov eax, dword [edi]
or eax, eax
je 0x47cdf7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7ca00]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7ca3c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47cdac
mov ecx, edi
jns 0x47cddb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7ca40]
or eax, eax
je 0x47cdf1
mov dword [ebx], eax
add ebx, 4
jmp 0x47cdc9
call dword [esi + 0x7ca50]
mov ebp, dword [esi + 0x7ca44]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x47ce2b
sub esp, 0xffffff80
jmp 0x405830