joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4306b0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4306c1
sub eax, edx
mov esi, eax
lea eax, [esi + esi]
push eax
mov dword [ebp - 0xc], eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4306ec
pop edi
pop esi
lea eax, [ebx + 0x1b]
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.00430640
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x43076b
mov edx, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x8002
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x43075f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
push 0
push eax
push ebx
push ecx
mov dword [ebp - 0x10], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov eax, dword [ebp - 4]
push 0
lea edx, [ebp - 0x10]
push edx
push esi
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [ebp - 8]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov dword [esi + 0x10], eax
push ebx
mov byte [esi + 0x14], al
call dword [0x440004]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430a50
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x430a83
mov ecx, dword [esi]
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
pop ebp
ret

Function at 0x4321f0
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x432212
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x432206
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x432244
cmp dword [esi + 8], 0
jne 0x432236
mov ecx, dword [eax + 8]
push 0x43da8c
push ecx
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x432236
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call dword [sym.imp.MSVCR100.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x432267
mov eax, dword [esi + 8]
test eax, eax
je 0x432261
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x433750
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x43377b
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
add edx, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], edx
cmp ebx, dword [esi + 0x10]
jbe 0x4337c2
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebx
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov eax, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], eax
jmp 0x4337c5
mov ebx, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
mov edx, dword [esi]
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi]
push eax
call ecx
mov eax, dword [ebp + 0x10]
add esp, 8
mov dword [ebp - 4], 0
test eax, eax
je 0x433826
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea esp, [esp]
mov dl, byte [ebx]
xor dl, 0x36
mov byte [ebp + 0xb], dl
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
lea eax, [ebp + 0xb]
push eax
push ecx
call edx
mov al, byte [ebx]
xor al, 0x5c
mov byte [ebp + 0xb], al
mov edx, dword [edi + 8]
mov eax, dword [esi + 4]
push 1
lea ecx, [ebp + 0xb]
push ecx
push edx
inc ebx
call eax
add esp, 0x18
dec dword [ebp - 8]
jne 0x4337f0
mov ecx, dword [ebp - 4]
pop ebx
cmp ecx, dword [esi + 0x10]
jae 0x43385f
nop
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push 1
push 0x43de37
push edx
call eax
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
push 0x43de38
push ecx
call edx
mov eax, dword [ebp - 4]
inc eax
add esp, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x10]
jb 0x433830
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43434a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x440034]
jne 0x434354
repz ret
jmp fcn.00434a6b
Function at 0x100149c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x100149cf
pop dword [ebp - 0x24]
mov eax, 0x9e6e1cdb
add eax, 0x71932cf4
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xc6a4dd63
add dword [ebp - 0x34], 0x87ad67e8
mov dword [ebp - 0x30], 0xda68dba7
add dword [ebp - 0x30], 0x57ca709e
mov dword [ebp - 0x2c], 0xf1c00c36
sub dword [ebp - 0x2c], 0xa573c808
mov dword [ebp - 0x28], 0xf8b80939
sub dword [ebp - 0x28], 0xf8b80939
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x9718f941
add dword [ebp - 0x34], 0xdd597015
mov dword [ebp - 0x30], 0x789ff4e4
add dword [ebp - 0x30], 0xc8cc6c91
mov dword [ebp - 0x2c], 0xcfbd03f8
sub dword [ebp - 0x2c], 0x6c4d978c
mov dword [ebp - 0x28], 0xd4ad0520
sub dword [ebp - 0x28], 0xd4ad0520
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x48231
push 0
call eax
mov ecx, 0x34b55d30
sub ecx, 0x34b5111a
xor ebx, ebx
add ebx, eax
mov edi, 0x3018dcb
sub edi, 0xf2fc0fcb
add edi, dword [ebp - 0x24]
mov edx, 0xca2c73ad
mov esi, dword [edi]
mov dword [ebp - 0x1c], 0xf411fdef
sub esi, edx
mov dword [ebp - 8], 0x94c17ee4
mov dword [ebx], esi
xor dword [ebp - 0x18], eax
add ebx, 4
add edi, 4
loop 0x10014ae3
add eax, 0x3d8a7a3e
add eax, 0xc276a8ed
mov ebx, eax
add eax, 0xdf5cbe03
sub eax, 0xdf5cbdfe
mov ecx, 0x10000000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x100346a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100512d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100346d0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10034700
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10034700
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x100347fa
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10034729
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1003475d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x100347fa
cmp eax, 1
jle 0x100347bb
cmp eax, 3
jne 0x100347fa
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.100149c0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100347d9
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100347fa
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x100347fa
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
Function at 0x100396b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100412f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100512d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1005128c]
cmp eax, 0xffffffff
jne 0x100396e6
xor ebx, ebx
jmp 0x100396ef
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1003972f
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003976e
test esi, esi
jne 0x10039772
push 0x10038230
push 0x10052ad8
call fcn.100149c0
mov eax, dword [0x1005128c]
add esp, 8
cmp eax, 0xffffffff
je 0x1003972f
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003975c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003975c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100397b4
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003979d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10039772
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10039700
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100397d9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100397d9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.100149c0
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x100397c0
jmp 0x10039700
Function at 0x403444
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4c2008], 0x8088405
inc edx
mov dword [ebx + 0x4c2008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4096e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x409732
test eax, edx
je 0x409735
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4096f5
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40971b
add ecx, 4
js 0x40970b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409718
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x409741
test edx, edx
jne 0x4096e8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x426598
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42659e
ret
Function at 0x43a648
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x43a813
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.004055f4
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, 0x43a82c
call fcn.00405188
mov eax, ebx
call fcn.00423254
mov edi, eax
dec edi
test edi, edi
jl 0x43a700
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.00423228
mov edx, dword [0x434518]
call fcn.00404058
test al, al
je 0x43a6fc
push dword [ebp - 8]
mov edx, esi
mov eax, ebx
call fcn.00423228
lea edx, [ebp - 0x14]
call fcn.004513fc
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.004055f4
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405204
inc esi
dec edi
jne 0x43a6ae
movzx eax, byte [0x43a830]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x43a83c
mov eax, dword [ebp - 8]
call fcn.0040ea08
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.00404f08
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.004513fc
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x43a82c
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x360]
call fcn.004513fc
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x43a82c
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x43a82c
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x43a848
call fcn.0040abc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a81a
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00404e94
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404e94
lea eax, [ebp - 0x14]
call fcn.00404e70
lea eax, [ebp - 0x10]
call fcn.00404e70
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404e94
ret
Function at 0x47cb70
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
ret

Function at 0x4a1ca8
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffefc
mov ebp, edx
mov dword [esp], eax
test ecx, ecx
jle 0x4a1cc3
cmp ecx, 0x100
jle 0x4a1cd9
mov ecx, 0x4a1d6c
mov dl, 1
mov eax, dword [0x4087cc]
call fcn.0040d62c
call fcn.00404804
xor ebx, ebx
mov esi, dword [esp]
lea edi, [esp + 4]
mov byte [esi], bl
mov eax, ebx
cdq
idiv ecx
add edx, ebp
movzx eax, byte [edx]
mov byte [edi], al
inc ebx
inc edi
inc esi
cmp ebx, 0x100
jne 0x4a1ce2
xor esi, esi
mov ebx, pe_nt_image_headers32
mov eax, dword [esp]
lea edi, [esp + 4]
movzx edx, byte [eax]
movzx ecx, dl
add esi, ecx
movzx ecx, byte [edi]
add esi, ecx
and esi, 0xff
mov ecx, dword [esp]
movzx ecx, byte [ecx + esi]
mov byte [eax], cl
mov ecx, dword [esp]
mov byte [ecx + esi], dl
inc edi
inc eax
dec ebx
jne 0x4a1d09
mov edx, dword [esp]
add edx, 0x100
mov eax, dword [esp]
mov ecx, pe_nt_image_headers32
call fcn.0040315c
add esp, 0x104
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4a1d84
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebp, dword [ebp + 8]
cmp ebp, 0
jle 0x4a1dbf
mov esi, edx
mov edi, ecx
mov ebx, eax
xor eax, eax
xor edx, edx
inc al
movzx ecx, byte [eax + ebx]
add dl, cl
mov ch, byte [edx + ebx]
mov byte [eax + ebx], ch
mov byte [edx + ebx], cl
add cl, ch
xor ch, ch
mov cl, byte [ecx + ebx]
xor cl, byte [esi]
mov byte [edi], cl
inc esi
inc edi
sub ebp, 1
jne 0x4a1d9c
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4a6a64
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
push 0
push 0
call fcn.004a2e0c
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
cmp ebx, 0x138
jb 0x4a6af7
xor edx, edx
push ebp
push 0x4a6afd
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, esi
xor edx, edx
push ebp
push 0x4a6aec
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [eax], 0x5a4d
jne 0x4a6ace
mov eax, dword [eax + 0x3c]
lea ecx, [esi + eax]
cmp dword [ecx], 0x4550
jne 0x4a6ace
cmp word [ecx + 4], 0x14c
jne 0x4a6ace
mov eax, dword [ecx + 8]
xor edx, edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6af3
ret
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4bafd4
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
mov ebp, ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x38]
mov dword [esp + 8], eax
mov eax, dword [ebp]
lea ebx, [eax + 0x18]
movzx edx, word [eax + 0x14]
add ebx, edx
movzx esi, word [eax + 6]
dec esi
test esi, esi
jl 0x4bb09c
inc esi
mov ecx, dword [ebp + 4]
add ecx, dword [ebx + 0xc]
mov edi, dword [ebx + 0x10]
test edi, edi
jne 0x4bb05b
mov eax, dword [esp + 8]
cdq
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
cmp dword [esp + 0x14], 0
jne 0x4bb033
cmp dword [esp + 0x10], 0
jbe 0x4bb092
jmp 0x4bb035
jle 0x4bb092
push 0x40
push 0x1000
mov eax, dword [esp + 0x18]
push eax
push ecx
call fcn.004079fc
mov edi, eax
mov dword [ebx + 8], edi
mov eax, edi
xor ecx, ecx
mov edx, dword [esp + 0x10]
call fcn.004036d8
jmp 0x4bb092
mov eax, edi
xor edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
push 0x40
push 0x1000
mov eax, dword [esp + 0x18]
push eax
push ecx
call fcn.004079fc
mov edi, eax
mov eax, dword [esp]
mov edx, dword [ebx + 0x14]
lea edx, [eax + edx]
mov ecx, dword [esp + 0x10]
mov eax, edi
call fcn.004082bc
mov dword [ebx + 8], edi
add ebx, 0x28
dec esi
jne 0x4bb009
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4bb3c0
Capabilities:
Enumerate pe sections
Inspect section memory permissions

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe8
mov edi, eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov ecx, dword [edi]
lea eax, [ecx + 0x18]
xor edx, edx
push edx
push eax
movzx eax, word [ecx + 0x14]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov ebx, eax
movzx esi, word [ecx + 6]
dec esi
test esi, esi
jl 0x4bb50c
inc esi
xor ecx, ecx
mov eax, dword [ebx + 0x24]
mov edx, eax
and edx, 0x20000000
cmp edx, 0x20000000
jne 0x4bb419
or ecx, 0x10
mov edx, eax
and edx, 0x40000000
cmp edx, 0x40000000
jne 0x4bb42c
or ecx, 2
mov edx, eax
and edx, 0x80000000
cmp edx, 0x80000000
jne 0x4bb43f
or ecx, 8
mov edx, eax
and edx, 0x4000000
cmp edx, 0x4000000
jne 0x4bb455
or ecx, 0x200
and eax, 0x2000000
cmp eax, 0x2000000
jne 0x4bb482
push 0x4000
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [ebx + 8]
xor edx, edx
or eax, dword [esp + 0x10]
or edx, dword [esp + 0x14]
push eax
call fcn.00407a0c
jmp 0x4bb505
mov eax, dword [ebx + 0x10]
xor edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
cmp dword [esp + 0x14], 0
jne 0x4bb4d6
cmp dword [esp + 0x10], 0
jne 0x4bb4d6
mov eax, dword [ebx + 0x24]
mov edx, eax
and edx, 0x40
cmp edx, 0x40
jne 0x4bb4bb
mov eax, dword [edi]
mov eax, dword [eax + 0x20]
xor edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jmp 0x4bb4d6
and eax, 0x80
cmp eax, 0x80
jne 0x4bb4d6
mov eax, dword [edi]
mov eax, dword [eax + 0x24]
xor edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
cmp dword [esp + 0x14], 0
jne 0x4bb4e6
cmp dword [esp + 0x10], 0
jbe 0x4bb502
jmp 0x4bb4e8
jle 0x4bb502
push esp
push ecx
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [ebx + 8]
xor edx, edx
or eax, dword [esp + 0x14]
or edx, dword [esp + 0x18]
push eax
call fcn.00407a14
add ebx, 0x28
dec esi
jne 0x4bb401
add esp, 0x18
pop edi
pop esi
pop ebx
ret