joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c640a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4cd518
cmp edx, dword [eax]
je 0x4c642c
add eax, 8
inc ecx
cmp eax, 0x4cd5a8
jl 0x4c641d
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4cd518]
jne 0x4c655a
mov eax, dword [0x4d1bfc]
cmp eax, 1
je 0x4c6534
test eax, eax
jne 0x4c645d
cmp dword [0x4cd458], 1
je 0x4c6534
cmp edx, 0xfc
je 0x4c655a
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c6494
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004c6b20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c6d50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c64d7
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c6d50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4ca988
push edi
call fcn.004c8520
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004c6b20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c6b30
lea eax, [ebp - 0xa0]
push 0x4ca968
push eax
call fcn.004c6b30
push dword [esi + 0x4cd51c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c6b30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004c8494
add esp, 0x2c
pop edi
jmp 0x4c655a
lea eax, [ebp + 8]
lea esi, [esi + 0x4cd51c]
push 0
push eax
push dword [esi]
call fcn.004c6d50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x6bd13fbe
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x7f9016f8
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
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 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4065bf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4065e3
xor eax, eax
test eax, eax
je 0x4065f5
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4065f5
xor ecx, ecx
jmp 0x4065f8
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

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

Disassembly:
cmp dword [0x4232bc], 0
push esi
jne 0x40671b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4066f5
mov dword [ecx*4 + 0x4232b8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066f0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40674c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232b8]
xor eax, esi
inc ecx
dec edx
jne 0x40672e
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.004016ae
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x416900
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0041698f
jae 0x41690e
xor ecx, ecx
call fcn.0041698f
jae 0x41693d
xor eax, eax
call fcn.0041698f
jae 0x41694d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0041698f
adc al, al
jae 0x41692f
jne 0x416979
stosb byte es:[edi], al
jmp 0x416911
call fcn.0041699b
sub ecx, ebx
jne 0x416956
call fcn.00416999
jmp 0x416975
lodsb al, byte [esi]
shr eax, 1
je 0x416983
adc ecx, ecx
jmp 0x416972
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00416999
cmp eax, 0x7d00
jae 0x416972
cmp ah, 5
jae 0x416973
cmp eax, 0x7f
ja 0x416974
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x416911
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x4029b1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
push ebx
push esi
push edi
xor esi, esi
push dword [0x40e460]
push esi
call dword [0x40b06c]
push esi
push esi
push dword [0x40e464]
mov edi, eax
mov dword [ebp - 4], edi
push dword [0x40e450]
call dword [0x40b058]
lea eax, [ebp - 8]
push esi
push eax
push dword [0x40e460]
push edi
push dword [0x40e450]
call dword [0x40b054]
xor eax, eax
cmp dword [0x40e460], esi
jbe 0x402a14
xor byte [eax + edi], 0x17
inc eax
cmp eax, dword [0x40e460]
jb 0x402a07
push 0x100
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00404a00
mov edi, 0x200
lea eax, [ebp - 0x308]
push edi
push esi
push eax
call fcn.00404a00
add esp, 0x18
lea eax, [ebp - 0x308]
push edi
push eax
push esi
call dword [0x40b050]
test eax, eax
je 0x402b70
lea eax, [ebp - 0x108]
push 0x40d100
push eax
call fcn.00404f60
lea eax, [ebp - 0x308]
push eax
call fcn.00404da0
add esp, 0xc
mov ebx, eax
dec ebx
je 0x402abe
cmp byte [ebp + ebx - 0x308], 0x5c
jne 0x402a75
lea eax, [ebp - 0x308]
push eax
call fcn.00404da0
push 0xfffffffffffffffd
pop ecx
sub ecx, ebx
add eax, ecx
push eax
lea eax, [ebp + ebx - 0x308]
push eax
lea eax, [ebp - 0x106]
push eax
call fcn.00404a60
lea eax, [ebp - 0x108]
push 0x40d0fc
push eax
call fcn.00404f60
add esp, 0x18
push esi
push 0x80
push 2
push esi
push 1
lea eax, [ebp - 0x108]
push 0xc0000000
push eax
call dword [0x40b04c]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402b70
lea eax, [ebp - 8]
push esi
push eax
push dword [0x40e460]
push dword [ebp - 4]
push ebx
call dword [0x40b068]
test eax, eax
je 0x402b70
push ebx
call dword [0x40b064]
push dword [ebp - 4]
call dword [0x40b060]
push edi
lea eax, [ebp - 0x508]
push esi
push eax
call fcn.00404a00
lea eax, [ebp - 0x508]
push 0x40d0f0
push eax
call fcn.00404f60
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x508]
push eax
call fcn.00404da0
pop ecx
lea eax, [ebp + eax - 0x508]
push eax
call fcn.00404f60
pop ecx
lea eax, [ebp - 0x508]
pop ecx
push 5
push eax
call dword [0x40b098]
lea eax, [ebp - 0x108]
push eax
call dword [0x40b094]
pop edi
pop esi
pop ebx
leave
ret

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

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

Disassembly:
cmp ecx, dword [0x437c20]
jne 0x4188b4
repz ret
jmp fcn.0041d16b

Function at 0x427c7f
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.0041d440
and dword [ebp - 4], 0
cmp dword [0x43babc], 0
mov ebx, eax
jne 0x427d30
push 0x42f6dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x427de1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42f6d0
push edi
call esi
test eax, eax
je 0x427de1
push eax
call fcn.0041d3ce
mov dword [esp], 0x42f6c0
push edi
mov dword [0x43babc], eax
call esi
push eax
call fcn.0041d3ce
mov dword [esp], 0x42f6ac
push edi
mov dword [0x43bac0], eax
call esi
push eax
call fcn.0041d3ce
mov dword [esp], 0x42f690
push edi
mov dword [0x43bac4], eax
call esi
push eax
call fcn.0041d3ce
pop ecx
mov dword [0x43bacc], eax
test eax, eax
je 0x427d30
push 0x42f678
push edi
call esi
push eax
call fcn.0041d3ce
pop ecx
mov dword [0x43bac8], eax
mov eax, dword [0x43bac8]
cmp eax, ebx
je 0x427d88
cmp dword [0x43bacc], ebx
je 0x427d88
push eax
call fcn.0041d449
push dword [0x43bacc]
mov esi, eax
call fcn.0041d449
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x427d88
test edi, edi
je 0x427d88
call esi
test eax, eax
je 0x427d7f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x427d7f
test byte [ebp - 0xc], 1
jne 0x427d88
or dword [ebp + 0x10], 0x200000
jmp 0x427dc1
mov eax, dword [0x43bac0]
cmp eax, ebx
je 0x427dc1
push eax
call fcn.0041d449
pop ecx
test eax, eax
je 0x427dc1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x427dc1
mov eax, dword [0x43bac4]
cmp eax, ebx
je 0x427dc1
push eax
call fcn.0041d449
pop ecx
test eax, eax
je 0x427dc1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43babc]
call fcn.0041d449
pop ecx
test eax, eax
je 0x427de1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x427de3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0xeac568
Capabilities:
Encode data using xor

Disassembly:
jmp 0xeac572
pushal
call 0xeac578
pop ebp
sub ebp, 0x10
sub ebp, 0xaac568
jmp 0xeac58e
mov eax, 0xaac568
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c3
mov edx, 0x5de1e952
xor byte [eax], dl
inc eax
dec ecx
jne 0xeac5a5
jmp 0xeac5b8
fstp dword [edi + 0x526edbd9]
push edx
push edx
rcl dword [ebx + 0x525252aa], cl
push ecx
lahf
ljmp 0x7ae8
Function at 0x4016b2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4234b0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push 0x94
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.0040deb0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4016ff
cmp dword [ebp - 0x1c], 5
jne 0x4016ff
xor eax, eax
inc eax
cmp dword [ebp - 0x18], eax
jae 0x401701
xor eax, eax
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.0040d5fd
add ebp, 0x78
leave
ret

Function at 0x401ae7
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x4234b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x160
push esi
xor edi, edi
lea eax, [ebp - 0x164]
push edi
push eax
call fcn.0040deb0
add esp, 0xc
push 0x4001
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x164]
push eax
push edi
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
cmp eax, edi
je 0x401b40
push edi
push dword [ebp - 0x160]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.00401189
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040d5fd
leave
ret 4
Function at 0x401b5a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ecx
push esi
push edi
push dword [esp + 0x14]
xor edi, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, edi
je 0x401c56
movzx eax, word [esp + 0x18]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0xe
push eax
push esi
call ebp
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
mov ebx, eax
call fcn.004016b2
test eax, eax
jne 0x401bea
xor edx, edx
lea eax, [ebx + 6]
movzx ecx, word [ebx + 4]
cmp edx, ecx
jge 0x401be6
cmp byte [eax + 2], 0x10
jne 0x401c6d
cmp byte [eax], 0x10
jne 0x401c6d
cmp byte [eax + 1], 0x10
jne 0x401c6d
movzx edi, word [eax + 0xc]
xor ecx, ecx
inc ecx
inc edx
add eax, 0xe
test ecx, ecx
je 0x401bb2
test edi, edi
jne 0x401c11
push 0
push 0x10
push 0x10
push 1
push ebx
call dword [sym.imp.USER32.dll_LookupIconIdFromDirectoryEx]
mov edi, eax
test edi, edi
jne 0x401c11
push eax
push eax
push eax
push 1
push ebx
call dword [sym.imp.USER32.dll_LookupIconIdFromDirectoryEx]
mov edi, eax
test edi, edi
je 0x401c4d
movzx eax, di
push 3
push eax
push esi
call ebp
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
xor eax, eax
push eax
push eax
push eax
push 0x30000
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00401189
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
pop ecx
ret 8
xor ecx, ecx
jmp 0x401bde

Function at 0x4021ae
Capabilities:
Compare security identifiers

Disassembly:
mov ecx, dword [esp + 4]
push ebx
lea ebx, [ecx + 4]
test ebx, ebx
push esi
push edi
je 0x4021eb
mov edi, dword [esp + 0x14]
lea esi, [edi + 4]
test esi, esi
je 0x4021eb
call fcn.00402146
test al, al
je 0x4021eb
mov ecx, edi
call fcn.00402146
test al, al
je 0x4021eb
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
jmp 0x4021ed
xor al, al
pop edi
pop esi
pop ebx
ret
Function at 0x40327e
Capabilities:
Get user security identifier

Disassembly:
push ebp
sub esp, 0xc8
lea ebp, [esp - 4]
mov eax, dword [0x4234b0]
xor eax, ebp
mov dword [ebp + 0xc8], eax
push 0x14
mov eax, 0x419fd2
call fcn.0040d60c
mov eax, dword [ebp + 0xd8]
mov ebx, dword [ebp + 0xd4]
mov edi, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], eax
call fcn.00402508
test ebx, ebx
je 0x4033cc
and dword [ebp], 0
and dword [ebp - 4], 0
mov esi, 0x80
push esi
lea ecx, [ebp]
call fcn.00401609
mov ecx, dword [ebp]
lea eax, [edi + 0x4c]
push eax
lea eax, [ebp - 0x14]
push eax
push ecx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x84]
push eax
push ebx
push dword [ebp - 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], 0x44
mov dword [ebp - 0x14], esi
call ebx
test eax, eax
jne 0x403364
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4033b5
cmp dword [ebp - 0x10], 0x44
jbe 0x40332c
push 0x80004005
call fcn.00401000
cmp dword [ebp - 0x14], esi
jbe 0x403342
push dword [ebp - 0x14]
lea ecx, [ebp]
call fcn.00402453
mov eax, dword [ebp]
mov dword [ebp - 0x1c], eax
lea eax, [edi + 0x4c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x84]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call ebx
test eax, eax
je 0x4033b5
lea eax, [ebp + 0x84]
push eax
lea eax, [edi + 4]
push eax
push dword [ebp - 0x10]
mov byte [edi + 0x48], 1
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x4033b5
push dword [ebp - 0x1c]
lea ecx, [edi + 0x54]
call fcn.004013e6
push dword [ebp - 0x20]
lea ecx, [edi + 0x50]
call fcn.004013e6
push dword [ebp - 0x18]
lea ecx, [edi + 0x5c]
call fcn.004013e6
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4033b1
lea ecx, [ebp]
call fcn.0040158a
mov al, 1
jmp 0x4033ce
mov ecx, edi
call fcn.00402508
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4033cc
lea ecx, [ebp]
call fcn.0040158a
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc8]
xor ecx, ebp
call fcn.0040d5fd
add ebp, 0xcc
leave
ret 8
Function at 0x403b8d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x403b98
xor eax, eax
ret
mov eax, dword [esp + 0xc]
cmp eax, 8
push ebx
push esi
mov esi, dword [esp + 0xc]
not esi
mov ecx, 0xff
jb 0x403c53
push edi
mov edi, eax
shr edi, 3
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x41b3c0]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x41b3c0]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x41b3c0]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x41b3c0]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x41b3c0]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x41b3c0]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x41b3c0]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x41b3c0]
inc edx
sub eax, 8
dec edi
jne 0x403bb8
pop edi
test eax, eax
je 0x403c6c
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x41b3c0]
inc edx
dec eax
jne 0x403c57
mov eax, esi
pop esi
not eax
pop ebx
ret
Function at 0x403e05
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x24]
mov dword [ebp - 0xc], edi
jmp 0x403e18
mov edi, dword [ebp - 0xc]
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x6c]
sub eax, ecx
sub eax, edx
mov dword [ebp - 8], eax
jne 0x403e37
test ecx, ecx
jne 0x403e45
test edx, edx
jne 0x403e45
mov dword [ebp - 8], edi
jmp 0x403eaf
cmp eax, 0xffffffff
jne 0x403e45
mov dword [ebp - 8], 0xfffffffe
jmp 0x403eaf
mov eax, dword [esi + 0x24]
lea eax, [edi + eax - 0x106]
cmp ecx, eax
jb 0x403eaf
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.0040e400
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov ebx, edx
sub ebx, edi
cmp edx, edi
sbb edx, edx
not edx
and edx, ebx
dec ecx
mov word [eax], dx
jne 0x403e76
mov eax, dword [esi + 0x38]
mov edx, edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov ebx, ecx
sub ebx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, ebx
dec edx
mov word [eax], cx
jne 0x403e95
add dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x403f55
mov ebx, dword [esi + 0x6c]
add ebx, dword [esi + 0x64]
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 8]
add ebx, dword [esi + 0x30]
cmp eax, ecx
mov dword [ebp - 4], eax
jbe 0x403ed4
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x403ede
xor eax, eax
jmp 0x403f16
sub eax, dword [ebp - 4]
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x18], 0
jne 0x403f00
push dword [ebp - 4]
push dword [edi]
push dword [edi + 0x30]
call fcn.00403a7b
add esp, 0xc
mov dword [edi + 0x30], eax
push dword [ebp - 4]
push dword [edi]
push ebx
call fcn.0040e400
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x6c], eax
mov edi, dword [esi + 0x6c]
cmp edi, 3
jb 0x403f41
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp edi, 0x106
jae 0x403f55
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x403e15
pop edi
pop ebx
leave
ret