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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4ba2c1
cmp dword [ebp + 0x14], edi
je 0x4ba2c1
cmp ecx, edi
jne 0x4ba2c8
call fcn.004bd350
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004b8c17
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4ba2dc
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4ba2fd
cmp ebx, 0xffffffff
je 0x4ba2ec
push ebx
push edi
push ecx
call fcn.004bbbe0
add esp, 0xc
cmp esi, edi
je 0x4ba2a9
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4ba2a9
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4ba319
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4ba320
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4ba411
test word [esi + 0xc], 0x10c
je 0x4ba374
mov eax, dword [esi + 4]
test eax, eax
je 0x4ba374
jl 0x4ba472
cmp ebx, eax
mov edi, ebx
jb 0x4ba345
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4ba419
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004b8a13
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4ba409
cmp ebx, dword [ebp - 0xc]
jb 0x4ba3e1
cmp dword [ebp - 0xc], 0
je 0x4ba39e
mov ecx, accept
xor edx, edx
cmp ebx, ecx
jbe 0x4ba393
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4ba39a
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4ba3a9
mov eax, accept
cmp ebx, eax
ja 0x4ba3a9
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4ba445
push eax
push dword [ebp - 8]
push esi
call fcn.004bda6d
pop ecx
push eax
call fcn.004c6394
add esp, 0xc
test eax, eax
je 0x4ba484
cmp eax, 0xffffffff
je 0x4ba472
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4ba409
push esi
call fcn.004c5cb3
cmp eax, 0xffffffff
pop ecx
je 0x4ba476
cmp dword [ebp - 4], 0
je 0x4ba445
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4ba328
mov eax, dword [ebp + 0x14]
jmp 0x4ba2c3
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4ba430
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004bbbe0
add esp, 0xc
call fcn.004bd350
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4ba2b9
cmp dword [ebp + 0xc], 0xffffffff
je 0x4ba45b
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004bbbe0
add esp, 0xc
call fcn.004bd350
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4ba2b9
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4ba2c3
or dword [esi + 0xc], 0x10
jmp 0x4ba476
Function at 0x4c4bc8
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x53e738]
je 0x4c4be3
inc edi
cmp edi, 0x17
jb 0x4c4bd4
cmp edi, 0x17
jae 0x4c4d63
push ebp
push 3
call fcn.004d2b71
cmp eax, 1
pop ecx
je 0x4c4d2f
push 3
call fcn.004d2b71
test eax, eax
pop ecx
jne 0x4c4c17
cmp dword [0x53de04], 1
je 0x4c4d2f
cmp ebx, 0xfc
je 0x4c4d62
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x54ac48
push ebp
call fcn.004c1440
add esp, 0xc
test eax, eax
je 0x4c4c4d
push esi
push esi
push esi
push esi
push esi
call fcn.004b8b1b
add esp, 0x14
push 0x104
mov esi, 0x54ac61
push esi
push 0
mov byte [0x54ad65], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c4c91
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004c1440
add esp, 0xc
test eax, eax
je 0x4c4c91
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004b8b1b
add esp, 0x14
push esi
call fcn.004be810
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4c4cd6
push esi
call fcn.004be810
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x54af5c
push 0x52045c
sub ecx, eax
push ecx
push eax
call fcn.004c7646
add esp, 0x14
test eax, eax
je 0x4c4cd6
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004b8b1b
add esp, 0x14
jmp 0x4c4cd8
xor esi, esi
push 0x520458
push ebx
push ebp
call fcn.004cb57e
add esp, 0xc
test eax, eax
je 0x4c4cf8
push esi
push esi
push esi
push esi
push esi
call fcn.004b8b1b
add esp, 0x14
push dword [edi*8 + 0x53e73c]
push ebx
push ebp
call fcn.004cb57e
add esp, 0xc
test eax, eax
je 0x4c4d1a
push esi
push esi
push esi
push esi
push esi
call fcn.004b8b1b
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004d29b4
add esp, 0xc
jmp 0x4c4d62
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4c4d62
cmp ebp, 0xffffffff
je 0x4c4d62
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x53e73c]
push dword [esi]
call fcn.004be810
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4d29b4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004c15b3
xor ebx, ebx
cmp dword [0x54b18c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4d2a8a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4d2b6a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x521d2c
push edi
call esi
cmp eax, ebx
je 0x4d2b6a
push eax
call fcn.004c1545
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x54b18c], eax
call esi
push eax
call fcn.004c1545
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x54b190], eax
call esi
push eax
call fcn.004c1545
mov dword [0x54b194], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004baa19
test eax, eax
pop ecx
pop ecx
je 0x4d2a58
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004b8b1b
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4d2a8a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004c1545
cmp eax, ebx
pop ecx
mov dword [0x54b19c], eax
je 0x4d2a8a
push 0x521cd4
push edi
call esi
push eax
call fcn.004c1545
pop ecx
mov dword [0x54b198], eax
mov eax, dword [0x54b198]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4d2b0f
cmp dword [0x54b19c], ecx
je 0x4d2b0f
push eax
call fcn.004c15bc
push dword [0x54b19c]
mov esi, eax
call fcn.004c15bc
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4d2b0f
cmp edi, ebx
je 0x4d2b0f
call esi
cmp eax, ebx
je 0x4d2adc
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4d2adc
test byte [ebp - 0x18], 1
jne 0x4d2b0f
lea eax, [ebp - 0x10]
push eax
call fcn.004baa50
test eax, eax
pop ecx
je 0x4d2af7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004b8b1b
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4d2b06
or dword [ebp + 0x10], 0x200000
jmp 0x4d2b4a
or dword [ebp + 0x10], 0x40000
jmp 0x4d2b4a
mov eax, dword [0x54b190]
cmp eax, dword [ebp - 8]
je 0x4d2b4a
push eax
call fcn.004c15bc
cmp eax, ebx
pop ecx
je 0x4d2b4a
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4d2b4a
mov eax, dword [0x54b194]
cmp eax, dword [ebp - 8]
je 0x4d2b4a
push eax
call fcn.004c15bc
cmp eax, ebx
pop ecx
je 0x4d2b4a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x54b18c]
call fcn.004c15bc
cmp eax, ebx
pop ecx
je 0x4d2b6a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4d2b6c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x50915514
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x432060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x38000d17
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x410c70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4025e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401f20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00404fd8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00405038
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x410e25
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x410d46
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405088
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x410e25
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x404ae4
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.004050e8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x410e25
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410dc3
mov dword [ebp - 0x8c], 0
jmp 0x410dcf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410e06
mov dword [ebp - 0x90], 0
jmp 0x410e12
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x410d14
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404e50
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x410e4d
jmp 0x410e4c
ret

Function at 0x438caa
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x438a14
push 0xe4072843
pop ebx
call fcn.00438cf3
add eax, eax
add ebx, 0x50920ef0
xor dword [edi], edx
dec ebx
or ebx, ebx
inc edi
sub ebx, 0x6a902bd8
cmp edi, esi
jne fcn.00438caa
add eax, 1
push eax
mov ebx, dword [esp]
add esp, 4
ret
Function at 0x401690
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x270
mov eax, dword [0x43ecb0]
xor eax, esp
mov dword [esp + 0x268], eax
fld qword [0x41dd88]
mov eax, dword [ecx + 0x20]
fst qword [esp + 0x2c]
push ebx
fld qword [0x41dd80]
push ebp
mov ebp, dword [ecx + 0x10]
fstp qword [esp + 0x3c]
fld qword [0x41dd78]
xor ebx, ebx
cmp dword [ecx + 8], ebx
fst qword [esp + 0x44]
fxch st(1)
push edi
fstp qword [esp + 0x50]
mov dword [esp + 0x18], ecx
fld qword [0x41dd70]
mov dword [esp + 0x20], ebp
fstp qword [esp + 0x58]
mov dword [esp + 0x10], ebx
fld qword [0x41dd68]
fstp qword [esp + 0x60]
fstp qword [esp + 0x68]
jle 0x4018b6
lea ecx, [ebp*8]
mov dword [esp + 0xc], eax
sub eax, ecx
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x40182f
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
jb 0x40172c
push 1
push esi
call fcn.0041b7da
add esp, 8
mov ecx, dword [esi + 4]
mov byte [ecx], 0x20
inc dword [esi + 4]
cmp ebx, 1
je 0x401751
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 8]
dec eax
cmp ebx, eax
je 0x401751
lea eax, [esp + 0x38]
mov ecx, 3
jmp 0x40175a
lea eax, [esp + 0x50]
mov ecx, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
fld qword [eax]
xor edi, edi
fst qword [esp + 0x30]
test ebp, ebp
jle 0x4017eb
fld1
mov ebp, dword [esp + 0xc]
mov ebx, dword [esp + 0x14]
fsubrp st(1)
fstp qword [esp + 0x28]
test edi, edi
je 0x40179e
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
jb 0x401795
push 1
push esi
call fcn.0041b7da
add esp, 8
mov edx, dword [esi + 4]
mov byte [edx], 0x2c
inc dword [esi + 4]
fld qword [ebp]
sub esp, 8
fmul qword [esp + 0x38]
lea eax, [esp + 0x78]
fld qword [esp + 0x30]
fmul qword [ebx]
faddp st(1)
fstp qword [esp]
push str._.03f
push eax
call dword [0x41d0dc]
lea ecx, [esp + 0x80]
push ecx
push esi
call fcn.0041b7f8
inc edi
add esp, 0x18
add ebx, 8
add ebp, 8
cmp edi, dword [esp + 0x20]
jl 0x40177e
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
jmp 0x4017ed
fstp st(0)
mov edx, dword [esi + 4]
cmp edx, dword [esi + 8]
jb 0x401800
push 1
push esi
call fcn.0041b7da
add esp, 8
mov eax, dword [esi + 4]
mov byte [eax], 0x20
mov eax, dword [esp + 0x1c]
mov ecx, 1
add dword [esi + 4], ecx
add eax, 8
sub dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
jne 0x401762
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 8]
dec edx
cmp ebx, edx
jne 0x401895
xor edi, edi
test ebp, ebp
jle 0x401895
mov ebx, dword [esp + 0xc]
lea esp, [esp]
test edi, edi
je 0x401860
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
jb 0x401857
push 1
push esi
call fcn.0041b7da
add esp, 8
mov ecx, dword [esi + 4]
mov byte [ecx], 0x2c
inc dword [esi + 4]
fld qword [ebx]
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0x78]
push str._.03f
push edx
call dword [0x41d0dc]
lea eax, [esp + 0x80]
push eax
push esi
call fcn.0041b7f8
inc edi
add esp, 0x18
add ebx, 8
cmp edi, ebp
jl 0x401840
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
lea eax, [ebp*8]
add dword [esp + 0x14], eax
add dword [esp + 0xc], eax
inc ebx
cmp ebx, dword [ecx + 8]
mov dword [esp + 0x10], ebx
jl 0x401711
mov ecx, dword [esp + 0x274]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041b870
add esp, 0x270
ret
Function at 0x441000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x441175
cmp dword [esp + 0x54], 0x40
jne 0x441175
cmp word [esp + 0x10], 0x5a4d
jne 0x441175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x441175
lea eax, [esp + 0x54]
push 0
push eax
push pe_nt_image_headers32
push 0x447960
push esi
call ebx
test eax, eax
je 0x441175
cmp dword [esp + 0x54], 0xf8
jne 0x441175
cmp dword [0x447960], 0x4550
jne 0x441175
mov eax, dword [0x447976]
test ah, 0x20
jne 0x441175
mov edx, dword [0x447a80]
xor eax, eax
mov ax, word [0x447966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x447a58], eax
je 0x441175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x447a6c], eax
xor eax, eax
mov ax, word [0x447966]
mov edx, dword [0x447a58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x441175
cmp dword [esp + 0x54], edi
jne 0x441175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x447a80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x4479b4]
cmp edx, eax
ja 0x441175
mov edi, dword [0x447a58]
mov ecx, dword [0x447988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x441175
xor eax, eax
push 2
mov ax, word [0x447966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x441175
cmp dword [edi - 0x20], ebx
ja 0x441175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x4016a0
Capabilities:
Create directory
Write file on windows

Disassembly:
mov eax, dword [0x4020cd]
sub esp, 0x2c
push ebx
push ebp
xor ebp, ebp
push esi
test eax, eax
push edi
je 0x401767
lea eax, [esp + 0x14]
push 0x28
push eax
call fcn.00401c60
mov esi, dword [esp + 0x48]
push esi
push 0x200
call dword [0x40201c]
mov edi, dword [0x402018]
push esi
call edi
cmp byte [eax + esi - 1], 0x5c
jne 0x4016ea
push esi
call edi
mov byte [eax + esi - 1], 0
mov edi, dword [esp + 0x4c]
push esi
push 0x403034
push edi
call dword [0x40209c]
add esp, 0xc
push edi
call dword [0x402014]
cmp eax, 0xffffffff
jne 0x401767
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
push edi
call dword [0x402010]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4017b1
test ebp, ebp
jne 0x4017f7
push 0x40302c
push esi
call dword [0x40200c]
push ebp
push esi
call dword [0x402008]
push esi
push 0x403034
push edi
mov ebp, 1
call dword [0x40209c]
add esp, 0xc
push edi
call dword [0x402014]
cmp eax, ebx
je 0x40170a
mov edi, dword [esp + 0x40]
mov al, byte [0x4020ca]
test al, al
je 0x40180f
mov ecx, dword [0x4020cd]
push 0x28
add edi, ecx
lea ecx, [esp + 0x18]
push ecx
call fcn.00401c60
mov eax, dword [edi]
lea edx, [esp + 0x14]
mov ecx, dword [esp + 0x44]
push edx
push eax
add edi, 4
push ecx
push edi
call fcn.004012b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret 0x10
mov edi, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
lea ecx, [esp + 0x14]
mov edx, dword [edi]
push ecx
push edx
lea eax, [edi + 4]
push ebp
push eax
call fcn.004012b0
mov edx, dword [edi]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push ebp
push ebx
call dword [0x402004]
test eax, eax
je 0x4017f7
mov eax, dword [esp + 0x10]
mov ecx, dword [edi]
cmp eax, ecx
jne 0x4017f7
push ebx
call dword [section..rdata]
jmp 0x40176b
push 0x403010
push esi
call dword [0x40200c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 0x10
mov edx, dword [0x4020d1]
mov eax, dword [esp + 0x44]
push edx
push edi
push eax
call fcn.00401cd0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret 0x10
Function at 0x40bf20
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x24]
add eax, 0x28985aab
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x9b
wait
jb 0x40bef4
mov dword [esp + 8], 0x85706063
mov byte [esp + 0xc], 0
mov dword [esp + 4], 0

Function at 0x43d4c3
Capabilities:
Encrypt data using chaskey
Hash data using murmur3

Disassembly:
adc eax, dword [ecx + 0x4dd124c5]
pop esp
rol ebp, 9
add ebp, esi
rol edi, 0xa
mov edx, ebp
xor edx, eax
and edx, edi

Function at 0x43d8f6
Capabilities:
Hash data using murmur3

Disassembly:
ret 0xd2f7
pop esp
and al, 0x28
lea ebp, [edi + ebx]
add ebp, 0x6d703ef3
mov edi, dword [esp + 0xc]
rol edi, 0xd
mov eax, dword [esp + 0x18]
rol eax, 0xa
mov dword [esp + 0x18], eax
add edi, dword [esp + 8]
mov dword [esp + 0xc], edi
not eax
or eax, dword [esp + 0x10]
xor dword [esi], ecx
add al, 0xeb
js 0x43d8b3
jl 0x43d94e
or byte [ebx], al
jl 0x43d952
push esp
rol ebp, 0xe
lea ebx, [eax + edi]
add ebx, 0xa953fd4e
mov edi, dword [esp]
add ebp, edi
rol edx, 0xa
mov eax, esi
not eax
or eax, ebp
xor eax, edx
add edi, dword [esp + 0x50]
push eax
add edi, eax
add edi, 0x6d703ef3
jo 0x43d9c4
invalid
Function at 0x401523
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x22c]
push ebx
sub esp, 0x25c
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov esi, dword [ebp + 0xc]
and edi, 0x300
mov dword [esp], ebx
mov eax, edi
mov dword [esp + 4], esi
or eax, 9
mov dword [esp + 8], eax
call fcn.00408245
sub esp, 0x10
test eax, eax
jne 0x40169b
test byte [ebp + 0x10], 2
je 0x4015cd
lea eax, [ebp - 0x228]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x222]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x228], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
sub esp, 0x20
cmp eax, 0x103
jne 0x40163a
mov eax, dword [ebp + 0x10]
and eax, 1
mov dword [ebp - 0x23c], eax
jmp 0x4015f5
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.00401523
sub esp, 0xc
test eax, eax
jne 0x401651
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x222]
mov dword [esp + 0xc], 0x105
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea edx, [ebp - 0x222]
sub esp, 0x10
test eax, eax
jne 0x401651
cmp dword [ebp - 0x23c], 0
mov eax, dword [ebp - 0x22c]
je 0x4015db
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
push ecx
jmp 0x40169b
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov dword [esp], 3
call fcn.00408fe4
push edx
test eax, eax
jne 0x401683
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push edx
push edx
jmp 0x40169b
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call eax
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x403d93
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x42b980]
cmp dword [ebp + 8], 0
je 0x403dbe
test eax, eax
je 0x403db2
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push ecx
mov dword [0x42b980], 0
jmp 0x403e28
test eax, eax
je 0x403dd1
mov dword [esp], 0
call fcn.00409056
push edx
jmp 0x403e28
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x417920]
jbe 0x403e28
mov eax, dword [0x435588]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x403cd8
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
sub esp, 0x14
mov dword [0x42b980], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
leave
ret