joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4014d0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x40e990
push 0x67
push esi
call edi
push 0x64
push 0x40e928
push 0x6d
push esi
call edi
mov eax, esi
call fcn.004015d0
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x40e990
push 0x40e928
push 0
mov dword [0x40e924], esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, eax
test edi, edi
je 0x4015ac
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 6
push edi
call ebx
push 0
push edi
call ebx
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
pop ebx
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push 0
push 0
mov esi, eax
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4015b6
mov edx, dword [esp + 8]
lea ecx, [esp + 8]
push ecx
push esi
push edx
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x40159a
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0x401310
call fcn.00402584
add esp, 4
call fcn.004025a2
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret 0x10
mov eax, dword [esp + 0x10]
pop edi
pop esi
add esp, 0x1c
ret 0x10

Function at 0x402182
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d028]
jne 0x40218c
repz ret
jmp fcn.004027e8
Function at 0x406b3b
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.00403303
and dword [ebp - 4], 0
cmp dword [0x40e848], 0
mov ebx, eax
jne 0x406bec
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406c9d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406c9d
push eax
call fcn.00403291
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e848], eax
call esi
push eax
call fcn.00403291
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e84c], eax
call esi
push eax
call fcn.00403291
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40e850], eax
call esi
push eax
call fcn.00403291
pop ecx
mov dword [0x40e858], eax
test eax, eax
je 0x406bec
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403291
pop ecx
mov dword [0x40e854], eax
mov eax, dword [0x40e854]
cmp eax, ebx
je 0x406c44
cmp dword [0x40e858], ebx
je 0x406c44
push eax
call fcn.0040330c
push dword [0x40e858]
mov esi, eax
call fcn.0040330c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406c44
test edi, edi
je 0x406c44
call esi
test eax, eax
je 0x406c3b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406c3b
test byte [ebp - 0xc], 1
jne 0x406c44
or dword [ebp + 0x10], 0x200000
jmp 0x406c7d
mov eax, dword [0x40e84c]
cmp eax, ebx
je 0x406c7d
push eax
call fcn.0040330c
pop ecx
test eax, eax
je 0x406c7d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406c7d
mov eax, dword [0x40e850]
cmp eax, ebx
je 0x406c7d
push eax
call fcn.0040330c
pop ecx
test eax, eax
je 0x406c7d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e848]
call fcn.0040330c
pop ecx
test eax, eax
je 0x406c9d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406c9f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40110b
Capabilities:
Accept command line arguments

Disassembly:
push 0x5c
push 0x423c40
call fcn.00403e28
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x24], 0xbaadc0de
jne 0x40112f
push dword [ebp - 0x28]
call fcn.00401768
pop ecx
push 0x44
push 0
lea eax, [ebp - 0x6c]
push eax
call fcn.00401287
add esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
jne 0x401164
mov esi, 0x41d4a0
mov dword [ebp - 0x20], esi
mov al, 0x20
mov byte [ebp - 0x19], al
mov cl, byte [esi]
test cl, cl
je 0x401179
cmp cl, al
jg 0x401179
inc esi
mov dword [ebp - 0x20], esi
jmp 0x401169
mov cl, byte [esi]
cmp cl, al
jle 0x401193
cmp cl, 0x22
jne 0x40118d
movsx eax, al
xor eax, 0x20
mov byte [ebp - 0x19], al
inc esi
mov dword [ebp - 0x20], esi
jmp 0x401179
mov cl, byte [esi]
test cl, cl
je 0x4011a3
cmp cl, al
jg 0x4011a3
inc esi
mov dword [ebp - 0x20], esi
jmp 0x401193
call fcn.00401842
push ecx
push esi
call fcn.00401757
mov ecx, eax
call fcn.00415815
push eax
push 0
call fcn.00401772
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
push ecx
push dword [eax]
call fcn.00404550
pop ecx
pop ecx
ret

Function at 0x401842
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x61f00c], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x61f008], eax
pushaw
mov eax, 1
cpuid
shr edx, 0x1a
and edx, 1
mov dword [0x61f010], edx
popaw
call fcn.00404528
test eax, eax
je 0x4018ed
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
xor edi, edi
mov ebx, 0x61f068
inc edi
push 0xfffffffffffffff6
mov dword [0x61f078], ebx
mov dword [0x61f084], edi
call esi
push 0xfffffffffffffff5
mov dword [0x61f088], eax
mov dword [0x61f098], ebx
mov dword [0x61f0a4], edi
call esi
push 0xfffffffffffffff4
mov dword [0x61f0a8], eax
mov dword [0x61f0b8], ebx
mov dword [0x61f0c4], edi
call esi
push 0x41d140
push 0x41d13c
mov dword [0x61f0c8], eax
call fcn.00401736
push 0x41d138
push 0x41d0e8
call fcn.00401736
add esp, 0x10
pop edi
pop esi
pop ebx
ret
push 0xffffffffffffffff
push 0x243
call fcn.00401772
int3
Function at 0x40ec70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 4]
push edi
mov edi, ecx
test esi, esi
jns 0x40ec9e
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
and eax, 0xfffffffe
and esi, 0x7fffffff
push eax
add esi, edx
push esi
call fcn.0040ed1f
add esp, 0xc
jmp 0x40ed1b
push ebx
mov ecx, 0x7fffffff
and esi, ecx
add esi, edx
lea eax, [ebp + 8]
mov ebx, dword [esi]
and dword [ebp + 8], 0
push eax
push 4
push dword [esi + 4]
and ebx, ecx
add ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40ed1a
mov eax, dword [ebp + 0x10]
push 0xffffffffffffffff
mov ecx, dword [eax + 0x1c]
push 0
sub ecx, edi
test byte [ebp + 0xc], 0x40
pop eax
setne al
lea eax, [eax*2 - 1]
push eax
mov eax, dword [0x624104]
imul eax, dword [esi]
push eax
mov eax, dword [0x62410c]
imul eax, dword [esi]
push eax
mov eax, dword [0x624100]
mov edx, dword [esi + 4]
xor eax, ecx
push eax
mov ecx, ebx
call fcn.0040f1b9
add esp, 0x14
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push dword [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x40f266
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x41b468
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
mov esi, ecx
push edi
mov ebx, edx
test esi, esi
je 0x40f32e
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi + 0x7c], 0
je 0x40f32e
mov eax, dword [edi + 0x78]
add eax, esi
mov dword [esp + 0x18], eax
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
add ecx, esi
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x24]
add ecx, esi
add edx, esi
cmp byte [ebx], 0xff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], edx
je 0x40f2e9
push ebx
call fcn.00401566
push eax
push ebx
call fcn.004117a1
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
add esp, 0xc
jmp 0x40f2f3
mov ecx, dword [ebx + 1]
xor ecx, dword [ebp + 0xc]
mov dword [esp + 0x10], ecx
xor ebx, ebx
cmp dword [eax + 0x18], ebx
jbe 0x40f32e
mov eax, dword [edx + ebx*4]
test eax, eax
je 0x40f324
add eax, esi
push eax
mov dword [esp + 0x20], eax
call fcn.00401566
push eax
push dword [esp + 0x24]
call fcn.004117a1
add esp, 0xc
cmp dword [esp + 0x10], eax
je 0x40f342
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ebx
cmp ebx, dword [eax + 0x18]
jb 0x40f2fa
xor eax, eax
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
movzx eax, word [eax + ebx*2]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [edi + 0x78]
jb 0x40f439
mov eax, dword [edi + 0x7c]
add eax, dword [edi + 0x78]
cmp ecx, eax
jae 0x40f439
lea eax, [ecx + esi]
push eax
lea ecx, [esp + 0x2c]
call fcn.00404792
xor ebx, ebx
mov dword [esp + 0x64], ebx
push 1
push ecx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x18], 0x2e
call fcn.00411014
mov esi, eax
cmp esi, 0xffffffff
je 0x40f3d0
push esi
push ebx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
call fcn.00410d2c
mov byte [esp + 0x64], 1
cmp dword [eax + 0x14], 0x10
jb 0x40f3b5
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov byte [esp + 0x64], bl
lea ecx, [esp + 0x40]
call fcn.004047bf
test edi, edi
jne 0x40f3e3
int3
or dword [esp + 0x64], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.004047bf
jmp 0x40f32e
push 0xffffffffffffffff
lea eax, [esi + 1]
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
call fcn.00410d2c
mov byte [esp + 0x64], 2
cmp dword [eax + 0x14], 0x10
jb 0x40f404
mov eax, dword [eax]
push dword [ebp + 0xc]
mov edx, eax
push dword [ebp + 8]
mov ecx, edi
call fcn.0040f266
pop ecx
pop ecx
mov esi, eax
mov byte [esp + 0x64], bl
lea ecx, [esp + 0x40]
call fcn.004047bf
or dword [esp + 0x64], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.004047bf
mov eax, esi
jmp 0x40f330
lea eax, [ecx + esi]
jmp 0x40f330
Function at 0x40f477
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x41b381
call fcn.00403df8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
and eax, 0xf
or dword [edi + 4], 0xffffffff
mov dword [edi], eax
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [ebp - 0x10], edi
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [ebp - 4], ebx
push 0x40
lea eax, [edi + 0x30]
push ebx
push eax
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x168], ebx
call fcn.00401287
add esp, 0xc
lea eax, [edi + 0x70]
push 0xf8
push ebx
push eax
call fcn.00401287
mov eax, dword [ebp + 8]
add esp, 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push ecx
mov ecx, edi
mov dword [ebp - 0x14], esi
call fcn.0040f570
mov dword [edi + 4], eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14

Function at 0x40f78f
Capabilities:
Parse pe header

Disassembly:
push 8
push 0x422610
call fcn.00403e28
mov esi, ecx
and dword [ebp - 4], 0
lea edi, [esi + 0x30]
push dword [ebp + 0xc]
push 0x40
push 0
push edi
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40f882
or dword [ebp - 4], 0xffffffff
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x40f871
cmp dword [esi + 0x6c], 0
je 0x40f871
mov dword [ebp - 4], 1
lea edi, [esi + 0x70]
push dword [ebp + 0xc]
push 0xf8
push dword [esi + 0x6c]
push edi
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40f882
or dword [ebp - 4], 0xffffffff
cmp dword [edi], 0x4550
jne 0x40f871
mov eax, 0x10b
cmp word [esi + 0x88], ax
jne 0x40f871
movzx eax, word [esi + 0x76]
test ax, ax
je 0x40f871
mov edi, eax
imul edi, edi, 0x28
movzx ecx, word [esi + 0x84]
mov ebx, dword [esi + 0x6c]
add ecx, 0x18
add ebx, ecx
push edi
call fcn.00401b43
pop ecx
mov dword [esi + 0x168], eax
test eax, eax
jne 0x40f846
push 8
jmp 0x40f888
mov dword [ebp - 4], 2
push dword [ebp + 0xc]
push edi
push ebx
push eax
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40f882
or dword [ebp - 4], 0xffffffff
lea eax, [ebx + edi]
mov dword [esi + 0x18], eax
xor eax, eax
jmp 0x40f889
push 0xb
jmp 0x40f888
or dword [ebp - 4], 0xffffffff
push 0x1e
pop eax
call fcn.00403e17
ret 8
Function at 0x4117a1
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov ecx, 0x621e7fa5
test edi, edi
je 0x4117da
movzx eax, byte [ebx]
cdq
push 0
xor esi, edx
push 0x1000193
xor ecx, eax
push esi
push ecx
inc ebx
call fcn.0041ab50
xor esi, esi
mov ecx, eax
dec edi
jne 0x4117bc
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4117e3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [0x626598]
or eax, dword [0x62659c]
push ebx
push esi
mov ebx, edx
push edi
mov dword [esp + 0xc], ebx
mov edi, ecx
jne 0x411843
xor esi, esi
mov eax, esi
push 8
cdq
pop ebx
mov ecx, eax
shrd eax, edx, 1
and ecx, 1
shr edx, 1
or ecx, 0
je 0x411825
xor eax, 0xd7870f42
xor edx, 0xc96c5795
dec ebx
jne 0x41180a
mov dword [esi*8 + 0x625da0], eax
mov dword [esi*8 + 0x625da4], edx
inc esi
cmp esi, 0x100
jl 0x411804
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
not ecx
not edx
test edi, edi
je 0x411874
movzx eax, byte [edi]
xor eax, ecx
shrd ecx, edx, 8
and eax, 0xff
shr edx, 8
xor ecx, dword [eax*8 + 0x625da0]
xor edx, dword [eax*8 + 0x625da4]
inc edi
dec ebx
jne 0x411851
pop edi
not ecx
pop esi
not edx
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415559
Capabilities:
Get common file path

Disassembly:
push 0x318
push 0x422bf8
call fcn.00403e28
or dword [ebp - 0x1c], 0xffffffff
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0041490b
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
jmp 0x41558c
cmp byte [0x61fb1d], 0
je 0x415748
mov byte [ebp - 0x224], bl
cmp dword [0x624608], 0
je 0x4155f6
mov eax, dword [0x6244d0]
test eax, eax
je 0x4155b6
push ebx
call eax
jmp 0x4155e1
cmp dword [0x6243c8], 0
je 0x4155df
push 0x18
pop eax
call fcn.0040171b
mov dword [ebp - 0x18], esp
push esp
push 0x61fcbc
call fcn.0040f024
push eax
call dword [0x6243c8]
add esp, 0xc
mov eax, ebx
push 0x104
lea ecx, [ebp - 0x224]
push ecx
push eax
call dword [0x624608]
jmp 0x415617
cmp dword [0x6243c8], 0
je 0x415615
push 0x1c
pop eax
call fcn.0040171b
mov dword [ebp - 0x18], esp
push esp
push 0x61fcd4
jmp 0x415739
mov eax, ebx
test eax, eax
je 0x415748
mov byte [ebp - 0x328], bl
mov byte [ebp - 0x120], bl
lea eax, [ebp - 0x328]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x415748
cmp eax, 0xf2
ja 0x415748
lea eax, [ebp - 0x120]
push eax
push ebx
push 0x61fcf0
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x415748
push 0x61fcf4
lea eax, [ebp - 0x120]
push eax
call fcn.0040144d
pop ecx
pop ecx
mov eax, dword [0x624df4]
test eax, eax
je 0x415699
lea ecx, [ebp - 0x224]
push ecx
call eax
jmp 0x4156c2
cmp dword [0x6243c8], 0
je 0x4156c2
push 0x14
pop eax
call fcn.0040171b
mov dword [ebp - 0x18], esp
push esp
push 0x61fb44
call fcn.0040f024
push eax
call dword [0x6243c8]
add esp, 0xc
mov eax, dword [0x625168]
test eax, eax
je 0x4156df
push 1
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x224]
push ecx
call eax
jmp 0x415708
cmp dword [0x6243c8], 0
je 0x41570d
push 0x14
pop eax
call fcn.0040171b
mov dword [ebp - 0x18], esp
push esp
push 0x61fb64
call fcn.0040f024
push eax
call dword [0x6243c8]
add esp, 0xc
mov eax, dword [0x625168]
test eax, eax
je 0x41571f
push 4
push ebx
lea ecx, [ebp - 0x120]
push ecx
call eax
jmp 0x415748
cmp dword [0x6243c8], 0
je 0x415748
push 0x14
pop eax
call fcn.0040171b
mov dword [ebp - 0x18], esp
push esp
push 0x61fb64
call fcn.0040f024
push eax
call dword [0x6243c8]
add esp, 0xc
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x334]
call fcn.00403e17
ret

Function at 0x415815
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
mov esi, ecx
call fcn.00403e63
push eax
call fcn.00401be9
pop ecx
pop ecx
push 0x10
pop edx
mov ecx, esi
call fcn.004157a7
mov eax, dword [0x625254]
test eax, eax
je 0x415846
push 0x415757
call eax
jmp 0x41586c
cmp dword [0x6243c8], 0
je 0x41586c
push 0x24
pop eax
call fcn.0040171b
push esp
push 0x421848
call fcn.0040f024
push eax
call dword [0x6243c8]
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.00415559
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 8
Function at 0x416c50
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41b446
push eax
mov dword fs:[0], esp
sub esp, 0x38
cmp dword [0x625d78], 0
push esi
je 0x416cef
mov esi, 0x625d68
push ecx
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00418e86
mov ecx, eax
call fcn.004190af
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x416ca0
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
push dword [eax + ecx*4]
lea ecx, [esp + 0x24]
call fcn.004121c8
and dword [esp + 0x44], 0
mov ecx, esi
call fcn.00418d3b
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x416cd1
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
or dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.004047bf
cmp dword [0x625d78], 0
jne 0x416c7d
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov eax, 0x41b2bc
call fcn.00403df8
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0x10
mov edi, edx
jb 0x416d1d
mov eax, dword [esi]
jmp 0x416d1f
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x416dcd
push ecx
push ecx
mov ecx, esi
call fcn.00418383
cmp eax, 0xffffffff
je 0x416d72
push eax
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00410d2c
and dword [ebp - 4], 0
mov edx, edi
mov ecx, eax
call fcn.00416cff
mov bl, al
neg bl
sbb bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004047bf
inc bl
je 0x416d72
xor al, al
jmp 0x416dd9
mov ecx, dword [0x624acc]
test ecx, ecx
je 0x416d8f
cmp dword [esi + 0x14], 0x10
jb 0x416d86
mov eax, dword [esi]
jmp 0x416d88
mov eax, esi
push 0
push eax
call ecx
jmp 0x416db9
cmp dword [0x6243c8], 0
je 0x416db7
push 0x18
pop eax
call fcn.0040171b
push esp
push 0x42190c
call fcn.0040f024
push eax
call dword [0x6243c8]
add esp, 0xc
jmp 0x416d6e
xor eax, eax
test eax, eax
je 0x416d6e
push esi
mov ecx, 0x625d68
call fcn.00418cb8
mov byte [edi], 0
jmp 0x416dd7
test eax, 0x410
je 0x416d6e
mov byte [edi], 1
mov al, 1
lea esp, [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417a37
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x41bf10
call fcn.00403df8
mov eax, 0x1030
call fcn.00401720
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x1048], ebx
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
push 0x61fe98
push 0x80000001
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0xf
pop edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov dword [esp + 0x1048], ebx
xor ebp, ebp
inc ebp
mov dword [esp + 0x1c], ebp
test eax, eax
jne 0x417b2d
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x20]
push eax
push ebx
push dword [esp + 0x1068]
mov dword [esp + 0x24], 0x1000
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x3c], bl
test eax, eax
jne 0x417b23
mov eax, dword [esp + 0x18]
dec eax
cmp eax, 2
ja 0x417b23
push ecx
lea eax, [esp + 0x40]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00404934
mov dword [esp + 0x1048], ebp
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.00410cc5
mov byte [esp + 0x1048], bl
lea ecx, [esp + 0x20]
call fcn.004047bf
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1040]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41a24c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
shr ecx, 2
push esi
shr edx, 2
lea esi, [eax + ecx*4]
mov eax, dword [ebp + 0x14]
test ecx, ecx
je 0x41a277
add eax, 0x5b00b610
xor eax, dword [0x61f570]
dec ecx
jne 0x41a269
test edx, edx
je 0x41a28e
xor dword [esi], eax
add eax, 0x5b00b610
xor eax, dword [0x61f570]
lea esi, [esi + 4]
dec edx
jne 0x41a27b
pop esi
pop ebp
ret
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..rsrc
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x648f6be7
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x54cb7b38
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x10002324
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x10002337
xor eax, eax
jmp 0x100023d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
push 8
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0x78]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
jmp 0x1000236f
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x18]
jae 0x100023ce
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x14], edx
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call fcn.100022d9
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x100023cc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov eax, edx
jmp 0x100023d0
jmp 0x10002368
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219