joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30d1375
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
cmp dword [ebp + 8], edx
je 0x30d13b1
push edx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x30d1405
push dword [ebp + 8]
push dword [ebp + 0x14]
push 1
push dword [ebp + 0x18]
call dword [sym.imp.msvcrt.dll_fread]
sub eax, dword [ebp + 0x14]
add esp, 0x10
neg eax
sbb eax, eax
inc eax
jmp 0x30d1407
mov eax, dword [ecx + 0x82c]
cmp eax, edx
je 0x30d13db
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edx
push dword [ebp + 0xc]
push dword [ecx + 0x804]
call eax
add esp, 0x14
xor ecx, ecx
test eax, eax
setge cl
mov al, cl
jmp 0x30d1407
mov eax, dword [ecx + 0x830]
cmp eax, edx
je 0x30d1405
cmp byte [ebp + 0x1c], dl
jne 0x30d13ef
cmp dword [ebp + 0x10], edx
je 0x30d1405
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + 0x804]
call eax
add esp, 0x10
jmp 0x30d13d0
xor al, al
pop ebp
ret 0x18
Function at 0x30d21c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x20
push 0x300ffac
push dword [ebp + 8]
mov esi, ecx
call fcn.030cda89
mov edi, eax
xor ebx, ebx
add esp, 0xc
cmp edi, ebx
jne 0x30d21f9
push ebx
push 0x12
push dword [ebp + 8]
mov ecx, esi
call fcn.030d19f0
xor al, al
jmp 0x30d233d
push edi
push 1
lea eax, [ebp - 0x54]
push 0x30
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x30d2227
push ebx
push 0xb
push dword [ebp + 8]
mov ecx, esi
call fcn.030d19f0
push edi
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
jmp 0x30d21f2
cmp word [ebp - 0x54], 0x4944
jne 0x30d2210
mov eax, dword [ebp - 0x3c]
imul eax, eax, 0x28
add eax, dword [ebp - 0x38]
push 1
push eax
push edi
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x30d2210
push edi
call dword [sym.imp.msvcrt.dll_ftell]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x34]
push 0x1c
xor edx, edx
pop ecx
div ecx
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x30d22aa
dec dword [ebp - 4]
push edi
push 1
lea eax, [ebp - 0x24]
push 0x1c
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x30d2210
cmp byte [esi + 0xc94], bl
jne 0x30d22a5
cmp dword [ebp - 0x18], 2
jne 0x30d22a5
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xc98], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0xc9c], ebx
mov dword [esi + 0xca0], eax
cmp dword [ebp - 4], ebx
jne 0x30d2265
mov ecx, dword [ebp - 0x4c]
cmp ecx, dword [esi + 0xc80]
je 0x30d22cb
mov eax, dword [esi + 0xc84]
cmp eax, ebx
je 0x30d22c3
cmp ecx, eax
je 0x30d22cb
push ebx
push 0x14
jmp 0x30d2213
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wcsdup]
pop ecx
push ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
mov dword [esi + 0xc90], eax
mov dword [esi + 0xc8c], edi
call fcn.030d19f0
push ebx
push dword [ebp - 8]
push edi
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x30d233b
mov eax, dword [ebp - 0x34]
push 0x1c
xor edx, edx
pop ecx
div ecx
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x30d233b
dec dword [ebp - 4]
push edi
push 1
lea eax, [ebp - 0x24]
push 0x1c
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x30d233b
lea eax, [ebp - 0x24]
push eax
push ebx
mov ecx, esi
call fcn.030d196d
cmp dword [ebp - 4], ebx
jne 0x30d2310
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x61e0da46
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
cmp eax, 0x7f
mov ebp, esp
push edi
push esi
push ebx
push ebx
mov dword [ebp - 0x10], edx
jg 0x61e0da63
lea ecx, [eax - 0x41]
lea edx, [eax + 0x20]
cmp ecx, 0x19
jmp 0x61e0dae7
cmp eax, 0xffff
jg 0x61e0dadb
or ebx, 0xffffffff
xor esi, esi
mov edi, 0xa2
lea ecx, [esi + edi]
sar ecx, 1
movzx edx, word [ecx*4 + 0x61e94f80]
cmp eax, edx
js 0x61e0da8c
lea esi, [ecx + 1]
mov ebx, ecx
jmp 0x61e0da8f
lea edi, [ecx - 1]
cmp esi, edi
jle 0x61e0da74
movzx esi, word [ebx*4 + 0x61e94f80]
movzx ecx, byte [ebx*4 + 0x61e94f83]
add ecx, esi
cmp eax, ecx
jge 0x61e0dacb
mov cl, byte [ebx*4 + 0x61e94f82]
xor esi, eax
mov ebx, ecx
and ebx, 1
test ebx, esi
jne 0x61e0dacb
shr cl, 1
movzx ecx, cl
add ax, word [ecx + ecx + 0x61e94b00]
movzx eax, ax
cmp dword [ebp - 0x10], 0
je 0x61e0daea
pop ecx
pop ebx
pop esi
pop edi
pop ebp
jmp sym._fts5_remove_diacritic
lea ecx, [eax - 0x10400]
lea edx, [eax + 0x28]
cmp ecx, 0x27
cmovbe eax, edx
pop edx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x61e15e1b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor esi, esi
mov ebx, eax
sub esp, 0x2c
movzx edi, byte [eax + 0x3b]
mov byte [eax + 0x38], 1
mov dword [ebp - 0x1c], 0
dec edi
cmp esi, edi
jge 0x61e15e7a
movzx eax, byte [ebx + 0x3a]
lea eax, [esi + eax + 1]
cdq
idiv edi
imul eax, edx, 0x48
mov dword [ebp - 0x20], edx
cmp dword [ebx + eax + 0x44], 0
lea ecx, [ebx + eax + 0x40]
mov dword [ebp - 0x1c], ecx
jne 0x61e15e69
imul eax, dword [ebp - 0x20], 0x48
cmp dword [ebx + eax + 0x40], 0
je 0x61e15e7a
inc esi
jmp 0x61e15e38
mov eax, dword [ebp - 0x1c]
call sym._vdbeSorterJoinThread
test eax, eax
je 0x61e15e5b
jmp 0x61e15f13
cmp esi, edi
jne 0x61e15e94
imul esi, esi, 0x48
add esp, 0x2c
lea edx, [ebx + 0x24]
lea eax, [ebx + esi + 0x40]
pop ebx
pop esi
pop edi
pop ebp
jmp sym._vdbeSorterListToPMA
mov ecx, dword [ebp - 0x1c]
lea edx, [ebx + 0x40]
mov eax, dword [ebp - 0x1c]
lea esi, [ebx + 0x24]
sub ecx, edx
mov eax, dword [eax + 0x14]
mov edx, ecx
mov ecx, dword [ebp - 0x1c]
sar edx, 3
imul edx, edx, 0x38e38e39
test eax, eax
lea edi, [ecx + 0x10]
mov ecx, 3
mov byte [ebx + 0x3a], dl
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x2c], 0
je 0x61e15ee2
mov dword [ebx + 0x28], eax
mov dword [esp], eax
call sym._sqlite3MallocSize
mov dword [ebx + 0x34], eax
jmp 0x61e15ef8
cmp dword [ebx + 0x28], 0
je 0x61e15ef8
mov eax, dword [ebx + 0x34]
cdq
call sym._sqlite3Malloc
test eax, eax
mov dword [ebx + 0x28], eax
je 0x61e15f0e
mov ecx, dword [ebp - 0x1c]
add esp, 0x2c
mov edx, sym._vdbeSorterFlushThread
pop ebx
pop esi
pop edi
pop ebp
mov eax, ecx
jmp sym._sqlite3ThreadCreate
mov eax, 7
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x61e17683
Capabilities:
Print debug messages

Disassembly:
push ebp
mov eax, 0x102c
mov ebp, esp
push edi
push esi
push ebx
call fcn.61e87f20
mov edx, 0xffb
sub esp, eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp eax, 0xffb
cmovle edx, eax
mov eax, dword [sym._OutputDebugStringA_4]
test edx, edx
mov dword [ebp - 0x101c], eax
jle 0x61e176d3
lea ebx, [ebp - 0x1014]
mov ecx, 0x3ff
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov edi, ebx
mov ecx, edx
rep movsb byte es:[edi], byte [esi]
mov dword [esp], ebx
jmp 0x61e176d6
mov dword [esp], esi
call dword [ebp - 0x101c]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x61e6d3d6
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x61e6d411
invalid

Function at 0x61e6e25f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
ror byte [ebp - 0x22e43], 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.61e6d374
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.61e6d3a6
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.61e6d35b
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.61e6d396
mov dl, 0x8a
mov esp, 0x10468fa
add byte [eax], al
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.61e6d396
imul edi, dword [esi], 0x35
rol dword [eax - 0x7fff1f9b], 0x65
loope 0x61e6e3b8
mov byte [ebp - 0x1e], 0x1d
and byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0xa5
mov byte [ebp - 0x1b], 0x87
mov byte [ebp - 0x1a], 0x96
mov byte [ebp - 0x19], 0xb6
mov byte [ebp - 0x18], 0x87
mov byte [ebp - 0x17], 0x8f
mov byte [ebp - 0x16], 0x92
mov byte [ebp - 0x15], 0xb2
mov byte [ebp - 0x14], 0x83
mov byte [ebp - 0x13], 0x96
mov byte [ebp - 0x12], 0x8a
mov byte [ebp - 0x11], 0xa3
mov byte [ebp - 0x10], 0xe2
lea eax, [ebp - 0x20]
push eax
call fcn.61e6d3a6
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.61e6d35b
add esp, 0xc
invalid
invalid
nop
cld
Function at 0x61e7391c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov edx, dword [ebx + 0x10]
mov dword [esp + 8], eax
lea eax, [ebp - 0x20]
mov dword [esp + 4], str.SELECT_t._Q_FROM__Q._Q_AS_t_WHERE_t._Q_MATCH_id
mov dword [esp], eax
mov dword [esp + 0xc], edx
call sym._sqlite3Fts5Mprintf
test eax, eax
mov esi, eax
je 0x61e7398e
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call sym._sqlite3_prepare_v2
mov dword [ebp - 0x20], eax
mov dword [esp], esi
call sym.sqlite3.dll_sqlite3_free
cmp dword [ebp - 0x20], 1
jne 0x61e739a3
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x61e739b0
xor edi, edi
xor esi, esi
jmp 0x61e739f5
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_step
cmp eax, 0x64
jne 0x61e739aa
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_column_int64
mov ecx, dword [ebx + 0x18]
mov ecx, dword [ecx + 0x2c]
test ecx, ecx
je 0x61e73a83
cmp edx, dword [ecx + 0x14]
jne 0x61e739e8
cmp eax, dword [ecx + 0x10]
je 0x61e739ed
mov ecx, dword [ecx + 4]
jmp 0x61e739d6
mov eax, dword [ecx]
mov edi, dword [eax + 0xc]
mov esi, dword [eax + 0x10]
cmp dword [ebp - 0x20], 0
jne 0x61e73a3c
test esi, esi
jne 0x61e73a3c
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_finalize
test eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
jne 0x61e73a74
mov eax, dword [ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], str.no_such_fts5_table:__s._s
mov dword [esp + 4], eax
call sym.sqlite3.dll_sqlite3_mprintf
mov dword [ebp - 0x20], 1
mov dword [ebx + 8], eax
cmp dword [ebp - 0x20], 0
jne 0x61e73a74
mov edx, dword [edi + 0xc]
lea eax, [ebp - 0x20]
shl edx, 4
add edx, 0x48
call sym._sqlite3Fts5MallocZero
test eax, eax
je 0x61e73a74
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0xc]
mov dword [eax + 8], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 4], edx
lea edx, [eax + 0x48]
mov dword [eax + 0x24], edx
lea edx, [edx + ecx*8]
mov dword [eax + 0x28], edx
jmp 0x61e73a8a
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_finalize
xor eax, eax
jmp 0x61e73a8a
mov eax, dword [pe_dos_header]
ud2
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0x20]
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x61e77adc
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x4c
mov eax, dword [eax + 0x14]
mov dword [esp], str.SELECT_1_FROM__Q.sqlite_master_WHERE_tbl_name_q_stat
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 4], eax
call sym.sqlite3.dll_sqlite3_mprintf
test eax, eax
je 0x61e77b6e
mov edi, eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x1c], 0
mov dword [esp], eax
call sym._sqlite3_prepare_v2
test eax, eax
jne 0x61e77b5e
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_step
mov esi, eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_finalize
test eax, eax
jne 0x61e77b5e
cmp esi, 0x64
sete byte [ebx + 0xe5]
mov dword [esp], edi
mov dword [ebp - 0x2c], eax
call sym.sqlite3.dll_sqlite3_free
mov eax, dword [ebp - 0x2c]
jmp 0x61e77b73
mov eax, 7
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x61e77b7b
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0xe5], 2
mov dword [eax + 0x34], 0
jne 0x61e77b97
pop ebp
jmp sym._fts3SetHasStat.part.536
xor eax, eax
pop ebp
ret
Function at 0x61e7fcd1
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0x14], 0
mov dword [ebp + 8], ebx
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x10], ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp + 0xc], ebx
pop ebx
pop ebp
jmp sym._rtreeInit

Function at 0x61e7fcfe
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0x14], 1
mov dword [ebp + 8], ebx
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x10], ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp + 0xc], ebx
pop ebx
pop ebp
jmp sym._rtreeInit

Function at 0x61e874b0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], 0x61e9aa8c
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable
Function at 0x61e87510
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x61e9c938]
test esi, esi
jle 0x61e875fd
mov edi, dword [0x61e9c93c]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x61e87544
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x61e875f6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x61e87530
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x61e8763a
lea ebx, [esi + esi*2]
mov esi, dword [0x61e9c93c]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x61e9c93c]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x61e8761a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x61e875ef
sub eax, 0x40
and eax, 0xffffffbf
je 0x61e875ef
mov eax, dword [esp + 0x20]
add ebx, dword [0x61e9c93c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x61e87604
add dword [0x61e9c938], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x61e8754e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x61e9c93c]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
Function at 0x1002029
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x330
push edi
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x23c], edi
mov word [ebp - 0x210], ss
mov word [ebp - 0x21c], cs
mov word [ebp - 0x240], ds
mov word [ebp - 0x244], es
mov word [ebp - 0x248], fs
mov word [ebp - 0x24c], gs
pushfd
pop dword [ebp - 0x218]
mov dword [ebp - 0x2d8], 0x10001
mov eax, dword [ebp + 4]
mov dword [ebp - 0x220], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x214], eax
lea eax, [ebp + 4]
mov eax, dword [eax - 4]
mov dword [ebp - 0x224], eax
push 0x14
pop ecx
xor eax, eax
lea edi, [ebp - 0x330]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x330], 0xc0000409
mov eax, dword [ebp + 4]
mov dword [ebp - 0x324], eax
lea eax, [ebp - 0x330]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x2d8]
mov dword [ebp - 4], eax
mov eax, dword [0x1006034]
mov dword [ebp - 0x2e0], eax
mov eax, dword [0x1006030]
mov dword [ebp - 0x2dc], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
leave
ret
Function at 0x1002653
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1006034]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1006040]
je 0x10024c9
inc eax
cmp eax, 0x12
jb 0x10024ba
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1006040]
mov dword [ebp - 0x110], esi
jne 0x1002674
mov eax, dword [0x10062a8]
cmp eax, 1
je 0x1002642
test eax, eax
jne 0x10024ff
cmp dword [0x100603c], 1
je 0x1002642
cmp ecx, 0xfc
je 0x1002674
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100253a
push 5
pop ecx
mov esi, 0x10015c4
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x10c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002545
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x100257d
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100255d
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x10015c0
push ebx
call fcn.01003270
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002582
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x1006044]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100259c
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01003000
mov edx, esp
push 6
pop ecx
mov esi, 0x10015a4
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10025c8
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10025d4
mov ecx, eax
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, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10025ed
mov eax, dword [ebp - 0x110]
mov esi, 0x10015a0
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x1006044]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100260b
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1002617
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001578
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0100316f
add esp, 0xc
jmp 0x1002674
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1002674
mov esi, dword [esi + 0x1006044]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x1002659
push 0
sub ecx, edx
lea edx, [ebp - 0x114]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x120]
mov ecx, dword [ebp - 4]
call fcn.01001f9a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10036d6
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1006034]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, 0xfffffffe
mov dword [ebp - 4], eax
push edi
mov dword [0x1006448], ebx
jne 0x1003689
mov dword [0x1006448], 1
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
jmp 0x10036b4
cmp esi, 0xfffffffd
jne 0x10036a0
mov dword [0x1006448], 1
call dword [sym.imp.KERNEL32.dll_GetACP]
jmp 0x10036b4
cmp esi, 0xfffffffc
jne 0x10036b9
mov eax, dword [0x100642c]
mov dword [0x1006448], 1
mov dword [ebp + 8], eax
mov esi, eax
cmp esi, dword [0x10065e4]
je 0x1003828
cmp esi, ebx
je 0x100381e
xor edx, edx
xor eax, eax
cmp dword [eax + 0x1006188], esi
je 0x1003740
add eax, 0x30
inc edx
cmp eax, 0xf0
jb 0x10036d1
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
cmp eax, 1
jne 0x1003816
push 0x40
xor eax, eax
pop ecx
mov edi, 0x10064e0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
xor edi, edi
inc edi
cmp dword [ebp - 0x18], edi
mov dword [0x10065e4], esi
mov dword [0x10064c8], ebx
jbe 0x1003804
cmp byte [ebp - 0x12], 0
je 0x10037df
lea ecx, [ebp - 0x11]
mov dl, byte [ecx]
test dl, dl
je 0x10037df
movzx eax, byte [ecx - 1]
movzx edx, dl
jmp 0x10037cf
push 0x40
xor eax, eax
pop ecx
mov edi, 0x10064e0
rep stosd dword es:[edi], eax
lea ecx, [edx + edx*2]
shl ecx, 4
mov dword [ebp - 0x1c], ebx
stosb byte es:[edi], al
lea ebx, [ecx + 0x1006198]
mov al, byte [ebx]
mov esi, ebx
jmp 0x100378b
mov dl, byte [esi + 1]
test dl, dl
je 0x100378f
movzx eax, al
movzx edi, dl
cmp eax, edi
ja 0x1003787
mov edx, dword [ebp - 0x1c]
mov dl, byte [edx + 0x1006180]
or byte [eax + 0x10064e1], dl
inc eax
cmp eax, edi
jbe 0x100377c
inc esi
inc esi
mov al, byte [esi]
test al, al
jne 0x1003762
inc dword [ebp - 0x1c]
add ebx, 8
cmp dword [ebp - 0x1c], 4
jb 0x100375c
mov eax, dword [ebp + 8]
mov dword [0x10065e4], eax
mov dword [0x10064cc], 1
call fcn.01003454
lea esi, [ecx + 0x100618c]
mov edi, 0x10065f0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [0x10064c8], eax
movsd dword es:[edi], dword [esi]
jmp 0x1003823
or byte [eax + 0x10064e1], 4
inc eax
cmp eax, edx
jbe 0x10037c7
inc ecx
inc ecx
cmp byte [ecx - 1], 0
jne 0x100372a
mov eax, edi
or byte [eax + 0x10064e1], 8
inc eax
cmp eax, 0xff
jb 0x10037e1
mov eax, esi
call fcn.01003454
mov dword [0x10064c8], eax
mov dword [0x10064cc], edi
jmp 0x100380a
mov dword [0x10064cc], ebx
xor eax, eax
mov edi, 0x10065f0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jmp 0x1003823
cmp dword [0x1006448], ebx
je 0x100382c
call fcn.01003488
call fcn.010034b8
xor eax, eax
jmp 0x100382f
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01001f9a
leave
ret