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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 8], ecx
push esi
mov dword [ebp - 4], ebx
call fcn.0047eaa0
add esp, 4
cmp eax, 0x10
jne 0x490ad3
mov eax, dword [ebp + 0x10]
pop esi
mov dword [eax], ebx
mov dword [eax + 4], ebx
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
test eax, eax
jne 0x490c12
lea esp, [esp]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x118], 0
jne 0x490c12
mov edi, dword [esi + 0x74]
mov cl, byte [edi + 8]
test cl, cl
jne 0x490aff
cmp byte [edi + 2], cl
jne 0x490b0c
movzx eax, word [edi + 0x18]
cdq
add ebx, eax
mov dword [ebp - 4], ebx
adc dword [ebp - 8], edx
test cl, cl
je 0x490bad
mov cl, byte [esi + 0x44]
test cl, cl
je 0x490bfb
and byte [esi + 1], 0xf9
xor eax, eax
mov word [esi + 0x32], ax
movsx eax, cl
dec cl
mov ax, word [esi + eax*2 + 0x46]
mov word [esi + 0x46], ax
movsx eax, cl
mov byte [esi + 0x44], cl
mov eax, dword [esi + eax*4 + 0x78]
mov dword [esi + 0x74], eax
mov edx, dword [edi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x490b8c
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov edi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov ebx, dword [edi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004feb10
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
add esp, 0x10
jmp 0x490b95
push edx
call fcn.004aaac0
add esp, 4
mov edi, dword [esi + 0x74]
mov ax, word [esi + 0x46]
cmp ax, word [edi + 0x18]
jae 0x490b14
inc word [esi + 0x46]
mov ebx, dword [ebp - 4]
movzx ecx, word [esi + 0x46]
movzx eax, word [edi + 0x18]
cmp ecx, eax
jne 0x490bc6
movzx ecx, byte [edi + 9]
mov eax, dword [edi + 0x38]
mov eax, dword [ecx + eax + 8]
jmp 0x490be0
mov eax, dword [edi + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x1a]
movzx ecx, cx
and ecx, eax
mov eax, dword [edi + 0x38]
mov eax, dword [ecx + eax]
bswap eax
push eax
push esi
call fcn.0047e810
add esp, 8
test eax, eax
je 0x490ae0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push esi
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
call fcn.0047eaa0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49e630
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
xor esi, esi
mov dword [ebp - 4], eax
cmp dword [ebx + 0x14], eax
jle 0x49e6ee
mov edx, dword [ebp + 0x10]
push edi
nop
mov edi, esi
cmp esi, 2
jge 0x49e65a
xor edi, 1
mov eax, dword [ebx + 0x10]
mov ecx, edi
add ecx, ecx
mov ebx, dword [eax + ecx*8 + 0xc]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
test edx, edx
je 0x49e688
mov eax, dword [eax + ecx*8]
mov ebx, edx
sub ebx, eax
movzx edx, byte [eax]
movzx ecx, byte [ebx + eax]
cmp edx, ecx
jne 0x49e6a8
test edx, edx
jne 0x49e6ba
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 8]
push 0
push dword [ebp + 0xc]
add eax, 0x18
push eax
call fcn.00474620
add esp, 0xc
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
test eax, eax
jne 0x49e6ed
jmp 0x49e6e0
movzx ecx, byte [ecx + 0x548e98]
movzx edx, byte [edx + 0x548e98]
sub edx, ecx
jne 0x49e6bd
inc eax
jmp 0x49e676
test edi, edi
jne 0x49e6da
push dword [ebp + 0x10]
push str.main
call fcn.004b3ad0
mov ebx, dword [ebp + 8]
add esp, 8
test eax, eax
jne 0x49e6dd
jmp 0x49e688
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
inc esi
cmp esi, dword [ebx + 0x14]
jl 0x49e650
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b3df0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [edi], 0
cmp dword [0x5856e0], 0
je 0x4b3e42
mov eax, dword [0x589cf8]
test eax, eax
je 0x4b3e1a
push eax
call dword [0x585730]
add esp, 4
lea eax, [ebp + 8]
push eax
push 0x14
call fcn.0047e1a0
mov eax, dword [0x589cf8]
add esp, 8
test eax, eax
je 0x4b3e3d
push eax
call dword [0x585738]
mov esi, dword [ebp + 8]
jmp 0x4b3e4c
mov esi, dword [ebp + 8]
jmp 0x4b3e4f
push 0x14
call dword [0x585700]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4b3e5a
pop edi
lea eax, [esi + 7]
pop esi
pop ebp
ret
cmp byte [0x5856e4], 0
push ebx
mov ebx, dword [ebp + 0x10]
je 0x4b3ea5
mov eax, dword [0x5857e0]
test eax, eax
je 0x4b3e7e
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x4b3ea5
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x4b3f40
push 0
push 0
mov dword [esi + 0xc], ebx
call fcn.0051ea41
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x4b3eb5
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp dword [esi + 8], 0
jne 0x4b3ece
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call dword [ebp + 0xc]
add esp, 4
mov dword [esi + 0x10], eax
pop ebx
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x4e1e70
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4e1e95
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4e1ea9
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4e1eb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
mov dword [edi], 0
test esi, esi
jne 0x4e1eca
pop edi
xor eax, eax
pop esi
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
mov edi, edi
mov eax, 0x400000
cmp esi, 0x400000
ja 0x4e1edf
mov eax, esi
push 0
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push ecx
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x4e1f15
test ecx, ecx
je 0x4e1f0e
test esi, esi
jne 0x4e1ed0
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop ebx
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x4e1f20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
mov dword [edi], 0
test esi, esi
jne 0x4e1f3a
pop edi
xor eax, eax
pop esi
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
mov edi, edi
mov eax, 0x400000
cmp esi, 0x400000
ja 0x4e1f4f
mov eax, esi
push 0
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push ecx
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x4e1f85
test ecx, ecx
je 0x4e1f7e
test esi, esi
jne 0x4e1f40
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop ebx
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x4e2020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
movzx esi, word [edx]
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov eax, esi
xor eax, 0x7f0
shr esi, 4
shr eax, 4
mov dword [ebp - 4], ebx
mov ecx, dword [edi + esi*4]
mov eax, dword [edi + eax*4]
mov dword [ebp + 0xc], eax
movzx eax, word [edx + 0x10]
mov esi, dword [ebp + 0xc]
shr eax, 4
mov dword [ebp - 0x14], ecx
mov eax, dword [edi + eax*4]
add eax, esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4e20ac
mov esi, edx
mov dword [ebp - 8], eax
add ebx, 4
push edi
push ebx
push ecx
push esi
call fcn.004e5b00
push edi
lea eax, [ebx + 0x20]
push eax
push dword [ebp - 0x10]
lea eax, [esi + 0x10]
push eax
call fcn.004e5b00
mov ecx, dword [ebp - 0x14]
add esp, 0x20
add ebx, 0x440
add esi, 0x20
sub dword [ebp - 8], 1
jne 0x4e2074
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp ebx, 0x10
jbe 0x4e2189
mov eax, dword [ebp - 4]
add ebx, 0xfffffff1
add eax, 0x44
shr ebx, 1
mov dword [ebp - 0x10], eax
movzx eax, word [edx + 0x10]
xor eax, 0x7f0
shr eax, 4
add esi, dword [edi + eax*4]
lea eax, [ebx + 0x180]
mov dword [ebp + 0xc], esi
lea eax, [edx + eax*2]
dec ebx
sub eax, 2
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], ebx
lea eax, [ebx + 0x80]
mov ebx, dword [ebp + 8]
mov edx, eax
shr eax, 1
and edx, 1
neg edx
shr edx, 4
movzx ecx, word [ebx + eax*2 + 0x200]
and edx, 0x7f
shr ecx, 4
xor ecx, edx
add esi, dword [edi + ecx*4]
cmp eax, 2
jae 0x4e20f3
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
movzx ecx, word [eax]
mov eax, ecx
xor ecx, 0x7f0
shr eax, 4
shr ecx, 4
mov eax, dword [edi + eax*4]
add eax, esi
mov dword [edx + ebx*8], eax
mov eax, dword [edi + ecx*4]
add eax, esi
mov esi, dword [ebp + 0xc]
mov dword [edx + ebx*8 + 4], eax
mov eax, dword [ebp - 8]
test ebx, ebx
jne 0x4e20e0
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
lea ebx, [eax*4 - 0x40]
mov eax, dword [ebp - 0xc]
cmp eax, 1
jbe 0x4e2189
lea esi, [ecx + 0x484]
lea edi, [eax - 1]
lea esp, [esp]
push ebx
push edx
push esi
call fcn.005167a0
mov edx, dword [ebp - 0x10]
add esp, 0xc
add esi, 0x440
sub edi, 1
jne 0x4e2170
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4e4400
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, 0x100
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
or ecx, esi
add edi, edi
mov edx, esi
and edx, edi
mov eax, ecx
add edx, esi
shr eax, 8
add eax, edx
mov edx, dword [ebp + 8]
movzx edx, word [edx + eax*2]
mov eax, ecx
shr eax, 7
add ecx, ecx
and eax, 1
shr edx, 4
neg eax
shr eax, 4
and eax, 0x7f
xor edx, eax
mov eax, dword [ebp + 0x14]
add ebx, dword [eax + edx*4]
mov edx, ecx
xor edx, edi
not edx
and esi, edx
cmp ecx, 0x10000
jb 0x4e4415
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x4e54c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x400
push edi
mov edi, 0xc
mov dword [esi + 0x2c], 0
lea edx, [esi + 0x1e68]
mov dword [esi + 0x44], 1
mov dword [esi + 0x40], 1
mov dword [esi + 0x3c], 1
mov dword [esi + 0x38], 1
mov eax, dword [esi + 0x78]
mov dword [esi + 0x70], eax
lea eax, [esi + 0x2030]
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x1e30], 0x4000400
mov dword [esi + 0x1e34], 0x4000400
mov dword [esi + 0x1e38], 0x4000400
mov dword [esi + 0x1e3c], 0x4000400
mov dword [esi + 0x1e40], 0x4000400
mov dword [esi + 0x1e44], 0x4000400
mov dword [esi + 0x1e48], 0x4000400
mov dword [esi + 0x1e4c], 0x4000400
mov ecx, 0x10
jmp 0x4e55b0
mov word [eax - 0x180], bx
mov word [eax], bx
add eax, 2
sub ecx, 1
jne 0x4e55b0
mov word [edx - 0x18], bx
mov word [edx], bx
mov word [edx + 0x18], bx
mov word [edx + 0x30], bx
add edx, 2
sub edi, 1
jne 0x4e55a0
mov eax, 0x4000400
lea edi, [esi + 0x21b0]
mov ecx, 0x80
rep stosd dword es:[edi], eax
lea edi, [esi + 0x23b0]
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x98]
mov eax, 0x300
add ecx, dword [esi + 0x94]
shl eax, cl
test eax, eax
je 0x4e5622
mov edi, dword [esi + 0x50]
mov ecx, eax
shr ecx, 1
mov eax, 0x4000400
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, 0x4000400
lea edi, [esi + 0x24b0]
mov ecx, 0x80
rep stosd dword es:[edi], eax
lea edi, [esi + 0x26b0]
mov ecx, 0x80
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esi + 0x28b0]
rep stosd dword es:[edi], eax
lea edi, [esi + 0x2ab0]
mov ecx, 0x80
rep stosd dword es:[edi], eax
mov dword [esi + 0x1c], 0
lea eax, [esi + 0xbcb8]
mov dword [esi + 0x18], 0
mov ecx, 0x800
mov dword [eax], 0x40000000
lea eax, [eax + 0x20]
sub ecx, 1
jne 0x4e5674
mov dword [esi + 0x34], ecx
mov eax, 1
mov ecx, dword [esi + 0x9c]
mov edx, 0x100
shl eax, cl
mov ecx, dword [esi + 0x98]
dec eax
mov dword [esi + 0x4c], eax
mov eax, edx
shl eax, cl
mov ecx, dword [esi + 0x94]
shr edx, cl
sub eax, edx
pop edi
mov dword [esi + 0x48], eax
pop esi
pop ebx
pop ebp
ret
Function at 0x4e5b00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ebx, ebx
mov edx, dword [ebp + 8]
mov edi, ebx
shr edi, 1
mov esi, ebx
shr esi, 2
mov eax, edi
and eax, 1
neg eax
shr eax, 4
movzx ecx, word [edx + esi*2 + 4]
and eax, 0x7f
shr ecx, 4
neg esi
xor ecx, eax
and esi, 0x7f0
movzx eax, word [edx + 2]
xor esi, eax
mov eax, dword [ebp + 0x14]
shr esi, 4
mov edx, dword [eax + ecx*4]
add edx, dword [eax + esi*4]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
add edx, dword [ebp + 0xc]
movzx ecx, word [eax + edi*2 + 8]
mov edi, dword [ebp + 0x10]
mov eax, ecx
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
mov eax, dword [esi + eax*4]
add eax, edx
mov dword [edi + ebx*4], eax
mov eax, dword [esi + ecx*4]
add eax, edx
mov dword [edi + ebx*4 + 4], eax
add ebx, 2
cmp ebx, 8
jb 0x4e5b08
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4e7720
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push esi
mov dword [eax + 0x34], 0
lea esi, [eax + 0x60]
mov word [eax + 0x1e], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x468], 0xffffffff
mov dword [eax + 0x46c], 0xffffffff
mov dword [eax + 0x30], 0x20
mov byte [eax + 0x1d], 1
mov dword [eax + 0x48], 4
mov ecx, edx
lea esi, [esi + 4]
and ecx, 1
mov eax, edx
shr eax, 1
neg ecx
and ecx, 0xedb88320
inc edx
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [esi - 4], eax
cmp edx, 0x100
jb 0x4e7766
pop esi
pop ebp
ret

Function at 0x4e8140
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov esi, dword [ebp + 8]
push edi
nop
push dword [esi + 0x60]
xor edi, edi
call fcn.004e9720
add esp, 4
cmp dword [esi + 0x58], 0
jne 0x4e8202
push dword [esi + 0x68]
call fcn.004e9720
add esp, 4
cmp dword [esi + 0x5c], 0
jne 0x4e81e5
cmp dword [esi + 0x15c], 0
jne 0x4e8207
cmp dword [esi + 0x154], 0
jne 0x4e81a1
lea eax, [esi + 0x178]
push eax
call ebx
mov dword [esi + 0x15c], 1
mov eax, edi
and eax, 0xf
shl eax, 0x12
add eax, dword [esi + 4]
push eax
push esi
call fcn.004e7ef0
add esp, 8
cmp dword [esi + 0x15c], 0
je 0x4e8207
lea eax, [esi + 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esi + 0x6c]
mov dword [esi + 0x15c], 0
push eax
inc edi
call fcn.004e97a0
jmp 0x4e815a
lea eax, [esi + 0x140]
push eax
call fcn.004e9570
lea eax, [esi + 0x64]
push eax
call fcn.004e96b0
add esp, 8
jmp 0x4e8150
pop edi
pop esi
pop ebx
pop ebp
ret
push 1
call fcn.0052b014
int3
Function at 0x4e9480
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x14], edi
je 0x4e94ba
cmp dword [esi + 0x1c], edi
jne 0x4e9507
lea eax, [esi + 0x2c]
mov dword [esi], 1
push eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
call fcn.004e9680
lea eax, [esi + 0x28]
push eax
call fcn.004e96b0
add esp, 8
jmp 0x4e94df
cmp dword [esi + 0x1c], edi
je 0x4e950e
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esi + 0x1c], edi
mov edi, dword [esi]
lea eax, [edi + 1]
mov dword [esi], eax
lea eax, [esi + 0x30]
push eax
call fcn.004e97a0
add esp, 4
push dword [esi + 0x34]
call fcn.004e9720
add esp, 4
cmp dword [esi + 0x1c], 0
jne 0x4e9515
lea ecx, [esi + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, edi
mov dword [esi + 0x1c], 1
pop edi
pop esi
pop ebp
ret
push 1
call fcn.0052b014
push 1
call fcn.0052b014
push 1
call fcn.0052b014
int3

Function at 0x4e97d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.0051ea41
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x4e97fb
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4e980a
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4e9810
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.0051ea41
mov ecx, dword [ebp + 8]
mov esi, eax
add esp, 0x18
mov dword [ecx], esi
test esi, esi
je 0x4e9855
push dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x4e9855
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4e9864
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5010c3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x533c49
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053390c

Function at 0x533c54
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00533a8d

Function at 0x5387ce
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053813c

Function at 0x5387d9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00538377
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x408949
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop edx
or eax, eax
or ecx, eax
call fcn.00408969
and ecx, eax
xor dword [ebx], edx
and eax, ecx
or eax, eax
inc ebx
inc ecx
sub ecx, ecx
cmp ebx, edi
jne fcn.00408949
ret
Function at 0x4076d4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040a3bc
test esi, esi
jne 0x40770a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040a554
jmp 0x407728
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407618
mov edi, eax
test esi, esi
je 0x407728
cmp dword [ebx], 0
je 0x407728
dec esi
jmp 0x407711
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004094c4
mov byte [esp], al
cmp byte [esp], 0
jne 0x40918d
test edi, edi
je 0x40918d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4090cd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4090a8
cmp edi, 0xffffffff
je 0x409069
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409069
mov byte [esp], 0
jmp 0x40918d
cmp dword [esi], 1
jg 0x4090a8
cmp dword [esi], 0
jne 0x40909a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40909a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40918d
lea eax, [esp + 0xc]
call fcn.00408cb8
dec ebp
test ebp, ebp
jg 0x40904e
cmp edi, 0xffffffff
je 0x4090cd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4090cb
mov byte [esp], 0
jmp 0x40918d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x409012
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4090cd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409208
mov edx, eax
mov ebx, dword [0x6058fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x409131
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40912f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x409131
xor edi, edi
cmp byte [esp], 0
je 0x409157
mov ebx, dword [esi]
test bl, 1
jne 0x40916d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409137
mov byte [esp + 1], 1
jmp 0x40916d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409157
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4090e4
cmp byte [esp], 0
je 0x40918d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40a054
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x60505c], 0
je 0x40a0bb
cmp word [0x605348], 0xd7b2
jne 0x40a07d
cmp dword [0x605350], 0
jbe 0x40a07d
mov eax, 0x605344
call dword [0x605360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x40a0e8
call fcn.0040abd4
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5ff036], 0
jne 0x40a0d7
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a27c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x5ff038], 0
je 0x40a2a7
mov edx, edi
mov eax, esi
call dword [0x5ff038]
mov ebx, eax
jmp 0x40a2b8
mov eax, 8
call fcn.00406fcc
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x60505d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a244
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40a2e8
mov eax, ebx
call fcn.00406fe8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc