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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004c35f0
mov eax, dword [0x626364]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0042b7b8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4dae83
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4dafdf
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004c3840
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x62c158]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0042e489
mov ecx, dword [esi*4 + 0x62c158]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4dafd8
cmp eax, dword [ecx + edi + 0x24]
jne 0x4dafd8
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4dafd8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042e489
add esp, 0x14
test edx, edx
jl 0x4dafd8
jg 0x4daf4e
test eax, eax
jb 0x4dafd8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4dafd8
jl 0x4daf68
cmp dword [ebp - 0x1008], eax
ja 0x4dafd8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4daf86
test ebx, ebx
je 0x4dafbf
cmp ecx, edi
jae 0x4dafbf
mov al, byte [ecx]
cmp al, 0xd
jne 0x4dafa0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4dafac
cmp byte [ecx + 1], 0xa
jne 0x4dafac
inc ecx
jmp 0x4dafac
movzx eax, al
movsx eax, byte [eax + 0x626ab8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4daf86
cmp edx, ebx
jne 0x4daf86
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4dafdd
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041948f
leave
ret
Function at 0x4f5d5b
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004f5bca
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4f5eca
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4f5eca
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4f5e7f
jg 0x4f5db7
test eax, eax
je 0x4f5e75
push 1
push 0x1000
call fcn.0041eb31
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4f5dda
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4f5e6c
push 0x8000
push ebx
call fcn.00419bd8
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4f5e03
jg 0x4f5dfe
cmp ecx, 0x1000
jb 0x4f5e03
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042c439
add esp, 0x10
cmp eax, 0xffffffff
je 0x4f5e48
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 0x4f5dfe
jl 0x4f5e2f
test ecx, ecx
jne 0x4f5df0
push dword [ebp - 0xc]
push ebx
call fcn.00419bd8
push esi
call fcn.0041d5b0
add esp, 0xc
xor ebx, ebx
jmp 0x4f5ed8
cmp byte [edi + 0x24], 0
je 0x4f5e5f
cmp dword [edi + 0x20], 5
jne 0x4f5e5f
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4f5e6a
mov ebx, dword [edi + 0x18]
jmp 0x4f5e6c
xor ebx, ebx
push esi
call fcn.0041d5b0
pop ecx
jmp 0x4f5ed8
test ecx, ecx
jg 0x4f5e41
jl 0x4f5e7f
test eax, eax
jae 0x4f5e41
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042e4a7
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4f5e9f
cmp byte [edi + 0x1c], 0
je 0x4f5e41
jmp 0x4f5ed0
push ebx
call fcn.00420422
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4f5e41
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4f5ed8
cmp byte [edi + 0x1c], 0
je 0x4f5ed5
mov ebx, dword [edi + 0x18]
jmp 0x4f5ed8
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0042e4a7
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4f6e8f
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x188
push 8
push dword [0x62ab80]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x62db44]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x62db48], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.004f9e49
mov dword [esi + 0x58], 0x4f7e72
mov eax, esi
mov dword [esi + 0x5c], 0x4f7ebe
mov dword [esi + 0x10], fcn.004f79aa
mov dword [esi + 0x30], 0x4f7785
mov dword [esi + 0x64], 0x4f7f53
mov dword [esi + 0x60], 0x4f7f07
mov dword [esi + 0x34], 0x4f7250
mov dword [esi + 0x24], 0x4f7227
mov dword [esi + 0x28], 0x4f71fc
mov dword [esi + 0x2c], 0x4f7150
mov dword [esi + 0x44], 0x4f7c42
mov dword [esi + 0x68], 0x4f6f50
mov dword [esi + 0x6c], 0x4f8155
pop esi
ret 4
Function at 0x4fc474
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x4fc680
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
imul esi, dword [esp + 0x24], 3
push edi
mov edi, 0xff
shl ebx, 2
mov dword [esp + 0x28], edx
cmp dword [esp + 0x40], edi
jne 0x4fc590
mov dword [esp + 0x40], ebx
mov dword [esp + 0x10], esi
mov ebp, dword [esp + 0x24]
imul ebp, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
add ebp, ebx
mov ebx, dword [eax + 0xcc]
add ebp, dword [esp + 0x20]
imul ebx, edx
add ebx, dword [eax + 0xc8]
add ebx, esi
cmp dword [esp + 0x38], 0
jle 0x4fc559
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
movzx edi, byte [ebp + 3]
mov esi, 0xff
movzx eax, byte [ebp + 2]
sub esi, edi
movzx ecx, byte [ebx + 2]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
movzx ecx, byte [ebx + 1]
mov byte [ebx + 2], al
movzx eax, byte [ebp + 1]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov byte [ebx + 1], al
movzx eax, byte [ebx]
movzx ecx, byte [ebp]
lea ebp, [ebp + 4]
imul eax, esi
imul ecx, edi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
sub dword [esp + 0x30], 1
mov byte [ebx], al
lea ebx, [ebx + 3]
jne 0x4fc4ea
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
dec ecx
or eax, 0xffffffff
mov dword [esp + 0x3c], ecx
inc edx
push 1
cmp dword [esi + 0xe8], 0
mov esi, dword [esp + 0x14]
pop ebx
cmovne eax, ebx
mov dword [esp + 0x28], edx
add eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x40]
test ecx, ecx
jne 0x4fc4b5
jmp 0x4fc67c
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
mov ebp, dword [esp + 0x24]
imul ebp, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
add ebp, ebx
mov ebx, dword [eax + 0xcc]
add ebp, dword [esp + 0x20]
imul ebx, edx
add ebx, dword [eax + 0xc8]
add ebx, esi
cmp dword [esp + 0x38], 0
jle 0x4fc64a
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
movzx eax, byte [ebp + 3]
mov esi, 0xff
imul eax, dword [esp + 0x40]
movzx ecx, byte [ebx + 2]
cdq
idiv edi
mov edi, eax
movzx eax, byte [ebp + 2]
imul eax, edi
sub esi, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
movzx ecx, byte [ebx + 1]
mov byte [ebx + 2], al
movzx eax, byte [ebp + 1]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov byte [ebx + 1], al
movzx eax, byte [ebx]
movzx ecx, byte [ebp]
lea ebp, [ebp + 4]
imul eax, esi
imul ecx, edi
mov edi, 0xff
add eax, ecx
cdq
idiv edi
sub dword [esp + 0x30], 1
mov byte [ebx], al
lea ebx, [ebx + 3]
jne 0x4fc5d1
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
dec ecx
or eax, 0xffffffff
mov dword [esp + 0x3c], ecx
inc edx
push 1
cmp dword [esi + 0xe8], 0
mov esi, dword [esp + 0x18]
pop ebx
cmovne eax, ebx
mov dword [esp + 0x28], edx
add eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x10]
test ecx, ecx
jne 0x4fc598
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x4fd04f
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x30]
mov ebp, dword [esi + 0xd4]
test edi, edi
je 0x4fd0f4
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push ebx
shl ecx, 2
mov ebx, ebp
imul ebx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x1c]
imul edx, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
add edx, ecx
mov ecx, dword [esi + 0xcc]
add edx, dword [esp + 0x18]
imul ecx, eax
add ecx, dword [esi + 0xc8]
add ecx, ebx
cmp dword [esp + 0x30], 0
jle 0x4fd0d2
mov esi, dword [esp + 0x30]
mov al, byte [edx + 2]
xor byte [ecx + 2], al
mov al, byte [edx + 1]
xor byte [ecx + 1], al
mov al, byte [edx]
lea edx, [edx + 4]
xor byte [ecx], al
add ecx, ebp
sub esi, 1
jne 0x4fd0b0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
inc eax
xor ecx, ecx
mov dword [esp + 0x24], eax
inc ecx
or eax, 0xffffffff
cmp dword [esi + 0xe8], 0
cmovne eax, ecx
add eax, dword [esp + 0x34]
sub edi, ecx
mov ecx, dword [esp + 0x28]
jne 0x4fd07f
pop ebx
pop edi
pop esi
pop ebp
ret 0x24

Function at 0x4fd433
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
imul ecx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 4], ecx
test ebx, ebx
je 0x4fd501
push ebp
mov ebp, dword [esp + 0x24]
push esi
imul esi, dword [esp + 0x2c], 3
imul eax, dword [esp + 0x24], 3
push edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
mov edx, eax
imul edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], edx
add edi, esi
mov esi, dword [eax + 0xcc]
add edi, dword [esp + 0x20]
imul esi, ebp
add esi, dword [eax + 0xc8]
add esi, dword [esp + 0x38]
test ecx, ecx
jle 0x4fd4ce
mov ebx, 0xff
mov ebp, ecx
sub ebx, dword [esp + 0x40]
movzx eax, byte [edi]
imul eax, dword [esp + 0x40]
movzx ecx, byte [esi]
imul ecx, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
inc edi
mov byte [esi], al
inc esi
sub ebp, 1
jne 0x4fd4a1
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
xor esi, esi
dec ebx
or eax, 0xffffffff
inc esi
mov dword [esp + 0x3c], ebx
inc ebp
cmp dword [ecx + 0xe8], 0
mov ecx, dword [esp + 0x10]
cmovne eax, esi
mov dword [esp + 0x2c], ebp
mov esi, dword [esp + 0x14]
add eax, edx
test ebx, ebx
jne 0x4fd468
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x4fdb12
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x30]
mov ebp, dword [esi + 0xd4]
test edi, edi
je 0x4fdbb5
imul ecx, dword [esp + 0x24], 3
mov eax, dword [esp + 0x28]
push ebx
mov ebx, ebp
imul ebx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x1c]
imul edx, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
add edx, ecx
mov ecx, dword [esi + 0xcc]
add edx, dword [esp + 0x18]
imul ecx, eax
add ecx, dword [esi + 0xc8]
add ecx, ebx
cmp dword [esp + 0x30], 0
jle 0x4fdb93
mov esi, dword [esp + 0x30]
mov al, byte [edx + 2]
xor byte [ecx + 2], al
mov al, byte [edx + 1]
xor byte [ecx + 1], al
mov al, byte [edx]
lea edx, [edx + 3]
xor byte [ecx], al
add ecx, ebp
sub esi, 1
jne 0x4fdb71
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
inc eax
xor ecx, ecx
mov dword [esp + 0x24], eax
inc ecx
or eax, 0xffffffff
cmp dword [esi + 0xe8], 0
cmovne eax, ecx
add eax, dword [esp + 0x34]
sub edi, ecx
mov ecx, dword [esp + 0x28]
jne 0x4fdb40
pop ebx
pop edi
pop esi
pop ebp
ret 0x24
Function at 0x4fffd6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
lea eax, [esp + 0x10]
push ebx
push esi
push eax
push dword [esp + 0x78]
xor esi, esi
mov ebx, esi
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x50016d
push dword [esp + 0x28]
call fcn.0044cfde
test eax, eax
je 0x500016
push dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x50016d
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x50015a
push ebp
mov ebp, dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [esp + 0x34]
push eax
push 0x18
push dword [esp + 0x38]
call ebp
cmp eax, 0x18
jne 0x500152
push 0x2c
lea eax, [esp + 0x50]
push esi
push eax
call fcn.0042ebd0
mov eax, dword [esp + 0x44]
add esp, 0xc
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
xor eax, eax
push 0x20
inc eax
mov dword [esp + 0x50], 0x28
mov word [esp + 0x5c], ax
pop eax
push esi
push esi
mov word [esp + 0x62], ax
lea eax, [esp + 0x1c]
push eax
push esi
lea eax, [esp + 0x5c]
mov dword [esp + 0x6c], esi
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x500152
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push ebx
push edi
call esi
push 2
xor eax, eax
push eax
push eax
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x90]
push eax
push eax
push edi
call dword [sym.imp.USER32.dll_DrawIconEx]
push dword [esp + 0x2c]
push edi
call esi
lea eax, [esp + 0x34]
push eax
push 0x18
push dword [esp + 0x38]
call ebp
cmp eax, 0x18
jne 0x500152
mov ebp, dword [esp + 0x38]
xor esi, esi
mov edx, dword [esp + 0x3c]
mov eax, ebp
shl eax, 2
mov dword [esp + 0x10], eax
test edx, edx
jle 0x500152
mov eax, dword [sym.imp.GDI32.dll_GetPixel]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov ecx, edx
sub ecx, esi
add eax, 3
dec ecx
xor ebx, ebx
imul ecx, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x7c], eax
test ebp, ebp
jle 0x500149
push esi
push ebx
push edi
call dword [esp + 0x24]
mov ecx, dword [esp + 0x7c]
test eax, eax
setne al
dec al
mov byte [ecx], al
add ecx, 4
mov ebp, dword [esp + 0x38]
inc ebx
mov dword [esp + 0x7c], ecx
cmp ebx, ebp
jl 0x500121
mov edx, dword [esp + 0x3c]
inc esi
cmp esi, edx
jl 0x500104
mov ebx, dword [esp + 0x1c]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop ebp
push dword [esp + 0x28]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [esp + 0x2c]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x68
ret 4
Function at 0x501c30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x501db5
cmp dword [esi + 0x20], 0
je 0x501db5
cmp dword [esi + 0x24], 0
je 0x501db5
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x501db5
cmp dword [eax], esi
jne 0x501db5
mov eax, dword [eax + 4]
cmp eax, 0x2a
je 0x501c95
cmp eax, 0x39
je 0x501c95
cmp eax, 0x45
je 0x501c95
cmp eax, 0x49
je 0x501c95
cmp eax, 0x5b
je 0x501c95
cmp eax, 0x67
je 0x501c95
cmp eax, 0x71
je 0x501c95
cmp eax, 0x29a
jne 0x501db5
push edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x501cce
neg ecx
mov dword [edi + 0x18], ecx
cmp ecx, 2
mov eax, 0x2a
push 0
mov edx, 0x39
cmove eax, edx
push 0
mov dword [edi + 4], eax
push 0
jne 0x501cf0
call fcn.0048c260
jmp 0x501cf5
call fcn.0048c7f0
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [edi + 0x28], 0xfffffffe
push edi
call fcn.00502e20
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.0042ebd0
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x521b92]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x521b90]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x521b94]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x521b96]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret
Function at 0x4012c0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x204
mov ebx, dword [esp + 0x224]
mov ebp, dword [esp + 0x220]
mov esi, dword [esp + 0x218]
mov eax, dword [0x4346c0]
xor eax, esp
mov dword [esp + 0x200], eax
xor ecx, ecx
nop
mov byte [esp + ecx + 0x100], cl
mov eax, ecx
cdq
idiv ebx
movzx eax, byte [ebp + edx]
mov byte [esp + ecx], al
lea eax, [ecx + 1]
mov byte [esp + ecx + 0x101], al
cdq
idiv ebx
movzx eax, byte [ebp + edx]
mov byte [esp + ecx + 1], al
add ecx, 2
cmp ecx, 0x100
jne 0x4012f0
mov eax, 1
xor ecx, ecx
nop dword [eax]
movzx edx, byte [esp + eax + 0xff]
add cl, dl
add cl, byte [esp + eax - 1]
movzx ebx, cl
mov dh, byte [esp + ebx + 0x100]
mov byte [esp + eax + 0xff], dh
mov byte [esp + ebx + 0x100], dl
movzx edx, byte [esp + eax + 0x100]
add cl, dl
add cl, byte [esp + eax]
movzx ebx, cl
mov dh, byte [esp + ebx + 0x100]
mov byte [esp + eax + 0x100], dh
mov byte [esp + ebx + 0x100], dl
add eax, 2
cmp eax, 0x101
jne 0x401330
cmp dword [esp + 0x21c], 0
jle 0x40142c
xor ebx, ebx
xor ebp, ebp
xor edi, edi
nop dword [eax]
push str.Soldier
push 0x4355b8
call fcn.00401450
add esp, 8
mov ecx, eax
push 5
call fcn.00401730
mov ecx, eax
push 0x3f8ccccd
call fcn.004018b0
lea eax, [ebx + 1]
lea ecx, [ebx + 0x100]
test eax, eax
cmovns ecx, eax
and ecx, 0xffffff00
neg ecx
add ebx, ecx
inc ebx
movzx eax, byte [esp + ebx + 0x100]
mov ecx, edi
add cl, al
mov edi, ecx
movzx ecx, cl
movzx edx, byte [esp + ecx + 0x100]
mov byte [esp + ebx + 0x100], dl
mov byte [esp + ecx + 0x100], al
add al, byte [esp + ebx + 0x100]
movzx eax, al
movzx eax, byte [esp + eax + 0x100]
xor byte [esi + ebp], al
mov eax, dword [esp + 0x21c]
inc ebp
cmp eax, ebp
jne 0x4013a0
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.00408652
add esp, 0x204
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x408923
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x408958
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x408955
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x408961
add edx, 0x28
cmp edx, esi
jne 0x408943
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x40895e
Function at 0x40a636
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 8], esi
test eax, eax
jg 0x40a65b
jl 0x40a652
test ebx, ebx
jne 0x40a65b
xor eax, eax
xor edx, edx
jmp 0x40a718
cmp dword [esi + 0x38], 0
je 0x40a670
push eax
push ebx
push dword [ebp + 8]
call fcn.00409f9c
jmp 0x40a718
mov eax, dword [esi + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x40a6b3
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x40a6b3
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push ecx
push dword [ebp + 8]
call fcn.0040e350
mov ecx, dword [ebp - 8]
sub edi, esi
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, esi
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x40a6b9
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [esi + 0x4c], 0
je 0x40a70d
mov ecx, esi
call fcn.0040ab4c
mov ecx, dword [ebp - 4]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x40a6f8
push dword [esi + 0x4c]
push eax
push 1
push ecx
call fcn.004155d3
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x40a70d
jmp 0x40a6cb
test edx, edx
je 0x40a70d
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.004155d3
add esp, 0x10
sub edi, eax
mov edx, dword [ebp + 0x10]
sub ebx, edi
mov eax, ebx
sbb edx, 0
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40b9d0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40ba0f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ba0f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ba0f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40ba0f
cmp dword [ecx + 0x74], 0xe
jbe 0x40ba0f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x417b80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x417bad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x417bad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x418a5d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b7f0
push 0x42b7e8
push str.FlsAlloc
push 0x1f
call fcn.00418e74
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418a91
push dword [ebp + 8]
mov ecx, esi
call dword [0x431254]
call esi
jmp 0x418a97
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x418adb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b800
push 0x42b7f8
push str.FlsGetValue
push 0x21
call fcn.00418e74
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418b12
push dword [ebp + 8]
mov ecx, esi
call dword [0x431254]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x418b1a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b808
push 0x42b800
push str.FlsSetValue
push 0x22
call fcn.00418e74
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418b54
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x431254]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]