joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4309b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x47d50a
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4a06b4]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a06b4]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, dword [esp + 0x88]
lea eax, [esp + 0x34]
xor ebp, ebp
push eax
mov esi, ecx
mov dword [esp + 0x18], ebp
call fcn.00430860
mov esi, dword [esi + 0x10]
mov dword [esp + 0x80], ebp
cmp dword [esp + 0x54], esi
je 0x430a9a
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x34]
cmp esi, 1
jbe 0x430a51
mov eax, edx
cmp ecx, 8
jae 0x430a2b
lea eax, [esp + 0x34]
movzx eax, word [eax]
cmp eax, 0x2f
je 0x430a38
cmp eax, 0x5c
jne 0x430a51
mov eax, edx
cmp ecx, 8
jae 0x430a43
lea eax, [esp + 0x34]
movzx eax, word [eax + 2]
cmp eax, 0x2f
je 0x430a64
cmp eax, 0x5c
je 0x430a64
mov eax, edx
cmp ecx, 8
jae 0x430a5c
lea eax, [esp + 0x34]
cmp word [eax + esi*2 - 2], 0x3a
jne 0x430a9a
push 0xffffffffffffffff
xor ecx, ecx
push ebp
lea edx, [esp + 0x3c]
mov word [esp + 0x20], cx
mov esi, 7
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebp
call fcn.00401990
lea eax, [esp + 0x18]
mov byte [esp + 0x80], 1
lea ebx, [esi - 6]
jmp 0x430abe
mov esi, 7
xor eax, eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebp
mov word [esp + 0x58], ax
mov ebx, 2
lea eax, [esp + 0x58]
mov dword [esp + 0x80], ebx
push 0xffffffffffffffff
xor ecx, ecx
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebp
push ebp
mov word [edi], cx
push eax
mov ecx, edi
mov dword [esp + 0x20], ebx
call fcn.00401990
or ebx, 4
test bl, 2
je 0x430af7
and ebx, 0xfffffffd
cmp dword [esp + 0x6c], 8
jb 0x430af7
mov edx, dword [esp + 0x58]
push edx
call fcn.0041cbd1
add esp, 4
test bl, 1
je 0x430b1f
cmp dword [esp + 0x2c], 8
jb 0x430b10
mov eax, dword [esp + 0x18]
push eax
call fcn.0041cbd1
add esp, 4
xor ecx, ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], cx
cmp dword [esp + 0x48], 8
jb 0x430b33
mov edx, dword [esp + 0x34]
push edx
call fcn.0041cbd1
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0041c4a1
add esp, 0x70
ret 4
Function at 0x434519
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jns 0x43452f
push 8
pop edi
push 2
call esi
test ax, ax
jns 0x43453b
or edi, 1
push 1
call esi
test ax, ax
jns 0x434547
or edi, 2
push 0x10
call esi
test ax, ax
jns 0x434553
or edi, 4
push 0x12
call esi
test ax, ax
jns 0x43455f
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x43610b
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi]
mov ebx, dword [ebp + 8]
cmp eax, ecx
je 0x436130
cmp ebx, dword [esi + 0x54]
je 0x436130
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x54]
cmp ebx, eax
je 0x4361f2
push edi
test eax, eax
je 0x436183
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x54]
mov ecx, esi
call fcn.00435c45
mov dword [esi + 0x54], edi
test ebx, ebx
je 0x4361f1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x4361f1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test al, al
je 0x4361f1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd4]
test al, al
je 0x4361f1
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0x54], ebx
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [esi + 0x54]
mov ecx, esi
call fcn.00435c45
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4363f5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0xd0]
xor ebx, ebx
call fcn.004325fa
test eax, eax
jle 0x43644a
push ebx
lea ecx, [esi + 0xd0]
mov byte [ebp - 1], 0
call fcn.00432f6a
mov edx, dword [eax]
lea ecx, [ebp - 1]
push ecx
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [edx]
cmp byte [ebp - 1], 0
jne 0x4364ab
lea ecx, [esi + 0xd0]
inc ebx
call fcn.004325fa
cmp ebx, eax
jl 0x436411
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x436504
sub eax, 4
je 0x4364af
dec eax
dec eax
jne 0x4364fb
push dword [ebp + 0xc]
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.00477105
pop ecx
mov ecx, dword [esi + 0x50]
push 0x8000000a
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push 0x4356d7
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x4364fb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf0]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov al, 1
jmp 0x4364fd
cmp dword [esi + 0x54], 0
je 0x4364fb
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x14], eax
call fcn.00434519
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x4364fb
cmp dword [esi + 0x54], 0
je 0x436553
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x436553
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x436553
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
push str.RichEditUI
call dword [eax + 0xc]
push eax
call fcn.00476b99
pop ecx
pop ecx
test eax, eax
je 0x436553
mov ecx, dword [esi + 0x54]
call fcn.004463f6
test al, al
jne 0x4364fb
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setns al
movzx eax, al
push eax
mov ecx, esi
call fcn.004362a3
jmp 0x4364ab
Function at 0x4392c8
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c4
mov eax, 0x47dd22
call fcn.0041f57e
mov edi, dword [ebp + 8]
mov ebx, ecx
call fcn.004388b8
call fcn.00434696
push eax
lea ecx, [ebp - 0x94]
call fcn.00433378
xor esi, esi
mov dword [ebp - 4], esi
call fcn.0043469c
mov ecx, eax
call fcn.004330cf
test al, al
je 0x439410
push edi
lea ecx, [ebp - 0x94]
call fcn.00433168
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.00432fbb
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
push esi
cmp eax, 0xffffffff
jne 0x43936c
push str.Error_opening_file
mov ecx, ebx
call fcn.00438a8e
mov bl, al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00432fa1
mov al, bl
call fcn.0041f5c8
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
jne 0x439381
push esi
push str.File_is_empty
jmp 0x43934a
cmp edi, 0x400000
jbe 0x439391
push esi
push str.File_too_large
jmp 0x43934a
push edi
mov dword [ebp - 0x2cc], esi
call fcn.0041b32c
pop ecx
push esi
lea ecx, [ebp - 0x2cc]
push ecx
push edi
push eax
push dword [ebp - 0x2d0]
mov dword [ebp - 0x2c8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2cc], edi
je 0x4393ec
push dword [ebp - 0x2c8]
call fcn.0041cb9c
pop ecx
mov ecx, ebx
call fcn.004388b8
push esi
push str.Could_not_read_file
jmp 0x43934a
push dword [ebp + 0xc]
mov ecx, ebx
push edi
push dword [ebp - 0x2c8]
call fcn.00439175
push dword [ebp - 0x2c8]
mov bl, al
call fcn.0041cb9c
pop ecx
jmp 0x439353
call fcn.0043469c
push eax
lea ecx, [ebp - 0x94]
call fcn.0043314b
call fcn.004346a2
test al, al
je 0x439431
call fcn.004346a8
jmp 0x439448
push 2
push esi
lea ecx, [ebp - 0x94]
call fcn.00432fbb
push eax
call fcn.0043e6eb
add esp, 0xc
mov dword [ebp - 0x2c8], eax
cmp eax, esi
jne 0x43945d
push esi
push str.Error_opening_zip_file
jmp 0x43934a
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d0]
push eax
push 1
push edi
push dword [ebp - 0x2c8]
call fcn.0043ce03
add esp, 0x14
test eax, eax
je 0x43948b
push esi
push str.Could_not_find_ziped_file
jmp 0x43934a
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x2cc], eax
cmp eax, esi
je 0x439379
cmp eax, 0x400000
ja 0x439389
push eax
call fcn.0041b32c
push 3
push dword [ebp - 0x2cc]
mov edi, eax
push edi
push dword [ebp - 0x2d0]
push dword [ebp - 0x2c8]
call fcn.0043e749
add esp, 0x18
cmp eax, esi
je 0x439501
cmp eax, 0x600
je 0x439501
push edi
call fcn.0041cb9c
pop ecx
call fcn.004346a2
test al, al
jne 0x4394f6
push dword [ebp - 0x2c8]
call fcn.0043e781
pop ecx
push esi
push str.Could_not_unzip_file
jmp 0x43934a
call fcn.004346a2
test al, al
jne 0x439516
push dword [ebp - 0x2c8]
call fcn.0043e781
pop ecx
push dword [ebp + 0xc]
mov ecx, ebx
push dword [ebp - 0x2cc]
push edi
call fcn.00439175
push edi
jmp 0x439403
Function at 0x43b940
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x43b94e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x43ba09
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x48ba78]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x48ba78]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x48ba78]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x48ba78]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x48ba78]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x48ba78]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x48ba78]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x48ba78]
add edx, 8
sub edi, 8
dec esi
jne 0x43b96c
pop ebx
test edi, edi
je 0x43ba22
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x48ba78]
inc edx
dec edi
jne 0x43ba0d
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x43becf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x43bf03
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43befe
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x43bf2b
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x43bf14
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0041edd0
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x43cd4d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4a06b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x43cdf5
movzx ecx, word [esi]
test cx, cx
je 0x43cdf5
mov eax, esi
mov edx, esi
cmp cx, 0x2f
je 0x43cd88
cmp cx, 0x5c
jne 0x43cd8a
mov eax, edx
add edx, 2
movzx ecx, word [edx]
test cx, cx
jne 0x43cd7c
cmp eax, esi
je 0x43cdc9
push edi
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00476c4b
xor eax, eax
mov word [ebp + edi*2 - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0043cd4d
add esp, 0x14
pop edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00476c2a
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00476bf9
add esp, 0x10
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c4a1
leave
ret
Function at 0x43e322
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x43e39d
cmp dword [esi + 4], 0xffffffff
jne 0x43e39d
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x492a54
push edi
call fcn.00476bf9
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x43e36f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x43e36f
mov eax, 0x2000000
jmp 0x43e3a2
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043bcdc
add esp, 0x10
test eax, eax
jne 0x43e38d
mov eax, dword [ebp + 0x10]
jmp 0x43e3a2
push eax
call fcn.0043df11
mov dword [esi], eax
mov eax, dword [0x4a51a4]
pop ecx
jmp 0x43e3a2
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x4465bb
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x4d4], ebx
je 0x446623
cmp dword [ebp + 8], 0x100
jne 0x446612
cmp word [ebp + 0xc], 0xd
jne 0x446612
cmp byte [esi + 0x4da], bl
je 0x4465f9
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x446612
cmp byte [esi + 0x4db], bl
jne 0x446612
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x44660e
push ebx
push ebx
push ebx
push 0x48c878
push esi
call fcn.00435c45
xor eax, eax
jmp 0x446626
mov eax, dword [esi + 0x4d4]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x450ec8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4a06b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x18], bl
je 0x450f39
cmp dword [esi + 0x10], ebx
je 0x450f39
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.0042b0a0
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x450f39
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push dword [ebp - 8]
add ecx, 0x1b8
call fcn.00433127
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00435c45
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c4a1
leave
ret 0x10
Function at 0x45f3b5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x45f3da
cmp eax, edi
jge 0x45f3d2
mov eax, esi
call fcn.0045ed73
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edi, dword [esi + 8]
xor ecx, ecx
test edi, edi
jle 0x45f407
mov eax, dword [esi + 0xc]
push ebx
mov dl, byte [esi + 0xc]
sub edi, 8
mov byte [ebp + ecx - 4], dl
shr eax, 8
mov ebx, edi
inc ecx
mov dword [esi + 0xc], eax
test ebx, ebx
jg 0x45f3e7
mov dword [esi + 8], ebx
pop ebx
cmp ecx, 4
jge 0x45f426
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x45f414
xor eax, eax
jmp 0x45f41c
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x45f40a
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x45f458
mov eax, str.zlib_corrupt
call fcn.0045c64b
jmp 0x45f493
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x45f468
mov eax, str.read_past_buffer
jmp 0x45f451
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x45f47d
mov ecx, edi
call fcn.0045eda9
test eax, eax
je 0x45f493
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0041edd0
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret
Function at 0x407880
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4633cb
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.0045825b
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407902
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004561aa
mov eax, dword [eax]
push 0x48e1f0
push eax
call fcn.00448e74
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004584e6
test bl, bl
je 0x407902
push 0x48e1f0
lea ecx, [esp + 0xc]
call fcn.00458876
push 0x491d48
lea ecx, [esp + 0xc]
call fcn.00458876
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 0x40793e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004584e6
jmp 0x407a09
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 0x4079c2
lea edx, [esp + 0x7c]
push 0x491d44
push edx
call fcn.00448e74
add esp, 8
test eax, eax
je 0x4079c2
lea eax, [esp + 0x7c]
push 0x491d40
push eax
call fcn.00448e74
add esp, 8
test eax, eax
je 0x4079c2
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 0x407952
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.004584e6
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 0x408200
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 0x408262
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 0x408270
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46344b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4982b0]
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 0x4083a8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4082d6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004584e6
xor eax, eax
jmp 0x40841f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00458623
push esi
lea ecx, [esp + 0xc]
call fcn.004588b2
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 0x4083fd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00408200
test eax, eax
jne 0x4083fd
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 closesocket
mov ecx, edi
call fcn.00408200
test eax, eax
jne 0x4083fd
lea eax, [esp + 0x14]
push 0x491d5c
push eax
call fcn.00449eb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4083dc
lea ecx, [esp + 0x14]
push 0x491d58
push ecx
call fcn.00449e30
mov esi, eax
add esp, 8
test esi, esi
jne 0x4083dc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4083df
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004585d3
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4082ee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004584e6
xor eax, eax
jmp 0x40841f
mov byte [esi], 0
push 0x491d54
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.004584e6
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

Function at 0x40ec36
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
mov eax, dword [esi + 0x3ac]
test eax, eax
jne 0x40ec5e
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x3ac], eax
pop esi
add esp, 0x190
ret