joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ed2c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x1000ed3b
pop dword [ebp - 0x44]
mov eax, 0x1000ed3b
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x80b39d64
sub dword [ebp - 0x54], 0x32615819
mov dword [ebp - 0x50], 0xbdb7986e
add dword [ebp - 0x50], 0x747bb3d7
mov dword [ebp - 0x4c], 0x1ccdb751
sub dword [ebp - 0x4c], 0xd0817323
mov dword [ebp - 0x48], 0x512be69f
sub dword [ebp - 0x48], 0x512be69f
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xac59653c
add dword [ebp - 0x54], 0xc819041a
mov dword [ebp - 0x50], 0x3c87cdc3
sub dword [ebp - 0x50], 0xfb1b6c4e
mov dword [ebp - 0x4c], 0xdf70d1d5
sub dword [ebp - 0x4c], 0x7c016569
mov dword [ebp - 0x48], 0x5b00516
sub dword [ebp - 0x48], 0x5b00516
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xac0939df
sub eax, 0x9c0928bf
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x42ae0
push 0
call eax
mov ecx, 0xab18dd89
add ecx, 0x54e769b7
xor edx, edx
add edx, eax
mov edi, 0x1004f400
add edi, dword [ebp - 0x44]
mov esi, 0x42b06f0
xor dword [ebp - 0x2c], 0x4a390129
mov ebx, dword [edi]
add dword [ebp - 0x3c], eax
add ebx, esi
sub dword [ebp - 0x30], ebx
mov dword [edx], ebx
xor dword [ebp - 0x14], edx
add edx, 0x6afa7b80
sub edx, 0x6afa7b7c
add edi, 0x20c103c2
add edi, 0xdf3efc42
loop 0x1000ee49
add eax, 0xef2abd41
sub eax, 0xef29ad6e
xor ebx, ebx
add ebx, eax
add eax, 0xf68df4af
sub eax, 0xf68df4aa
mov ecx, 0x1639d756
sub ecx, 0x639d756
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x10041f49
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000b180]
jne 0x10042c8a
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x1004a1d0], eax
mov dword [0x1004a1cc], ecx
mov dword [0x1004a1c8], edx
mov dword [0x1004a1c4], ebx
mov dword [0x1004a1c0], esi
mov dword [0x1004a1bc], edi
mov word [0x1004a1e8], ss
mov word [0x1004a1dc], cs
mov word [0x1004a1b8], ds
mov word [0x1004a1b4], es
mov word [0x1004a1b0], fs
mov word [0x1004a1ac], gs
pushfd
pop dword [0x1004a1e0]
mov eax, dword [ebp]
mov dword [0x1004a1d4], eax
mov eax, dword [ebp + 4]
mov dword [0x1004a1d8], eax
lea eax, [ebp + 8]
mov dword [0x1004a1e4], eax
mov eax, dword [ebp - 0x320]
mov dword [0x1004a120], 0x10001
mov eax, dword [0x1004a1d8]
mov dword [0x1004a0d4], eax
mov dword [0x1004a0c8], 0xc0000409
mov dword [0x1004a0cc], 1
mov eax, dword [0x1000b180]
mov dword [ebp - 0x328], eax
mov eax, dword [0x1004a010]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x1004a118], eax
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x1000b384
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x1004a118], 0
jne 0x10042d76
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
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 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.004047b5
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.004047b5
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.004047b5
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.004047b5
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.004047b5
mov dword [0x41203c], eax
call fcn.004047b5
test eax, eax
jge 0x402550
push 8
call fcn.004047b5
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.004047b5
pop ecx
push 1
call fcn.004047b5
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.004047b5
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.004047b5
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.004047b5
jmp 0x402495

Function at 0x4047b5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x4047c4
pop dword [ebp - 0xc]
mov eax, 0xfb7f9c62
sub eax, 0xfb3f549e
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x37410
push 0
mov eax, 0x4a77dcce
sub eax, 0x4a36fbf6
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x1543e99c
add ecx, 0xeabc5686
xor edi, edi
add edi, eax
mov edx, 0xd4b8549c
add edx, 0x2b88e728
add edx, dword [ebp - 0xc]
mov esi, 0x8c113412
sub esi, 0xc2193ed9
add dword [ebp - 8], esi
mov ebx, dword [edx]
xor dword [ebp - 4], 0x8aae05f6
sub ebx, esi
xor dword [ebp - 8], 0x7f61b940
mov dword [edi], ebx
add edi, 0xf893c471
add edi, 0x76c3b93
add edx, 0x6fa348c6
sub edx, 0x6fa348c2
loop 0x404825
add eax, 0xfd1bcafa
sub eax, 0xfd1ad79f
xor ebx, ebx
add ebx, eax
add eax, 0x47f40de6
sub eax, 0x47f40de1
mov ecx, 0x63d882ba
sub ecx, 0x639882ba
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x401069
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x435030]
jne 0x401073
repz ret
jmp fcn.00401d81

Function at 0x40856b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040277c
and dword [ebp - 4], 0
cmp dword [0x4378b4], 0
mov ebx, eax
jne 0x40861c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4086cd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4086cd
push eax
call fcn.0040270a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4378b4], eax
call esi
push eax
call fcn.0040270a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4378b8], eax
call esi
push eax
call fcn.0040270a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4378bc], eax
call esi
push eax
call fcn.0040270a
pop ecx
mov dword [0x4378c4], eax
test eax, eax
je 0x40861c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040270a
pop ecx
mov dword [0x4378c0], eax
mov eax, dword [0x4378c0]
cmp eax, ebx
je 0x408674
cmp dword [0x4378c4], ebx
je 0x408674
push eax
call fcn.00402785
push dword [0x4378c4]
mov esi, eax
call fcn.00402785
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408674
test edi, edi
je 0x408674
call esi
test eax, eax
je 0x40866b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40866b
test byte [ebp - 0xc], 1
jne 0x408674
or dword [ebp + 0x10], 0x200000
jmp 0x4086ad
mov eax, dword [0x4378b8]
cmp eax, ebx
je 0x4086ad
push eax
call fcn.00402785
pop ecx
test eax, eax
je 0x4086ad
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4086ad
mov eax, dword [0x4378bc]
cmp eax, ebx
je 0x4086ad
push eax
call fcn.00402785
pop ecx
test eax, eax
je 0x4086ad
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4378b4]
call fcn.00402785
pop ecx
test eax, eax
je 0x4086cd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4086cf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ae80
Capabilities:
Set console window title

Disassembly:
mov eax, dword [0x2c15264]
sub esp, 0x1c
push ebx
mov ebx, dword [0x2c14f88]
push esi
mov esi, dword [0x435f70]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40aeb0
push str.tehibosuneyowo
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2c15264]
mov dword [0x437a14], esi
cmp eax, 0x114e
jne 0x40aeda
lea eax, [esp + 0xc]
push eax
push str.wuzatewuleyicuf
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov eax, dword [0x2c15264]
cmp eax, 0x2f
jne 0x40aef7
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push ebx
call fcn.0040ad70
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
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 0x416360
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004161d1

Function at 0x41675a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00406650
mov eax, dword [0x42d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004136e4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41679c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4168f8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421160
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47ade8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00417751
mov ecx, dword [esi*4 + 0x47ade8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4168f1
cmp eax, dword [edi + ecx + 0x24]
jne 0x4168f1
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4168f1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00417751
add esp, 0x14
test edx, edx
jl 0x4168f1
jg 0x416867
test eax, eax
jb 0x4168f1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4168f1
jl 0x416881
cmp dword [ebp - 0x1008], eax
ja 0x4168f1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41689f
test ebx, ebx
je 0x4168d8
cmp ecx, edi
jae 0x4168d8
mov al, byte [ecx]
cmp al, 0xd
jne 0x4168b9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4168c5
cmp byte [ecx + 1], 0xa
jne 0x4168c5
inc ecx
jmp 0x4168c5
movzx eax, al
movsx eax, byte [eax + 0x42d300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41689f
cmp edx, ebx
jne 0x41689f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4168f6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405899
leave
ret
Function at 0x416bef
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47ade8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x416c2f
cmp byte [ebx], 0xa
jne 0x416c2f
or byte [eax + edi + 0x28], 4
jmp 0x416c34
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x416d32
mov al, byte [edx]
cmp al, 0x1a
je 0x416d14
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x416c63
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x416c88
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x416c92
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x416c45
jmp 0x416d32
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416d0f
cmp dword [ebp - 0xc], 0
je 0x416d0f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47ade8]
test byte [eax + edi + 0x28], 0x48
je 0x416ce9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x416cd4
mov byte [esi], dl
jmp 0x416ce5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47ade8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x416d32
cmp byte [ebp - 1], 0xa
jne 0x416cf8
cmp esi, ebx
jne 0x416cf8
mov byte [esi], 0xa
jmp 0x416d31
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041776f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x416d32
mov byte [esi], 0xd
jmp 0x416d31
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47ade8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416d2e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416d32
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x416d3b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47ade8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x416d7e
cmp word [esi], dx
jne 0x416d7e
or byte [edi + eax + 0x28], 4
jmp 0x416d83
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x416ed6
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x416eb6
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x416dc5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x416dfb
cmp eax, edx
jae 0x416e07
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x416d9d
jmp 0x416ed6
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416eb2
cmp dword [ebp - 0x14], 0
je 0x416eb2
mov eax, dword [ebx*4 + 0x47ade8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x416e8a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x416e53
mov word [esi], cx
jmp 0x416e86
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47ade8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47ade8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47ade8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x416ed6
pop ebx
cmp word [ebp - 4], bx
jne 0x416e9b
cmp esi, dword [ebp + 0xc]
jne 0x416e9b
mov word [esi], bx
jmp 0x416ed3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041776f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x416ed6
push 0xd
jmp 0x416ecf
mov ecx, dword [ebx*4 + 0x47ade8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416ecd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416ed6
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419cb9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x419d56
push ebx
push esi
call fcn.00419c82
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00418907
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x419d03
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x419d55
push edi
push eax
call fcn.004127f3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x419d23
call fcn.004127b9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x419d54
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00418907
add esp, 0x20
test eax, eax
jne 0x419d42
push edi
call fcn.004127b9
jmp 0x419d4a
push ebx
call fcn.004127b9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x420f60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420f8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420f8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x422000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x214
mov eax, dword [0x42d040]
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
mov eax, ecx
mov byte [esp + ecx + 0x18], cl
and eax, 0xf
mov al, byte [eax + 0x479f80]
mov byte [esp + ecx + 0x118], al
inc ecx
cmp ecx, ebp
jl 0x422021
mov esi, edi
mov ebx, edi
mov dl, byte [esp + esi + 0x18]
movzx eax, byte [esp + esi + 0x118]
add eax, ebx
movzx ecx, dl
add ecx, eax
mov ebx, ecx
and ebx, 0x800000ff
jns 0x422065
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 0x422040
mov ebp, edi
mov dword [esp + 0x14], edi
inc edi
and edi, 0x800000ff
jns 0x42208d
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [esp + edi + 0x18]
movzx esi, bl
add ebp, esi
and ebp, 0x800000ff
jns 0x4220a6
dec ebp
or ebp, 0xffffff00
inc ebp
push ecx
call fcn.00401981
push eax
call fcn.00402d2f
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 + 0x42dad0], al
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, 0x4c000
jl 0x42207c
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405899
add esp, 0x214
ret
Function at 0x4222db
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x42d040]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
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.00401abf
push 0xc
call fcn.004058ac
pop ecx
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.004220fd
mov ebx, 0x4ac
mov esi, dword [eax + 4]
lea eax, [esp + 0xc]
push eax
push 0x40
push ebx
shl esi, 2
push 0x479ad0
sub esi, 0x40
push 0xffffffffffffffff
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
xor edi, edi
push edi
push edi
push edi
call dword [sym.imp.USER32.dll_GetUpdateRgn]
mov dword [esp + 0x10], esi
mov ecx, edi
mov al, byte [ecx + 0x479ad0]
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 + 0x479ad0], al
inc ecx
cmp ecx, ebx
jb 0x422352
push ecx
push ecx
call section..bss
pop ecx
pop ecx
lea eax, [esp + 0x10]
push eax
push edi
push 0x42dad0
push 0x479c58
push edi
push edi
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.004023d0
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00405899
mov esp, ebp
pop ebp
ret