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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00414d76
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40786a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0040788b
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40d81f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x40d864
call fcn.00414d76
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40d864
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40d880
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041e314
mov ebx, eax
test edi, edi
je 0x40d87e
test esi, esi
je 0x40d87e
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40e291
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x40e34f
cmp dword [esi + 0x20], 0
je 0x40e34f
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40e34f
cmp dword [ebp + 8], 0
je 0x40e34f
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.00414d76
push 0x57e598
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40e320
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40e34f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.0043928c
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x40e340
test edi, edi
je 0x40e340
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x40e34b
mov ecx, esi
call fcn.0040e034
mov eax, ebx
jmp 0x40e351
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x413541
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5761be
call fcn.0054c11b
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x413567
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4135c6
call fcn.00409949
push eax
lea ecx, [ebp - 0x10]
call fcn.00401c00
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.0054c0de
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.005544b3
push eax
call fcn.004048e0
add esp, 0x14
test esi, esi
je 0x4135b9
push esi
call fcn.00554367
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401d40
mov eax, ebx
call fcn.0054c0e4
ret 8

Function at 0x414ede
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0041311c
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x414f1a
call fcn.00415100
mov dword [esi + 0xc], 1
jmp 0x414f1f
call fcn.00415100
cmp dword [esi], 0
je 0x414f68
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x414f42
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0040d8f5
jmp 0x414f53
push 0xff
mov ecx, esi
call fcn.00401e90
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00404640
jmp 0x414f8c
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x414f8c
push dword [esi]
push dword [ebp - 4]
call fcn.0041eacc
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x415055
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00415100
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x41509d
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040d8f5
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00404640
jmp 0x4150a8
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041eacc
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x416d86
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
je 0x416dcc
push 0x57dac4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x416ddb
push str.MoveFileTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x416ddb
push dword [esi]
mov ecx, edi
push 2
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0054c0de
call edi
jmp 0x416ddd
cmp dword [esi + 4], ebx
je 0x416ddb
pop edi
pop esi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileW]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41772c
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x417755
call fcn.00414d76
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
je 0x417782
push esi
push eax
mov ecx, 0x5d6a88
call fcn.00418644
mov eax, esi
pop esi
pop ebp
ret 0x18
push 0
push dword [esi + 4]
call fcn.00417c04
int3

Function at 0x41a5d6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov eax, ecx
push edi
mov edi, esi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x41a620
call fcn.00414d76
push 0xf0
push dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41a61d
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41a66e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test esi, esi
je 0x41a64c
mov ecx, dword [eax]
push dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call fcn.0054c0de
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
test edi, edi
je 0x41a64c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x41a66c
mov eax, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [eax + 0xa0]
mov ecx, esi
call fcn.0054c0de
mov ecx, edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41b253
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x56e6e3
call fcn.0054c11b
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov ecx, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [ecx], edi
cmp dword [eax + 0x58], edi
je 0x41b2fd
push dword [ebp + 8]
mov ecx, eax
call fcn.0041b58b
mov esi, eax
test esi, esi
je 0x41b390
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], edi
push eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
test eax, eax
jne 0x41b2e6
push edx
call fcn.0040703a
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41b2e6
xor edi, edi
inc edi
jmp 0x41b2f0
push dword [ebx]
call fcn.00407043
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.0041b118
jmp 0x41b38e
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [esi + 0x84]
mov ecx, esi
push eax
call fcn.0054c0de
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x18], esi
test esi, esi
je 0x41b386
mov ecx, dword [ebp + 0x14]
mov eax, esi
shr eax, 1
push eax
mov dword [ecx], eax
call fcn.0040703a
mov dword [ebx], eax
pop ecx
test esi, esi
jle 0x41b380
mov esi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.004178fc
push edi
lea ecx, [ebp - 0x10]
lea ebx, [eax - 1]
shl bl, 4
sub bl, 0x41
call fcn.004178fc
add al, bl
mov edx, edi
test edx, edx
jns 0x41b371
add edx, 1
sar edx, 1
mov ecx, dword [esi]
add edi, 2
mov byte [edx + ecx], al
cmp edi, dword [ebp - 0x18]
jl 0x41b348
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.00401d40
mov eax, edi
call fcn.0054c0e4
ret 0x10

Function at 0x41b398
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x41b3eb
push esi
push dword [ebp + 8]
call fcn.0041b58b
mov edi, eax
test edi, edi
jne 0x41b3bb
mov eax, dword [ebp + 0x10]
jmp 0x41b3fd
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x41b3b6
mov eax, dword [ebp - 8]
jmp 0x41b3fd
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43b9e4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x43b9fe
mov edi, dword [esi + 0xc]
jmp 0x43ba3e
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x43ba17
call fcn.0040a3d4
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x43ba2c
call fcn.0040a3d4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x43ba3e
call fcn.0040a3d4
call fcn.00414d76
cmp dword [eax + 0x3c], 0
je 0x43ba53
push edi
mov ecx, ebx
call fcn.0043b11d
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0043bc30
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x43ba7c
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x43ba88
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x47c34e
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0052238f
call fcn.00414dca
cmp dword [eax + 0x14], 0
jne 0x47c369
mov ecx, esi
pop esi
jmp fcn.0047b699
pop esi
ret
Function at 0x484043
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x48405c
call fcn.00414d76
mov esi, dword [eax + 0xc]
push 0x58c9c8
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4840b2
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4840b1
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x484092
xor esi, esi
jmp 0x4840a8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.004840ba
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x51fc54
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00401b30
call fcn.00414dca
cmp dword [eax + 0x14], 0
jne 0x51fc6f
mov ecx, esi
pop esi
jmp fcn.0051f4d2
pop esi
ret

Function at 0x56032c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, eax
test ecx, ecx
jne 0x56033d
xor al, al
ret
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x56033a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x56033a
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x56033a
cmp dword [eax + 0x74], 0xe
jbe 0x56033a
cmp dword [eax + 0x15f768e8], 0
setne al
ret

Function at 0x5659bb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056567e

Function at 0x5659c6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005657ff

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0
Function at 0x1b02820
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x752000]
push edi
or ebp, 0xffffffff
jmp 0x1b02842
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1b02849
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1b02838
mov eax, 1
add ebx, ebx
jne 0x1b0285b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1b0286c
jne 0x1b0288b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1b0288b
dec eax
add ebx, ebx
jne 0x1b02878
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1b02850
add ebx, ebx
jne 0x1b02887
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1b028dd
xor ecx, ecx
sub eax, 3
jb 0x1b028a3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1b02912
sar eax, 1
mov ebp, eax
jmp 0x1b028ae
add ebx, ebx
jne 0x1b028ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1b0287c
inc ecx
add ebx, ebx
jne 0x1b028bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1b0287c
add ebx, ebx
jne 0x1b028c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1b028be
jne 0x1b028da
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1b028be
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1b028fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1b028ee
jmp 0x1b0283e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1b028fc
add edi, ecx
jmp 0x1b0283e
pop esi
mov edi, esi
mov ecx, 0x5dea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1b0291a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0x1b0291f
lea edi, [esi + 0xbfe000]
mov eax, dword [edi]
or eax, eax
je 0x1b02987
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc7eaac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc7ebd8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1b02945
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc7ebdc]
or eax, eax
je 0x1b02981
mov dword [ebx], eax
add ebx, 4
jmp 0x1b02962
call dword [esi + 0xc7ebec]
mov ebp, dword [esi + 0xc7ebe0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x1b029bb
sub esp, 0xffffff80
jmp 0x154761c
Function at 0x4010ee
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push ebx
push esi
push edi
or ebx, 0xffffffff
xor edi, edi
mov esi, 0x400
mov dword [ebp - 4], edi
cmp ebx, 0xffffffff
jne 0x4011a4
push esi
lea eax, [ebp - 0x404]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov ebx, eax
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
lea eax, [ebp - 0x404]
jne 0x40114f
mov eax, 0x406f08
push ebx
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x804]
push str._s_s_u.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x804]
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401197
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 4]
cmp dword [ebp - 4], 3
jl 0x401107
lea eax, [ebp - 0x804]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x4011bb
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x748
push esi
mov esi, 0x400
push edi
push esi
lea eax, [ebp - 0x748]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x748]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
mov edi, eax
lea eax, [ebp - 0x748]
push eax
call esi
lea eax, [edi + eax + 3]
mov edi, 0x104
cmp eax, edi
jge 0x4012b8
push dword [ebp + 8]
lea eax, [ebp - 0x748]
push eax
lea eax, [ebp - 0x348]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4012b8
push ebx
lea eax, [ebp - 0x114]
push eax
call esi
mov ebx, eax
lea eax, [ebp - 0x748]
push eax
call esi
lea eax, [ebx + eax + 1]
cmp eax, edi
jge 0x40129a
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x748]
push eax
lea eax, [ebp - 0x244]
push 0x40601c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40124e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4012bc
Capabilities:
Create process on windows
Delete file
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x404]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x404]
push eax
call fcn.004010ee
mov edi, eax
pop ecx
cmp edi, 0xffffffff
je 0x40133f
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp + 8]
push ebx
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], esi
pop esi
jne 0x401332
push 5
push ebx
lea eax, [ebp - 0x404]
push ebx
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jle 0x401332
mov dword [ebp - 4], 1
jmp 0x40133f
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x401bec
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
or eax, 0xffffffff
test edx, edx
jbe 0x401c1c
mov ecx, dword [esp + 4]
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x406f14]
xor eax, esi
inc ecx
dec edx
jne 0x401bfd
pop edi
pop esi
not eax
ret

Function at 0x401c1f
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor edx, edx
mov ecx, 0x406f14
push 8
mov eax, edx
pop esi
test al, 1
je 0x401c39
shr eax, 1
xor eax, 0xedb88320
jmp 0x401c3b
shr eax, 1
dec esi
jne 0x401c2c
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x407314
jl 0x401c27
pop esi
ret

Function at 0x401c4e
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
mov byte [eax + ecx], al
inc eax
cmp eax, 0x100
jl 0x401c54
and byte [ecx + 0x100], 0
and byte [ecx + 0x101], 0
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
mov eax, esi
cdq
idiv dword [esp + 0x18]
mov eax, dword [esp + 0x14]
movzx ebx, byte [esi + ecx]
mov al, byte [edx + eax]
add eax, ebx
add eax, edi
and eax, 0xff
mov edi, eax
mov al, byte [edi + ecx]
mov byte [esi + ecx], al
inc esi
cmp esi, 0x100
mov byte [edi + ecx], bl
jl 0x401c74
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x401ca9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
and dword [ebp + 8], 0
cmp dword [ebp + 0x10], 0
push ebx
movzx edx, byte [eax + 0x100]
movzx ebx, byte [eax + 0x101]
jle 0x401d0c
push esi
push edi
mov esi, 0xff
inc edx
and edx, esi
movzx ecx, byte [edx + eax]
lea edi, [ecx + ebx]
and edi, esi
mov dword [ebp - 4], edi
mov bl, byte [edi + eax]
mov byte [edx + eax], bl
mov ebx, dword [ebp + 8]
mov byte [edi + eax], cl
mov edi, dword [ebp + 0xc]
add edi, ebx
mov bl, byte [edx + eax]
add ebx, ecx
and ebx, esi
mov cl, byte [ebx + eax]
mov ebx, dword [ebp - 4]
xor byte [edi], cl
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0x10]
jl 0x401cd0
pop edi
pop esi
mov byte [eax + 0x101], bl
mov byte [eax + 0x100], dl
pop ebx
leave
ret
Function at 0x4020f7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 2
xor edi, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401e7d
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40216d
cmp dword [ebp + 0x10], edi
jne 0x402137
cmp dword [esi + 0xc], edi
je 0x402194
call dword [sym.imp.MSVCRT.dll_rand]
cdq
idiv dword [esi + 0xc]
mov eax, dword [esi]
push dword [eax + edx*4]
call dword [sym.imp.SHLWAPI.dll_StrDupA]
mov edi, eax
jmp 0x402194
cmp dword [esi + 0xc], 2
jne 0x402194
mov eax, dword [esi + 4]
xor ecx, ecx
mov edx, dword [eax + 4]
mov edi, dword [eax]
mov al, byte [edi + ecx]
xor al, byte [edx + ecx]
inc ecx
cmp ecx, 4
mov byte [ebp + ecx + 0xb], al
jl 0x402147
push 0x11
push 8
push dword [0x407720]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x402171
xor eax, eax
jmp 0x40219d
movzx eax, byte [ebp + 0xf]
push eax
movzx eax, byte [ebp + 0xe]
push eax
movzx eax, byte [ebp + 0xd]
push eax
movzx eax, byte [ebp + 0xc]
push eax
push str._d._d._d._d
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push esi
call fcn.00401e2a
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
ret