joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4064b9
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.00406ad5
mov edi, eax
cmp edi, 0xffffffff
je 0x4064fc
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x4064dd
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4064e3
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4064ec
xor eax, eax
inc eax
jmp 0x4064fe
test byte [ebp + 0xc], 4
jne 0x4064fc
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8

Function at 0x40656c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x42f5c0
push ebx
call fcn.00406a52
push ebx
call fcn.00406afd
mov esi, eax
test esi, esi
je 0x4065e1
push esi
call fcn.00406c75
test byte [0x434a0c], 0x80
je 0x4065a5
movzx eax, word [esi]
test ax, ax
je 0x4065e1
cmp eax, 0x5c
je 0x4065e1
sub esi, ebx
sar esi, 1
jmp 0x4065bf
call fcn.00406503
test eax, eax
je 0x4065b9
test byte [eax], 0x10
je 0x4065e1
push ebx
call fcn.00406c48
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x4065ab
call fcn.0040648a
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4065e1
xor eax, eax
inc eax
jmp 0x4065e3
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x40660a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x42ed78], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x42ed78
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406649
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x40664d
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x268]
push esi
mov esi, dword [esp + 0x268]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.0040656c
mov dword [esp + 0x14], eax
test bl, 8
je 0x40668f
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x434ac8], eax
jmp 0x406810
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x14], ebp
je 0x4066ac
test eax, eax
je 0x4067ff
test bl, 2
je 0x4067c4
push esi
push 0x42edc0
call fcn.00406a52
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x4066cf
push str..
push 0x42edc0
call ebp
jmp 0x4066d5
push esi
call fcn.00406c48
xor eax, eax
cmp word [esi], ax
jne 0x4066e6
cmp word [0x42edc0], 0x5c
jne 0x4066ee
push 0x4082b0
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push 0x42edc0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4067af
push 0x2e
pop eax
cmp word [esp + 0x48], ax
jne 0x406738
cmp word [esp + 0x4a], 0
je 0x406791
cmp word [esp + 0x4a], ax
jne 0x406738
cmp word [esp + 0x4c], 0
je 0x406791
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call fcn.00406a52
test byte [esp + 0x1c], 0x10
je 0x40675f
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x406791
push ebx
push esi
call fcn.0040664d
jmp 0x406791
push edi
push esi
call fcn.004064b9
test eax, eax
jne 0x406789
test edi, edi
je 0x406781
push esi
push 0xfffffffffffffff1
call fcn.00405c2d
xor eax, eax
push eax
push esi
call fcn.00406171
jmp 0x406791
inc dword [0x434ac8]
jmp 0x406791
push esi
push 0xfffffffffffffff2
call fcn.00405c2d
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40671a
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
je 0x40680f
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax - 2], cx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4067ff
push esi
call fcn.00406503
test eax, eax
je 0x40680f
push esi
call fcn.0040648a
mov eax, edi
or eax, 1
push eax
push esi
call fcn.004064b9
test eax, eax
jne 0x406807
test edi, edi
je 0x4067ff
push esi
push 0xfffffffffffffff1
call fcn.00405c2d
xor eax, eax
push eax
push esi
call fcn.00406171
jmp 0x40680f
inc dword [0x434ac8]
jmp 0x40680f
push esi
push 0xffffffffffffffe5
call fcn.00405c2d
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 8

Function at 0x406851
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc
Function at 0x4068ad
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x800
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040620c
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x40691f
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
mov word [edi + 0x7fe], ax
pop esi
jne 0x40691f
cmp dword [ebp + 0x18], 1
je 0x406924
cmp dword [ebp + 0x18], 2
je 0x406924
xor eax, eax
mov word [edi], ax
pop edi
leave
ret 0x14

Function at 0x406929
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x40698c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x408980]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x408984]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add word [ebp - 4], dx
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4069d8
test edi, edi
jne 0x406999
mov word [esi], ax
jmp 0x4069da
mov eax, esi
pop edi
pop esi
leave
ret 8

Function at 0x406ad5
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406af7
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

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

Disassembly:
cmp dword [0x431414], 0
push esi
jne 0x406dae
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x406d85
mov dword [ecx*4 + 0x431410], edx
inc ecx
cmp ecx, 0x100
jl 0x406d80
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x406dd8
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x431410]
inc esi
sub edx, 1
jne 0x406dc0
not ecx
mov eax, ecx
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
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219

Function at 0x429703
Capabilities:
Resolve function by parsing pe exports

Disassembly:
not edx
not edx
mov eax, 0
cld
clc
nop
cld
not ebp
not ebp
cld
dec esp
inc esp
cld
push eax
nop
sahf
wait
mov ch, ch
not dh
not dh
imul eax, eax, 0x10
stc
xchg dword [esp], eax
jmp 0x4295b6
add al, dl
lea edx, [edx + ebx]
sub cl, 0x31
push dword [edx + 0x20]
pop esi
lea esi, [ebx + esi]
jmp 0x42972c
cmp dh, 0x94
add esi, ebx
clc
ret 4
sahf
cmc
sub dword [esp], eax
cld
movzx eax, byte [edi]
sub edi, 0xffffffff
jmp 0x4297b3
mov edi, dword [edx + 0x1c]
cmp eax, 0xffffffa2
not eax
adc eax, 0xe68ae329
mov eax, 0x334a8761
cmp ah, 2
mov esi, dword [edx + 0x24]
dec dh
cld
add esi, ebx
xchg edx, edx
movzx eax, word [esi + ecx*2]
jmp 0x429671
mov dl, dh
add edi, ebx
mov esi, dword [edi + eax*4]
jmp 0x4295ad
lea ecx, [ecx]
not esi
not esi
not bl
not bl
jne 0x4250d3
xchg edx, edx
xchg edx, edx
lea ecx, [ecx]
xor eax, 0x69521502
jmp 0x4298e8
ret
push dword [ebx + 0x3c]
mov edx, ecx
cmp cl, 0xb8
xchg ecx, edi
xchg ecx, esi
nop
lahf
cld
sbb al, bl
pop eax
mov edi, ecx
mov edx, dword [eax + ebx + 0x78]
jmp 0x4294cc
add ecx, 1
cmp edi, 0xffffffa9
lodsd eax, dword [esi]
jmp 0x42979e
push 0xffffffffffffffff
xchg ah, al
cmp ah, dl
xchg edi, edi
not al
mov edi, esi
and al, dh
pop ecx
jmp 0x429720
lea edi, [eax + ebx]
xchg edx, ebp
xchg edx, ebp
cmp ecx, dword [edx + 0x18]
je 0x429700
jmp 0x4250be
sub dword [esp], eax
pop eax
test byte [edi], 0xff
jmp 0x429697
nop
sub eax, dword [esp + 4]
jne 0x429720
jmp 0x429617
Function at 0x4042fc
Capabilities:
Encrypt data using chaskey
Hash data using murmur3

Disassembly:
xchg ebx, eax
stc
cld
lahf
aas
wait
inc eax
das
cld
dec ebx
aas
inc ecx
aaa
xchg edx, eax
inc ebx
cmc
aas
xchg ebx, eax
dec edx
xchg ecx, eax

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

Disassembly:
salc
cdq
aas
aas
inc ecx
dec ebx
inc eax
das
daa
wait
inc eax
xchg ebx, eax
inc ebx
dec edx
aas
xchg ecx, eax
xchg edx, eax
nop
cld
xchg ebx, eax
inc ecx
inc edx
std
clc
stc
lahf
dec edx
xchg ebx, eax
salc
cdq
clc
dec ebx
stc
inc eax
wait
cld
inc ecx
inc ecx
clc
salc
salc
inc ecx
xchg ecx, eax
salc
cmc
nop
clc
salc
dec eax
inc ecx
xchg edx, eax
dec ecx
aaa
salc
daa
cdq
aaa
nop
xchg ecx, eax
cmc
inc eax
aas
cmc
xchg edx, eax
cmc
std
Function at 0x406a40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push esi
xor esi, esi
pop ax
dec eax
push cs
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea edx, [ecx + ecx*4]
dec ebp
or cl, al
mov dh, 3
mov ebp, ebx
xor edx, edx
mov dx, word [eax + 0xc]
mov dword [ecx + 4], edx
xor ebx, dword [edx + 0x73]
push 0x50
pushfd
wait
push ecx
or byte [ebx], dh
shl byte [esi + 4], cl
push eax
mov dword [0x330c5189], eax
insd dword es:[edi], dx
mov dx, word [eax + 6]
mov esi, ebx
inc eax
xor edx, edx
pop edx
mov edx, dword [eax - 0x62]
dec edx
mov dword [ecx - 0x4f], edx
xor edx, edx
mov dx, word [eax]
sub edx, 0xb5076c
mov dword [ecx - 3], edx
sbb dl, dl
mov dx, word [eax + 4]
mov dword [ecx + 0x1c], edx
mov edx, dword [ecx + 0xb]
mov si, word [eax + 0x57]
mov edx, dword [edx*4 + 0x40c240]
sub byte [edx + esi - 1], dl
xor esi, esi
cmpsd dword [esi], dword es:[edi]
push ecx
and byte [ebx], dh
jnp 0x406a48
mov ah, 0x81
xchg ebp, eax
insd dword es:[edi], dx
sub byte [esi - 0x75], ah
xor byte [ebx - 0x20fcda3a], cl
in eax, dx
cmp byte [ecx + 5], 0x48
or eax, 0xfffffffc
inc eax
retf
Function at 0x40353a
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x403563
mov al, byte [esi + 1]
inc esi
test al, al
je 0x40355b
cmp al, 0x22
jne 0x40354f
cmp byte [esi], 0x22
jne 0x40356d
inc esi
jmp 0x40356d
cmp al, 0x20
jle 0x40356d
inc esi
cmp byte [esi], 0x20
jg 0x403567
mov al, byte [esi]
test al, al
je 0x403577
cmp al, 0x20
jle 0x403560
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401de7
push 0x404004
push section..data
call fcn.00403520
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x4035a7
movzx eax, word [ebp - 0x14]
jmp 0x4035aa
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.004035cd
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401720
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0
push eax
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Best_Application
push str.Clariot
push 0
mov dword [0x4050ff], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x401767
pop esi
pop ebp
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
pop ebp
ret

Function at 0x401fad
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x405364]
test eax, eax
je 0x401fc6
call eax
test eax, eax
jne 0x401fc6
push 0xfffffffffffffffe
jmp 0x401fe0
push 1
push 0x405010
push 0x405008
call fcn.00401b91
add esp, 0xc
test eax, eax
je 0x401fe6
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push 0
push 0x405004
push section..data
call fcn.00401b91
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
jne 0x40200c
mov esi, 0x4049c2
mov cl, 0x20
jmp 0x402015
cmp al, 0x20
ja 0x40201f
inc esi
mov al, byte [esi]
test al, al
jne 0x402010
cmp al, 0x20
jbe 0x402036
mov al, byte [esi]
cmp al, 0x22
jne 0x402028
xor cl, 0x20
inc esi
mov al, byte [esi]
cmp al, cl
ja 0x402021
jmp 0x402036
cmp al, cl
ja 0x40203c
inc esi
mov al, byte [esi]
test al, al
jne 0x402031
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test eax, 0xa0d0a0d
sub eax, 0x54524357
sub eax, 0xa0d0a0d
test byte [ebp - 0x18], 1
je 0x402065
movzx eax, word [ebp - 0x14]
jmp 0x402068
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.0040209d
pop ecx
pop esi
leave
ret

Function at 0x40209d
Capabilities:
Terminate process

Disassembly:
call fcn.004020e7
push 0
push 0x405018
push 0x405014
call fcn.00401b91
push 0
push 0x405020
push 0x40501c
call fcn.00401b91
add esp, 0x18
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x408f6c
nop
mov ecx, 0xdab645e
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data_1
nop
nop
mov ebx, 0x42e3d0
mov ecx, 0x60ed38b7
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
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
popal
nop
nop
nop
nop
jmp 0x401219

Function at 0x401a22
Capabilities:
Hide graphical window

Disassembly:
mov ecx, 0xfffffffe
jmp fcn.0040161c
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x3467c6f
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x3e9468d7
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x402fa2
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402fc2
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402fd1
mov ebx, 0x40fe48
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402fe6
mov ecx, dword [0x4291f8]
add ecx, eax
push ecx
call fcn.004031b4
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.0040319e
test eax, eax
je 0x403149
test byte [ebp + 0x17], 0x80
je 0x403132
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40bdb8
mov dword [ebp - 0xc], eax
call fcn.004061fd
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403194
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403036
mov esi, dword [ebp + 0x14]
mov edi, 0x40be48
push esi
push edi
call fcn.0040319e
test eax, eax
je 0x403149
sub dword [ebp + 0x14], esi
mov dword [0x40bdd0], edi
mov dword [0x40bdd4], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40bdb8
mov dword [0x40bdd8], ebx
mov dword [0x40bddc], eax
call fcn.0040621d
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x40312a
mov esi, dword [0x40bdd8]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x429254], 1
mov edi, eax
je 0x4030de
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x4030a5
cmp dword [ebp + 0x14], 0
jne 0x4030de
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.00405021
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x40311f
cmp dword [ebp + 0x10], eax
jne 0x403107
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40312e
cmp dword [ebp - 0x14], esi
jne 0x40312e
add dword [ebp - 4], esi
jmp 0x403113
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40bdd8]
cmp dword [ebp - 0x10], 1
jne 0x403059
jmp 0x403194
cmp dword [ebp + 0x14], eax
jg 0x403029
jmp 0x403194
push 0xfffffffffffffffc
jmp 0x40314b
push 0xfffffffffffffffe
jmp 0x40314b
test edi, edi
je 0x403189
cmp dword [ebp + 0x14], esi
jge 0x40313e
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040319e
test eax, eax
jne 0x403191
push 0xfffffffffffffffd
pop eax
jmp 0x403197
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403159
mov esi, dword [ebp + 0x14]
mov edi, 0x40be48
push esi
push edi
call fcn.0040319e
test eax, eax
je 0x403149
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40312e
cmp esi, dword [ebp + 0x10]
jne 0x40312e
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x40314e
jmp 0x403194
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x43ebb0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x43ebce
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x43ebc3
pop esi
ret

Function at 0x43ed10
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x43eda2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x43ed94
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x43ed8c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x43ed55
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x429703
Capabilities:
Resolve function by parsing pe exports

Disassembly:
not edx
not edx
mov eax, 0
cld
clc
nop
cld
not ebp
not ebp
cld
dec esp
inc esp
cld
push eax
nop
sahf
wait
mov ch, ch
not dh
not dh
imul eax, eax, 0x10
stc
xchg dword [esp], eax
jmp 0x4295b6
add al, dl
lea edx, [edx + ebx]
sub cl, 0x31
push dword [edx + 0x20]
pop esi
lea esi, [ebx + esi]
jmp 0x42972c
cmp dh, 0x94
add esi, ebx
clc
ret 4
sahf
cmc
sub dword [esp], eax
cld
movzx eax, byte [edi]
sub edi, 0xffffffff
jmp 0x4297b3
mov edi, dword [edx + 0x1c]
cmp eax, 0xffffffa2
not eax
adc eax, 0xe68ae329
mov eax, 0x334a8761
cmp ah, 2
mov esi, dword [edx + 0x24]
dec dh
cld
add esi, ebx
xchg edx, edx
movzx eax, word [esi + ecx*2]
jmp 0x429671
mov dl, dh
add edi, ebx
mov esi, dword [edi + eax*4]
jmp 0x4295ad
lea ecx, [ecx]
not esi
not esi
not bl
not bl
jne 0x4250d3
xchg edx, edx
xchg edx, edx
lea ecx, [ecx]
xor eax, 0x69521502
jmp 0x4298e8
ret
push dword [ebx + 0x3c]
mov edx, ecx
cmp cl, 0xb8
xchg ecx, edi
xchg ecx, esi
nop
lahf
cld
sbb al, bl
pop eax
mov edi, ecx
mov edx, dword [eax + ebx + 0x78]
jmp 0x4294cc
add ecx, 1
cmp edi, 0xffffffa9
lodsd eax, dword [esi]
jmp 0x42979e
push 0xffffffffffffffff
xchg ah, al
cmp ah, dl
xchg edi, edi
not al
mov edi, esi
and al, dh
pop ecx
jmp 0x429720
lea edi, [eax + ebx]
xchg edx, ebp
xchg edx, ebp
cmp ecx, dword [edx + 0x18]
je 0x429700
jmp 0x4250be
sub dword [esp], eax
pop eax
test byte [edi], 0xff
jmp 0x429697
nop
sub eax, dword [esp + 4]
jne 0x429720
jmp 0x429617