joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4689f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x468a23
push esi
call fcn.00476db0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x468a1c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x468aa9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x468a92
mov eax, dword [esi + 8]
test eax, eax
je 0x468a47
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x468a8e
cmp eax, 2
je 0x468a92
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x468a3a
cmp eax, 3
je 0x468a6d
cmp eax, 1
jne 0x468a3a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x468a3a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x468a3a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00468ad0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x468ab8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00468ad0
add esp, 4
pop esi
ret

Function at 0x469350
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x469371
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x469371
mov eax, dword [eax + 0x44]
test eax, eax
je 0x469371
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x484a10
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x484ab3
test eax, eax
jbe 0x484ab3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x484ab3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x484a5e
xor esi, esi
jmp 0x484a64
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x484a8f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00422ac0
add esi, eax
push esi
mov ebx, esi
call fcn.00422ac0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x484a70
pop ebp
test edi, edi
pop edi
jne 0x484ab3
test ebx, ebx
je 0x484ab3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004a3c70
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x484bd5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x484ced
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x484ced
mov eax, dword [esi + 0x3c]
push eax
call fcn.004b5a3f
mov esi, eax
test esi, esi
je 0x484ced
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x484ced
mov ecx, esi
call fcn.00484b60
cmp edi, eax
jge 0x484ced
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x484c73
mov dword [esp + 0x34], 1
jmp 0x484cce
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x484ced
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00483410
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4870f0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4c2db8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x10]
call fcn.004a1ee6
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x38], 0
call fcn.004b4083
lea ecx, [esp + 0x3c]
push 1
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call fcn.004b176f
mov eax, dword [eax]
push 0x55f824
push eax
call fcn.004a3334
add esp, 8
lea ecx, [esp + 0x3c]
test eax, eax
setne bl
call fcn.004b4015
test bl, bl
je 0x487170
push 0x55f824
lea ecx, [esp + 0xc]
call fcn.004b43a5
push 0x55f820
lea ecx, [esp + 0xc]
call fcn.004b43a5
mov edx, dword [esp + 8]
push 0
push edx
lea ecx, [esp + 0x18]
call fcn.004a1fa9
test eax, eax
je 0x487234
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov bl, 2
lea ecx, [esp + 0x18]
call fcn.004a21c9
mov edi, eax
mov eax, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [eax + 0x38]
test eax, eax
je 0x4871f0
lea ecx, [esp + 0x18]
call fcn.004a2190
test eax, eax
jne 0x4871f0
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004a2298
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x40], bl
call fcn.004870f0
mov byte [esp + 0x3c], 1
lea ecx, [esp + 0x44]
jmp 0x487225
lea ecx, [esp + 0x18]
call fcn.004a2190
test eax, eax
jne 0x48722a
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x38]
test eax, eax
jne 0x48722a
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
call fcn.004a2298
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x14]
call fcn.004b4015
test edi, edi
jne 0x4871a0
pop edi
pop ebp
lea ecx, [esp + 0x10]
call fcn.004a1f5f
lea ecx, [esp + 8]
mov byte [esp + 0x34], 0
call fcn.004b4015
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.004a1f23
mov ecx, dword [esp + 0x2c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x487330
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4c2de6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0x566fa0]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x15c], 0
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x164]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x160], 1
call fcn.004b4152
push str..
lea ecx, [esp + 0x10]
call fcn.004b43a5
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x4873d3
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 0
call fcn.004b4015
lea ecx, [esp + 8]
mov dword [esp + 0x15c], 0xffffffff
call fcn.004b4015
xor eax, eax
jmp 0x487518
push ebp
mov ebp, dword [esp + 0x16c]
push edi
mov edi, dword [esp + 0x174]
lea edx, [esp + 0x48]
push 0x55f844
push edx
call fcn.004a3334
add esp, 8
test eax, eax
je 0x4874c9
lea eax, [esp + 0x48]
push 0x55f840
push eax
call fcn.004a3334
add esp, 8
test eax, eax
je 0x4874c9
test ebp, ebp
jne 0x487435
lea ecx, [esp + 0x48]
push str.desktop.ini
push ecx
call fcn.004a33e3
add esp, 8
test eax, eax
je 0x4874c9
push esi
lea ecx, [esp + 0x14]
call fcn.004b4152
push 0x5c
lea ecx, [esp + 0x14]
call fcn.004b43cc
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
call fcn.004b43a5
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x487475
mov ecx, dword [esp + 0x10]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [esp + 0x1c], 0x10
je 0x487497
mov edx, dword [esp + 0x10]
push edi
push ebp
push edx
mov ecx, ebx
call fcn.00487330
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4874c9
test edi, edi
je 0x4874be
lea ecx, [esp + 0x48]
push str.index.dat
push ecx
call fcn.004a33e3
add esp, 8
test eax, eax
jne 0x4874be
lea edx, [esp + 0x48]
mov ecx, ebx
push edx
push esi
call fcn.00487540
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4873e3
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 0
call fcn.004b4015
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.004b4015
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x154]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 0xc
Function at 0x487540
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c2dfb
push eax
mov eax, 0x2718
mov dword fs:[0], esp
call fcn.004a3b50
mov eax, dword [0x566fa0]
push edi
mov dword [esp + 4], eax
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x2724], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x272c]
push ecx
lea ecx, [esp + 8]
call fcn.004b4152
push 0x5c
lea ecx, [esp + 8]
call fcn.004b43cc
mov edx, dword [esp + 0x2730]
lea ecx, [esp + 4]
push edx
call fcn.004b43a5
mov eax, dword [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4875e6
lea ecx, [esp + 4]
mov dword [esp + 0x2724], eax
call fcn.004b4015
xor eax, eax
jmp 0x487663
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov esi, eax
push 0x40
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x487641
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x2710
push 0
jbe 0x487633
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x2710
push edx
push edi
call ebx
sub esi, 0x2710
jne 0x48760d
jmp 0x487641
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x272c], 0xffffffff
call fcn.004b4015
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x271c]
pop edi
mov dword fs:[0], ecx
add esp, 0x2724
ret 8
Function at 0x4898c0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x55f9a4]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4898d3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x489914
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x55fa4c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x489946
mov bl, byte [esp + ecx + 0x4c]
jmp 0x48994a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x48993b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x489968
mov bl, byte [esp + ecx + 0x4c]
jmp 0x48996c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x48995d
xor ecx, ecx
mov eax, 0x55f9b4
xor ebx, ebx
mov bl, byte [ecx + 0x55fa5c]
cmp byte [esp + ebx + 0x14], 0
je 0x489997
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x55fa74]
cmp byte [esp + ebx + 0x14], 0
je 0x4899ae
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x48997e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x489907
lea edx, [esp + 0x84]
push edx
call fcn.004899f0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x48e060
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x599768]
xor edx, edx
cmp eax, edx
jne 0x48e086
xor eax, eax
mov byte [eax + 0x599668], al
inc eax
cmp eax, 0x100
jl 0x48e06e
mov dword [0x599768], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x599668
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x48e117
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x48e0ea
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x48e0b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x48e190
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x48e1e3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x48e1ca
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x494ba0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c301e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004954c0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x54396c
call fcn.004b3d56
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x494c33
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004b3d56
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x494c2c
push 0
mov ecx, eax
call fcn.0048bca0
mov dword [esi + 0xc], eax
jmp 0x494c35
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x494c35
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4b63e3
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b641b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b4470
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b4448
jmp 0x4b6427
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b7ad5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b7b17
call fcn.004bd592
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b7b17
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b7b0e
xor eax, eax
jmp 0x4b7b1f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b7b25
pop edi
pop esi
pop ebx
ret 4

Function at 0x4bdac2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4bdaf0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4bdb0e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004bda28
jmp 0x4bdb0e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4bdb0e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004bda28
test edi, edi
mov eax, edi
jne 0x4bdaf8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x414f34
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x415009
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x415024
push ebx
push 0x415034
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00405370
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403270
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404f58
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x414fb4
mov al, 0x69
call fcn.00414bac
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00414f08
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x414fbd
call fcn.00414f08
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415010
lea eax, [ebp - 4]
call fcn.00404ebc
ret

Function at 0x415124
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x4151ef
jmp 0x4151e3
cmp dword [esi + 0x10], 0x1000
jne 0x4151cf
test byte [esi + 0x15], 1
jne 0x4151cf
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x415180
cmp ebp, 2
je 0x415180
cmp ebp, 0x10
je 0x415180
cmp ebp, 0x20
jne 0x41519c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x41519c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4151ad
mov eax, dword [esi]
add eax, ebx
call fcn.0041511c
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4151a0
cmp byte [esp + 4], 0
je 0x4151cf
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x4151ef
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x415155
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4023a0
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
cmp word [edx], 0x5a4d
je 0x4023b0
repz ret
add edx, dword [edx + 0x3c]
cmp dword [edx], 0x4550
jne 0x4023ad
xor eax, eax
cmp word [edx + 0x18], 0x10b
sete al
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x72f92b2a
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x23ac3b38
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x40288e
pop dword [ebp - 0x24]
mov eax, 0xd65178fb
sub eax, 0xd611506d
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x439d1624
add dword [ebp - 0x34], 0xab52f27
mov dword [ebp - 0x30], 0x29889fbc
sub dword [ebp - 0x30], 0xf7555377
mov dword [ebp - 0x2c], 0xd2a77ecd
sub dword [ebp - 0x2c], 0x865b3a9f
mov dword [ebp - 0x28], 0xcb97b09c
sub dword [ebp - 0x28], 0xcb97b09c
lea eax, [ebp - 0x34]
push eax
mov eax, 0x9628b547
add eax, 0x6a17cb45
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x3d93ffd5
add dword [ebp - 0x34], 0x36de6981
mov dword [ebp - 0x30], 0x17db346c
sub dword [ebp - 0x30], 0xd66ed2f7
mov dword [ebp - 0x2c], 0x9162a0a4
add dword [ebp - 0x2c], 0xd20ccbc8
mov dword [ebp - 0x28], 0x7273aead
add dword [ebp - 0x28], 0x8d8c5153
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x539eee1b
sub eax, 0x535e6d47
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x32dfe
push 0
call eax
mov ecx, 0x48145eb3
sub ecx, 0x48142596
xor esi, esi
add esi, eax
mov edi, 0x40cd03a8
add edi, 0xbf740c58
add edi, dword [ebp - 0x24]
mov ebx, 0x4c0e0952
xor dword [ebp - 4], ecx
mov edx, dword [edi]
add edx, ebx
xor dword [ebp - 0x18], edx
mov dword [esi], edx
add dword [ebp - 4], esi
add esi, 0x16a580f1
sub esi, 0x16a580ed
add edi, 4
loop 0x4029ac
add eax, 0x652ea885
add eax, 0x9ad22ec2
mov ebx, eax
add eax, 0x87edaa08
add eax, 0x781255fd
mov ecx, 0x499eae3d
add ecx, 0xb6a151c3
add ecx, dword [ebp - 0x24]
call ebx
leave
ret