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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043dd27

Function at 0x43e090
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043deb6

Function at 0x43e4cc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4616a8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43e50c
cmp byte [ebx], 0xa
jne 0x43e50c
or byte [eax + edi + 0x28], 4
jmp 0x43e511
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x43e60f
mov al, byte [edx]
cmp al, 0x1a
je 0x43e5f1
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x43e540
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x43e565
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x43e56f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x43e522
jmp 0x43e60f
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43e5ec
cmp dword [ebp - 0xc], 0
je 0x43e5ec
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4616a8]
test byte [eax + edi + 0x28], 0x48
je 0x43e5c6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43e5b1
mov byte [esi], dl
jmp 0x43e5c2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4616a8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43e60f
cmp byte [ebp - 1], 0xa
jne 0x43e5d5
cmp esi, ebx
jne 0x43e5d5
mov byte [esi], 0xa
jmp 0x43e60e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043f04c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43e60f
mov byte [esi], 0xd
jmp 0x43e60e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4616a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43e60b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43e60f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43e618
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4616a8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43e65b
cmp word [esi], dx
jne 0x43e65b
or byte [edi + eax + 0x28], 4
jmp 0x43e660
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x43e7b3
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x43e793
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x43e6a2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43e6d8
cmp eax, edx
jae 0x43e6e4
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x43e67a
jmp 0x43e7b3
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43e78f
cmp dword [ebp - 0x14], 0
je 0x43e78f
mov eax, dword [ebx*4 + 0x4616a8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x43e767
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x43e730
mov word [esi], cx
jmp 0x43e763
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4616a8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4616a8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4616a8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x43e7b3
pop ebx
cmp word [ebp - 4], bx
jne 0x43e778
cmp esi, dword [ebp + 0xc]
jne 0x43e778
mov word [esi], bx
jmp 0x43e7b0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043f04c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x43e7b3
push 0xd
jmp 0x43e7ac
mov ecx, dword [ebx*4 + 0x4616a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43e7aa
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43e7b3
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44103a
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00440fbc
Function at 0x44280a
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 0x4428a7
push ebx
push esi
call fcn.004427d3
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.004405e1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x442854
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4428a6
push edi
push eax
call fcn.0043f1cf
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x442874
call fcn.0043b999
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4428a5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004405e1
add esp, 0x20
test eax, eax
jne 0x442893
push edi
call fcn.0043b999
jmp 0x44289b
push ebx
call fcn.0043b999
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 0x448c65
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]
push dword [ebp + 0xc]
push ebx
call fcn.00448be1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x448ddd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x448ddd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x448d8c
jg 0x448cbe
test eax, eax
je 0x448d82
push 1
push 0x1000
call fcn.0043b93c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x448ce4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x448d79
push 0x8000
push ebx
call fcn.004388f7
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x448d10
jg 0x448d0b
cmp ecx, 0x1000
jb 0x448d10
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0043db27
add esp, 0x10
cmp eax, 0xffffffff
je 0x448d55
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 0x448d0b
jl 0x448d3c
test ecx, ecx
jne 0x448cfd
push dword [ebp - 0xc]
push ebx
call fcn.004388f7
push esi
call fcn.0043b999
add esp, 0xc
xor edi, edi
jmp 0x448dee
cmp byte [edi + 0x24], 0
je 0x448d6c
cmp dword [edi + 0x20], 5
jne 0x448d6c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x448d77
mov edi, dword [edi + 0x18]
jmp 0x448d79
xor edi, edi
push esi
call fcn.0043b999
pop ecx
jmp 0x448dee
test ecx, ecx
jg 0x448d4e
jl 0x448d8c
test eax, eax
jae 0x448d4e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043f04c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x448daf
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x448d4e
jmp 0x448de6
push ebx
call fcn.00442c74
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x448d4e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x448dee
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x448deb
mov edi, dword [edi + 0x18]
jmp 0x448dee
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0043f04c
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44a290
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44a2bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44a2bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401238
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push ebx
push esi
mov edx, 0x81
push edi
xor esi, esi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], si
mov word [ebp - 0x410], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x40e]
mov word [ebp - 0x618], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x616]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
cmp edi, esi
je 0x401328
push 0x25
pop ebx
push ebx
push edi
call fcn.0040cd07
pop ecx
test eax, eax
pop ecx
jne 0x4012bc
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
call fcn.0040c433
add esp, 0xc
push 1
pop eax
jmp 0x401364
mov eax, edi
push ebx
push eax
call fcn.0040cd07
pop ecx
test eax, eax
pop ecx
je 0x4012d1
add eax, 2
inc esi
jmp 0x4012be
mov eax, esi
push 2
cdq
pop ecx
idiv ecx
cmp edx, 1
je 0x401328
mov esi, 0x104
lea eax, [ebp - 0x208]
push esi
push edi
push eax
call fcn.0040c433
lea eax, [ebp - 0x208]
push ebx
push eax
call fcn.0040cd07
and word [eax], 0
lea edi, [eax + 2]
push ebx
push edi
call fcn.0040cd07
add esp, 0x1c
mov ebx, eax
lea eax, [ebp - 0x410]
and word [ebx], 0
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x40132c
xor eax, eax
jmp 0x401364
add ebx, 2
lea eax, [ebp - 0x410]
push ebx
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x618]
push str._s_s_s
push eax
call fcn.0040cc98
push dword [ebp + 0x10]
lea eax, [ebp - 0x618]
push dword [ebp + 0xc]
push eax
call fcn.00401238
add esp, 0x20
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401369
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call fcn.00401238
add esp, 0xc
test eax, eax
je 0x401459
push 0x5c
push dword [ebp + 8]
call fcn.0040cd07
pop ecx
test eax, eax
pop ecx
je 0x40145d
lea eax, [ebp - 0x208]
push 0x5c
push eax
call fcn.0040cd30
cmp byte [ebp + 0xc], 1
pop ecx
pop ecx
mov ebx, eax
jne 0x4013dd
and word [ebx], 0
lea eax, [ebp - 0x208]
push eax
call fcn.00401466
test al, al
pop ecx
jne 0x40145d
mov word [ebx], 0x5c
lea edi, [ebp - 0x208]
test edi, edi
je 0x40145d
push 0x5c
push edi
call fcn.0040cd07
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x401449
cmp byte [ebp + 0xc], al
jne 0x40145d
xor edi, edi
lea eax, [ebp - 0x208]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401434
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401459
test esi, esi
je 0x40143d
mov word [esi], 0x5c
cmp byte [ebp + 0xc], 1
jne 0x4013f9
cmp esi, ebx
je 0x40145d
jmp 0x4013f9
cmp word [esi - 2], 0x3a
lea edi, [esi + 2]
je 0x4013f9
and word [esi], 0
jmp 0x401414
xor eax, eax
jmp 0x401460
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401cb0
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov ax, word [ebp + 0x1c1e]
push ebx
cmp word [ebp + 0x1c1c], ax
push esi
push edi
mov dword [ebp - 4], 0x280
je 0x401de8
xor esi, esi
cmp ax, si
jbe 0x401ded
lea eax, [ebp + 0x1c20]
lea ecx, [ebp - 0x1c]
push eax
call fcn.0040b904
lea eax, [ebp - 0x2c]
push eax
call fcn.0040b8d2
cmp word [ebp + 0x1c20], si
pop ecx
je 0x401d1b
mov ecx, dword [eax + 0xc]
cmp ecx, dword [ebp - 0x10]
jl 0x401d1b
jg 0x401ded
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x14]
ja 0x401ded
cmp dword [ebp + 0x1818], esi
je 0x401de8
mov dword [ebp - 8], esi
lea edi, [ebp + 0x181c]
mov eax, 0x80
cmp dword [ebp + 0x1818], eax
jge 0x401d43
mov eax, dword [ebp + 0x1818]
cmp dword [ebp - 8], eax
jge 0x401ded
push 0x280
call fcn.0040d239
mov ebx, eax
pop ecx
test ebx, ebx
je 0x401ded
lea eax, [ebp - 4]
push eax
push ebx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x401d86
push ebx
call fcn.0040d2c5
push dword [ebp - 4]
call fcn.0040d239
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x401ded
lea eax, [ebp - 4]
push eax
push ebx
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x401dcb
test ebx, ebx
mov esi, ebx
je 0x401dd6
lea eax, [esi + 0x1b0]
push eax
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0xc], eax
lea eax, [esi + 0x1c0]
push eax
call sub.WS2_32.dll_inet_addr
mov ecx, dword [edi + 4]
and eax, dword [ebp - 0xc]
and ecx, dword [edi]
mov edx, ecx
and edx, eax
cmp edx, ecx
je 0x401de1
mov esi, dword [esi]
test esi, esi
jne 0x401d9a
test ebx, ebx
je 0x401dd6
push ebx
call fcn.0040d2c5
pop ecx
inc dword [ebp - 8]
add edi, 8
jmp 0x401d30
push ebx
call fcn.0040d2c5
pop ecx
push 1
pop eax
jmp 0x401def
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ee0
Capabilities:
Create thread
Terminate thread

Disassembly:
sub esp, 0x318
push ebx
push ebp
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x122]
cmp dword [esp + 0x32c], ebx
mov word [esp + 0x120], bx
mov dword [esp + 0x10], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jbe 0x402049
push 0x6f
mov esi, 0x104
pop edi
mov eax, dword [esp + 0x10]
push 2
cdq
pop ecx
idiv ecx
push esi
lea eax, [esp + 0x20]
push ebx
push eax
test edx, edx
jne 0x401f79
call fcn.0040c470
push 0x6d
push edi
push 0x63
push 0x2e
push 0x65
push 0x6c
push 0x67
push edi
push edi
push 0x67
push 0x2e
push 0x77
push 0x77
push 0x77
lea eax, [esp + 0x60]
push 0xe
push eax
call fcn.00401031
add esp, 0x4c
jmp 0x401fc5
call fcn.0040c470
push 0x6d
push edi
push 0x63
push 0x2e
push 0x74
push 0x66
push edi
push 0x73
push edi
push 0x72
push 0x63
push 0x69
push 0x6d
push 0x2e
push 0x65
push 0x74
push 0x61
push 0x64
push 0x70
push 0x75
push 0x73
push 0x77
push edi
push 0x64
push 0x6e
push 0x69
push 0x77
lea eax, [esp + 0x94]
push 0x1b
push eax
call fcn.00401031
add esp, 0x80
lea eax, [esp + 0x120]
push esi
push eax
lea eax, [esp + 0x24]
push esi
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push ebx
push eax
push 0x401ebe
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
cmp ebp, ebx
je 0x402034
push 0x2710
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
jne 0x402025
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push 1
pop eax
cmp dword [esp + 0x14], eax
je 0x40204b
jmp 0x402034
cmp eax, 0x102
jne 0x402034
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esp + 0x10]
inc dword [esp + 0x10]
cmp eax, dword [esp + 0x32c]
jb 0x401f35
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret
Function at 0x403068
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push esi
push edi
push 0x44
xor edi, edi
pop esi
lea eax, [ebp - 0x54]
push esi
push edi
push eax
call fcn.0040c470
push 0x10
lea eax, [ebp - 0x10]
push edi
push eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], 5
call fcn.0040c470
add esp, 0x18
lea eax, [ebp - 0x25c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x25c]
push eax
call esi
cmp word [ebp + eax*2 - 0x25e], 0x5c
jne 0x4030df
lea eax, [ebp - 0x25c]
push eax
call esi
mov word [ebp + eax*2 - 0x25e], di
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x25c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 5
pop edi
neg eax
sbb eax, eax
pop esi
inc eax
leave
ret
Function at 0x404580
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 4], 0
push esi
jne 0x4045a8
push 0x421a64
lea ecx, [ebp - 0xc]
call fcn.0040d68c
lea eax, [ebp - 0xc]
push 0x41fbd0
push eax
call fcn.0040d736
xor esi, esi
cmp dword [ecx + 0x3cc], esi
jle 0x4045c9
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dl, byte [edi]
xor byte [eax], dl
inc edi
inc eax
inc esi
cmp esi, dword [ecx + 0x3cc]
jl 0x4045b9
pop edi
pop esi
leave
ret 8

Function at 0x404732
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
cmp word [eax], 0x5a4d
jne 0x404847
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x404847
mov edi, 0x2000
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push edi
push dword [esi + 0x50]
push dword [esi + 0x34]
call ebx
test eax, eax
mov dword [ebp - 4], eax
jne 0x40478a
push 4
push edi
push dword [esi + 0x50]
push eax
call ebx
test eax, eax
mov dword [ebp - 4], eax
je 0x404847
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov eax, dword [ebp - 4]
xor ecx, ecx
push 4
push 0x1000
mov dword [edi + 4], eax
mov dword [edi + 0xc], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0x10], ecx
push dword [esi + 0x50]
push eax
call ebx
push 4
push 0x1000
push dword [esi + 0x54]
push dword [ebp - 4]
call ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebx + 0x3c]
add ecx, dword [esi + 0x54]
push ecx
push ebx
push eax
call fcn.0040c8c0
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebp - 8]
add eax, ecx
mov ecx, dword [ebp - 4]
push edi
push esi
mov dword [edi], eax
push ebx
mov dword [eax + 0x34], ecx
call fcn.00404855
mov ebx, dword [ebp - 4]
add esp, 0x18
mov eax, ebx
sub eax, dword [esi + 0x34]
je 0x40480c
push eax
push edi
call fcn.004049bf
pop ecx
pop ecx
push edi
call fcn.00404a39
test eax, eax
pop ecx
je 0x404840
push edi
call fcn.00404902
mov eax, dword [edi]
pop ecx
mov eax, dword [eax + 0x28]
test eax, eax
je 0x40484e
add eax, ebx
test eax, eax
je 0x404840
cmp byte [ebp + 0xc], 0
push 1
pop esi
je 0x40484b
push 0
push esi
push ebx
call eax
test eax, eax
jne 0x40484b
push edi
call fcn.00404bbf
pop ecx
xor eax, eax
jmp 0x404850
mov dword [edi + 0x10], esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404855
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
and dword [ebp - 4], 0
push esi
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 8], ecx
movzx ecx, word [eax + 0x14]
cmp word [eax + 6], 0
lea esi, [ecx + eax + 0x18]
jbe 0x4048ff
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
add esi, 0x10
mov ebx, 0x1000
cmp dword [esi], 0
jne 0x4048c0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
test eax, eax
mov dword [ebp - 0xc], eax
jle 0x4048e9
push 4
push ebx
push eax
mov eax, dword [esi - 4]
add eax, dword [ebp - 8]
push eax
call edi
push dword [ebp - 0xc]
mov dword [esi - 8], eax
push 0
push eax
call fcn.0040c470
add esp, 0xc
jmp 0x4048e9
mov eax, dword [esi - 4]
push 4
add eax, dword [ebp - 8]
push ebx
push dword [esi]
push eax
call edi
mov ecx, dword [esi + 4]
push dword [esi]
add ecx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push ecx
push eax
call fcn.0040c8c0
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi - 8], eax
mov eax, dword [ebp + 0x10]
inc dword [ebp - 4]
add esi, 0x28
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 4], eax
jl 0x40488e
pop edi
pop ebx
pop esi
leave
ret

Function at 0x404c37
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor edx, edx
mov ecx, 0x4269fc
push 8
mov eax, edx
pop esi
test al, 1
je 0x404c51
shr eax, 1
xor eax, 0xedb88320
jmp 0x404c53
shr eax, 1
dec esi
jne 0x404c44
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x426dfc
jl 0x404c3f
mov dword [0x426dfc], 1
pop esi
ret

Function at 0x404c70
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x426dfc], 0
push esi
mov esi, dword [esp + 8]
jne 0x404c83
call fcn.00404c37
xor eax, eax
cmp dword [esp + 0x10], eax
jle 0x404cb0
mov ecx, dword [esp + 0xc]
mov edx, esi
and edx, 0xff
movzx ecx, byte [eax + ecx]
xor ecx, edx
shr esi, 8
mov ecx, dword [ecx*4 + 0x4269fc]
xor esi, ecx
inc eax
cmp eax, dword [esp + 0x10]
jl 0x404c8b
mov eax, esi
pop esi
ret

Function at 0x404cc9
Capabilities:
Delete file

Disassembly:
push esi
push edi
push 0x421b20
push dword [esp + 0x10]
call fcn.0040d4f4
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x404d10
push 2
push 0
push esi
call fcn.0040db7b
push esi
call fcn.0040d9f8
push esi
mov edi, eax
call fcn.0040d30d
push 0x4210b0
push dword [esp + 0x24]
call fcn.0040d4f4
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x404d14
xor al, al
jmp 0x404d68
push 0
push 0
push esi
call fcn.0040db7b
add esp, 0xc
test edi, edi
jle 0x404d55
push ebx
mov ebx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZ
push ebx
call fcn.0040cc00
cmp edi, eax
pop ecx
jae 0x404d3a
mov eax, edi
jmp 0x404d41
push ebx
call fcn.0040cc00
pop ecx
push esi
push eax
push 1
push ebx
call fcn.0040d38a
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x404d2b
pop ebx
push esi
call fcn.0040d30d
pop ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
pop edi
pop esi
ret