joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100445f6
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1004460b
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x1004461a
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_EndPaint]
pop ebp
ret

Function at 0x10044dad
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10044df7
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
shl eax, 1
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
sub ecx, eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [eax + 0x24], ecx
jmp 0x10044e01
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov esp, ebp
pop ebp
ret
Function at 0x1007fdde
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10088330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10070ea4
mov dword [ebp - 0x14], eax
cmp dword [0x10675b3c], esi
jne 0x1007fed1
push 0x800
push esi
push 0x10007f50
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1007fe5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1007ffb1
push esi
push esi
push 0x10007f50
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1007ffb1
push 0x10007f68
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007ffb1
push eax
call ebx
push 0x10007f74
push edi
mov dword [0x10675b3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007f84
push edi
mov dword [0x10675b40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007f98
push edi
mov dword [0x10675b44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10675b4c], eax
test eax, eax
je 0x1007fece
push 0x10007fb4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10675b48], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007fef6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007fee9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1007ff0b
push 4
pop eax
jmp 0x1007ffb3
cmp dword [ebp - 0x14], esi
je 0x1007ff0b
push dword [0x10675b3c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1007fef0
mov eax, dword [0x10675b48]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1007ff69
cmp dword [0x10675b4c], edi
je 0x1007ff69
push eax
call ebx
push dword [0x10675b4c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1007ff69
test eax, eax
je 0x1007ff69
call ecx
test eax, eax
je 0x1007ff5e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1007ff5e
test byte [ebp - 8], 1
jne 0x1007ff69
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1007ff99
mov eax, dword [0x10675b40]
cmp eax, edi
je 0x1007ff96
push eax
call ebx
test eax, eax
je 0x1007ff96
call eax
mov esi, eax
test esi, esi
je 0x1007ff96
mov eax, dword [0x10675b44]
cmp eax, edi
je 0x1007ff96
push eax
call ebx
test eax, eax
je 0x1007ff96
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10675b3c]
call ebx
test eax, eax
je 0x1007ffb1
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1007ffb3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x702744
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
dec edi
mov dword [ebp - 0xc], eax
js 0x90cea3
jmp 0x6b2275
push ebx
push edi
cmc
mov dword [ebp - 0x10], eax
test ebp, 0x39cd6e98
cmc
mov dword [ebp - 8], 0xffffffff
cmp esi, 0xffff
jmp 0x665ee2
jne 0x90dcf9
mov edx, dword [eax + ecx + 0x78]
test cl, 0xf3
stc
mov dword [ebp - 4], edx
test edx, edx
je 0x90dcf9
mov eax, dword [eax + ecx + 0x7c]
jmp 0x5f0a39
ja 0x92f832
mov eax, esi
cmp esi, 0x650531bb
sub eax, dword [edx + ecx + 0x10]
mov dword [ebp - 8], eax
jmp 0x9332fc
push ebp
mov ebp, esp
bsr ecx, ecx
btc ecx, esi
mov ecx, dword [ebp + 8]
cmp esp, 0x735251f7
lea esp, [esp - 0x114]
cmp sp, bp
cmp dh, 0x3d
push esi
test dl, al
test dx, 0x66c3
test ecx, ecx
jmp 0x8a5298
je 0x90dcf9
mov esi, dword [ebp + 0xc]
test esi, esi
jmp 0x90dce0
ret
je 0x90cea3
mov eax, dword [edx + ecx + 0x20]
cmp si, 0x49c6
lea eax, [eax + ecx]
xor ebx, ebx
jmp 0x5d7c5c
je 0x90dcf9
mov eax, 0x5a4d
test cx, 0x863
cmp word [ecx], ax
je 0x937ab7
xor eax, eax
mov si, 0x4b62
mov si, cx
cmova esi, edi
pop esi
mov esp, ebp
xchg ebp, ebp
pop ebp
jmp 0x8b193b
mov edi, dword [edx + ecx + 0x18]
cmp edi, 0x16f063bd
test edi, edi
jmp 0x8e6ef4
jmp 0x90cea3
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jmp 0x5f6bed
Function at 0x401360
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [esp + 0x50]
mov dword [esp + 0x3c], eax
call fcn.004012f0
mov ecx, eax
mov dword [esp], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
call fcn.00401300
xor ecx, ecx
mov eax, dword [eax + 0x78]
mov edx, dword [esp + 0x34]
add edx, eax
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
add esi, dword [edi + eax + 0x20]
mov ebx, edx
add ebx, 0x18
cmp dword [edi + eax + 0x18], 0
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ecx
je 0x401497
xor eax, eax
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
add ecx, dword [edx + 0x24]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
xor edx, edx
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
add esi, dword [edi + eax*4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dl, byte [ecx + eax]
mov esi, dword [esp + 0x3c]
mov dh, byte [esi + eax]
cmp dl, dh
sete bl
cmp dl, 0
mov dword [esp + 8], eax
mov byte [esp + 7], bl
mov byte [esp + 6], dh
je 0x401446
mov eax, dword [esp + 8]
add eax, 1
mov cl, byte [esp + 6]
cmp cl, 0
setne dl
mov ch, byte [esp + 7]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [esp + 0xc], eax
jne 0x4013f6
mov al, byte [esp + 7]
test al, 1
jne 0x40147a
jmp 0x401450
xor eax, eax
mov ecx, dword [esp + 0x14]
add ecx, 2
mov edx, dword [esp + 0x18]
add edx, 1
mov esi, dword [esp + 0x2c]
cmp edx, dword [esi]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
jb 0x4013d1
jmp 0x401497
mov eax, dword [esp + 0x14]
movzx ecx, word [eax]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x28]
add edx, dword [esi + 0x1c]
mov edi, dword [esp + 0x34]
add edi, dword [edx + ecx*4]
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x24]
add esp, 0x40
pop esi
pop edi
pop ebx
ret
Function at 0x401b40
Capabilities:
Check for trap flag exception

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x6c
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x68]
mov esi, dword [eax + 0x4c]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], ecx
call fcn.004014b0
mov dword [esp + 0x60], eax
call fcn.004012f0
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x50]
mov dword [0x27e4000], eax
mov ecx, dword [eax + 0x4c]
mov dword [esp], ecx
call fcn.00401300
mov ecx, 1
xor edx, edx
cmp dword [eax + 0xc4], 0
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], ecx
je 0x401d18
jmp 0x401bc4
xor eax, eax
mov ecx, dword [esp + 0x3c]
cmp ecx, 3
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
jae 0x401d18
mov eax, dword [esp + 0x44]
mov ecx, 8
mov edx, dword [esp + eax*4 + 0x5c]
mov dword [esp], edx
mov dword [esp + 4], 8
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
call fcn.00401a00
mov ecx, dword [esp + 0x38]
add ecx, 1
cmp eax, 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], ecx
je 0x401bad
call fcn.004012f0
mov ecx, esp
mov dword [ecx], eax
mov dword [ecx + 4], 0x27e3045
call fcn.004014c0
mov dword [0x27e4004], eax
lea eax, [esp + 0x54]
mov ecx, eax
mov edx, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
call fcn.00401d30
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 0x20]
mov esi, esp
lea edi, [esp + 0x68]
mov dword [esi + 0xc], edi
mov edi, dword [esp + 0x30]
mov dword [esi], edi
mov dword [esi + 8], 0x40
mov dword [esi + 4], 8
mov dword [esp + 0x28], eax
call edx
sub esp, 0x10
mov ecx, esp
mov edx, dword [esp + 0x2c]
mov dword [ecx + 4], edx
mov esi, dword [esp + 0x30]
mov dword [ecx], esi
mov dword [ecx + 8], 8
mov dword [esp + 0x24], eax
call section..text
sub esp, 0xc
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 0x2c]
mov esi, esp
mov edi, dword [esp + 0x30]
mov dword [esi + 4], edi
mov dword [esi], 1
mov dword [esp + 0x20], eax
call edx
sub esp, 8
pushfd
or dword [esp], 0x100
popfd
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 8]
mov esi, esp
mov dword [esi], 0x27e3058
mov dword [esp + 0x1c], eax
call edx
sub esp, 4
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 0x30]
mov esi, esp
mov edi, dword [esp + 0x1c]
mov dword [esi], edi
mov dword [esp + 0x18], eax
call edx
sub esp, 4
mov ecx, dword [esp + 0x30]
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov edx, dword [esp + 0x50]
mov esi, dword [edx + 0x20]
mov edi, dword [esp + 0x68]
mov ebx, esp
lea ebp, [esp + 0x68]
mov dword [ebx + 0xc], ebp
mov dword [ebx + 8], edi
mov dword [ebx], ecx
mov dword [ebx + 4], 8
mov dword [esp + 0x14], eax
call esi
sub esp, 0x10
mov ecx, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x40]
add esp, 0x6c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x40ce09
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422234]
jne 0x40ce13
repz ret
jmp fcn.00413639

Function at 0x413b7e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004104e0
and dword [ebp - 4], 0
cmp dword [0x423e1c], 0
mov ebx, eax
jne 0x413c2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413ce0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413ce0
push eax
call fcn.0041046e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e1c], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e20], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e24], eax
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e2c], eax
test eax, eax
je 0x413c2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e28], eax
mov eax, dword [0x423e28]
cmp eax, ebx
je 0x413c87
cmp dword [0x423e2c], ebx
je 0x413c87
push eax
call fcn.004104e9
push dword [0x423e2c]
mov esi, eax
call fcn.004104e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413c87
test edi, edi
je 0x413c87
call esi
test eax, eax
je 0x413c7e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413c7e
test byte [ebp - 0xc], 1
jne 0x413c87
or dword [ebp + 0x10], 0x200000
jmp 0x413cc0
mov eax, dword [0x423e20]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413cc0
mov eax, dword [0x423e24]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e1c]
call fcn.004104e9
pop ecx
test eax, eax
je 0x413ce0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413ce2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x159f33eb
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x42e1d0
mov ecx, 0xfa77b3c
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp int.00401219
Function at 0x1001c2e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], 0x17cff6b5
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
sub eax, 0x17cff6b5
je 0x1001c321
jmp 0x1001c309
mov eax, dword [ebp - 0x14]
sub eax, 0x311cd711
je 0x1001c339
jmp 0x1001c31c
jmp 0x1001c376
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0x311cd711
jmp 0x1001c376
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [esp], eax
call fcn.1002c6a0
sub esp, 4
mov ah, al
mov al, ah
xor al, 0xff
and al, 1
mov dl, 1
xor dl, 1
and ah, dl
mov cl, 1
xor cl, 1
and cl, 0xff
and dl, 1
or al, ah
or cl, dl
xor al, cl
and al, 1
movzx eax, al
add esp, 0x18
pop ebp
ret 4
jmp 0x1001c2f3

Function at 0x10032c49
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10032c88
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10032c88
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10032c88
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10032c88
cmp dword [ecx + 0x74], 0xe
jbe 0x10032c88
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1003587b
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 0x10035918
push ebx
push esi
call fcn.10035844
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.100357d8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100358c5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10035917
push edi
push eax
call fcn.100367a4
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100358e5
call fcn.10034320
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10035916
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100357d8
add esp, 0x20
test eax, eax
jne 0x10035904
push edi
call fcn.10034320
jmp 0x1003590c
push ebx
call fcn.10034320
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 0x10035b85
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003e9f0
push 0x1003e9e8
push str.FlsAlloc
push 0x1f
call fcn.10035aa1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10035bb9
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003c174]
call esi
jmp 0x10035bbf
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10035c03
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003ea00
push 0x1003e9f8
push str.FlsGetValue
push 0x21
call fcn.10035aa1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10035c3a
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003c174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10035c42
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003ea08
push 0x1003ea00
push str.FlsSetValue
push 0x22
call fcn.10035aa1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10035c7c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1003c174]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1003b1d0
Capabilities:
Parse pe header

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

Function at 0x402e5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40900c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402ef4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ed4
xor eax, eax
push ebp
push 0x402ecd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402f10
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ed4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x40900c]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40900c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4035f4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40b034], 0
je 0x403655
cmp word [0x40b208], 0xd7b2
jne 0x40361d
cmp dword [0x40b210], 0
jbe 0x40361d
mov eax, 0x40b204
call dword [0x40b220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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
push 0x40367c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409018], 0
jne 0x403671
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409888
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 0x40995b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409974
push ebx
push 0x409980
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
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.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409908
mov al, 0x62
call fcn.00409460
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040985c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409911
call fcn.0040985c
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 0x409962
lea eax, [ebp - 4]
call fcn.00403198
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409ac8
jmp 0x409abd
cmp dword [esi + 0x10], 0x1000
jne 0x409aa9
test byte [esi + 0x15], 1
jne 0x409aa9
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409a68
cmp eax, 2
je 0x409a68
cmp eax, 0x10
je 0x409a68
cmp eax, 0x20
jne 0x409a7d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409a7d
mov bl, 1
xor ebp, ebp
jmp 0x409a8e
mov eax, dword [esi]
add eax, ebp
call fcn.00409a0c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409a81
test bl, bl
je 0x409aa9
push esp
mov eax, dword [esp + 4]
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 ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409ac8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409a40
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219