joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6669ac
Capabilities:
Persist via ginadll registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x666ab0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov eax, 0x80000002
call fcn.0065e7c4
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x666a8c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 8]
call fcn.0053cfd8
mov edx, 0x666acc
mov eax, dword [ebp - 8]
call fcn.0053d268
test al, al
je 0x666a51
mov edx, 0x666b44
mov eax, dword [ebp - 8]
call fcn.0053e094
test al, al
je 0x666a49
lea ecx, [ebp - 0x10]
mov edx, 0x666b44
mov eax, dword [ebp - 8]
call fcn.0053dafc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00426a1c
mov edx, dword [ebp - 0xc]
mov ecx, 1
mov eax, 0x666b60
call fcn.0040bf80
test eax, eax
setg byte [ebp - 1]
mov eax, dword [ebp - 8]
call fcn.0053cfa8
cmp byte [ebp - 1], 0
jne 0x666a74
mov edx, 0x80000001
mov eax, dword [ebp - 8]
call fcn.0053cfd8
mov edx, 0x666b7c
mov eax, dword [ebp - 8]
call fcn.0053e420
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x666a93
mov eax, dword [ebp - 8]
call fcn.00408c24
pop eax
jmp eax

Function at 0x667108
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x6671b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0xff
mov eax, ebx
call fcn.004071c4
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x667191
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
mov eax, dword [ebp - 8]
push eax
push 1
push 0x400
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.0040ba50
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 0x6671d0
call fcn.0040bc54
mov eax, dword [ebp - 0xc]
call fcn.00427a34
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x667198
mov eax, dword [ebp - 8]
call fcn.004071e0
pop eax
jmp eax

Function at 0x6671d4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov dword [ebp - 8], 0xff
mov eax, dword [ebp - 8]
call fcn.004071c4
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x667240
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x66720c
mov ebx, 0x400
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.0040ba50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x667247
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004071e0
pop eax
jmp eax
Function at 0x667aac
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x667b82
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.0040ab4c
mov ebx, esi
test ebx, ebx
je 0x667aed
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0x214]
push eax
mov ecx, ebx
sub ecx, 4
mov edx, 5
mov eax, esi
call fcn.0040be24
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 4]
call fcn.0042f578
push 0x104
lea eax, [ebp - 0x20e]
push eax
lea eax, [ebp - 0x218]
mov edx, dword [ebp - 4]
call fcn.0040baf4
mov eax, dword [ebp - 0x218]
call fcn.0040b758
push eax
call sub.kernel32.dll_QueryDosDeviceW
test eax, eax
je 0x667b54
mov eax, edi
lea edx, [ebp - 0x20e]
mov ecx, 0x105
call fcn.0040baa4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x667b89
lea eax, [ebp - 0x218]
call fcn.0040ab94
lea eax, [ebp - 0x214]
call fcn.0040ab4c
lea eax, [ebp - 4]
call fcn.0040ab4c
pop eax
jmp eax

Function at 0x66ac60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
test dl, dl
je 0x66ac75
add esp, 0xfffffff0
call fcn.0040924c
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x66ad67
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.00408bf4
mov dl, 1
mov eax, dword [0x44c40c]
call fcn.00476f6c
mov dword [esi + 0x2c], eax
mov dl, 1
mov eax, dword [0x44c40c]
call fcn.00476f6c
mov dword [esi + 0x30], eax
mov dl, 1
mov eax, dword [0x44c40c]
call fcn.00476f6c
mov dword [esi + 0x34], eax
mov dl, 1
mov eax, dword [0x44c40c]
call fcn.00476f6c
mov dword [esi + 0x38], eax
mov dl, 1
mov eax, dword [0x44c40c]
call fcn.00476f6c
mov dword [esi + 0x3c], eax
mov dl, 1
mov eax, dword [0x44c40c]
call fcn.00476f6c
mov dword [esi + 0x18], eax
mov dl, 1
mov eax, dword [0x44c40c]
call fcn.00476f6c
mov dword [esi + 0x14], eax
lea edx, [ebp - 8]
xor eax, eax
call fcn.004075b8
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.004285f0
mov edx, dword [ebp - 4]
lea eax, [esi + 0x1c]
mov ecx, 0x66ad98
call fcn.0040bc54
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov byte [esi + 4], 1
mov byte [esi + 0x10], 0
lea eax, [esi + 0x20]
call fcn.0040ab4c
lea eax, [esi + 0x24]
call fcn.0040ab4c
mov byte [esi + 0x28], 0
lea eax, [esi + 0x40]
call fcn.0040ab4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66ad6e
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040abac
pop eax
jmp eax

Function at 0x6714dc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x8106dc], 0
jne 0x6714f3
call fcn.00671498
mov eax, edi
dec eax
test eax, eax
jl 0x67151b
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x8102dc]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x6714fd
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x674574
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x6745a5
dec al
je 0x6745e0
dec al
je 0x674624
dec al
je 0x674696
jmp 0x674731
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x674731
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x6745b5
jmp 0x674731
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x674731
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
movzx ecx, al
mov ecx, dword [ebx + ecx*4 + 0x40]
add dl, byte [ecx + esi]
and dl, 0xff
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x6745f0
jmp 0x674731
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x674731
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, dword [ebx + 0x24]
mov ecx, esi
dec ecx
cmp edx, ecx
jbe 0x674657
xor edx, edx
mov dword [esp + 4], edx
jmp 0x67466c
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov ebp, dword [ebx + edx*4 + 0x40]
movzx edx, byte [ebp + esi]
add eax, dword [esp + 4]
sar eax, 1
jns 0x674684
adc eax, 0
add dl, al
and dl, 0xff
mov byte [ebp + esi], dl
inc esi
dec edi
jne 0x674634
jmp 0x674731
xor eax, eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x674731
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, dword [ebx + 0x24]
mov ecx, esi
dec ecx
cmp edx, ecx
ja 0x6746fd
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 8], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 8]
push eax
movzx eax, byte [esp + 8]
pop edx
call fcn.00671524
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [esp]
and al, 0xff
mov byte [edx + esi], al
inc esi
dec edi
jne 0x6746b2
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x6afbc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 4]
test byte [eax + 0x1c], 8
jne 0x6afc27
cmp byte [esi + 0x3c], 0
jne 0x6afc27
test dl, dl
jne 0x6afbe2
cmp dword [esi + 0xc], 0
jne 0x6afc27
xor ebp, ebp
mov eax, dword [esi + 0x34]
test eax, eax
je 0x6afbf0
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
test edi, edi
jl 0x6afc1a
inc edi
xor ebx, ebx
mov eax, dword [esi + 0x34]
mov edx, dword [eax + ebx*4]
mov eax, esi
call fcn.006aed2c
mov dword [eax + 0x18], ebx
mov dword [eax + 0x78], ebp
test byte [eax + 0x38], 0x80
je 0x6afc16
add ebp, dword [eax + 0x14]
inc ebx
dec edi
jne 0x6afbfa
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 4]
xor edx, edx
call fcn.006d9f9c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x6b2ad8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
xor eax, eax
mov bx, ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x6b2aee
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x6b2afe
or bx, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x6b2b0e
or bx, 2
mov eax, ebx
pop ebx
ret
Function at 0x774c3c
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x774da2
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 8]
test esi, esi
je 0x774c7e
or ebx, 0xffff
mov eax, esi
call fcn.0040b9ec
mov esi, eax
jmp 0x774c80
xor esi, esi
xor eax, eax
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.winhttp.dll_WinHttpQueryHeaders
call sub.kernel32.dll_GetLastError
cmp eax, 0x2f76
jne 0x774cb0
mov eax, edi
call fcn.0040ab4c
jmp 0x774d85
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
je 0x774d00
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x20]
mov edx, dword [0x810898]
call fcn.0042c810
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea eax, [ebp - 0x1c]
push eax
push 1
mov ecx, dword [0x807b70]
mov dl, 1
mov eax, dword [0x778f98]
call fcn.0042df84
call fcn.0040a1c8
mov edx, dword [ebp - 0xc]
shr edx, 1
dec edx
mov eax, edi
call fcn.0040bb7c
mov eax, dword [edi]
test eax, eax
je 0x774d18
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x774d85
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [edi]
call fcn.0040b9ec
push eax
push esi
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.winhttp.dll_WinHttpQueryHeaders
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x774d85
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x24]
mov edx, dword [0x810898]
call fcn.0042c810
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea eax, [ebp - 0x1c]
push eax
push 1
mov ecx, dword [0x807b70]
mov dl, 1
mov eax, dword [0x778f98]
call fcn.0042df84
call fcn.0040a1c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x774da9
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0040abac
pop eax
jmp eax

Function at 0x774fa2
Capabilities:
Initialize winhttp library

Disassembly:
push ebx
push esi
push edi
test dl, dl
je 0x774f63
add esp, 0xfffffff0
call fcn.0040924c
mov ebx, edx
mov edi, eax
mov eax, edi
call fcn.0077f784
mov dl, 1
mov eax, dword [0x773510]
call fcn.00777b7c
mov dword [edi + 0xb8], eax
mov dl, 1
mov eax, dword [0x757c80]
call fcn.007633a4
mov dword [edi + 0xb4], eax
mov eax, dword [0x772610]
call fcn.00777724
push 0
push 0
push 0
push 1
push 0x775004
call sub.winhttp.dll_WinHttpOpen
mov esi, eax
mov dword [edi + 0xb0], esi
test esi, esi
jne 0x774fd1
mov ecx, dword [0x807d80]
mov dl, 1
mov eax, dword [0x779050]
call fcn.0042deb0
call fcn.0040a1c8
push 0
push 0x10010
push 0x774dc4
mov eax, dword [edi + 0xb0]
push eax
call sub.winhttp.dll_WinHttpSetStatusCallback
mov eax, edi
test bl, bl
je 0x774ffe
call fcn.004092a4
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x77604c
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x776221
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0xb8], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jle 0x77608f
mov esi, dword [ebp - 4]
movzx esi, word [esi + 0x10]
jmp 0x776091
xor esi, esi
push 0
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0040b9ec
push eax
mov eax, dword [ebx + 0x58]
mov eax, dword [eax + 0xb0]
push eax
call fcn.00772098
mov edi, eax
mov dword [ebx + 0xa0], edi
test edi, edi
jne 0x7760e5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x80776c]
mov dl, 1
mov eax, dword [0x779118]
call fcn.0042df84
call fcn.0040a1c8
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 0x77623c
call fcn.0040bdec
jne 0x7760fe
or esi, 0x800000
push esi
push 0
push 0
push 0
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00774bfc
mov eax, dword [ebp - 0x10]
call fcn.0040b9ec
push eax
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0075e984
mov eax, dword [ebp - 0x14]
call fcn.0040b9ec
push eax
mov eax, dword [ebx + 0xa0]
push eax
call sub.winhttp.dll_WinHttpOpenRequest
mov edi, eax
mov dword [ebx + 0xa4], edi
test edi, edi
jne 0x77618a
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x28]
mov edx, dword [0x810898]
call fcn.0042c810
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0x11
lea eax, [ebp - 0x24]
push eax
push 1
mov ecx, dword [0x807cd8]
mov dl, 1
mov eax, dword [0x779118]
call fcn.0042df84
call fcn.0040a1c8
mov eax, dword [ebx + 0x14]
push eax
mov eax, ebx
call fcn.0075ead8
push eax
mov esi, dword [ebx + 0xc]
push esi
push esi
mov eax, dword [ebx + 0xa4]
push eax
call sub.winhttp.dll_WinHttpSetTimeouts
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x7761f7
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x2c]
mov edx, dword [0x810898]
call fcn.0042c810
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0x11
lea eax, [ebp - 0x24]
push eax
push 1
mov ecx, dword [0x807edc]
mov dl, 1
mov eax, dword [0x779118]
call fcn.0042df84
call fcn.0040a1c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x776228
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.0040abac
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040abac
pop eax
jmp eax
Function at 0x405d12
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00405847
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x405d47
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x43d988], eax
jmp 0x405ed9
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x405d62
test eax, eax
je 0x405e84
test cl, 2
je 0x405e84
push edi
push ebx
mov esi, 0x4372c0
push esi
call fcn.004056a6
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x405d85
push 0x407620
push esi
call edi
jmp 0x405d8b
push ebx
call fcn.00405820
cmp byte [ebx], 0
jne 0x405d99
cmp byte [0x4372c0], 0x5c
jne 0x405da1
push 0x407290
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x405e79
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.0040543b
cmp byte [eax], 0
je 0x405de4
cmp byte [ebp - 0x18], 0
je 0x405de4
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405dfa
mov al, byte [esi + 1]
test al, al
je 0x405e58
cmp al, 0x2e
jne 0x405dfa
cmp byte [esi + 2], 0
je 0x405e58
push esi
push edi
call fcn.004056a6
test byte [ebp - 0x148], 0x10
je 0x405e1f
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405e58
push dword [ebp + 0xc]
push ebx
call fcn.00405d12
jmp 0x405e58
push ebx
call fcn.004054f6
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405e50
test byte [ebp + 0xc], 4
je 0x405e48
push ebx
push 0xfffffffffffffff1
call fcn.00404755
push 0
push ebx
call fcn.00405b79
jmp 0x405e58
inc dword [0x43d988]
jmp 0x405e58
push ebx
push 0xfffffffffffffff2
call fcn.00404755
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405dc6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405e83
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405ed8
cmp dword [ebp - 8], esi
je 0x405ec8
push ebx
call fcn.00405762
test eax, eax
je 0x405ed8
push ebx
call fcn.004057f3
push ebx
call fcn.004054f6
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405ed0
test byte [ebp + 0xc], 4
je 0x405ec8
push ebx
push 0xfffffffffffffff1
call fcn.00404755
push esi
push ebx
call fcn.00405b79
jmp 0x405ed8
inc dword [0x43d988]
jmp 0x405ed8
push ebx
push 0xffffffffffffffe5
call fcn.00404755
pop esi
pop ebx
leave
ret 8
Function at 0x401590
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
mov esi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esi + 0x88], eax
jne 0x4015b1
xor al, al
pop esi
pop ecx
ret
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x4015e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
pop esi
neg eax
pop ecx
ret
Function at 0x407210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d350
cmp edx, dword [eax]
je 0x407232
add eax, 8
inc ecx
cmp eax, 0x40d3e0
jl 0x407223
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d350]
jne 0x407360
mov eax, dword [0x40e3cc]
cmp eax, 1
je 0x40733a
test eax, eax
jne 0x407263
cmp dword [0x40b274], 1
je 0x40733a
cmp edx, 0xfc
je 0x407360
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40729a
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407cf0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407de0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4072dd
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407de0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4096b8
push edi
call fcn.00407ef0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407cf0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407d00
lea eax, [ebp - 0xa0]
push 0x409698
push eax
call fcn.00407d00
push dword [esi + 0x40d354]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407d00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407e5b
add esp, 0x2c
pop edi
jmp 0x407360
lea eax, [ebp + 8]
lea esi, [esi + 0x40d354]
push 0
push eax
push dword [esi]
call fcn.00407de0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40c36f
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x40c390
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x40c387
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x40c37f
mov eax, ebx
leave
ret

Function at 0x40c3b6
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0xc]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 8]
mov eax, dword [esi]
add eax, dword [ebp + 8]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 8]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 8]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 8]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x40c415
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x40c442
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x40c431
xor ecx, eax
xor edx, ebx
dec edi
jne 0x40c422
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x40c468
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x40c409
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 8]
pop ecx
pop edx
pop edi
pop ebx
pop esi
leave
ret 8