joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10295f1
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
lea ebx, [esi + 4]
cmp dword [ebx], 0xffffffff
jne 0x10295d4
push esi
call fcn.010263d1
mov eax, dword [esi + 0x20]
test eax, eax
je 0x102961d
cmp dword [esi + 0x98], 0
jne 0x102960b
push esi
push ebx
push 0
push eax
push dword [esi + 0x18]
call fcn.010294f6
mov ecx, dword [esi + 0x20]
xor edi, edi
cmp eax, ecx
jne 0x102960b
cmp edx, edi
jne 0x102960b
cmp dword [ebx], 0xffffffff
jne 0x102961d
mov dword [esi], 0xe
jmp 0x102961d
mov eax, dword [esi + 0x98]
neg eax
sbb eax, eax
and eax, 0xfffffffb
add eax, 0xe
mov dword [esi], eax
and dword [esi + 0x20], 0
push 2
pop eax
cmp dword [ebp + 0xc], eax
jne 0x102964d
mov ecx, dword [esi + 0x28]
dec ecx
jne 0x1029634
mov dword [ebp + 0xc], eax
jmp 0x10295c9
mov ecx, dword [esi + 0x18]
mov eax, dword [ebp + 8]
mov byte [ecx], al
inc dword [esi + 0x20]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
shr eax, 8
mov byte [ecx + edx], al
jmp 0x102965b
cmp dword [ebp + 0xc], 1
jne 0x102965e
mov eax, dword [esi + 0x18]
mov cl, byte [ebp + 8]
mov byte [eax], cl
inc dword [esi + 0x20]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x102b788
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x14]
cmp dword [esi], 0
je 0x102b786
mov eax, dword [esi + 0x5110]
mov edx, dword [esi + 0x5114]
mov cl, 3
call fcn.0102cc10
jmp 0x102b96a
mov eax, dword [esi + 0x5100]
mov cl, byte [esi + 0x5104]
mov byte [eax + esi + 0x40f8], cl
mov eax, dword [esi + 0x5118]
mov ecx, 0xffff
cmp word [eax], cx
jne 0x102b7af
push esi
call fcn.0102a0f4
push ebx
push edi
push esi
lea eax, [esi + 0x24b4]
push eax
call fcn.0102af0e
push esi
lea eax, [esi + 0x24ec]
push eax
call fcn.0102af0e
push esi
call fcn.0102b107
mov ebx, dword [esi + 0x5108]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x510c]
add ebx, 0xa
add eax, 0xa
shr eax, 3
shr ebx, 3
mov dword [ebp + 0x14], eax
cmp eax, ebx
ja 0x102b7f5
mov ebx, eax
mov edi, dword [ebp + 0xc]
cmp edi, ebx
ja 0x102b852
cmp dword [ebp + 0x10], 0
je 0x102b852
mov ecx, dword [esi + 0x5110]
or ecx, dword [esi + 0x5114]
jne 0x102b852
push esi
call fcn.0102966a
test eax, eax
je 0x102b84f
cmp dword [ebp + 8], 0
je 0x102b84f
push esi
push 0
push edi
push dword [ebp + 8]
call fcn.0102be73
xor eax, eax
shld eax, edi, 3
shl edi, 3
mov dword [esi + 0x5114], eax
mov eax, dword [esi + 0x511c]
mov dword [esi + 0x5110], edi
and dword [eax], 0
jmp 0x102b924
mov eax, dword [ebp + 0x14]
lea ecx, [edi + 4]
cmp ecx, ebx
ja 0x102b8a7
cmp dword [ebp + 8], 0
je 0x102b8a7
push esi
push 3
push dword [ebp + 0x10]
call fcn.0102a15e
mov ecx, dword [esi + 0x5110]
mov eax, dword [esi + 0x5114]
add ecx, 0xa
adc eax, 0
push 8
pop edx
mov ebx, eax
lea eax, [edi + 4]
mul edx
push esi
push 1
and ecx, 0xfffffff8
add ecx, eax
push edi
push dword [ebp + 8]
adc ebx, edx
mov dword [esi + 0x5110], ecx
mov dword [esi + 0x5114], ebx
call fcn.0102be73
jmp 0x102b924
push esi
cmp eax, ebx
mov eax, dword [ebp + 0x10]
push 3
jne 0x102b8d6
add eax, 2
push eax
call fcn.0102a15e
push esi
lea eax, [esi + 0x237c]
push eax
lea eax, [esi + 0x1e84]
push eax
call fcn.0102b60b
mov eax, dword [esi + 0x510c]
jmp 0x102b914
add eax, 4
push eax
call fcn.0102a15e
mov eax, dword [ebp - 4]
inc eax
push esi
push eax
mov eax, dword [esi + 0x2504]
inc eax
push eax
mov eax, dword [esi + 0x24cc]
inc eax
push eax
call fcn.0102b57c
push esi
lea eax, [esi + 0x1d80]
push eax
lea eax, [esi + 0x1398]
push eax
call fcn.0102b60b
mov eax, dword [esi + 0x5108]
add eax, 3
add dword [esi + 0x5110], eax
adc dword [esi + 0x5114], 0
push esi
call fcn.0102ad35
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x102b955
push 0x1ffff
push edi
push dword [esi + 0x4c]
call fcn.0101bc52
add esp, 0xc
push esi
call fcn.0102a1ec
add dword [esi + 0x5110], 7
adc dword [esi + 0x5114], edi
mov eax, dword [esi + 0x5110]
mov edx, dword [esi + 0x5114]
mov cl, 3
call fcn.0102cc10
pop edi
pop ebx
pop esi
leave
ret 0x10
Function at 0x102ba73
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov edx, dword [esi + 0x74]
mov ecx, dword [esi + 0x4c]
mov eax, dword [esi + 0x84]
add ecx, edx
push edi
mov edi, dword [esi + 0x70]
mov dword [ebp - 8], eax
cmp edx, 0xffff
jbe 0x102ba8a
add edx, 0xffff0001
mov dword [ebp - 0xc], edx
jmp 0x102ba8e
and dword [ebp - 0xc], 0
lea eax, [ecx + 0xfff2]
mov dword [ebp - 0x10], eax
mov al, byte [edi + ecx - 1]
mov byte [ebp + 0xf], al
mov al, byte [edi + ecx]
mov byte [ebp - 1], al
cmp edi, dword [esi + 0x8c]
jb 0x102bab0
shr dword [ebp - 8], 2
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x4c]
add edx, eax
mov al, byte [ebp - 1]
cmp byte [edx + edi], al
jne 0x102bb5e
mov al, byte [ebp + 0xf]
cmp byte [edx + edi - 1], al
jne 0x102bb5e
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x102bb5e
inc edx
mov al, byte [edx]
cmp al, byte [ecx + 1]
jne 0x102bb5e
mov eax, dword [ebp - 0x10]
inc ecx
inc ecx
inc edx
inc ecx
mov bl, byte [ecx]
inc edx
cmp bl, byte [edx]
jne 0x102bb2d
inc ecx
mov bl, byte [ecx]
inc edx
cmp bl, byte [edx]
jne 0x102bb2d
inc ecx
mov bl, byte [ecx]
inc edx
cmp bl, byte [edx]
jne 0x102bb2d
inc ecx
mov bl, byte [ecx]
inc edx
cmp bl, byte [edx]
jne 0x102bb2d
inc ecx
mov bl, byte [ecx]
inc edx
cmp bl, byte [edx]
jne 0x102bb2d
inc ecx
mov bl, byte [ecx]
inc edx
cmp bl, byte [edx]
jne 0x102bb2d
inc ecx
mov bl, byte [ecx]
inc edx
cmp bl, byte [edx]
jne 0x102bb2d
inc ecx
mov bl, byte [ecx]
inc edx
cmp bl, byte [edx]
jne 0x102bb2d
cmp ecx, eax
jb 0x102bae9
mov edx, ecx
sub edx, eax
add edx, 0xfff2
cmp edx, edi
lea ecx, [eax - 0xfff2]
jle 0x102bb5e
cmp edx, dword [esi + 0x90]
mov eax, dword [ebp + 8]
mov dword [esi + 0x78], eax
mov edi, edx
jge 0x102bb7d
add edx, ecx
mov al, byte [edx - 1]
mov byte [ebp + 0xf], al
mov al, byte [edx]
mov byte [ebp - 1], al
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x58]
and eax, 0xffff
mov eax, dword [edx + eax*4]
mov dword [ebp + 8], eax
cmp eax, dword [ebp - 0xc]
jbe 0x102bb7d
dec dword [ebp - 8]
jne 0x102bab3
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x102bbe1
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, 0xffff0000
mov edi, 0x10000
mov ecx, dword [esi + 0x74]
mov eax, dword [esi + 0x60]
sub eax, ecx
sub eax, dword [esi + 0x80]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x102bbbe
push 0xfffffffffffffffe
pop eax
jmp 0x102bc3f
cmp ecx, 0x1ffff
jb 0x102bc3f
cmp dword [esi + 0x68], 0
je 0x102bc3f
mov eax, dword [esi + 0x4c]
push 0x1fff6
lea ecx, [eax + 0x10000]
push ecx
push eax
call fcn.0102caae
add dword [esi + 0x78], ebx
add dword [esi + 0x74], ebx
add dword [esi + 0x64], ebx
add esp, 0xc
xor edx, edx
mov eax, dword [esi + 0x5c]
add eax, edx
mov ecx, dword [eax]
cmp ecx, edi
lea ebx, [ecx - 0x10000]
sbb ecx, ecx
not ecx
and ecx, ebx
add edx, 4
mov dword [eax], ecx
cmp edx, 0x20000
jb 0x102bbef
xor edx, edx
mov eax, dword [esi + 0x58]
add eax, edx
mov ecx, dword [eax]
cmp ecx, edi
lea ebx, [ecx - 0x10000]
sbb ecx, ecx
not ecx
and ecx, ebx
add edx, 4
mov dword [eax], ecx
cmp edx, 0x40000
jb 0x102bc13
mov eax, dword [ebp + 8]
add eax, edi
mov ebx, 0xffff0000
cmp dword [esi + 0x7c], 0
jne 0x102bc76
push esi
push eax
mov eax, dword [esi + 0x4c]
add eax, dword [esi + 0x74]
add eax, dword [esi + 0x80]
push eax
call dword [esi + 0x5340]
cmp dword [esi + 0x98], 0
jne 0x102bc6f
test eax, eax
je 0x102bc6f
add dword [esi + 0x80], eax
jmp 0x102bc76
mov dword [esi + 0x7c], 1
cmp dword [esi + 0x80], 0xfff6
jae 0x102bc8c
cmp dword [esi + 0x7c], 0
je 0x102bba0
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x102bd7a
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x80], 0
push edi
push 2
pop edi
je 0x102be60
push ebx
cmp dword [esi], 0
jne 0x102be45
mov ecx, dword [esi + 0x74]
mov eax, dword [esi + 0x4c]
movzx eax, byte [ecx + eax + 2]
mov edx, dword [esi + 0x6c]
shl edx, 5
xor eax, edx
mov edx, dword [esi + 0x5c]
and eax, 0x7fff
mov dword [esi + 0x6c], eax
mov eax, dword [edx + eax*4]
mov edx, dword [esi + 0x58]
and ecx, 0xffff
mov dword [edx + ecx*4], eax
mov ebx, dword [esi + 0x74]
mov ecx, dword [esi + 0x6c]
mov edx, dword [esi + 0x5c]
mov dword [edx + ecx*4], ebx
mov ebx, dword [esi + 0x78]
push 2
mov dword [esi + 0x70], edi
pop edi
test eax, eax
je 0x102bd49
mov ecx, dword [esi + 0x70]
cmp ecx, dword [esi + 0x88]
jae 0x102bd49
mov ecx, dword [esi + 0x74]
sub ecx, eax
cmp ecx, 0xffff
ja 0x102bd49
push esi
push eax
call fcn.0102ba55
mov edi, eax
mov eax, dword [esi + 0x80]
cmp edi, eax
jbe 0x102bd34
mov edi, eax
cmp edi, 3
jne 0x102bd49
mov eax, dword [esi + 0x74]
sub eax, dword [esi + 0x78]
cmp eax, 0x1000
jbe 0x102bd49
push 2
pop edi
mov eax, dword [esi + 0x70]
cmp eax, 3
jb 0x102bde2
cmp edi, eax
ja 0x102bde2
add eax, 0xfffffffd
push esi
push eax
mov eax, dword [esi + 0x74]
sub eax, ebx
dec eax
push eax
call fcn.0102b176
mov ecx, dword [esi + 0x70]
xor edx, edx
inc edx
sub edx, ecx
add dword [esi + 0x80], edx
add ecx, 0xfffffffe
mov dword [esi + 0x70], ecx
inc dword [esi + 0x74]
mov edx, dword [esi + 0x74]
mov ecx, dword [esi + 0x4c]
movzx ecx, byte [edx + ecx + 2]
mov edi, dword [esi + 0x6c]
mov ebx, dword [esi + 0x58]
shl edi, 5
xor ecx, edi
mov edi, dword [esi + 0x5c]
and ecx, 0x7fff
mov dword [esi + 0x6c], ecx
mov ecx, dword [edi + ecx*4]
and edx, 0xffff
mov dword [ebx + edx*4], ecx
mov ecx, dword [esi + 0x6c]
mov edx, dword [esi + 0x5c]
mov edi, dword [esi + 0x74]
mov dword [edx + ecx*4], edi
dec dword [esi + 0x70]
jne 0x102bd82
and dword [ebp - 4], 0
inc dword [esi + 0x74]
push 2
pop edi
test eax, eax
je 0x102be20
push 0
push esi
call fcn.0102b974
mov eax, dword [esi + 0x74]
mov dword [esi + 0x64], eax
jmp 0x102be20
cmp dword [ebp - 4], 0
je 0x102be10
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x4c]
movzx eax, byte [eax + ecx - 1]
push esi
push eax
push 0
call fcn.0102b176
test eax, eax
je 0x102be17
push 0
push esi
call fcn.0102b974
mov eax, dword [esi + 0x74]
mov dword [esi + 0x64], eax
jmp 0x102be17
mov dword [ebp - 4], 1
inc dword [esi + 0x74]
dec dword [esi + 0x80]
cmp dword [esi + 0x80], 0xfff6
jae 0x102be38
cmp dword [esi + 0x7c], 0
jne 0x102be38
push esi
call fcn.0102bb8b
cmp dword [esi + 0x80], 0
jne 0x102bcb8
cmp dword [ebp - 4], 0
pop ebx
je 0x102be60
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x4c]
movzx eax, byte [eax + ecx - 1]
push esi
push eax
push 0
call fcn.0102b176
push 1
push esi
call fcn.0102b974
pop edi
pop esi
leave
ret 4
Function at 0x10112ff
Capabilities:
Encode data using add xor sub operations

Disassembly:
xor dh, ah
dec ecx
sar dword [ebp + 0x8cc9989], 5
mov esi, 0xd96a6cc9
call 0x42782621
mov byte [edx], al
div dword [ebx + 0x7b]
mov ebx, 0xdd6e6b99
mov bl, 0xdc
std
cmp byte [ebp + 0x7df1733b], 0xe4
and edi, dword [edi + 0x2a06aaac]
mov bh, 0x50
mov ah, 0x3a
stosb byte es:[edi], al
cwde
pop es
dec edi
outsb dx, byte cs:[esi]
bound eax, qword [esi]
mov al, byte [0x6ac2be13]
pop esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
rcl dword [ebp + 0x75], cl
or dword [eax + 0x42], edi
xor byte [ebp + 0x40], ch
scasb al, byte es:[edi]
outsd dx, dword [esi]
movsd dword es:[edi], dword [esi]
dec edx
xor bh, 0x40
pop ebx
out dx, al
sub al, 0xf0
invalid

Function at 0x1011392
Capabilities:
Encode data using xor

Disassembly:
cdq
imul ebp, dword [esi - 0x23], 0xffffffb3
fdiv st(5), st(0)
push es
mov dword [ebx - 0x312b3b1e], eax
mov al, 0x8e
rol ch, 1
loop 0x1011338
adc al, 0x91
xchg ecx, eax
out dx, eax
inc ebp
std
push ebp
int 0x4c
cmpsb byte [esi], byte es:[edi]
in al, dx
sal dword [eax + esi + 0x14], 1
test eax, 0x21050f04
dec ecx
jge 0x1011319
mov eax, 0xd3712224
cmc
xchg esp, eax
mov edi, 0x8e60408a
into
inc esi
ror byte [ebx - 0x615215be], 0x44
mov ecx, 0x9d51d848
popfd
fcom dword [ecx - 0x63]
popfd
fldcw word [ecx]
pushfd
std
dec ebp
dec esi
je 0x101136b
xchg ebx, eax
dec esi
clc
sti
mov esi, 0xdd3e5797
sahf
stosb byte es:[edi], al
xchg edi, eax
je 0x1011379
stosb byte es:[edi], al
jl 0x10113a6
mov ebp, 0x40695fe8
xchg esi, eax
and al, 0xc5
ja 0x10113c5
pop edi
imul eax, dword [eax - 0x6a], 0xf877c524
mov ebp, 0x4e959152
xor eax, 0x2c706f99
int3

Function at 0x101fa63
Capabilities:
Encode data using xor

Disassembly:
xor ah, byte [ebx - 0x4abf9f92]
adc eax, 0xf2018d7f
Function at 0x1001066
Capabilities:
Create process on windows
Terminate process

Disassembly:
push dword [esp + 0x10]
push 0
push dword [esp + 0x14]
push 0x100103c
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1001088
Capabilities:
Accept command line arguments

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 0x10010af
inc esi
mov al, byte [esi]
test al, al
je 0x10010a8
cmp al, 0x22
jne 0x100109d
cmp byte [esi], 0x22
jne 0x10010c0
jmp 0x10010bf
cmp al, 0x20
jle 0x10010c0
inc esi
cmp byte [esi], 0x20
jg 0x10010b3
jmp 0x10010c0
cmp al, 0x20
jg 0x10010c6
inc esi
mov al, byte [esi]
test al, al
jne 0x10010bb
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
je 0x10010e0
movzx eax, word [ebp - 0x14]
jmp 0x10010e3
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
pop esi
leave
ret
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push ebp
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x14]
xor ebp, ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x118]
lea eax, [esp + 8]
push eax
push 0xf003f
push ebp
push ecx
push 0x80000002
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4010c0
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x120]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push ecx
push ebp
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4010b5
push ebx
push esi
mov esi, dword [esp + 0x128]
lea eax, [esp + 0x1c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4010a5
test cl, cl
je 0x4010a1
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4010a5
add eax, 2
add esi, 2
test cl, cl
jne 0x40107d
xor eax, eax
jmp 0x4010aa
sbb eax, eax
sbb eax, 0xffffffff
pop esi
pop ebx
test eax, eax
jne 0x4010b5
mov ebp, 1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
pop edi
pop ebp
add esp, 0x10c
ret

Function at 0x4010d0
Capabilities:
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
lea eax, [esp]
push esi
lea ecx, [esp + 0xc]
xor esi, esi
push eax
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401129
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0x40
push eax
push 1
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40111e
mov esi, 1
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
Function at 0x401130
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
sub esp, 0x10c
push ebx
push ebp
mov ebp, dword [esp + 0x118]
push esi
push edi
push str.FILE
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4011a1
mov edi, str.c:windows_system32
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40705c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 2
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
push eax
push eax
and ecx, 3
lea eax, [esp + 0x30]
push 0x40000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
jne 0x40122e
push str.CreateFile_Failed__n
call fcn.004014f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
lea ecx, [esp + 0x18]
push 0
push ecx
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x1c]
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40126e
lea eax, [esp + 0x1c]
push eax
push str.WriteFile__s_Failed___n
call fcn.004014f0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10c
ret
Function at 0x402bed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407550
cmp edx, dword [eax]
je 0x402c0f
add eax, 8
inc ecx
cmp eax, 0x4075e0
jl 0x402c00
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407550]
jne 0x402d3d
mov eax, dword [0x407aa8]
cmp eax, 1
je 0x402d17
test eax, eax
jne 0x402c40
cmp dword [0x407218], 1
je 0x402d17
cmp edx, 0xfc
je 0x402d3d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402c77
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403460
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402ef0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402cba
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402ef0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406444
push edi
call fcn.00404540
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403460
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403470
lea eax, [ebp - 0xa0]
push 0x406424
push eax
call fcn.00403470
push dword [esi + 0x407554]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403470
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004044ae
add esp, 0x2c
pop edi
jmp 0x402d3d
lea eax, [ebp + 8]
lea esi, [esi + 0x407554]
push 0
push eax
push dword [esi]
call fcn.00402ef0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x420f9f
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
push esi
push edi
mov edi, dword [0x1c201000]
push 0x1e
lea eax, [ebp - 0x10]
pop ebx
mov dword [ebp - 0x14], 0x50
push eax
push 0x1c24f920
push 0x80000001
mov dword [ebp - 4], ebx
call edi
test eax, eax
jne 0x420fe0
lea eax, [ebp - 0xc]
push eax
push 0x1c24f914
push dword [ebp - 0x10]
call edi
test eax, eax
mov esi, 0x1c24f90c
jne 0x420ff3
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp - 0xc]
call edi
cmp eax, 2
jne 0x421006
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp - 0xc]
call dword [0x1c201004]
test eax, eax
mov esi, 0x1c260c0c
jne 0x42102a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push esi
push dword [ebp - 8]
call dword [0x1c201010]
xor ecx, ecx
cmp eax, ecx
jne 0x42105a
cmp dword [ebp - 0x18], 4
jne 0x4210f3
push dword [ebp - 8]
mov esi, dword [0x1c201008]
call esi
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0x9c]
jmp 0x42111f
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x20], ecx
push eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
call dword [0x1c201040]
cmp dword [ebp - 0x34], 0x182
jne 0x421082
mov dword [ebp - 4], 0xa
jmp 0x4210f3
cmp dword [ebp - 0x34], 0x1e6
jne 0x421090
mov dword [ebp - 4], ebx
jmp 0x4210f3
push eax
push ebx
push ecx
push edx
pushfd
pop eax
mov ecx, eax
xor eax, 0x200000
push eax
popfd
pushfd
pop eax
xor eax, ecx
je 0x4210b2
lea edi, [ebp - 0x20]
rdtsc
mov dword [edi], eax
mov dword [edi + 4], edx
pop edx
pop ecx
pop ebx
pop eax
mov eax, dword [ebp - 0x20]
or eax, dword [ebp - 0x1c]
je 0x4210f3
push 0x1f4
call dword [0x1c201020]
lea edi, [ebp - 0x28]
rdtsc
mov dword [edi], eax
mov dword [edi + 4], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x20]
push 0
push 0x7a120
sbb ecx, dword [ebp - 0x1c]
push ecx
push eax
call fcn.00441fe0
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push 4
push eax
push 4
push 0
push esi
push dword [ebp - 8]
call dword [0x1c20100c]
push dword [ebp - 8]
mov esi, dword [0x1c201008]
call esi
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret