joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10215022
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x103f6098]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10215068
cmp word [ebx], dx
jne 0x10215068
or byte [eax + edi + 0x28], 4
jmp 0x1021506d
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x102151d0
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x102151b0
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x102150ae
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x102150e4
cmp eax, edx
jae 0x102150f2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10215089
jmp 0x102151d0
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x102151ab
cmp dword [ebp - 0x18], 0
je 0x102151ab
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x103f6098]
test byte [eax + edi + 0x28], 0x48
je 0x10215181
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10215145
mov word [esi], cx
jmp 0x1021517c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x103f6098]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x103f6098]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x103f6098]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x102151d0
pop eax
cmp word [ebp - 4], ax
jne 0x10215191
cmp esi, ebx
jne 0x10215191
mov word [esi], ax
jmp 0x102151cd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10215a5b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x102151d0
push 0xd
pop eax
jmp 0x1021518c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x103f6098]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x102151ca
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x102151d0
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10219a7a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10219b17
push ebx
push esi
call fcn.10219a43
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10215c0b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10219ac4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10219b16
push edi
push eax
call fcn.10211673
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10219ae4
call fcn.102115cb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10219b15
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10215c0b
add esp, 0x20
test eax, eax
jne 0x10219b03
push edi
call fcn.102115cb
jmp 0x10219b0b
push ebx
call fcn.102115cb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1021c339
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1020fbc9
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1021c3a8
cmp esi, dword [ebp - 4]
je 0x1021c3a3
cmp dword [ebp + 0xc], 0
je 0x1021c3a3
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1021c380
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1021be8b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1021c3aa
xor eax, eax
inc eax
jmp 0x1021c3aa
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1021c40f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x102d944c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1020fbc9
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1020fbc9
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1021c486
cmp word [ecx], dx
je 0x1021c486
mov eax, dword [0x1025264c]
push edi
dec eax
push eax
push 0x10252538
call fcn.1021c3ae
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1021c4f9
cmp word [eax], dx
je 0x1021c4f9
mov eax, dword [edi]
test eax, eax
je 0x1021c4aa
cmp word [eax], dx
je 0x1021c4aa
lea eax, [ebp - 0x10]
push eax
call fcn.1021bd91
jmp 0x1021c4b3
lea eax, [ebp - 0x10]
push eax
call fcn.1021be2c
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1021c523
mov eax, dword [0x10252534]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10252228
call fcn.1021c3ae
add esp, 0xc
test al, al
je 0x1021c523
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1021c4ee
cmp word [eax], di
je 0x1021c4ee
lea eax, [ebp - 0x10]
push eax
call fcn.1021bd91
pop ecx
jmp 0x1021c525
lea eax, [ebp - 0x10]
push eax
call fcn.1021be2c
jmp 0x1021c4eb
mov eax, dword [edi]
test eax, eax
je 0x1021c510
cmp word [eax], dx
je 0x1021c510
lea eax, [ebp - 0x10]
push eax
call fcn.1021bd46
pop ecx
jmp 0x1021c523
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1021c5ee
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1021c233
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1021c5ee
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1021c5ee
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1021c5ee
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1021c57b
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10214c0c
test ebx, ebx
je 0x1021c5e9
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10214c0c
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1021c5ee
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1021c5ee
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1020a511
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1021c5f0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101fae3a
leave
ret
Function at 0x102200d1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1022004d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10220240
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10220240
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x102201f5
jg 0x1022012d
test eax, eax
je 0x102201eb
push 1
push 0x1000
call fcn.10211616
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10220150
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x102201e2
push 0x8000
push ebx
call fcn.1021ff7e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10220179
jg 0x10220174
cmp ecx, 0x1000
jb 0x10220179
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10213e92
add esp, 0x10
cmp eax, 0xffffffff
je 0x102201be
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10220174
jl 0x102201a5
test ecx, ecx
jne 0x10220166
push dword [ebp - 0xc]
push ebx
call fcn.1021ff7e
push esi
call fcn.102115cb
add esp, 0xc
xor ebx, ebx
jmp 0x1022024e
cmp byte [edi + 0x24], 0
je 0x102201d5
cmp dword [edi + 0x20], 5
jne 0x102201d5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x102201e0
mov ebx, dword [edi + 0x18]
jmp 0x102201e2
xor ebx, ebx
push esi
call fcn.102115cb
pop ecx
jmp 0x1022024e
test ecx, ecx
jg 0x102201b7
jl 0x102201f5
test eax, eax
jae 0x102201b7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10215a5b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10220215
cmp byte [edi + 0x1c], 0
je 0x102201b7
jmp 0x10220246
push ebx
call fcn.1021e3e0
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x102201b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1022024e
cmp byte [edi + 0x1c], 0
je 0x1022024b
mov ebx, dword [edi + 0x18]
jmp 0x1022024e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10215a5b
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10220d10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10220d3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10220d3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x6baa47f2
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x3b9a69eb
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401bc4
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
inc ebx
cmp dword [0x4081d4], 0
jne 0x401c09
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov edi, 0x408138
push edi
mov dword [0x4081d4], ebx
mov dword [0x408138], 0x9c
call esi
test eax, eax
jne 0x401c07
push edi
mov dword [0x408138], 0x94
call esi
pop edi
pop esi
mov eax, dword [ebp + 8]
sub eax, 0
je 0x401cb1
dec eax
je 0x401ca6
dec eax
je 0x401c91
dec eax
je 0x401c88
dec eax
je 0x401c76
dec eax
je 0x401c59
dec eax
je 0x401c32
xor eax, eax
jmp 0x401cbc
cmp dword [0x408148], ebx
jne 0x401c2b
cmp dword [0x40813c], 4
jne 0x401c2b
cmp dword [0x408140], 0xa
jne 0x401c2b
cmp word [0x408144], 0x7ce
jne 0x401c2b
jmp 0x401ca2
cmp dword [0x408148], ebx
jne 0x401c2b
mov eax, dword [0x40813c]
cmp eax, 4
ja 0x401ca2
jne 0x401c2b
cmp dword [0x408140], 0xa
jmp 0x401ca0
cmp dword [0x408148], 2
jne 0x401c2b
cmp dword [0x40813c], 5
jmp 0x401ca0
cmp dword [0x408148], 2
jmp 0x401c97
cmp dword [0x408148], ebx
jne 0x401c2b
cmp dword [0x40813c], 4
jb 0x401c2b
mov eax, ebx
jmp 0x401cbc
xor eax, eax
cmp dword [0x408148], 2
jmp 0x401cb9
xor eax, eax
cmp dword [0x408148], ebx
sete al
pop ebx
pop ebp
ret 4

Function at 0x401f78
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
add eax, eax
mov dword [ebp + 0x18], eax
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x401fac
cmp dword [ebp + 0x14], 1
je 0x401fac
push 0xd
pop eax
pop ebp
ret 0x14
Function at 0x405a92
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x52c
mov eax, dword [0x4080ac]
mov dword [ebp - 4], eax
mov eax, dword [0x408548]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x405ac1
call eax
cmp eax, ebx
mov dword [ebp - 0x528], eax
jne 0x405c4e
push dword [0x408010]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x528], eax
je 0x405c4e
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x405af9
mov byte [ebp - 0x41c], bl
push esi
lea eax, [ebp - 0x524]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x405b11
mov byte [ebp - 0x524], bl
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x528]
call edi
test eax, eax
jne 0x405b32
mov byte [ebp - 0x10c], bl
push esi
lea eax, [ebp - 0x214]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call edi
test eax, eax
pop edi
jne 0x405b4f
mov byte [ebp - 0x214], bl
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.004059f0
lea eax, [ebp - 0x52c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405b72
sub eax, edx
mov ecx, eax
lea eax, [ebp - 0x314]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x405b86
sub eax, esi
add eax, ecx
mov byte [ebp + eax - 0x213], bl
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004059f0
lea eax, [ebp - 0x52c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x405bbb
sub eax, ecx
lea ecx, [ebp - 0x314]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x405bcd
sub ecx, esi
add ecx, eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x524]
push eax
mov byte [ebp + ecx - 0x10b], bl
call fcn.00405912
test eax, eax
pop esi
jne 0x405c0e
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x524]
push eax
call fcn.00405912
test eax, eax
jne 0x405c3c
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00405912
test eax, eax
jne 0x405c4e
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00405912
test eax, eax
je 0x405c4e
push dword [ebp - 0x528]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x528], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x528]
pop ebx
call fcn.00405f66
leave
ret

Function at 0x405f66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4080ac]
jne 0x405f77
test ecx, 0xffff0000
jne 0x405f77
ret
jmp fcn.00405f81

Function at 0x40633d
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret 4
Function at 0x402e20
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x48c
lea eax, [esp + 0x8c]
push ebx
push 0x400
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
or eax, eax
je 0x402f02
cmp byte [esp + 0x91], 0x3a
jne 0x402f02
lea ecx, [esp + 0x10]
push pe_nt_image_headers32
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x64]
push pe_nt_image_headers32
lea eax, [esp + 0xa8]
sub ebx, ebx
push edx
push eax
mov byte [esp + 0xb3], bl
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
or eax, eax
je 0x402f02
mov ecx, dword [esp + 4]
sub edx, edx
mov dword [0x42954c], ecx
mov cl, byte [edx + 0x42954c]
mov al, cl
and al, 0x80
shl cl, 1
cmp al, bl
je 0x402eb3
or cl, 1
mov al, byte [edx + 0x42954d]
xor al, cl
mov cl, al
and cl, 1
shr al, 1
cmp cl, bl
je 0x402ec8
or al, 0x80
mov byte [edx + 0x42954c], al
inc edx
cmp edx, 3
jl 0x402ea0
mov al, byte [0x42954f]
mov cl, al
and cl, 0x80
shl al, 1
cmp cl, bl
mov dl, al
je 0x402ee9
or dl, 1
mov al, byte [0x42954c]
xor al, dl
mov cl, al
and cl, 1
shr al, 1
cmp cl, bl
je 0x402efd
or al, 0x80
mov byte [0x42954f], al
pop ebx
add esp, 0x48c
ret
Function at 0x403ab0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x58
mov eax, dword [esp + 0x5c]
mov dword [esp], str.event
test eax, eax
mov ecx, 0x42fa7c
mov dword [esp + 4], eax
jne 0x403ad0
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x60]
mov dword [esp + 8], 0x4298c8
or eax, eax
mov dword [esp + 0xc], eax
jne 0x403ae8
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x64]
mov dword [esp + 0x10], 0x4298c4
test eax, eax
mov dword [esp + 0x14], eax
jne 0x403b00
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x68]
mov dword [esp + 0x18], 0x4298c0
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x403b18
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x20], 0x4298bc
test eax, eax
mov dword [esp + 0x24], eax
jne 0x403b30
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x70]
mov dword [esp + 0x28], 0x4298b8
or eax, eax
mov dword [esp + 0x2c], eax
jne 0x403b48
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x74]
mov dword [esp + 0x30], str.data1
or eax, eax
mov dword [esp + 0x34], eax
jne 0x403b60
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x78]
mov dword [esp + 0x38], str.data2
or eax, eax
mov dword [esp + 0x3c], eax
jne 0x403b78
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x40], str.data3
test eax, eax
mov dword [esp + 0x44], eax
jne 0x403b90
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x80]
mov dword [esp + 0x48], str.data4
test eax, eax
mov dword [esp + 0x4c], eax
jne 0x403bab
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x84]
mov dword [esp + 0x50], str.data5
or eax, eax
mov dword [esp + 0x54], eax
jne 0x403bc6
mov dword [esp + 0x54], ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push ebp
push esi
push edi
xor edi, edi
lea esi, [esp + 0x14]
nop
push 0xb
nop
pop ebp
mov eax, dword [esi - 4]
push eax
call ebx
mov ecx, dword [esi]
lea edi, [edi + eax + 1]
push ecx
call ebx
add esi, 8
dec ebp
lea edi, [edi + eax + 1]
jne 0x403bdb
lea edi, [edi + edi*2 + 0x64]
push edi
call fcn.0041b345
mov esi, eax
add esp, 4
test esi, esi
je 0x403c65
push edi
pop ecx
sub eax, eax
push ecx
pop edx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.KERNEL32.DLL_lstrcatA]
push edx
pop ecx
and ecx, 3
mov dword [esp + 0x6c], 0
rep stosb byte es:[edi], al
lea edi, [esp + 0x10]
push ecx
pop ecx
push 0xb
pop ebx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
lea eax, [esp + 0x6c]
push eax
push ecx
push edx
call fcn.00410290
add esp, 0xc
or eax, eax
je 0x403c52
mov eax, dword [esp + 0x6c]
push eax
push esi
call ebp
lea ecx, [esp + 0x6c]
push ecx
call fcn.0040ad50
add esp, 4
add edi, 8
dec ebx
jne 0x403c32
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
Function at 0x4042a0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x42c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.00404420
test eax, eax
je 0x404410
call fcn.0040aa30
test eax, eax
je 0x4042cb
call fcn.0040aa30
push eax
pop edi
jmp 0x4042d0
mov edi, 0x42fa7c
mov esi, dword [str.Trickler]
test esi, esi
jne 0x4042df
mov esi, 0x42fa7c
call fcn.0040aa60
push eax
push edi
push esi
lea eax, [esp + 0x48]
push str._s_t:_s_s:_08lx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
or eax, eax
jne 0x40432e
push 1
call ebx
push eax
push 0
call ebx
push eax
push 0
lea edx, [esp + 0x1c]
push 0
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
sub eax, ecx
push 0x21
sub eax, 0xfa
cdq
sub eax, edx
push eax
pop esi
sar esi, 1
call ebx
push 4
mov edi, eax
call ebx
add edi, eax
mov eax, dword [ebp]
push ebp
mov edx, dword [str.Trickler_WndClass]
push eax
push 0
push 0
push edi
push 0xfa
push 0
push esi
lea ecx, [esp + 0x5c]
push 0xc80000
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push eax
mov dword [0x42fb44], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x404410
mov eax, dword [esp + 0x440]
test eax, eax
je 0x4043ce
mov eax, dword [0x42fb44]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x42fb44]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [0x42fb44]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea eax, [esp + 0x28]
push 0
push eax
call esi
or eax, eax
je 0x404410
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [esp + 0x20]
push ecx
call edi
lea edx, [esp + 0x20]
push edx
call ebx
push 0
push 0
lea eax, [esp + 0x28]
push 0
push eax
call esi
or eax, eax
jne 0x4043f1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x42c
ret 4