joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f32d4
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
cmp byte [ebx + 0x98], 0
je 0x4f32fa
push 0
mov eax, dword [ebx + 0x94]
call fcn.00452d00
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x98], 0
pop ebx
ret

Function at 0x4f33b4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f3525
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xa4], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x4f350a
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.0040a9f0
mov dl, 1
mov eax, dword [0x4c8ee8]
call fcn.004c8f40
mov edx, dword [ebp - 4]
mov dword [edx + 0x9c], eax
mov dl, 1
mov eax, dword [0x41c8e4]
call fcn.00403d80
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
call fcn.004c8fbc
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x4f3507
mov dl, 1
mov eax, dword [0x4ca518]
call fcn.004ca580
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
mov edx, 0x4f353c
call fcn.004c9724
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404f18
xor eax, eax
push ebp
push 0x4f3500
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.004ca880
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004f3544
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f3507
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
call fcn.00403db0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.00403db0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00403db0
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f352c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404c20
ret

Function at 0x4fb444
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4fb4ab
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
call sub.user32.dll_GetWindowTextLengthA
mov ebx, eax
lea edi, [ebx + 1]
mov edx, edi
lea eax, [ebp - 8]
call fcn.00405258
push edi
mov eax, dword [ebp - 8]
call fcn.004050cc
push eax
push esi
call sub.user32.dll_GetWindowTextA
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00404c50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fb4b2
lea eax, [ebp - 8]
call fcn.00404bfc
ret
Function at 0x4ffde4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
push 0x40
push 0x1000
push pe_nt_image_headers32
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4ffe6e
xor edx, edx
push ebp
push 0x4ffe4f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov dword [eax], 0x448b5050
mov dword [eax + 4], 0x44890824
mov dword [eax + 8], 0x58b0424
lea edx, [ebx + 4]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0x8244489
mov dword [eax + 0x14], 0x25ff9058
mov dword [eax + 0x18], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ffe6e
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x503d20
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x503d4e
mov eax, ebx
call fcn.005047d4
cmp dword [ebx + 0x40], 0
je 0x503d47
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x503dbf
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x503db1
cmp dword [ebx + 8], 0
je 0x503d70
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x503d82
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x503db1
cmp dword [ebx + 8], 0
je 0x503d63
cmp eax, 3
je 0x503d95
dec eax
jne 0x503d63
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x503d63
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x503d63
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x503ddd
cmp dword [ebx + 0x14], 0xcc
je 0x503ddd
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00503de8
pop ebx
ret
Function at 0x5145e0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004050bc
mov eax, dword [ebp - 8]
call fcn.004050bc
mov eax, dword [ebp - 0xc]
call fcn.004050bc
xor eax, eax
push ebp
push 0x51470f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov ebx, 0x14
mov dword [ebp - 0x28], 0x14
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x40], 2
mov eax, dword [ebp - 8]
call fcn.004050cc
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], 3
mov eax, dword [ebp - 0xc]
call fcn.004050cc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
call fcn.00435f24
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.004050cc
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5146f4
xor eax, eax
push ebp
push 0x5146ed
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x4b
push 0
call sub.wininet.dll_InternetSetOptionA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x5146cd
push 0
push 0
push 0x25
push 0
call sub.wininet.dll_InternetSetOptionA
test eax, eax
jne 0x5146d1
xor eax, eax
jmp 0x5146d3
mov al, 1
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5146f4
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x514716
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c20
ret
Function at 0x514720
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004050bc
mov eax, dword [ebp - 8]
call fcn.004050bc
mov eax, dword [ebp - 0xc]
call fcn.004050bc
mov eax, dword [ebp + 0xc]
call fcn.004050bc
xor eax, eax
push ebp
push 0x51488a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov ebx, 0x14
mov dword [ebp - 0x28], 0x14
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x40], 2
mov eax, dword [ebp - 8]
call fcn.004050cc
mov esi, eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], 3
mov eax, 0x51489c
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.004050cc
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x514867
xor edx, edx
push ebp
push 0x514860
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 3
mov eax, dword [ebp + 0xc]
call fcn.004050cc
push eax
mov eax, dword [ebp - 0xc]
call fcn.004050cc
push eax
mov ax, word [ebp + 8]
push eax
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetConnectA
test eax, eax
je 0x514849
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x4b
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetSetOptionA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x514840
push 0
push 0
push 0x25
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetSetOptionA
test eax, eax
jne 0x514844
xor eax, eax
jmp 0x514846
mov al, 1
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x514867
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x514891
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c20
lea eax, [ebp + 0xc]
call fcn.00404bfc
ret
Function at 0x5148a4
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
mov byte [ebp - 1], 0
mov ebx, 0x14
mov dword [ebp - 0x1c], 0x14
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x34], 2
mov eax, 0x51496c
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 3
mov eax, 0x514970
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 1
push 0x51496c
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x514963
xor eax, eax
push ebp
push 0x51495c
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0x4b
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 0x25
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x514963
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
mov al, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x514bdc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
xor edx, edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x514df0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 0x105
mov eax, dword [ebp - 0x18]
call fcn.00402bf8
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x514c5a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
je 0x514c44
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.00404e04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x514c61
mov eax, dword [ebp - 8]
call fcn.00402c28
ret

Function at 0x5161bc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov bl, 2
lea eax, [ebp - 0xa]
xor ecx, ecx
mov edx, 0xa
call fcn.004035f4
push 0xa
lea eax, [ebp - 0xa]
push eax
push 0xd
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
je 0x5161f6
cmp byte [ebp - 0xa], 0x31
jne 0x5161f4
mov bl, 1
jmp 0x5161f6
xor ebx, ebx
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x517920
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
xor ebx, ebx
mov eax, esi
call fcn.00453004
test al, al
je 0x5179de
mov byte [ebp - 9], 0
xor ebx, ebx
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 8], eax
jmp 0x5179bc
cmp word [esi + 0x5f2], 0
je 0x517971
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 9]
push eax
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [esi + 0x5f4]
call dword [esi + 0x5f0]
mov al, byte [esi + 0x5e8]
or al, byte [ebp - 9]
jne 0x517993
cmp dword [ebp - 4], 0
jbe 0x51798f
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
ja 0x517993
xor ebx, ebx
jmp 0x517995
mov bl, 1
test bl, bl
jne 0x5179de
mov eax, dword [0x535d5c]
mov eax, dword [eax]
cmp byte [eax + 0x9c], 0
jne 0x5179de
mov eax, dword [0x535d5c]
mov eax, dword [eax]
call fcn.0046c2ec
push 1
call sub.kernel32.dll_Sleep_1
test esi, esi
je 0x5179de
cmp byte [esi + 0x588], 0
jne 0x5179de
mov edx, 0xfffffdf3
mov eax, esi
call fcn.00471c08
cmp eax, 4
jne 0x51794e
mov byte [esi + 0x5e8], 0
test bl, bl
sete al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x522654
Capabilities:
Create process on windows
Create process suspended
Self delete

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x4c
push 0
push 0
dec ecx
jne 0x52265c
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x522924
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x22c]
xor eax, eax
call fcn.00402fd0
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.0040a5a4
mov edx, dword [ebp - 0x228]
lea eax, [ebp - 4]
mov ecx, 0x522938
call fcn.00404f18
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00403388
lea eax, [ebp - 0x1d0]
call fcn.00403124
call fcn.00402d98
mov edx, 0x522950
lea eax, [ebp - 0x1d0]
call fcn.004052e8
call fcn.00403818
call fcn.00402d98
push 0x522960
lea edx, [ebp - 0x238]
xor eax, eax
call fcn.00402fd0
mov edx, dword [ebp - 0x238]
lea ecx, [ebp - 0x234]
mov eax, ebx
call fcn.005222e4
push dword [ebp - 0x234]
push 0x522970
lea eax, [ebp - 0x230]
mov edx, 3
call fcn.00404f8c
mov edx, dword [ebp - 0x230]
lea eax, [ebp - 0x1d0]
call fcn.004052e8
call fcn.00403818
call fcn.00402d98
push 0x52297c
lea edx, [ebp - 0x244]
xor eax, eax
call fcn.00402fd0
mov edx, dword [ebp - 0x244]
lea ecx, [ebp - 0x240]
mov eax, ebx
call fcn.005222e4
push dword [ebp - 0x240]
push 0x522970
push 0x522990
lea eax, [ebp - 0x23c]
mov edx, 4
call fcn.00404f8c
mov edx, dword [ebp - 0x23c]
lea eax, [ebp - 0x1d0]
call fcn.004052e8
call fcn.00403818
call fcn.00402d98
push 0x5229a4
lea edx, [ebp - 0x250]
xor eax, eax
call fcn.00402fd0
mov eax, dword [ebp - 0x250]
lea edx, [ebp - 0x24c]
call fcn.0040a5a4
push dword [ebp - 0x24c]
push 0x5229b8
lea edx, [ebp - 0x258]
xor eax, eax
call fcn.00402fd0
mov eax, dword [ebp - 0x258]
lea edx, [ebp - 0x254]
call fcn.0040a5d8
push dword [ebp - 0x254]
lea eax, [ebp - 0x248]
mov edx, 4
call fcn.00404f8c
mov edx, dword [ebp - 0x248]
lea eax, [ebp - 0x1d0]
call fcn.004052e8
call fcn.00403818
call fcn.00402d98
push 0x522970
lea edx, [ebp - 0x260]
xor eax, eax
call fcn.00402fd0
push dword [ebp - 0x260]
push 0x522970
lea eax, [ebp - 0x25c]
mov edx, 3
call fcn.00404f8c
mov edx, dword [ebp - 0x25c]
lea eax, [ebp - 0x1d0]
call fcn.004052e8
call fcn.00403818
call fcn.00402d98
mov edx, 0x5229cc
lea eax, [ebp - 0x1d0]
call fcn.004052e8
call fcn.00403818
call fcn.00402d98
lea eax, [ebp - 0x1d0]
call fcn.00403450
call fcn.00402d98
lea eax, [ebp - 0x224]
xor ecx, ecx
mov edx, 0x44
call fcn.004035f4
mov dword [ebp - 0x1f8], 1
mov word [ebp - 0x1f4], 0
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push 0x40
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004050cc
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x5228f2
mov eax, dword [ebp - 0x1dc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x1e0]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [0x535d5c]
mov eax, dword [eax]
call fcn.0046c594
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52292b
lea eax, [ebp - 0x260]
mov edx, 0xf
call fcn.00404c20
lea eax, [ebp - 4]
call fcn.00404bfc
ret
Function at 0x52349c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004050bc
mov eax, dword [ebp - 8]
call fcn.004050bc
xor eax, eax
push ebp
push 0x52365d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004050cc
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x523642
xor eax, eax
push ebp
push 0x523638
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x18]
push eax
push 0x16
lea eax, [ebp - 0x2f]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ReadFile_1
mov ebx, dword [ebp - 0x21]
mov eax, ebx
call fcn.00402bf8
mov dword [ebp - 0xc], eax
push 0
push 0
mov eax, dword [ebp - 0x1d]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ReadFile_1
mov word [ebp - 0x41], 1
mov ax, word [ebp - 0x2b]
mov word [ebp - 0x3f], ax
mov word [ebp - 0x43], 0
lea edx, [ebp - 0x29]
lea eax, [ebp - 0x3d]
mov ecx, 0xc
call fcn.00408218
mov word [ebp - 0x31], 0
mov esi, 0x14
mov eax, esi
call fcn.00402bf8
mov edi, eax
lea edx, [ebp - 0x43]
mov ecx, esi
mov eax, edi
call fcn.00408218
push 0
mov eax, dword [ebp - 8]
call fcn.004050cc
push eax
call sub.kernel32.dll_BeginUpdateResourceA
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x52361a
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
push edi
mov dx, 2
mov ax, 4
call fcn.0052348c
push eax
push 1
push 0xe
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_UpdateResourceA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x19], al
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov dx, 2
mov ax, 4
call fcn.0052348c
push eax
push 1
push 3
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_UpdateResourceA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x19], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x523621
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_EndUpdateResourceA
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x523664
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404c20
ret
Function at 0x407cfe
Capabilities:
Encode data using xor

Disassembly:
or byte [eax], cl
or byte [eax], cl
or bl, ch
or byte [eax], cl
invalid
sbb al, 8
or byte [eax], cl
or bh, bh
cdq
or byte [eax], cl
or byte [eax], cl
ror dword [eax], cl
sbb cl, byte [eax]
adc al, 0x45
nop
add eax, 0x8060808
or byte [eax], cl
pop es
nop
nop
nop
nop
mov al, 0x90
nop
push ebp
mov edx, dword [ebp - 0x7d]
call 0x6acdd381
test al, 0x57
mov edi, dword [ebp + 0x10]
clc
dec ebp
cld
inc esp
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0xc]
push ecx
inc esi
dec ebp
or byte [edx + 0x57], dl
push eax
push ecx
call fcn.00407ec0
jnp 0x407cd5
cld
mov edx, dword [eax + 0x18c48314]
mov dword [ebp - 8], eax
xor al, 0xc9
mov esi, edx
je 0x407d5d
mov byte [edx], 0xac
lea esi, [edx + 1]
lea ebx, [edx + 0x7985bfff]
jle 0x407d74
add dword [ecx + eax], edi
xor byte [ebp + 6], dh
dec edi
dec ecx
test ecx, ecx
jg 0x407d65
and bh, byte [ebp + 0x10]
mov ebx, dword [ebp - 0xe]
test ebx, ebx
lfs esi, [eax + eax - 0x34745900]
sub ecx, ebx
cmp ecx, 4
jg 0x40813c
test dword [ebx + 0x38d73b7f], ecx
xor byte [esp + eax - 0x3a], dh
push es
inc esi
test ebx, ebx
int3
test edx, edx
call 0x11860d25
push eax
dec byte [ecx + 0x5fc68b38]
pop esi
pop ebx
inc edi
ret
Function at 0x401820
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xcc
push ebx
mov ebx, dword [esp + 0xe0]
push esi
push edi
mov ecx, 0x32
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0xd4], ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xe0]
push 0xc7
lea ecx, [esp + 0x10]
push eax
push ecx
call sub.MSVCRT.dll_strncpy
mov esi, dword [esp + 0xf8]
mov edx, dword [esp + 0xe8]
push esi
push 0x10
push 1
push edx
call sub.MSVCRT.dll_fwrite
lea eax, [esp + 0x28]
push eax
call fcn.004025b0
push esi
push 0xcc
lea ecx, [esp + 0x34]
push 1
push ecx
call sub.MSVCRT.dll_fwrite
mov edx, dword [esp + 0x114]
push esi
push ebx
push 1
push edx
call sub.MSVCRT.dll_fwrite
add esp, 0x40
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0xcc
ret
Function at 0x402140
Capabilities:
Create process on windows
Self delete

Disassembly:
sub esp, 0x504
push ebx
push esi
push edi
call fcn.004031c0
push eax
lea eax, [esp + 0x10]
push str._stttbrozzz.bat
push eax
call sub.MSVCRT.dll_sprintf
mov ebx, dword [esp + 0x520]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x11c]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x5c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x120]
push ecx
call sub.MSVCRT.dll_strrchr
add esp, 0x14
test eax, eax
jne 0x4021ab
pop edi
pop esi
pop ebx
add esp, 0x504
ret
lea edx, [esp + 0xc]
push 0x4053e0
push edx
mov byte [eax + 1], 0
call sub.MSVCRT.dll_fopen
mov esi, eax
add esp, 8
test esi, esi
jne 0x4021d1
pop edi
pop esi
pop ebx
add esp, 0x504
ret
push str._echo_off_r_n
push esi
call sub.MSVCRT.dll_fprintf
movsx eax, byte [esp + 0x118]
push eax
push str._c:_r_n
push esi
call sub.MSVCRT.dll_fprintf
lea ecx, [esp + 0x124]
push ecx
push str.cd___s__r_n
push esi
call sub.MSVCRT.dll_fprintf
push str.:start_r_n
push esi
call sub.MSVCRT.dll_fprintf
push ebx
push str.if_not_exist___s__goto_done_r_n
push esi
call sub.MSVCRT.dll_fprintf
push str.goto_start_r_n
push esi
call sub.MSVCRT.dll_fprintf
push str.:done_r_n
push esi
call sub.MSVCRT.dll_fprintf
mov edi, dword [esp + 0x55c]
add esp, 0x44
push ebx
push edi
push str.copy___s____s__r_n
push esi
call sub.MSVCRT.dll_fprintf
push edi
push str.del___s___Q_r_n
push esi
call sub.MSVCRT.dll_fprintf
push ebx
push str.__s__r_n
push esi
call sub.MSVCRT.dll_fprintf
mov eax, dword [esp + 0x544]
add esp, 0x28
test eax, eax
je 0x40227c
push eax
push str.__s__r_n
push esi
call sub.MSVCRT.dll_fprintf
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push str.del___s___Q_r_n
push esi
call sub.MSVCRT.dll_fprintf
push esi
call sub.MSVCRT.dll_fclose
add esp, 0x10
lea eax, [esp + 0xc]
push 0
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
cmp eax, 0x20
setg cl
pop edi
pop esi
mov eax, ecx
pop ebx
add esp, 0x504
ret