joyce8/EMBER2024-capa huggingface dataset:
Function at 0xb50da5
Capabilities:
Encrypt data using aes

Disassembly:
add edx, esi
inc edx
mov edx, dword [esi + 8]
stc
stc
jmp 0xb50d8a
push esp
pop word [esp]
lea esp, [esp + 2]
jmp 0xb50dcd
mov word [esp], dx
jmp 0xb50d7c
mov edi, edx
clc
sub esp, 0x1a
lea esp, [esp + 2]
jmp 0xb50e0f
mov dword [esi + 4], edi
mov di, word [esp]
mov ebx, dword [ebx*4 + reloc.KERNEL32.dll_DuplicateHandle]
dec edi
jmp 0xb50dab
shr edi, 0x18
clc
call fcn.00b50db7
and edi, ecx
push ecx
pushal
jmp 0xb50e22
add ebp, ebp
mov dword [esp + 0x18], edi
popal
jmp 0xb50e98
sub esp, 4
and ebx, ecx
lea esp, [esp + 0x40]
xor edi, dword [ebx*4 + reloc.KERNEL32.dll_DuplicateHandle]
jmp 0xb50e4f
lea ecx, [ecx*4]
lea ecx, reloc.KERNEL32.dll_DuplicateHandle
mov edi, dword [ecx]
pop ecx
stc
jmp 0xb50e75

Function at 0xb50db7
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov edi, dword [edi*4 + reloc.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1e
sub esp, 8
jmp 0xb50df5
clc
add esp, 7
lea esp, [esp + 3]
jmp 0xb50e18

Function at 0xb50f1d
Capabilities:
Encrypt data using aes

Disassembly:
mov edx, dword [edx*4 + reloc.KERNEL32.dll_DuplicateHandle]
cmc
jmp 0xb50f7e
mov word [esp], bx
jmp 0xb50f06
mov eax, esi
lea eax, [eax + 0xc]
mov edx, dword [eax]
pop eax
jmp 0xb50f68
lea esp, [esp + 8]
xor edi, dword [edx*4 + reloc.KERNEL32.dll_DuplicateHandle]
mov dx, 0xbfa3
push eax
jmp 0xb50f3b
add byte [esi - 0x46], ah
mov dword [reloc.KERNEL32.dll_DuplicateHandle], eax
mov dword [esi + 8], edi
lea edi, [ebp*4]
bswap edi
stc
jmp 0xb50ff0
and edx, ecx
stc
cmc
jmp 0xb50f56
mov edi, edx
shr edi, 0x18
call 0xb50fd4
jns 0xb50f60
cmp al, 0xbd
cmp al, bl
mov dl, 0
call fcn.00b51092
dec ebx
fimul dword [eax + 0x2f]
ficomp dword [ecx]
scasd eax, dword es:[edi]
aas
scasd eax, dword es:[edi]
retf 0xf939
mov ebx, dword [ebx*4 + reloc.KERNEL32.dll_DuplicateHandle]
lea edi, [ebx + ebp]
lea edi, [eax + 0xc9]
mov edi, 0x2aea5486
jmp 0xb50fc9

Function at 0xb510c0
Capabilities:
Encrypt data using aes

Disassembly:
add esp, 3
stc
lea esp, [esp + 1]
jmp 0xb5109b

Function at 0xb510e3
Capabilities:
Encrypt data using aes

Disassembly:
and ebx, ecx
push edx
add esp, 1
add esp, 2
jmp 0xb510a7

Function at 0xb51156
Capabilities:
Encrypt data using aes

Disassembly:
call fcn.00b5118d
repe cmpsb byte [esi], byte es:[edi]
jmp 0xb2ae02
lea edi, [esp + ebx]
inc dl
push edx
jmp 0xb50a11
call fcn.00b2ad3d
invalid
push 0x426dd706
call fcn.00b31832
pop dword [edi]
cdq
or dword [eax - 0x65], ebp
push 0
add byte [edi + 0x68099907], cl
wait
sub dword [eax + 0x5b], edi
mov dl, 0xad
mov esp, 0xc95d07eb
pop ecx
cmp bl, cl
ja 0xb2ae09
jmp 0xb2ad5f
add esi, 0x10
cmp di, 0xa9a2
jmp 0xb50a36
mov ebx, dword [ebx*4 + reloc.KERNEL32.dll_DuplicateHandle]
xchg di, dx
jmp 0xb509e3
lea esp, [esp + 4]
movzx ebx, byte [esi + 0x11]
rol dh, 1
bt edx, esp
jmp 0xb509fa
mov edi, edx
call fcn.00b50ab8
dec esi
ret 0x3750
mov edx, dword [esi]
jmp 0xb50a20
lea esp, [esp + 0xc]
jne 0xb235e1
je 0xb23580
test eax, 0x29dabf2f
repz ret 0x4c7d
push dword [esp + 2]
mov dword [esi + 0xc], edi
jmp 0xb5112e
Function at 0xb51171
Capabilities:
Encrypt data using aes

Disassembly:
lea esp, [esp + 8]
dec dword [ebp - 4]
call fcn.00b51129
jmp 0xb5114a

Function at 0xc4788a
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov byte [esp + 2], ch
mov word [esp], di
xchg si, bx
push esp
cpuid
mov esi, 0x20cdd830
jmp 0xc478ac
cpuid
mov dl, 0xd4
lea esi, [ecx + edx]
jmp 0xc47870
xchg byte [esp + 2], bl
lea edi, reloc.KERNEL32.dll_DuplicateHandle
pop word [esp]
shr dh, 7
jmp 0xc478f7
mov ch, byte [esp + 5]
rcr ebp, 0xf
lea edx, [ebx + ebp]
pop si
mov dl, 0xcc
pop word [esp + 1]
jmp 0xc47893
sub esp, 2
mov ebp, dword [esp + 3]
mov si, word [esp]
mov word [esp], di
rdtsc
not cx
jmp 0xc478d4

Function at 0xc47a43
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 0x4e]
sub esp, 0
xchg bx, ax
rdtsc
neg ch
jmp 0xc47a4b
lea edi, [ebx + ebp]
mov ebx, eax
inc bx
xchg word [esp + 0x33], cx
mov ebp, dword [esp + 0x31]
sub esp, 0x12
jmp 0xc47a10
bswap edi
push dword [esp + 0x14]
jmp 0xc47a26
mov ebx, 0xa8976f66
cpuid
lea ecx, [esi - 0x8d]
mov ebp, eax
bsf di, si
jmp 0xc47a75
Function at 0xc47e8a
Capabilities:
Execute anti-debugging instructions

Disassembly:
cpuid
xchg word [esp + 1], bp
jmp 0xc47ebe

Function at 0xc48049
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg ecx, ebp
pop ebx
rdtsc
xchg dword [esp + 2], esi
bswap ecx
inc al
jmp 0xc4807a
mov di, word [esp + 6]
lea esp, [esp + 0x20]
xor edi, esi
lea esp, [esp]
mov cl, ch
stc
jmp 0xc48052
xchg word [esp + 0x1d], ax
lea eax, [edx + edi]
xchg di, bp
xchg word [esp + 0x16], dx
mov dword [esp + 0x12], eax
cpuid
jmp 0xc47ffd
mov dword [esp + 7], esi
sub esp, 0xe
jmp 0xc48025
btr ebp, edx
mov edi, ecx
sub esp, 2
bswap edx
mov ax, word [esp]
setno bh
jmp 0xc4809f
rdtsc
lea edx, [eax + edx]
xchg word [esp + 0xe], bp
mov esi, dword [esp + 0x1f]
jmp 0xc4800c

Function at 0xc48193
Capabilities:
Execute anti-debugging instructions

Disassembly:
popal
jmp 0xc4819a
mov di, 0xdf03
lea eax, [ecx - 0xab]
push word [esp + 2]
lea edi, [esi*4]
jmp 0xc481e4
pop dx
sub ax, 0xce60
mov si, word [esp + 4]
mov edi, dword [esp]
rcl di, cl
mov dx, word [esp + 1]
jmp 0xc481c7

Function at 0xc482d1
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea edx, [edi + ebp]
lea edi, [eax + edi]
xor ebx, esi
lea ebx, [edx + ebp]
lea ebx, [ebp - 0xa7]
popal
jmp 0xc482de
pop cx
pop word [esp + 0xc]
neg cx
sub esp, 0xa
mov dword [esp + 0xb], esi
mov al, ah
jmp 0xc4828a
rcl dx, cl
cld
xchg byte [esp + 0x1a], cl
lea eax, [edx + ebx]
jmp 0xc482a9
setno bh
bsr dx, cx
lea ecx, [esi*4]
mov bx, sp
xchg byte [esp], al
jmp 0xc4831f
mov ecx, 0x85dbea0a
setnp bh
mov bl, 0xa0
xchg bp, si
pop di
mov bl, 0x68
jmp 0xc48301

Function at 0xc48551
Capabilities:
Execute anti-debugging instructions

Disassembly:
inc esi
xchg word [esp + 5], cx
mov si, word [esp + 6]
mov cx, bx
mov cx, sp
mov word [esp + 2], bx
rdtsc
mov edx, esi
jmp 0xc4845d
mov cx, dx
mov byte [esp + 5], ah
mov ah, byte [esp + 1]
rcl bp, cl
jmp 0xc4847f
mov cl, ch
xchg di, cx
push dword [esp]
btc ecx, ebx
mov dh, byte [esp + 7]
jmp 0xc484a5
pop bx
neg ebx
mov eax, 0x20e72ec4
mov ebp, dword [esp + 1]
pop dword [esp]
jmp 0xc484bd
mov edi, 0xf4e1e72e
lea esi, [edi*4]
btc ebp, ebx
xchg cx, bx
clc
push dword [esp + 2]
jmp 0xc484d4
jmp 0xc484eb

Function at 0xc487ea
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop word [esp + 3]
lea esp, [esp + 6]
mov ecx, esi
lea ebx, reloc.KERNEL32.dll_DuplicateHandle
jmp 0xc48848
lea esp, [esp + 2]
btc eax, edi
mov ebp, dword [esp]
mov di, 0x6297
mov ebx, 0x97e5e968
add esp, 0
jmp 0xc4881c

Function at 0xc4bc63
Capabilities:
Execute anti-debugging instructions

Disassembly:
bswap ebp
push dword [esp + 2]
push word [esp + 3]
pop word [esp + 5]
lea esp, [esp + 7]
jmp 0xc4bc45
Function at 0xc4bd94
Capabilities:
Execute anti-debugging instructions

Disassembly:
cpuid
jmp 0xc4bd9c
mov dword [esp + 0xb], ebp
xchg dh, al
rcr ebp, 0x11
add esp, 5
mov si, 0xfbc7
xchg ebp, ebx
jmp 0xc4bdd3
mov word [esp + 0xa], di
pop bp
inc esi
pop dword [esp + 5]
cmc
mov ecx, 0xd72f19b0
jmp 0xc4be3b
not ax
cpuid
mov dword [esp + 0xa], ebp
popal
mov dword [esp + 6], ecx
lea esp, [esp]
jmp 0xc4be08
xchg bp, di
xchg word [esp + 8], dx
pushal
pop ax
bswap eax
lea esi, [ecx + 0xab]
jmp 0xc4be22
Function at 0xc4c1dd
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0xc4c247
xchg si, cx
cld
mov si, word [esp + 0xa]
lea esp, [esp + 5]
xchg dword [esp + 2], edi
jmp 0xc4c21a
pop esi
mov ah, byte [esp + 9]
cmc
xchg bh, cl
mov cx, 0x8def
lea ebx, [ecx + 0x63]
jmp 0xc4c230

Function at 0xc4c9de
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 0x44]
mov edx, ecx
inc ecx
shr ch, 5
cpuid
jmp 0xc4c976

Function at 0xc4cc2c
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov bh, byte [esp + 0xe]
lea edi, [edx*4]
rdtsc
jmp 0xc4cc6c
xchg dword [esp + 0xf], edi
btc edi, ebx
mov ecx, dword [esp + 0x10]
inc ax
xchg dh, al
lea ebp, [ebx*4]
jmp 0xc4cca1

Function at 0xc4d185
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg ah, bl
inc edx
lea esp, [esp + 7]
xchg dword [esp + 0x1a], esi
lea edi, reloc.KERNEL32.dll_DuplicateHandle
add esp, 0x23
jmp 0xc4c7b6
mov al, 0xe
cpuid
lea edx, [edx*4]
push word [esp + 0x21]
mov word [esp + 5], di
sub esp, 6
jmp 0xc4c7d0
mov ax, bx
inc al
lea ecx, [ecx + 0x8b]
bsr cx, bp
xchg byte [esp + 0x20], bl
pop dword [esp + 9]
jmp 0xc4c7f0
lea edi, [ebx + edi]
lea edi, [ecx + 0x43]
push dword [esp + 4]
mov ebp, 0x14ab558c
xchg dword [esp + 0x1e], ecx
inc esi
jmp 0xc4c864
xchg dword [esp + 6], ebx
bswap ebx
mov bp, 0x75f1
bswap eax
push dword [esp + 0x15]
inc esi
jmp 0xc4c883
inc ebp
jmp 0xc4c9f7
Function at 0x401f70
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x10c
mov eax, dword [0x41527c]
xor eax, esp
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push ebp
mov ebp, dword [esp + 0x118]
push ebp
mov dword [esp + 0x114], eax
call ebx
test eax, eax
je 0x401fb6
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004052d1
add esp, 0x10c
ret
push 0x5c
push ebp
call fcn.004062ac
add esp, 8
test eax, eax
je 0x40205a
push esi
push edi
inc eax
push 0x5c
push eax
call fcn.004062ac
mov edi, eax
add esp, 8
test edi, edi
je 0x402025
lea ecx, [ecx]
mov esi, edi
sub esi, ebp
push esi
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.004061b3
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov byte [esp + esi + 0x14], 0
call ebx
test eax, eax
jne 0x402013
push eax
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x402038
push 0x5c
inc edi
push edi
call fcn.004062ac
mov edi, eax
add esp, 8
test edi, edi
jne 0x401fe0
push ebp
call ebx
test eax, eax
jne 0x402053
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x402053
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004052d1
add esp, 0x10c
ret
mov eax, 1
jmp 0x40203a
mov ecx, dword [esp + 0x110]
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004052d1
add esp, 0x10c
ret

Function at 0x402080
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jbe 0x4020ca
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4020a0
sub eax, edx
dec eax
js 0x4020ca
cmp byte [eax + esi], 0x5c
jne 0x4020b6
mov byte [eax + esi], 0
push esi
call fcn.00401f70
add esp, 4
test eax, eax
je 0x4020ca
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x402140
Capabilities:
Extract resource via kernel32 functions
Get file attributes
Set file attributes
Write file on windows

Disassembly:
movzx eax, word [esp + 0xc]
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0xa
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x402203
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, dword [esp + 0x14]
push esi
mov ebx, eax
call fcn.004020d0
add esp, 4
test eax, eax
je 0x4021b0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call ebp
test al, 1
jne 0x4021a3
push esi
call ebp
test al, 4
je 0x4021af
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop ebp
push 0
push 0x80
push 2
call fcn.004010b0
mov ecx, eax
call fcn.00401c30
push eax
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402203
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebx
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x405ed4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004052e0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405f6f
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x41652c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x405f6f
cmp eax, 1
je 0x405f90
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405f6f
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x405f3c
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x405f6b
xor eax, eax
inc eax
jmp 0x405faf
cmp edi, eax
jae 0x405f73
xor eax, eax
jmp 0x405faf
cmp eax, esi
jae 0x405f7a
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x41652c]
jmp 0x405f93
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406ab2
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x412b38
call fcn.00406f30
mov edi, 0x94
mov eax, edi
call fcn.004052e0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x41652c], ecx
mov eax, dword [esi + 4]
mov dword [0x416538], eax
mov edx, dword [esi + 8]
mov dword [0x41653c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x416530], esi
cmp ecx, 2
je 0x406b12
or esi, 0x8000
mov dword [0x416530], esi
shl eax, 8
add eax, edx
mov dword [0x416534], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x406b4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406b4d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x406b65
cmp eax, 0x20b
je 0x406b52
mov dword [ebp - 0x1c], esi
jmp 0x406b79
cmp dword [ecx + 0x84], 0xe
jbe 0x406b4d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x406b73
cmp dword [ecx + 0x74], 0xe
jbe 0x406b4d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004090d0
pop ecx
test eax, eax
jne 0x406b8d
push 0x1c
call fcn.00406a8e
pop ecx
call fcn.00408518
test eax, eax
jne 0x406b9e
push 0x10
call fcn.00406a8e
pop ecx
call fcn.0040bb85
mov dword [ebp - 4], esi
call fcn.0040b987
test eax, eax
jge 0x406bb7
push 0x1b
call fcn.00406a69
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x417c20], eax
call fcn.0040b865
mov dword [0x416314], eax
call fcn.0040b7c3
test eax, eax
jge 0x406bdd
push 8
call fcn.00406a69
pop ecx
call fcn.0040b590
test eax, eax
jge 0x406bee
push 9
call fcn.00406a69
pop ecx
push 1
call fcn.00409c9e
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x406c04
push eax
call fcn.00406a69
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040b533
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x406c25
movzx eax, word [ebp - 0x40]
jmp 0x406c28
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004015c0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x406c46
push edi
call fcn.00409dcb
call fcn.00409ded
jmp 0x406c78
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00406f6b
ret
Function at 0x409d08
Capabilities:
Terminate process

Disassembly:
push 8
push 0x412ef0
call fcn.00406f30
push 8
call fcn.00408f8d
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x41656c], esi
jne 0x409d3c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x416568], esi
mov al, byte [ebp + 0x10]
mov byte [0x416564], al
cmp dword [ebp + 0xc], edi
jne 0x409d86
cmp dword [0x4179ac], edi
je 0x409d76
mov eax, dword [0x4179a8]
sub eax, 4
mov dword [0x4179a8], eax
cmp eax, dword [0x4179ac]
jb 0x409d76
mov eax, dword [eax]
cmp eax, edi
je 0x409d57
call eax
jmp 0x409d57
push 0x41503c
mov eax, 0x415034
call fcn.00409c86
pop ecx
push 0x415048
mov eax, 0x415040
call fcn.00409c86
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x409db7
cmp dword [ebp + 0x10], edi
jne 0x409dc5
mov dword [0x41656c], esi
push dword [ebp + 8]
call fcn.00409c44
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x409dc4
push 8
call fcn.00408ed8
pop ecx
ret
call fcn.00406f6b
ret
Function at 0x409e0b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x409e39
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x409e40
cmp ebx, dword [eax + 4]
jae 0x409e40
xor eax, eax
jmp 0x40a030
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x409e51
xor eax, eax
inc eax
jmp 0x40a02f
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x409e67
cmp ecx, edx
jae 0x409fac
cmp dword [eax + 4], 0
je 0x409e70
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x409e58
cmp dword [ebp + 8], 0
je 0x409e92
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x409fac
cmp eax, esi
jae 0x409fac
mov eax, dword [0x416570]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x409eb7
cmp dword [esi*4 + 0x416578], edi
je 0x409fb0
inc esi
cmp esi, eax
jl 0x409ea5
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40a02c
cmp dword [ebp - 8], 0x1000000
jne 0x40a02c
test byte [ebp - 0xc], 0xcc
je 0x409f35
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40a02c
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40a02c
cmp word [eax + 0x18], 0x10b
jne 0x40a02c
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40a02c
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x409f35
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x409f35
test byte [ecx + 0x27], 0x80
jne 0x409fac
push 1
push 0x4165b8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x409e49
mov ecx, dword [0x416570]
test ecx, ecx
mov edx, ecx
jle 0x409f69
lea eax, [ecx*4 + 0x416574]
cmp dword [eax], edi
je 0x409f69
dec edx
sub eax, 4
test edx, edx
jg 0x409f5d
test edx, edx
jne 0x409f9a
push 0xf
pop ebx
cmp ecx, ebx
jg 0x409f76
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x409f8e
lea eax, [edx*4 + 0x416578]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x409f7c
cmp ecx, 0x10
jge 0x409f9a
inc ecx
mov dword [0x416570], ecx
push 0
push 0x4165b8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x409e49
xor eax, eax
jmp 0x40a02f
test esi, esi
jle 0x409e49
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4165b8
call ebx
test eax, eax
jne 0x409e49
cmp dword [esi*4 + 0x416578], edi
je 0x40a006
mov eax, dword [0x416570]
lea esi, [eax - 1]
test esi, esi
jl 0x409ff4
cmp dword [esi*4 + 0x416578], edi
je 0x409ff0
dec esi
jns 0x409fe4
test esi, esi
jge 0x40a004
cmp eax, 0x10
jge 0x409fff
inc eax
mov dword [0x416570], eax
lea esi, [eax - 1]
jmp 0x40a006
je 0x40a01e
xor ecx, ecx
test esi, esi
jl 0x40a01e
lea eax, [ecx*4 + 0x416578]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40a00c
push 0
push 0x4165b8
call ebx
jmp 0x409e49
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b21e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x41527c]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x415ac8]
je 0x40b255
inc eax
cmp eax, 0x13
jb 0x40b246
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x415ac8]
jne 0x40b378
mov eax, dword [0x41631c]
cmp eax, 1
je 0x40b353
cmp eax, edx
jne 0x40b285
cmp dword [0x415434], 1
je 0x40b353
cmp ecx, 0xfc
je 0x40b378
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b2bb
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.004086c0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004087c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40b2ef
mov eax, edi
push eax
call fcn.004087c0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f498
push edi
call fcn.004065b0
add esp, 0x10
push edi
call fcn.004087c0
push dword [esi + 0x415acc]
mov ebx, eax
call fcn.004087c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004052e0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004086c0
push edi
push ebx
call fcn.004086d0
push 0x412c18
push ebx
call fcn.004086d0
push dword [esi + 0x415acc]
push ebx
call fcn.004086d0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040c28d
add esp, 0x2c
jmp 0x40b378
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x415acc]
push dword [esi]
call fcn.004087c0
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]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.004052d1
add ebp, 0x90
leave
ret