joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403350
Capabilities:
Access peb ldr_data
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x41710f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x41d52c]
push ebx
xor ebx, ebx
push ebp
push esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], eax
push 0x420b2c
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 1
call fcn.0040fb03
mov ebp, dword [esp + 0x34]
push ebx
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
jbe 0x40345e
lea ecx, [esi + 1]
push edi
push ecx
call fcn.0040f74b
add esp, 4
mov edi, eax
push edi
push esi
push ebx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x403454
push 0x400
mov dword [esp + 0x18], ebx
mov dword [esp + 0x3c], ebx
call fcn.0040f74b
add esp, 4
mov esi, eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40344b
mov eax, dword [esp + 0x1c]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
push edx
push str.StringFileInfo_04x_04xFileVersion
push esi
call dword [0x418360]
add esp, 0x10
lea eax, [esp + 0x38]
lea ecx, [esp + 0x14]
push eax
push ecx
push esi
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40344b
cmp dword [esp + 0x38], ebx
jbe 0x40344b
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push 0x41d4b8
push eax
call fcn.0040f1fa
add esp, 0xc
push esi
call fcn.0040f774
add esp, 4
push edi
call fcn.0040f774
add esp, 4
pop edi
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.0040f77f
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], bl
call fcn.0040fa0a
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x414d2a
Capabilities:
Create http request

Disassembly:
mov eax, 0x417228
call fcn.00404c74
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x414d62
call fcn.004166ce
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 [0x41839c]
test eax, eax
mov dword [esi + 8], eax
jne 0x414d87
push eax
push dword [esi + 4]
call fcn.00415c4a
jmp 0x414d93
push esi
push eax
mov ecx, 0x420d10
call fcn.00414da4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x10004600
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0xe372f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x24], 0
push eax
call dword [0xe38258]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x10004643
mov eax, dword [esi]
jmp 0x10004645
xor eax, eax
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x38]
push edx
push eax
push edi
call dword [ecx + 0x74]
test eax, eax
jge 0x10004666
push 0xe3eab0
push edi
push eax
call fcn.1000e754
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, edi
test esi, esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov word [esp + 0xc], 0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
je 0x100046c6
lea eax, [esi + 8]
push eax
call dword [0xe38230]
test eax, eax
jne 0x100046c6
mov eax, dword [esi]
test eax, eax
je 0x100046ad
push eax
call dword [0xe3824c]
mov eax, dword [esi + 4]
test eax, eax
je 0x100046bd
push eax
call fcn.1000f2ac
add esp, 4
push esi
call fcn.1000f2ac
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc

Function at 0x10004860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0xe37338
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x24], 0
push eax
call dword [0xe38258]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x100048a3
mov eax, dword [esi]
jmp 0x100048a5
xor eax, eax
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push edx
push eax
push edi
call dword [ecx + 0x6c]
test eax, eax
jge 0x100048c1
push 0xe3eab0
push edi
push eax
call fcn.1000e754
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, edi
test esi, esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov word [esp + 0xc], 0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
je 0x10004921
lea eax, [esi + 8]
push eax
call dword [0xe38230]
test eax, eax
jne 0x10004921
mov eax, dword [esi]
test eax, eax
je 0x10004908
push eax
call dword [0xe3824c]
mov eax, dword [esi + 4]
test eax, eax
je 0x10004918
push eax
call fcn.1000f2ac
add esp, 4
push esi
call fcn.1000f2ac
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x491d20
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x10020
call fcn.004a1cc0
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x493360]
mov dl, byte [eax + 0x493358]
mov byte [esp + eax + 0xc], cl
mov byte [esp + eax + 0x14], dl
inc eax
cmp eax, 8
jl 0x491d30
lea eax, [esp]
push 0x488464
push eax
call fcn.00496bc0
push 4
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.004941a0
add esp, 0x14
push ebx
push ebp
push esi
mov dword [esp + 0x14], 0
push edi
jmp 0x491d80
mov eax, dword [esp + 0x10034]
mov ecx, dword [eax]
push ecx
push 0x10000
lea edx, [esp + 0x38]
push 1
push edx
call fcn.00497b97
add esp, 0x10
cmp eax, 0x18
jl 0x491e01
mov ebp, eax
lea edi, [ebp - 0x14]
test edi, edi
jle 0x491dcd
xor edx, edx
mov edi, edi
xor ecx, ecx
lea esi, [esp + edx + 0x30]
mov al, byte [esp + ecx + 0x1c]
cmp al, byte [esi + ecx]
je 0x491df1
cmp ecx, 0x14
je 0x4acbec
inc edx
cmp edx, edi
jl 0x491db0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10034]
lea edx, [ecx + ebp - 0x14]
mov ecx, dword [eax]
push 1
push 0xffffffffffffffec
push ecx
mov dword [esp + 0x24], edx
call fcn.0049752d
add esp, 0xc
jmp 0x491d80
mov bl, byte [esp + ecx + 0x1d]
lea eax, [ecx + edx]
cmp bl, byte [esp + eax + 0x31]
je 0x491e13
inc ecx
jmp 0x491dbf
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10020
ret 4
mov bl, byte [esp + ecx + 0x1e]
lea eax, [ecx + edx]
cmp bl, byte [esp + eax + 0x32]
jne 0x491e4a
mov bl, byte [esp + ecx + 0x1f]
lea eax, [ecx + edx]
cmp bl, byte [esp + eax + 0x33]
jne 0x4acbe4
mov bl, byte [esp + ecx + 0x20]
lea eax, [ecx + edx]
cmp bl, byte [esp + eax + 0x34]
je 0x4acbd3
add ecx, 4
jmp 0x491dbf
add ecx, 2
jmp 0x491dbf
add ecx, 5
cmp ecx, 0x14
jl 0x491db6
jmp 0x491dbf
add ecx, 3
jmp 0x491dbf
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10034]
lea ecx, [eax + edx + 0x14]
mov edx, dword [esi]
push 0
push ecx
push edx
call fcn.0049752d
mov eax, dword [esi]
push eax
push 4
lea ecx, [esp + 0x24]
push 1
push ecx
call fcn.00497b97
lea edx, [esp + 0x2c]
push 0x488454
push edx
mov byte [esp + 0x38], 0
call fcn.004971e0
add esp, 0x24
neg eax
sbb eax, eax
and eax, 4
jmp 0x491e06
Function at 0x491ed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ac
push esi
push 0x4858e8
or eax, 0xffffffff
call fcn.00491e60
mov esi, eax
add esp, 4
lea eax, [esp + 0xa8]
push esi
push eax
call fcn.00496bc0
push esi
call fcn.0049465d
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.00491fa0
lea eax, [esp + 0xa8]
mov ecx, esi
call fcn.00491fd0
mov dword [edi + 8], 0
mov eax, dword [edi + 8]
xor ecx, ecx
lea esp, [esp]
movzx edx, byte [esp + ecx + 0x18]
add eax, edx
movzx edx, byte [esp + ecx + 0x19]
add eax, edx
movzx edx, byte [esp + ecx + 0x1a]
add eax, edx
movzx edx, byte [esp + ecx + 0x1b]
add ecx, 4
add eax, edx
cmp ecx, 0x10
jl 0x491f30
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
push 0x487eb8
push eax
call fcn.0049748c
add esp, 8
mov dword [edi], eax
test eax, eax
je 0x4aedc0
push edi
call fcn.00491d20
test eax, eax
je 0x4aedca
mov ecx, dword [edi]
push ecx
mov esi, eax
call fcn.0049787b
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, 1
jmp 0x491f8f
mov edx, dword [edi]
push edx
push 0x10
lea eax, [esp + 0x10]
push 1
push eax
call fcn.00497b97
add esp, 0x10
push 0x99f2
push 0x10
lea ecx, [esp + 0x10]
push ecx
call 0x4d03ec
xor eax, eax
mov dword [edi + 8], 0
xor ecx, ecx
movzx edx, byte [esp + eax + 8]
inc eax
imul ecx, edx
cmp eax, 0x10
jl 0x4aedfa
mov eax, dword [edi]
push eax
mov dword [edi + 8], ecx
call fcn.00499274
add esp, 4
mov dword [edi + 4], eax
xor eax, eax
jmp 0x491f8f

Function at 0x491fa0
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.00496420
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret

Function at 0x493080
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esi]
sub esp, 8
test al, 3
jne 0x4ace06
add esp, 8
ret
test al, 1
je 0x4ace28
mov ecx, dword [esi + 4]
lea eax, [esp]
push eax
push ecx
call fcn.004975b2
mov edx, dword [esp + 8]
add esp, 8
or edx, dword [esp + 4]
jne 0x49308d
mov eax, dword [esi]
test al, 0x20
je 0x4ace4e
mov eax, dword [esi + 4]
push eax
push 2
push 1
push 0x487d9c
call fcn.00497782
mov dword [esi + 0xc], 1
add esp, 0x10
add esp, 8
ret
test al, 0x40
je 0x4ace72
mov ecx, dword [esi + 4]
push ecx
push 2
push 1
push 0x487eb0
call fcn.00497782
mov dword [esi + 0xc], 2
add esp, 0x10
add esp, 8
ret
test al, al
jns 0x49308d
mov edx, dword [esi + 4]
push edx
push 3
push 1
push 0x487eb4
call fcn.00497782
mov dword [esi + 0xc], 4
add esp, 0x10
add esp, 8
ret
Function at 0x4930d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov eax, dword [ebp]
mov dword [ebp + 0xc], 0
mov byte [ebp + 8], 0
test al, 0x14
jne 0x493156
test al, al
js 0x4acd72
test al, 0x20
jne 0x4acd7e
test al, 0x40
jne 0x4acd8a
mov eax, dword [esp + 0xc]
push 0x487eb8
push eax
call fcn.0049748c
add esp, 8
test eax, eax
je 0x493156
push esi
push edi
mov esi, eax
push esi
push 3
lea ecx, [esp + 0x18]
push 1
push ecx
call fcn.00497b97
push esi
mov edi, eax
call fcn.0049787b
mov al, byte [esp + 0x24]
add esp, 0x14
cmp edi, 2
jb 0x49314c
cmp al, 0xff
je 0x4acd96
cmp al, 0xfe
je 0x4acdb1
cmp al, 0xef
je 0x4acdcc
pop edi
pop esi
pop ebp
ret 8
mov dword [ebp + 0xc], 4
jmp 0x4930ff
mov dword [ebp + 0xc], 1
jmp 0x4930ff
mov dword [ebp + 0xc], 2
jmp 0x4930ff
cmp byte [esp + 0x11], 0xfe
jne 0x49314c
mov dword [ebp + 0xc], 1
mov byte [ebp + 8], 1
jmp 0x493154
cmp byte [esp + 0x11], 0xff
jne 0x49314c
mov dword [ebp + 0xc], 2
mov byte [ebp + 8], 1
jmp 0x493154
cmp edi, 3
jb 0x493154
cmp byte [esp + 0x11], 0xbb
jne 0x493154
cmp byte [esp + 0x12], 0xbf
jne 0x493154
mov dword [ebp + 0xc], 4
mov byte [ebp + 8], 1
jmp 0x493154
Function at 0x4027c7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40280a
push 0x19
push 0x4013cc3
push 6
call fcn.00404234
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402821
mov eax, 0x41c4a4
jmp 0x4028d0
inc dword [ebp - 4]
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x41c57e]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.004020ba
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.004051b0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40286f
push ebx
call fcn.00404246
add esp, 4
pop eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.004028e8
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4028b1
push 0x136
push 0x4013cc3
push 6
call fcn.00404234
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x4028cb
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040424c
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4028d0
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4028e1
push ebx
call fcn.00404246
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4048a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x404932
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x404924
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x40491c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x4048e5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x404bd0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x404c11.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x404c11.2
jmp dword [eax*4 + 0x404c9c]
mov word [esp + 0x48], di
jmp 0x404c4a
mov word [esp + 0x48], 2
jmp 0x404c4a
mov word [esp + 0x48], 3
jmp 0x404c4a
mov word [esp + 0x48], 4
jmp 0x404c4a
mov word [esp + 0x48], 7
jmp 0x404c4a
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x404c94
cmp dword [esp + 0x70], edi
je 0x404c80
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret
Function at 0x406370
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x406391
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x4063eb
inc edi
cmp edi, esi
jl 0x406385
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x406420
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x4063da
cmp byte [eax], bl
je 0x4063f5
cmp byte [eax + 1], bl
je 0x4063fe
cmp byte [eax + 2], bl
je 0x406408
cmp byte [eax + 3], bl
je 0x406414
add eax, 4
cmp eax, edi
jb 0x4063b1
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x415e5a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x415e88
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x415ea6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00415dc0
jmp 0x415ea6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x415ea6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00415dc0
test edi, edi
mov eax, edi
jne 0x415e90
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40b250
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47823b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046ad47
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b2d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046862d
mov eax, dword [eax]
push 0x55c1d0
push eax
call fcn.0045b2c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046afd2
test bl, bl
je 0x40b2d2
push 0x55c1d0
lea ecx, [esp + 0xc]
call fcn.0046b3ae
push 0x55fd4c
lea ecx, [esp + 0xc]
call fcn.0046b3ae
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40b30e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046afd2
jmp 0x40b3d9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40b392
lea edx, [esp + 0x7c]
push 0x55fd48
push edx
call fcn.0045b2c4
add esp, 8
test eax, eax
je 0x40b392
lea eax, [esp + 0x7c]
push 0x55fd44
push eax
call fcn.0045b2c4
add esp, 8
test eax, eax
je 0x40b392
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b322
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046afd2
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40bbd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40bc32
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40bc40
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4782bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5672b4]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40bd78
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40bca6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046afd2
xor eax, eax
jmp 0x40bdef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046b15b
push esi
lea ecx, [esp + 0xc]
call fcn.0046b3ea
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40bdcd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.0040bbd0
test eax, eax
jne 0x40bdcd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocStringLen
mov ecx, edi
call fcn.0040bbd0
test eax, eax
jne 0x40bdcd
lea eax, [esp + 0x14]
push 0x55fd60
push eax
call fcn.0045c3a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bdac
lea ecx, [esp + 0x14]
push 0x55fd5c
push ecx
call fcn.0045c320
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bdac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40bdaf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046b10b
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40bcbe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046afd2
xor eax, eax
jmp 0x40bdef
mov byte [esi], 0
push 0x55fd58
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0046afd2
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4