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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
cmp di, 0x14
jae 0x4117e8
pop edi
xor ax, ax
pop esi
add esp, 0x10
ret
mov cl, byte [esi]
mov dl, byte [esi + 1]
push ebp
push 0x10
lea eax, [esp + 0x18]
mov byte [esp + 0x10], cl
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x20], 0
mov byte [esp + 0x19], dl
mov byte [esp + 0x1a], 0
call fcn.0042be63
mov ecx, eax
movzx ebp, cx
lea edx, [ebp + 4]
mov eax, 0x66666667
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*4]
movzx eax, di
shl edx, 2
add esp, 0xc
cmp eax, edx
mov dword [esp + 0x18], ecx
je 0x41184a
pop ebp
pop edi
xor ax, ax
pop esi
add esp, 0x10
ret
movzx edx, word [esp + 0x28]
dec edx
cmp ebp, edx
jg 0x4118ca
xor edi, edi
test ebp, ebp
jle 0x4118c2
add esi, 2
push ebx
mov edi, edi
mov cl, byte [esi - 1]
mov dl, byte [esi]
mov al, byte [esi - 2]
mov byte [esp + 0x15], cl
push 0x10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], dl
mov byte [esp + 0x18], al
mov al, byte [esi + 1]
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x22], 0
mov byte [esp + 0x1d], al
mov byte [esp + 0x1e], 0
call fcn.0042be63
mov ebx, eax
push 0x10
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0042be63
mov edx, dword [esp + 0x40]
xor al, bl
add esp, 0x18
mov byte [edi + edx], al
inc edi
add esi, 4
cmp edi, ebp
jl 0x411860
mov ecx, dword [esp + 0x1c]
pop ebx
mov eax, dword [esp + 0x24]
mov byte [eax + ebp], 0
pop ebp
pop edi
mov ax, cx
pop esi
add esp, 0x10
ret

Function at 0x4118e0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x214
mov eax, dword [0x462650]
push 0
mov dword [esp + 0x214], eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp]
push eax
push 0x457000
push 1
push 0
push 0x457010
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x41193d
mov edx, dword [esp + 0x218]
mov eax, dword [esp]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
mov eax, dword [esp]
mov ecx, dword [eax]
lea edx, [esp + 4]
push edx
push 0x457050
push eax
call dword [ecx]
test eax, eax
jge 0x411952
xor eax, eax
mov ecx, dword [esp + 0x210]
call fcn.0042af5e
add esp, 0x214
ret
mov ecx, dword [esp + 0x21c]
push 0x104
lea eax, [esp + 0xc]
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 4]
mov edx, dword [eax]
push 2
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 4]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x210]
mov eax, 1
call fcn.0042af5e
add esp, 0x214
ret
Function at 0x4149a0
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x44c87b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x540
mov eax, dword [0x462650]
push ebx
push esi
mov esi, dword [esp + 0x55c]
push 1
push 0x1b6
xor ebx, ebx
mov dword [esp + 0x54c], eax
mov dword [esp + 0x14], ebx
mov eax, dword [esi]
push 0x20
push eax
lea ecx, [esp + 0x50]
call fcn.004147b0
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x48]
test al, 6
mov dword [esp + 0x550], 1
je 0x414a43
push esi
lea edx, [esp + 0x18]
push str.MD5Helper::GetMD5_cause_a_exception__cant_open_file
push edx
call fcn.00414020
add esp, 0xc
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0x554], 2
mov dword [esp + 0x14], eax
call fcn.0042b254
push 0x45b8d0
lea edx, [esp + 0x38]
push edx
call fcn.0042b209
test al, 1
mov byte [esp + 0x140], bl
mov dword [esp + 0xec], ebx
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xd8], 0x67452301
mov dword [esp + 0xdc], 0xefcdab89
mov dword [esp + 0xe0], 0x98badcfe
mov dword [esp + 0xe4], 0x10325476
jne 0x414ad1
jmp 0x414a90
push 0x400
lea eax, [esp + 0x148]
push eax
lea ecx, [esp + 0x48]
call fcn.00413ac0
mov eax, dword [esp + 0x44]
cmp eax, ebx
jle 0x414ac3
push eax
lea ecx, [esp + 0x148]
push ecx
lea ecx, [esp + 0xe0]
call fcn.00412fd0
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 4]
test byte [esp + eax + 0x48], 1
je 0x414a90
lea ecx, [esp + 0x48]
call fcn.00414540
test eax, eax
jne 0x414b02
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x48]
mov edx, dword [esp + ecx + 0x68]
lea ecx, [esp + ecx + 0x40]
or eax, 2
cmp edx, ebx
jne 0x414afb
or eax, 4
push ebx
push eax
call fcn.0043aef3
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0xdc]
call fcn.004146c0
mov ecx, dword [eax + 0x18]
mov esi, 0x10
cmp ecx, esi
mov byte [esp + 0x550], 3
jb 0x414b2c
mov eax, dword [eax + 4]
jmp 0x414b2f
add eax, 4
push eax
lea ecx, [esp + 0xc]
call fcn.00402550
cmp dword [esp + 0x30], esi
mov byte [esp + 0x550], 5
jb 0x414b54
mov eax, dword [esp + 0x1c]
push eax
call fcn.0043d24c
add esp, 4
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00404eb0
mov eax, dword [esp + 8]
add eax, 0xfffffff0
push eax
call fcn.004015f0
mov esi, dword [esp + 0x55c]
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0xc], 1
mov byte [esp + 0x550], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414bb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0xa4]
mov byte [esp + 0x550], bl
call fcn.004148f0
lea ecx, [esp + 0xa4]
mov dword [esp + 0xa4], 0x450038
call fcn.0043ae09
mov ecx, dword [esp + 0x548]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x540]
pop ebx
call fcn.0042af5e
add esp, 0x54c
ret 8
Function at 0x414c20
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push ebx
push esi
push 0x20000000
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x414c40
pop esi
pop ebx
add esp, 0x1c
ret
push edi
push 4
push str.SENS
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x414c65
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x414c8a
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
cmp dword [esp + 0x10], 4
jne 0x414c96
mov ebx, 1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x1c
ret

Function at 0x414cc0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
cmp dword [ecx], 0
push esi
je 0x414cfd
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0
xor esi, esi
call sub.SensApi.dll_IsNetworkAlive
test eax, eax
je 0x414ce9
mov esi, 1
mov eax, esi
pop esi
pop ecx
ret
push 0x450168
push 3
call fcn.0041fb20
add esp, 8
mov eax, esi
pop esi
pop ecx
ret
push 0
lea ecx, [esp + 8]
push ecx
mov esi, 1
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x414d21
test byte [esp + 4], 0x20
je 0x414d37
xor esi, esi
mov eax, esi
pop esi
pop ecx
ret
mov edx, dword [esp + 4]
push edx
push 0x450148
push 3
xor esi, esi
call fcn.0041fb20
add esp, 0xc
mov eax, esi
pop esi
pop ecx
ret
Function at 0x41ae80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x41ae8b
xor eax, eax
ret
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
not esi
jb 0x41af83
mov ebp, edi
shr ebp, 3
xor edx, edx
mov dl, byte [ecx]
mov eax, esi
shr eax, 8
sub edi, 8
xor edx, esi
and edx, 0xff
mov esi, dword [edx*4 + 0x451758]
xor edx, edx
mov dl, byte [ecx + 1]
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x451758]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x451758]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x451758]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x451758]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x451758]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x451758]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x451758]
shr eax, 8
xor eax, esi
inc ecx
dec ebp
mov esi, eax
jne 0x41aea6
test edi, edi
je 0x41afa2
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, 0xff
mov ebp, dword [eax*4 + 0x451758]
shr esi, 8
xor esi, ebp
inc ecx
dec edi
jne 0x41af87
pop edi
mov eax, esi
pop esi
not eax
pop ebp
ret

Function at 0x41afb0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
mov ecx, dword [edx]
xor eax, eax
mov al, byte [esp + 8]
push esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x451758]
shr ecx, 8
xor eax, ecx
mov ecx, dword [edx + 4]
mov dword [edx], eax
and eax, 0xff
add eax, ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
mov esi, dword [eax*4 + 0x451758]
shr ecx, 8
xor ecx, esi
mov dword [edx + 8], ecx
pop esi
ret

Function at 0x41b010
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 8]
mov edx, dword [esi + 8]
mov eax, edx
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov al, byte [esp + 0xc]
shr ecx, 8
xor al, cl
xor ecx, ecx
push edi
mov edi, dword [esi]
mov cl, al
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x451758]
shr edi, 8
xor ecx, edi
mov edi, dword [esi + 4]
mov dword [esi], ecx
and ecx, 0xff
add ecx, edi
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, edx
and ecx, 0xff
mov edi, dword [ecx*4 + 0x451758]
shr edx, 8
xor edx, edi
pop edi
mov dword [esi + 8], edx
pop esi
ret
Function at 0x41b4a0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
mov cl, byte [ebx]
push ebp
mov ebp, dword [esp + 0x10]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x41b4e1
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41b4d6
mov byte [ebx + 8], 1
mov eax, dword [esp + 0x10]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
push esi
lea esi, [edx + eax]
cmp esi, ecx
push edi
jbe 0x41b4f4
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x14]
mov edi, dword [esp + 0x14]
add esi, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x1c]
pop edi
add ecx, eax
pop esi
xor edx, edx
div ebp
pop ebp
mov dword [ebx + 0x1c], ecx
pop ebx
ret

Function at 0x41c610
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x462650]
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [esp + 0x220], eax
push edi
je 0x41c647
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41c647
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, dword [ebp + 0xc]
mov cl, byte [ebx]
test cl, cl
je 0x41c715
mov eax, ebx
mov edx, ebx
cmp cl, 0x2f
je 0x41c662
cmp cl, 0x5c
jne 0x41c664
mov eax, edx
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x41c658
cmp eax, ebx
je 0x41c6aa
sub eax, ebx
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov esi, ebx
lea edi, [esp + 0x118]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
mov byte [esp + eax + 0x118], 0
lea eax, [esp + 0x118]
push eax
push ecx
call fcn.0041c610
mov esi, dword [ebp + 8]
add esp, 8
test esi, esi
mov byte [esp + 0x10], 0
je 0x41c6ca
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
jmp 0x41c6c0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41c6c0
mov eax, ebx
mov edx, ebx
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c6d0
lea edi, [esp + 0x10]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41c6e0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x10]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41c715
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x224]
call fcn.0042af5e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e0c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp edi, ebx
je 0x41e0d4
cmp dword [edi + 0x18], ebx
jne 0x41e0df
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x7c], ebx
je 0x41e0ed
push edi
call fcn.0041bf10
add esp, 4
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
call fcn.0041bd10
add esp, 0x10
test eax, eax
je 0x41e114
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
push esi
push 0x84
call fcn.0042b541
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x41e155
push 0x4000
call fcn.0042b541
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add esp, 4
cmp eax, ebx
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
jne 0x41e161
push esi
call fcn.0042b553
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov edx, dword [edi + 0x34]
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp edx, ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x41e1af
lea eax, [esi + 4]
push eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.0041b290
add esp, 4
test eax, eax
jne 0x41e1af
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x41e1d9
mov dl, byte [edi + 0x39]
mov byte [esi + 0x80], dl
jmp 0x41e1e2
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
mov cl, byte [esi + 0x6c]
neg cl
push ebp
mov ebp, dword [esp + 0x20]
lea ebx, [esi + 0x70]
mov dword [ebx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
sbb ecx, ecx
and ecx, 0xc
test ebp, ebp
mov dword [esi + 0x7c], ecx
je 0x41e226
nop
xor eax, eax
mov al, byte [ebp]
test al, al
je 0x41e226
push eax
push ebx
call fcn.0041afb0
add esp, 8
inc ebp
jne 0x41e210
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
lea ecx, [edx + eax + 0x1e]
pop ebp
mov dword [esi + 0x3c], ecx
mov dword [esi + 8], 0
mov dword [edi + 0x7c], esi
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x41e510
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x41e5df
cmp dword [ebx + 4], 0xffffffff
jne 0x41e5df
push edi
lea edi, [ebx + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41e540
sub eax, edx
mov al, byte [eax + ebx + 0x13f]
cmp al, 0x5c
je 0x41e571
cmp al, 0x2f
je 0x41e571
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41e560
mov ax, word [0x44ef38]
mov word [edi], ax
mov edi, dword [esp + 0x14]
cmp edi, 1
push esi
mov esi, dword [esp + 0x10]
jne 0x41e59c
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41e59c
pop esi
pop edi
mov eax, 0x2000000
pop ebx
ret 0xc
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edi
push edx
push esi
call fcn.0041b350
add esp, 0x10
test eax, eax
jne 0x41e5be
mov eax, dword [esp + 0x18]
pop esi
pop edi
pop ebx
ret 0xc
push eax
call fcn.0041dec0
add esp, 4
xor ecx, ecx
test eax, eax
setne cl
pop esi
mov dword [ebx], eax
pop edi
pop ebx
dec ecx
and ecx, 0x200
mov eax, ecx
ret 0xc
mov eax, 0x1000000
pop ebx
ret 0xc
Function at 0x41eae0
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret

Function at 0x41eb70
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x130
mov eax, dword [0x462650]
push ebx
push esi
push edi
mov edi, dword [esp + 0x144]
push 0
push 2
mov dword [esp + 0x140], eax
mov esi, 1
mov dword [edi], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x41ec20
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ebx, [ebx]
mov edx, dword [esp + 0x144]
lea ecx, [esp + 0x38]
push ecx
push edx
call fcn.0042af6c
add esp, 8
test eax, eax
jne 0x41ec08
mov eax, dword [esp + 0x1c]
push eax
push 0
push 0x1f0fff
mov dword [edi], 1
call ebx
push 0
push eax
call ebp
mov esi, eax
test esi, esi
je 0x41ec1b
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x41ebd0
mov ebx, dword [esp + 0x10]
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x140]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ec48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x138]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.0042af5e
add esp, 0x130
ret
Function at 0x420af0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44d000
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x2c]
mov esi, ecx
lea ecx, [esi + 8]
push edi
call fcn.00401f10
mov edi, dword [edi]
push edi
lea ecx, [esp + 0x30]
call fcn.0041ffc0
mov word [esp + 0xc], 8
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x24], 0
je 0x420b40
mov edi, dword [eax]
test edi, edi
jne 0x420b4a
mov dword [esp + 0x14], 0
jmp 0x420b6b
push edi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x420b6b
push 0x8007000e
call fcn.0043b3f0
cmp dword [esi], 0
mov byte [esp + 0x24], 1
jne 0x420b7f
push 0x80004003
call fcn.0043b3f0
mov ecx, dword [esi]
push ebx
lea eax, [esp + 0x10]
push eax
call fcn.0041ff50
mov bx, ax
neg bx
lea ecx, [esp + 0x10]
sbb bl, bl
push ecx
inc bl
mov byte [esp + 0x2c], 0
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x420bb0
push eax
call fcn.0043b3f0
mov ecx, dword [esp + 0x30]
test ecx, ecx
mov dword [esp + 0x28], 0xffffffff
je 0x420bc5
call fcn.00420190
test bl, bl
pop ebx
je 0x420bdf
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
cmp dword [esi], 0
jne 0x420bee
push 0x80004003
call fcn.0043b3f0
mov ecx, dword [esi]
lea edx, [esp + 8]
push edx
call fcn.00420290
mov eax, dword [eax]
mov edi, dword [esi + 4]
cmp edi, eax
je 0x420c1a
test eax, eax
mov dword [esi + 4], eax
je 0x420c10
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
test edi, edi
je 0x420c1a
mov edx, dword [edi]
push edi
call dword [edx + 8]
mov eax, dword [esp + 8]
test eax, eax
je 0x420c28
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x1c]
pop edi
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x421e30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x421e83
call fcn.00448b3f
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x421e83
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x421e79
xor eax, eax
jmp 0x421f9c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x421eb3
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x421eb3
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x421f99
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x421ee0
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00422f9b
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x421f99
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x421f29
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x421f29
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x421f23
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00422f9b
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x421f89
and dword [ebp + 0xc], 0
jmp 0x421f89
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x421f89
push 0xc
call fcn.0043d21c
mov esi, eax
test esi, esi
pop ecx
je 0x421f6b
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x421f6d
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x421f84
push dword [ebp - 8]
call fcn.0043ca25
jmp 0x421f89
call fcn.0043c9fc
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x421eee
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc