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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4049db
call fcn.0041ac3d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4049db
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x404a1e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x404a07
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x404a07
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x404a1b
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40ca5a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40caa1
call fcn.0041ac3d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40caa1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40cabd
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040c5d2
mov esi, eax
test edi, edi
je 0x40cabb
test ebx, ebx
je 0x40cabb
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x411945
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x44aaa5
call fcn.00435f13
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41196a
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4119b0
lea ecx, [ebp - 0x10]
call fcn.00403651
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040d08b
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402bc4
mov eax, esi
call fcn.00435feb
ret 8
Function at 0x418328
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0041ac3d
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x418355
xor eax, eax
jmp 0x4183fb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x41834e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41834e
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040243d
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x4183ac
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x41839b
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.00417096
push edi
mov ebx, eax
call fcn.0040246c
pop ecx
test ebx, ebx
je 0x4183ee
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.0041773d
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.004177f1
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4
Function at 0x430662
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x44bb89
call fcn.00435f13
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040571e
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4306c4
call fcn.0041a517
cmp eax, 1
jne 0x4306c4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.004060d3
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00404eb0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402bc4
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402bc4
mov eax, esi
call fcn.00435feb
ret 0x10

Function at 0x4306ed
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x44bb89
call fcn.00435f13
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040571e
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x43074f
call fcn.0041a517
cmp eax, 1
jne 0x43074f
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.004060d3
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00404eb0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402bc4
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402bc4
mov eax, esi
call fcn.00435feb
ret 0x14

Function at 0x435685
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x462bb0]
jne 0x43568f
repz ret
jmp fcn.0043a8a3
Function at 0x442622
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.0043a2b2
and dword [ebp - 4], 0
cmp dword [0x466aa0], 0
mov ebx, eax
jne 0x4426d3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x442784
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x442784
push eax
call fcn.0043a240
mov dword [esp], 0x454724
push edi
mov dword [0x466aa0], eax
call esi
push eax
call fcn.0043a240
mov dword [esp], 0x454710
push edi
mov dword [0x466aa4], eax
call esi
push eax
call fcn.0043a240
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x466aa8], eax
call esi
push eax
call fcn.0043a240
pop ecx
mov dword [0x466ab0], eax
test eax, eax
je 0x4426d3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043a240
pop ecx
mov dword [0x466aac], eax
mov eax, dword [0x466aac]
cmp eax, ebx
je 0x44272b
cmp dword [0x466ab0], ebx
je 0x44272b
push eax
call fcn.0043a2bb
push dword [0x466ab0]
mov esi, eax
call fcn.0043a2bb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44272b
test edi, edi
je 0x44272b
call esi
test eax, eax
je 0x442722
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x442722
test byte [ebp - 0xc], 1
jne 0x44272b
or dword [ebp + 0x10], 0x200000
jmp 0x442764
mov eax, dword [0x466aa4]
cmp eax, ebx
je 0x442764
push eax
call fcn.0043a2bb
pop ecx
test eax, eax
je 0x442764
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x442764
mov eax, dword [0x466aa8]
cmp eax, ebx
je 0x442764
push eax
call fcn.0043a2bb
pop ecx
test eax, eax
je 0x442764
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x466aa0]
call fcn.0043a2bb
pop ecx
test eax, eax
je 0x442784
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x442786
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x52b7d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd7000]
push edi
jmp 0x52b7ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x52b7f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52b7e0
mov eax, 1
add ebx, ebx
jne 0x52b803
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x52b814
jne 0x52b833
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52b833
dec eax
add ebx, ebx
jne 0x52b820
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x52b7f8
add ebx, ebx
jne 0x52b82f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x52b885
xor ecx, ecx
sub eax, 3
jb 0x52b84b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52b8ba
sar eax, 1
mov ebp, eax
jmp 0x52b856
add ebx, ebx
jne 0x52b856
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52b824
inc ecx
add ebx, ebx
jne 0x52b864
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52b824
add ebx, ebx
jne 0x52b871
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x52b866
jne 0x52b882
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x52b866
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x52b8a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x52b896
jmp 0x52b7e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x52b8a4
add edi, ecx
jmp 0x52b7e6
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x52b8c2
cmp byte [edi], 0x11
jne 0x52b8c2
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 0x52b8c7
lea edi, [esi + 0x124000]
mov eax, dword [edi]
or eax, eax
je 0x52b93f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18022c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1803a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x52b8f4
mov ecx, edi
jns 0x52b923
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 + 0x1803ac]
or eax, eax
je 0x52b939
mov dword [ebx], eax
add ebx, 4
jmp 0x52b911
call dword [esi + 0x1803bc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x52b970
cmp al, 0xef
ja 0x52b963
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x52b945
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x52b952
mov ebp, dword [esi + 0x1803b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x52b9a4
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x4016ee
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, esp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4050b2], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4051a0], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x405134], eax
mov dword [0x4050aa], eax
mov dword [0x405120], 0x30
mov dword [0x405124], 2
jmp 0x401733
mov dword [0x405128], 0x4030e0
mov dword [0x40512c], 0
mov dword [0x405130], 0
mov dword [0x405148], 0x404182
mov dword [0x405140], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x405138], eax
mov dword [0x40514c], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x40513c], eax
push 0x405120
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4050aa]
push 0
push 0
push 0x1e0
push 0x1fe
push 0xfffff862
push 0xfffff8f8
push 0xcf0000
push str.5_minutes
push str.return
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405198], eax
push 5
push dword [0x405198]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405198]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x405150]
jmp 0x401807
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x4017f9
mov eax, dword [0x405158]
jmp 0x401822
call 0x402c71
ret
Function at 0x401750
Capabilities:
Terminate process

Disassembly:
scasd eax, dword es:[edi]
mov ebp, esp
mov ebx, dword [esi - 0x37f274f8]
or eax, sym.imp.MSVCRT.dll__iob
rol byte [ebx + 0x660a40c1], cl
test dword [eax], eax
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
mov eax, dword [0x410dac]
add esp, 0xc
test eax, eax
je 0x401787
push eax
push 0x69d254
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 0x5c
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov edx, 0x81098b55
in al, dx
mov eax, 0xa1000000
js 0x40179e
inc ecx
add byte [ebp + 0x3e4ca1c0], al
inc ecx
add byte [esp + edx + 0x68], dh
inc eax
cmp al, 0x41
add al, dh
call fcn.00405850
mov cx, word [0x5e414274]
jmp 0x5598d2
test eax, eax
mov eax, dword [0x413e4c]
je 0x4017bb
push 0x413c40
invalid
adc dword [0x416d00], 0x88e85052
inc eax
add byte [eax], al
mov cx, word [0xa14117f4]
mov dword [0x411808], eax
mov eax, dword [0x5b230c]
xchg ebp, eax
push esi
mov ebp, ebp
shl edx, 0
mov word [0xde0b26], cx
test eax, eax
push edi
jne 0x40184a
mov esp, dword [eax + eax]
sbb byte [ecx], al
push edx
push 0x40de98
invalid
mov edx, dword [0x40d047]
mov esi, dword [sym.imp.MSVCRT.dll_calloc]
push 0x860
push edx
call esi
mov dword [0x410bb0], eax
mov eax, dword [0x203ddd10]
push 0x20
leave
call esi
push 0x1a
dec esp
inc eax
inc ecx
add byte [ebx - 0x412f90eb], cl
add byte [ecx + 0x7a], cl
adc byte [ebx + 0x410bc8], ah
push 0
push ecx
pop edi
push ds
clc
pop ss
inc ecx
add al, ch
ja 0x4018a0
add byte [eax], al
test eax, eax
sbb cl, byte [esi]
push eax
push str.apr_pollset_create_failed
call 0xe41340
das
les ecx, [eax]
mov eax, dword [0x41027c]
or byte [ecx + 0x41027c], ah
rcr byte [esi], 0x35
mov eax, dword [0x9e520b53]
mov edi, esp
invalid

Function at 0x404560
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x8ad4c]
push ebx
pushal
jecxz 0x404575
push edi
push ebx
push eax
call 0x1146f96
add byte [ebx + 0x414040], ah
mov dword [0x414040], eax
mov ebx, dword [esi + 0x33ffc973]
sal dl, 0xae
mov esi, dword [sym.imp.MSVCRT.dll_strncmp]
xlatb
ror dword [ecx - 0x7d], 1
adc eax, 0x6d86d807
add byte [eax], al
add byte [edx + 7], ch
push 0xeb40f2d8
push ebx
call dword [edx]
add esp, 0xfc0b10c
test edx, eax
add byte [eax], al
add byte [ebx + 0x426a07c3], al
xor al, 0xff
inc ebx
jl 0x404576
inc eax
add byte [ebx + 0x408945c4], al
or byte [edx + 0x52840fc0], al
add dword [eax], eax
add byte [ebx + 0x404ca1f0], cl
push ebp
add byte [eax], dl
lea edx, [esi + 1]
push edx
push eax
call 0x68404a60
mov ecx, esi
jmp 0x8c11d1d2
Function at 0x405b70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
out dx, al
shr dword [edi], 0xbf
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 0x58
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
pop edi
ret
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi - 0x48]
test eax, eax
jge 0x405b87
mov eax, dword [esi + 0x20]
cmp byte [eax], 0xe3
cmp dword [eax], ecx
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x18]
sub ecx, eax
push esi
inc esi
adc al, 0
add byte [eax], al
add byte [ebp + 0x24], bh
popfd
push esi
sbb al, 0xf2
jae 0x405b28
mov dword [esi + 0x20], eax
cmp byte [eax], 0x2d
jne 0x405bbc
mov dl, byte [eax + 1]
inc eax
test dl, dl
je 0x405bd6
mov al, byte [0x108a2046]
cmp dl, 0x2d
jne 0x405bd6
inc ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x20], 0x4102d4
mov ecx, dword [ebp + 0x10]
mov al, byte [esi - 6]
fistp word [esi - 0x78]
add dword [eax + 0x111f2], edi
pop ebp
ret 0x2e82
mov edx, dword [esi + 0x1b]
mov edi, dword [esp + ecx]
insb byte es:[edi], dx
mov esi, 0xf883422f
cmp ch, bl
inc esi
salc
insd dword es:[edi], dx
pop edx
sub cl, byte [edi]
test al, dl
add byte [eax], al
cli
push eax
aad 0xff
adc eax, 0x9a40c17c
les ecx, ds:[eax]
test esp, ebp
je 0x40778d
cmp byte [eax + 0x3c], 0x3a
je 0x405c22
push esi
dec ebp
adc al, 0xc7
add dword [eax], eax
add byte [eax], al
add byte [esi + edx*2 + 0x20], bh
cmp byte [edx], 0x3d
lsl edx, word [edx - 0x17000000]
mov al, byte [eax]
add byte [eax], al
mov dword [0x38462046], eax
mov esi, 0x4d8b0774
mov dword [ecx + 0x7174eb01], ecx
loopne 0x405c40
mov esp, dword [ebp - 0x2674bde8]
mov dword [esi + 0xc], edx
inc ecx
enter 0x4a7f, 0xffffffffffffffc7
inc esi
and ah, dl
add al, byte [ecx]
dec edx
mov dword [esi + 0x20], 0x4102d4
test al, 7
cmp al, 0x3a
jne 0x405c61
mov eax, dword [ebp + 0x10]
mov dh, bh
adc byte [edi + 0x5e], bl
mov byte [eax], dl
mov eax, 0x1117d
pop ebp
ret 0x10
mov eax, dword [esi + 0x6d]
aad 0xc0
je 0x405cd6
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x10]
push ecx
mov ebx, dword [edx + 0x50]
call fcn.0040a580
mov ecx, dword [esi + 8]
push eax
push 0x401ee8
push ecx
call dword [esi + 0x41]
add esp, 0x10
mov eax, dword [ebp + 0x10]
mov dl, byte [esi + 0x10]
pop edi
pop esi
in eax, 0x6b
mov eax, 0x1117c
pop ebp
ret 0x74
mov ch, 0x85
sal byte [esi + eax - 0x80], 0x4e
cmp ch, byte [esi - 0x3e]
mov ecx, dword [esi - 0x3c]
mov ebx, dword [eax + edx]
push eax
mov edx, dword [ecx]
push edx
call 0x115eaf2
push eax
mov eax, dword [esi - 0xf]
push str._s:_illegal_option_____c_n
push eax
sub esi, dword [eax + 4]
add esp, 0x10
mov edx, dword [ebp + 0x49]
aad 0x55
adc byte [0x1117cb8], cl
add byte [eax - 0x3d72a1f6], cl
adc byte [eax], al
nop
nop
nop
nop
nop
cmp bl, byte [eax - 0x70]
nop
nop
into
nop
nop
nop
push ebp
mov ebp, esp
push ecx
push esi
push edi
call 0xac2cb420
test eax, eax
invalid
aaa
xchg esi, eax
loopne 0x4077b4
setae byte [esi]
mov gs, word [eax - 0x77]
in eax, 0x31
shr bl, cl
or eax, 0x220ef1
dec edi
push esi
sub bl, dh
mov dl, al
pop esi
mov word [ebx + ecx*4 + 0x52], fs
xor byte [eax - 0x6ff3ad75], dl
mov byte [0xf05e981a], al
popfd
mov dh, 0xe2
mov edi, 0xce486860
Function at 0x40b2e6
Capabilities:
Write file on windows

Disassembly:
xor eax, eax
push ebx
cmp ecx, 1
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x53], eax
jne 0x40b3c6
mov edx, dword [edi]
cmp al, 0x3b
clc
je 0x111b395
mov ebx, dword [esi + 0x38]
cmp edi, 0xffffffff
jbe 0x40b311
cmp dword [edx + 0x39026b6c], 0xffffffc7
cmp edi, eax
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x5e]
push 0
push ecx
push eax
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
loop 0x40b3a4
je 0x40b358
mov eax, dword [ebp - 0x6c]
mov edx, dword [esi - 0x59]
mov ecx, dword [esi + 0x54]
add edx, eax
adc ecx, 0
sub edi, eax
add ebx, eax
mov dword [esi + 0x2e], edx
test edi, edi
push ebp
dec esi
push esp
ja 0x40b307
mov eax, dword [ebp + 8]
dec esi
adc dword [edi + 0x3b], 0
pop ebx
cmp dword [ebx + 0x4e35de5], ecx
add byte [ebx + 0x40c0983d], cl
add bh, bh
xlatb
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
sub eax, 0x890575d0
inc ebp
or bl, ch
or bh, bh
xlatb
add eax, 0xa5580
into
inc ebp
push eax
pop ebp
inc ebp
cld
mov edx, dword [esi + 0x54a68b50]
push ss
shr byte [ecx + 0x45], 1
or byte [ecx - 0x2e7c9caa], cl
add byte [eax - 0x40], dh
mov dword [ecx + 0x54], ecx
jne 0x40b395
mov dword [esi - 0x5d], 0x4000
mov eax, dword [ebp + 8]
iretd
clc
in eax, 0x5d
ret 4
shr dword [esp + eax - 0x6b], 1
add dword [eax], eax
add byte [eax + 0x4c25d], ch
nop
nop
nop
nop
nop
outsb dx, byte [esi]
nop
nop
nop
nop
nop
push ss
nop
nop
Function at 0x401a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov dword [ebp - 0x114], str._ffffffffffffffff
mov eax, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x11c], eax
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0x110]
push eax
call dword [ebp - 0x11c]
push 0
push 0x80
push 3
push 0
push 3
push 1
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
je 0x401aea
cmp dword [ebp - 0x118], 0
je 0x401aea
jmp 0x401b4c
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
je 0x401b4c
mov dword [ebp - 0x120], 0x3c41
mov eax, dword [ebp + 8]
sub eax, 0xfffffff8
mov dword [0x4370b4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [0x4370d0], edx
mov dword [ebp - 0x120], 0x3c41
mov dword [ebp - 0x120], 0x3c41
call fcn.004011c0
mov eax, dword [ebp + 8]
mov dword [0x4370cc], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
call fcn.00401980
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x401aea
mov esp, ebp
pop ebp
ret
Function at 0x401451
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147f
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x40149a
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ee
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ee
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f2
xor eax, eax
jmp 0x401504
cmp dword [ebp - 4], edi
je 0x401501
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x401944
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
xor esi, esi
call edi
test eax, eax
jbe 0x40197b
push ebx
mov ebx, ebp
sub ebx, str.svchost.exe
mov al, byte [ebx + esi + str.svchost.exe]
push ebp
xor al, 1
mov byte [esi + str.svchost.exe], al
inc esi
call edi
cmp esi, eax
jb 0x401963
pop ebx
and byte [esi + str.svchost.exe], 0
pop edi
pop esi
mov eax, str.svchost.exe
pop ebp
ret

Function at 0x414ac0
Capabilities:
Encode data using xor

Disassembly:
xor byte [eax + 0x497b2118], ah
and dword [ebx + 0x49], edi
fidiv word [ecx + 0x22]
std
pop ecx
je 0x414abd
invalid