joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407d26
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp], 1
call fcn.00407cd3
test eax, eax
push edx
je 0x407d62
mov dword [esp + 8], 5
mov dword [esp + 4], ebx
mov dword [esp], esi
call eax
sub esp, 0xc
test eax, eax
jne 0x407fb7
test ebx, ebx
mov dword [0x425980], 0x4c554e
je 0x407dc4
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.004075b6
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x425980
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
sub esp, 0xc
cmp eax, 0x400
jg 0x407fbd
test eax, eax
je 0x407fbd
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x425d80
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
sub esp, 0xc
cmp eax, 0x400
jg 0x407fbd
test eax, eax
je 0x407fbd
mov dword [esp + 0xc], 0x425d80
mov dword [esp + 8], 0x425980
mov dword [esp + 4], str._s_s_r_n
mov dword [esp], 0x426180
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x426b38]
mov eax, dword [eax + 0x128]
mov dword [esp], 0x425d80
mov dword [esp + 4], eax
call fcn.00407903
push edi
push edi
mov dword [esp + 8], 4
mov dword [esp + 4], 0xc0000000
mov dword [esp], 0x425d80
call fcn.004075b6
sub esp, 0xc
cmp eax, 0xffffffff
mov edi, eax
je 0x407fb7
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp - 0x2c]
push ecx
mov ebx, eax
push ecx
lea eax, [eax + edx + 0xa]
mov dword [esp + 4], eax
mov dword [esp], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
push esi
push esi
mov esi, eax
je 0x407fad
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x407fad
jmp 0x43baf0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
inc dword [0x426b08]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x4082c4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x4266c4], 0
mov ebp, esp
push edi
mov ecx, dword [ebp + 0xc]
push esi
push ebx
mov ebx, dword [ebp + 0x10]
jne 0x408305
xor edx, edx
mov eax, edx
mov esi, 8
mov edi, eax
and eax, 1
neg eax
shr edi, 1
and eax, 0xedb88320
xor eax, edi
dec esi
jne 0x4082e2
mov dword [edx*4 + 0x4266c0], eax
inc edx
cmp edx, 0x100
jne 0x4082db
mov eax, dword [ebp + 8]
not eax
jmp 0x40831f
mov dl, byte [ecx]
dec ebx
inc ecx
xor edx, eax
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0x4266c0]
test ebx, ebx
jne 0x40830c
pop ebx
not eax
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x401e60
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x401ed0
xor eax, eax
jmp 0x401fb1
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
jne 0x401ee8
xor eax, eax
jmp 0x401fb1
push ebp
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
call fcn.004018b0
mov esp, ebp
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x4893bfc
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..didat
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x24a63068
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4012d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x403680
push 0x401483
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x404004]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push eax
push ebx
push ecx
push edx
mov eax, 0x2b26ac34
add eax, 0x2b26ac34
nop
mov ecx, 0xa
mov ecx, 0x2b2c
add ecx, 0x2b2c
in eax, dx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], ecx
pop edx
pop ecx
pop ebx
pop eax
jmp 0x401342
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0x58], 0x76646d63
mov dword [ebp - 0x54], 0x32337472
mov dword [ebp - 0x50], 0x6c6c642e
mov dword [ebp - 0x30], 0x6e497853
mov dword [ebp - 0x2c], 0x6c6c642e
mov dword [ebp - 0x24], 0x2e326653
mov word [ebp - 0x20], 0x6c64
mov byte [ebp - 0x1e], 0x6c
mov dword [ebp - 0x3c], 0x68786e73
mov dword [ebp - 0x38], 0x6c642e6b
mov byte [ebp - 0x34], 0x6c
mov dword [ebp - 0x48], 0x65696453
mov dword [ebp - 0x44], 0x2e6c6c44
mov word [ebp - 0x40], 0x6c64
mov byte [ebp - 0x3e], 0x6c
cmp dword [ebp - 0x5c], 0x564d5868
je 0x4013ec
lea eax, [ebp - 0x58]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call esi
test eax, eax
jne 0x4013ec
lea eax, [ebp - 0x30]
push eax
call esi
test eax, eax
jne 0x4013ec
lea eax, [ebp - 0x24]
push eax
call esi
test eax, eax
jne 0x4013ec
lea eax, [ebp - 0x3c]
push eax
call esi
test eax, eax
jne 0x4013ec
lea eax, [ebp - 0x48]
push eax
call esi
test eax, eax
jne 0x4013ec
xor al, al
jmp 0x4013ee
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004014b2
mov esp, ebp
pop ebp
ret

Function at 0x401cbd
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401cfc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401cfc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401cfc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401cfc
cmp dword [ecx + 0x74], 0xe
jbe 0x401cfc
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1e7a2610
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
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.1e7a16f2
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1e7a16a7
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.1e7a16e2
test al, 0xd4
xor al, 0x68
add al, 1
add byte [eax], al
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.1e7a16e2
cmc
cmp ecx, dword [ecx - 0x1f9a7f3d]
add byte [eax - 0x39ff1e9b], al
inc ebp
loop 0x1e7a2725
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.1e7a16f2
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1e7a16a7
add esp, 0xc
mov dword [ebp - 0x370], eax
lea eax, [ebp - 0x654]
push eax
push 0x104
call dword [ebp - 0x370]
mov dword [ebp - 0x550], eax
mov eax, dword [ebp - 0x28]
movsx eax, byte [ebp + eax - 0x12d]
cmp eax, 0x5c
jne 0x1e7a278e
inc ebp
ljmp 0xc6b2
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
invalid
invalid
Function at 0x8e11e8
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8e11ee
pop ebp
sub ebp, 6
sub ebp, 0x4e11e8
jmp 0x8e124c
and bl, bl
xchg ebp, eax
pop edx
fcom dword [esi + 0x6a]
mov ebx, dword [esi + 0x486ebe51]
fisub word [edx]
mov ebp, 0x77e2a302
mov byte [esi - 0x10], bh
shl dword [edi - 0x17], 1
jmp 0x8e1255
add al, 0
add byte [eax], al
push edx
inc ecx
cmp byte [ecx], ah
mov eax, 0x4e11e8
add eax, ebp
add eax, 0x93
mov ecx, 0x637
mov edx, 0x927add20
xor byte [eax], dl
inc eax
dec ecx
jne 0x8e126c
jmp 0x8e127f
dec edx
pushal
dec eax
and byte [eax], dh
and byte [eax], ah
dec eax
and ah, ch
or al, 0x20
mov eax, dword [0xa5380dd0]
loopne 0x8e1233
ror byte [0x13e0a538], 1
loopne 0x8e130a
fbstp tbyte [ebp + 0x2064711c]
jo 0x8e124d
in eax, dx
stosd dword es:[edi], eax
test eax, 0x2020201c
mov eax, dword [0x2020d8e1]
and byte [ebx], ah
in eax, dx
cwde
and byte es:[eax], ah
and byte [edx + 0x20202008], bl
xlatb
ret 0xe823
stosd dword es:[edi], eax
movsd dword es:[edi], dword [esi]
sub byte [eax], ah
and byte [eax], ah
stosd dword es:[edi], eax
mov ch, 0x2c
and byte [eax], ah
and byte [eax], ah
and byte [ebx + 0x20202cb5], ch
and byte [ebx + 0x202030ad], ch
and cl, ah
leave
and dl, byte [ecx]
and ah, byte [ebx + 0x2f6924e2]
movsd dword es:[edi], dword [esi]
aam 0xdf
invalid
sub al, 0x20
stosd dword es:[edi], eax
lodsb al, byte [esi]
add al, 0x24
and byte [eax], ah
and byte [eax + 0x49], cl
pop ss
sub dword [eax], esp
dec eax
pop esp
cli
and byte fs:[ecx], ah
or al, 4
jno 0x8e12ea
and eax, 0xc9202020
pop ds
and ah, byte [eax]
and byte [ebp + 0x74], dh
jge 0x8e130e
push ebp
sub al, 0xdf
push ebp
sub al, cl
push edx
and byte [eax], ah
and byte [ebx + 0x2020289d], ch
and byte [ecx - 0x6514b32f], ah
jnp 0x8e12e7
ror dword [ebx + ebp*8 - 0x66], 1
jnp 0x8e135f
jmp 0xc9320564
inc esi
stosd dword es:[edi], eax
cmp al, 0x19
mov al, byte [0xa42fc8db]
cmp ah, byte [eax]
and byte [eax], ah
mov al, byte [0xa42fc9db]
xor dword [eax], esp
and byte [eax], ah
inc esi
mov eax, dword [0x2f05dfdb]
movsb byte es:[edi], byte [esi]
xor eax, 0x61202020
leave
in al, dx
invalid
Function at 0x4d856e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4d860b
push ebx
push esi
call fcn.004d8537
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004d3b8e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4d85b8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4d860a
push edi
push eax
call fcn.004d10bf
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4d85d8
call fcn.004d1981
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4d8609
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004d3b8e
add esp, 0x20
test eax, eax
jne 0x4d85f7
push edi
call fcn.004d1981
jmp 0x4d85ff
push ebx
call fcn.004d1981
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4d860e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4d861f
pop esi
ret
push ebx
push edi
push esi
call fcn.004d8537
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004d10bf
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4d8647
push ebx
push esi
push edi
call fcn.004b8970
add esp, 0xc
push 0
call fcn.004d1981
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4e7a88
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x4e7ad4
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
ror byte [ecx - 0x35c4f7b3], 1
ror byte [ecx - 0x35c4f7b3], 1
jae 0x4e7acf
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x4e7ab9
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x4e7ac1
cmp edx, ebx
jne 0x4e7c0f
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x4e7a90
add eax, dword [eax + 4]
jmp 0x4e7a7d
mov dword [ebp + 0xc], ebx
jmp 0x4e7adf
Function at 0x4e7af3
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4e7af7
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
add byte [eax - 0x15], ah
push ds
add byte [eax - 0x15], ah
push ds
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4e7b73
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
jge 0x4e7b52
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4e7b5a
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4e7b63
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4e7b6d
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4e7b4f
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4e7ad9
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4e7bc0
dec eax
je 0x4e7bb7
sub eax, 3
je 0x4e7bae
mov dword [ebp - 4], 0x40
jmp 0x4e7bdd
mov dword [ebp - 4], 4
jmp 0x4e7bc3
mov dword [ebp - 4], 0x20
jmp 0x4e7bc3
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4e7c0f
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4e7b8f
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004e7420
push 0xffe972f8
jne 0x4e7c1a
push 1
push esi
call edi
mov eax, esi
jmp 0x4e7c1b
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4e7b40
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4e7af7
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
add byte [eax - 0x15], ah
push ds
add byte [eax - 0x15], ah
push ds
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4e7b73
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
jge 0x4e7b52
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4e7b5a
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4e7b63
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4e7b6d
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4e7b4f
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4e7ad9
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4e7bc0
dec eax
je 0x4e7bb7
sub eax, 3
je 0x4e7bae
mov dword [ebp - 4], 0x40
jmp 0x4e7bdd
mov dword [ebp - 4], 4
jmp 0x4e7bc3
mov dword [ebp - 4], 0x20
jmp 0x4e7bc3
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4e7c0f
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4e7b8f
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004e7420
push 0xffe972f8
jne 0x4e7c1a
push 1
push esi
call edi
mov eax, esi
jmp 0x4e7c1b
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4f0a56
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push dword [ebp + 8]
call fcn.004f0a27
mov esi, eax
pop ecx
test esi, esi
je 0x4f0af3
mov eax, dword [esi + 0x3c]
push edi
mov edi, dword [eax + esi + 0x78]
mov edx, dword [eax + esi + 0x7c]
add edi, esi
dec edx
add edx, edi
mov dword [ebp - 8], edx
mov eax, dword [edi + 0x20]
test eax, eax
je 0x4f0af2
mov ecx, dword [edi + 0x1c]
add eax, esi
mov dword [ebp - 4], eax
add ecx, esi
mov eax, dword [edi + 0x24]
push ebx
add eax, esi
mov dword [ebp - 0x10], ecx
xor ebx, ebx
mov dword [ebp - 0xc], eax
cmp dword [edi + 0x18], ebx
jbe 0x4f0af1
movzx eax, word [eax + ebx*2]
mov ecx, dword [ecx + eax*4]
add ecx, esi
cmp ecx, edi
jb 0x4f0ab9
cmp ecx, edx
jbe 0x4f0ae5
mov eax, dword [ebp - 4]
push dword [ebp + 0x10]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 1
mov eax, dword [eax + ebx*4]
add eax, esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
call dword [ebp + 0xc]
pop ecx
pop ecx
test eax, eax
je 0x4f0af1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
inc ebx
mov ecx, dword [ebp - 0x10]
cmp ebx, dword [edi + 0x18]
jb 0x4f0aa8
pop ebx
pop edi
pop esi
leave
ret

Function at 0x4f25cc
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push eax
push 0x4f25ee
push eax
push eax
call fcn.0044ad85
add esp, 0x10
mov dword [0x791d6c], eax
call sub.KERNEL32.dll_TlsAlloc
mov dword [0x791d88], eax
ret

Function at 0x4f3890
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4f38bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4f38bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1003518
Capabilities:
Query environment variable
Set environment variable
Write file on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
push ebx
push ebx
push 0x1002388
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x10035e3
push esi
mov esi, 0x100afa0
push esi
push 0x1002378
push 0x100ad60
call fcn.01002a1f
push ebx
push 0x4000002
push 1
push ebx
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, eax
cmp edx, 0xffffffff
mov dword [0x100a024], edx
je 0x10035e2
push ebp
push edi
mov ebp, 0x100a5a0
xor eax, eax
push ebx
mov ecx, 0xc5
mov edi, ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
mov edi, 0x314
push edi
push ebp
push edx
mov dword [0x100a5a0], 0x6e776453
mov dword [0x100a5a4], 0x10000
mov dword [0x100a5a8], 0xc0000013
mov byte [0x100a7b0], bl
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10035cd
cmp dword [esp + 0x10], edi
jne 0x10035cd
push esi
push 0x1002388
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x10035e0
push dword [0x100a024]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x100a024], 0xffffffff
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x10035e6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x1003600
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [0x101b0c0], 0
jne 0x1003661
lea eax, [ebp - 0x280]
push eax
push 0x200
push esi
call fcn.01002b42
lea eax, [ebp - 0x280]
push eax
call fcn.012e2000
push 0x80
lea eax, [ebp - 0x80]
push eax
push 0x20000003
push dword [0x100a05c]
mov byte [ebp - 0x80], 0
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10010
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x280]
push eax
push dword [0x100aae4]
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.01002baa
test esi, esi
jne 0x100366b
inc esi
cmp dword [0x100a060], 0
je 0x1003686
push 0x100ad40
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and dword [0x100a060], 0
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]