joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001debf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x1001ded5
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x1001dee6
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.1001df27
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0x10020293
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x100201dc
add ebx, 0
push ecx
call 0x100201f1
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x7321e373
sub ebx, dword [0x7323dbb2]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x7323dba2
call fcn.1001bcbb
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.1001b1c9
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x1002034f
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x1002034f
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x10020306
mov eax, 1
lock xchg dword [0x7323dbae], eax
push 0x3dd1fc71
call 0x10020293
push esi
add esp, 8
cmp eax, 0
jne 0x1002027c
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x100202a2
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x100202b7
cmp ecx, edx
cmp eax, 0
je 0x100202dc
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x100202c6
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.100202f5
dec eax
loope 0x100202f8
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x7323dbae], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x1002032c
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x10020341
jmp 0x1002034c
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x1002023a
Function at 0x100273b4
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x1002768a
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x7322a826
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x732217ec
push 0xffffffffffffffff
call fcn.1001e5b4
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x1002741e
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.10027436
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x1002767e
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x10027652
Function at 0x10036e84
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10036ea6
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10036ea6
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10036ea6
ret
cmp word [ebx + 4], 0x14c
jne 0x10036ea6
test word [ebx + 0x16], 2
je 0x10036ea6
test word [ebx + 0x16], 0x100
je 0x10036ea6
cmp word [ebx + 0x18], 0x10b
jne 0x10036ea6
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10036ea6
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10036f32
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10036ec6
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1001de11
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10036ea6
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x10036f32
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10036ea6
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10036ea6
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10036ea6
ret
cmp word [ebx + 4], 0x14c
jne 0x10036ea6
test word [ebx + 0x16], 2
je 0x10036ea6
test word [ebx + 0x16], 0x100
je 0x10036ea6
cmp word [ebx + 0x18], 0x10b
jne 0x10036ea6
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10036ea6
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10036f32
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10036ec6
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1001de11
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10036ea6
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x10036fe9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10037042
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10036fe9
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10036ff8
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1043cc9b
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10037049
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1001debf
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100370e8
add edi, 4
add eax, 2
dec ecx
jne 0x1003702e
call 0x10037095
loope 0x1003708b
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100370e5
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x100370f6
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100370a9
cmp eax, ecx
ja 0x100370a9
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x10037133
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10037129
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1001e39e
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10036ff8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10037042
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10036fe9
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10036ff8
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1043cc9b
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10037049
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1001debf
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100370e8
add edi, 4
add eax, 2
dec ecx
jne 0x1003702e
call 0x10037095
loope 0x1003708b
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100370e5
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x100370f6
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100370a9
cmp eax, ecx
ja 0x100370a9
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x10037133
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10037129
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1001e39e
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x110e7160
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.110e72b0
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x110e7186
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x110e7172
add dl, dl
jne 0x110e7191
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x110e71e4
xor eax, eax
add dl, dl
jne 0x110e719e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x110e7285
add dl, dl
jne 0x110e71ad
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x110e71b8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x110e71c3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x110e71ce
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x110e71da
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x110e717d
mov eax, 1
add dl, dl
jne 0x110e71f2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x110e71fd
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x110e71e9
sub eax, ebx
mov ebx, 1
jne 0x110e7230
mov ecx, 1
add dl, dl
jne 0x110e7216
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x110e7221
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x110e720d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x110e717d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x110e7247
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x110e7252
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x110e723e
cmp eax, 0x7d00
jae 0x110e7275
cmp eax, 0x500
jb 0x110e7270
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x110e717d
cmp eax, 0x7f
ja 0x110e7278
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x110e717d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x110e72a6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x110e717d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1000bbb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [fcn.1000bbb0]
mov dword [0x1001fec4], 0x21bc
mov dword [ebp - 8], eax
jmp 0x1000bbd5
jmp 0x1000bbf6
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x1000bc15
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x1000bbf6
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
je 0x1000bbcd
jmp 0x1000bbcb
mov eax, dword [ebp - 8]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 8], eax
mov al, 1
test al, 1
jne 0x1000bbd5
jmp 0x1000bc0e
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 8
pop ebp
ret

Function at 0x1000bc20
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1001fec0]
add eax, 0x1043
mov dword [0x1001fec0], eax
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x1001fec0]
sub eax, 0x732
mov dword [0x1001fec0], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 4], eax
mov dword [0x1001fec4], 0xea
mov dword [ebp - 0x10], 0
jmp 0x1000bcb8
jmp 0x1000bceb
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
add esp, 0x10
pop ebp
ret
jmp 0x1000bd97
mov eax, dword [0x1001fec0]
sub eax, 0x22f3
mov dword [0x1001fec4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x14]
cmp eax, 0x64
je 0x1000bd39
jmp 0x1000bd99
jmp 0x1000bc87
cmp dword [ebp - 0x10], 0x104
jge 0x1000bceb
mov dword [0x1001fec0], 0x191d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2]
cmp eax, 0
je 0x1000bc76
jmp 0x1000bcde
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x1000bcb8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x1a]
cmp eax, 0x6c
jne 0x1000bc78
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x18]
cmp eax, 0x6f
jne 0x1000bd9d
mov dword [0x1001fec0], 0x17db
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
je 0x1000bc8c
jmp 0x1000bd9b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
movzx eax, word [ecx + eax*2 - 0x12]
cmp eax, 0x64
jne 0x1000bd97
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x10]
cmp eax, 0x6c
jne 0x1000bc87
mov dword [0x1001fec0], 0xfe8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0xe]
cmp eax, 0x6c
jne 0x1000bcb6
mov dword [0x1001fec4], 0xb05
mov dword [ebp - 0xc], 1
jmp 0x1000bc7f
jmp 0x1000bd99
jmp 0x1000bd9b
jmp 0x1000bd9d
jmp 0x1000bc78
Function at 0x4017f0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420ae8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x42a5f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x128], ebx
mov dword [ebp - 4], ebx
xor eax, eax
cmp dword [ebp + 0x20], 0x10
mov ecx, 0x2a
lea esi, [ebp - 0x1d0]
lea edi, [ebp - 0x120]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x98], 0x6a09e667
mov dword [ebp - 0x94], 0xbb67ae85
mov dword [ebp - 0x90], 0x3c6ef372
mov dword [ebp - 0x8c], 0xa54ff53a
mov dword [ebp - 0x88], 0x510e527f
mov dword [ebp - 0x84], 0x9b05688c
mov dword [ebp - 0x80], 0x1f83d9ab
mov dword [ebp - 0x7c], 0x5be0cd19
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x120], ebx
jae 0x4018c1
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x1c]
lea esi, [ebp - 0x120]
call fcn.00401570
lea edi, [ebp - 0x30]
call fcn.00401620
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov byte [ebp - 0x38], 0
xor esi, esi
lea edi, [ebp - 0x78]
jmp 0x4018f0
movzx ecx, byte [ebp + esi - 0x30]
push ecx
push str._02x
push edi
call ebx
inc esi
add esp, 0xc
add edi, 2
cmp esi, 0x20
jb 0x4018f0
mov esi, dword [ebp - 0x124]
lea eax, [ebp - 0x78]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401927
sub eax, edx
push eax
lea edx, [ebp - 0x78]
push edx
mov ecx, esi
call fcn.00402540
cmp dword [ebp + 0x20], 0x10
jb 0x40194e
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040cf96
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040cf87
mov esp, ebp
pop ebp
ret
Function at 0x405540
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42a5f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
mov edi, dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, ecx
push esi
push 0
push 0
push 0x258
push 0x258
push 0
push bind
push 0xa0000
push 0x431b20
push 0x431ab8
push 0
mov dword [0x431b1c], esi
call edi
mov dword [0x431ab4], eax
test eax, eax
jne 0x4055a4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cf87
mov esp, ebp
pop ebp
ret
push 0
push esi
push 0x6a
push eax
push 0
push 0
push 0
push 0
push 0x50000000
push 0
push str.msctls_statusbar32
push 0
call edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, eax
push 0
push esi
call edi
lea eax, [ebp - 0x10]
push eax
push 3
push 0x404
push esi
mov dword [ebp - 0x10], 0x87
mov dword [ebp - 0xc], 0xeb
mov dword [ebp - 8], 0xffffffff
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 8]
mov edx, dword [0x431ab4]
push ecx
push edx
call edi
mov eax, dword [0x431ab4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0040cf87
mov esp, ebp
pop ebp
ret
Function at 0x406290
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x42a5f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x42d15c]
push ebx
push esi
push edi
test eax, eax
js 0x406398
cmp eax, 2
jge 0x406398
mov esi, eax
imul esi, esi, 0x214
push ecx
add esi, 0x42cd34
inc eax
lea edi, [esi + 4]
push 0x100
mov dword [0x42d15c], eax
push edi
mov dword [esi], 1
call fcn.0040d68b
add esp, 0xc
cmp dword [esi], 0
je 0x406398
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
movzx ecx, word [ebp - 0x12]
movzx edx, word [ebp - 0x14]
push eax
push ecx
push edx
push edi
lea ebx, [esi + 0x110]
push str.._s_04d__02d__02d.txt
push ebx
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10c], edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x406373
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cf87
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x406398
mov ecx, dword [esi + 0x210]
push ecx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040cf87
mov esp, ebp
pop ebp
ret
Function at 0x4063b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x42a5f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
js 0x4065a7
cmp eax, dword [ecx + 0x42c]
jge 0x4065a7
imul eax, eax, 0x214
cmp dword [eax + ecx + 4], 0
lea esi, [eax + ecx + 4]
je 0x4065a7
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x812]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
cmp ecx, dword [esi + 0x104]
jne 0x406436
movzx edx, word [ebp - 0x816]
cmp edx, dword [esi + 0x108]
jne 0x406436
movzx eax, word [ebp - 0x818]
cmp eax, dword [esi + 0x10c]
je 0x4064f3
mov ecx, dword [esi + 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [ebp - 0x812]
movzx ecx, word [ebp - 0x816]
movzx edx, word [ebp - 0x818]
push eax
push ecx
push edx
mov dword [esi + 0x10c], edx
lea edx, [esi + 4]
push edx
lea edi, [esi + 0x110]
push str.._s_04d__02d__02d.txt
push edi
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
call ebx
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x4064bd
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cf87
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4064f3
mov eax, dword [esi + 0x210]
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cf87
mov esp, ebp
pop ebp
ret
push 0x3ff
lea ecx, [ebp - 0x807]
push 0
push ecx
mov byte [ebp - 0x808], 0
call fcn.0040eda0
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
push eax
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call fcn.0040d82b
push 0x3ff
lea edx, [ebp - 0x407]
push 0
push edx
mov byte [ebp - 0x408], 0
call fcn.0040eda0
movzx ecx, word [ebp - 0x80c]
movzx edx, word [ebp - 0x80e]
lea eax, [ebp - 0x808]
push eax
movzx eax, word [ebp - 0x810]
push ecx
push edx
push eax
lea ecx, [ebp - 0x408]
push str._02d:_02d:_02d__s_r_n
push ecx
call ebx
lea eax, [ebp - 0x408]
add esp, 0x40
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406580
mov ecx, dword [esi + 0x210]
sub eax, edx
push 0
lea edx, [ebp - 0x81c]
push edx
push eax
lea eax, [ebp - 0x408]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040cf87
mov esp, ebp
pop ebp
ret