joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4972c7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x5328d0]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [esp + 0x1c], ecx
lea edi, [esp + 0x30]
mov dword [esp + 0x18], eax
xor eax, eax
and dword [esp + 0x14], eax
push 8
pop ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x50], 3
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], edx
mov edi, 0x4036f8
and dword [esp + 0x20], 0
xor ebx, ebx
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x497332
lea ebx, [esp + 0x24]
add ebx, eax
mov byte [ebx], 0
xor esi, esi
cmp dword [edi - 0x18], esi
je 0x4973a4
xor ecx, ecx
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x20]
push eax
lea eax, [edi - 0x10]
push eax
mov eax, dword [edi - 0x14]
add eax, ecx
mov ecx, edx
push eax
call fcn.0049b702
test eax, eax
js 0x497432
cmp dword [esp + 0x20], 0
jne 0x49737b
mov ecx, dword [esp + 0x10]
inc esi
mov edx, dword [esp + 0xc]
add ecx, 0xc
mov dword [esp + 0x10], ecx
cmp esi, dword [edi - 0x18]
jne 0x49733f
jmp 0x4973a4
mov esi, dword [edi - 4]
mov ecx, esi
push edi
call dword [0x5352c4]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x28]
call esi
test eax, eax
js 0x497432
mov edx, dword [esp + 0xc]
test ebx, ebx
je 0x4973a4
mov byte [ebx], 1
mov esi, dword [esp + 0x14]
add edi, 0x24
add esi, 0x24
mov dword [esp + 0x14], esi
cmp esi, 0xd8
jne 0x49731a
xor eax, eax
test eax, eax
js 0x497432
push 0x10
lea eax, [esp + 0x44]
push 0x41529c
push eax
call fcn.0051003a
mov ebx, dword [esp + 0x28]
lea esi, [esp + 0x3c]
push ecx
mov edi, esp
lea ecx, [esp + 0x40]
push ecx
neg eax
lea ecx, [esp + 0x54]
movsd dword es:[edi], dword [esi]
sbb eax, eax
and eax, ecx
mov ecx, dword [ebx + 0x5c]
push eax
push dword [esp + 0x68]
movsd dword es:[edi], dword [esi]
push 0x40cef0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00489e1c
test eax, eax
jns 0x497446
cmp eax, 0xc00000bd
jne 0x497432
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x1c]
push ecx
mov ecx, ebx
call fcn.0049ea3c
test eax, eax
js 0x497432
lea edi, [ebx + 0x78]
xor eax, eax
lea esi, [esp + 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0050e82a
mov esp, ebp
pop ebp
ret 8
cmp dword [esp + 0x2c], 0
je 0x497425
mov ecx, dword [ebx + 0x5c]
lea esi, [esp + 0x30]
sub esp, 0x10
mov edi, esp
push dword [esp + 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00489f32
test eax, eax
jns 0x497425
cmp eax, 0xc00000bd
jne 0x497432
push dword [esp + 0x2c]
mov ecx, ebx
push dword [esp + 0x1c]
push 0xc0150006
call fcn.0049ea05
jmp 0x497421
Function at 0x4c689f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x5328d0]
xor eax, esp
mov dword [esp + 0x78], eax
xor eax, eax
mov dword [esp + 0x28], edx
and dword [esp + 0x1c], eax
xor edx, edx
and dword [esp + 8], eax
inc edx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push ebx
push esi
mov ebx, dword [ecx]
lea esi, [ebp + 8]
push edi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx + 0x48]
push eax
sub esp, 0x10
mov dword [esp + 0x48], edx
mov edi, esp
mov dword [esp + 0x24], 0x2001
mov dword [esp + 0x38], edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [0x5352c4]
mov edi, dword [esp + 0x28]
mov ecx, edi
call dword [ebx + 0x48]
mov esi, eax
test esi, esi
js 0x4c6969
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x4c692a
int3
push dword [eax + 4]
lea ecx, [esp + 0x28]
call fcn.00466bed
test eax, eax
jne 0x4c6972
mov esi, 0xc0000017
mov dword [esp + 0x38], 0x43289c
push esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x40], 0x43290c
mov dword [esp + 0x44], 0xf2
mov dword [esp + 0x48], 0x43292c
call fcn.004de872
mov ebx, dword [esp + 0x24]
jmp 0x4c6a42
mov ecx, dword [esp + 0x58]
and dword [esp + 0x1c], 0
cmp dword [ecx + 4], 0
je 0x4c6a28
mov eax, dword [esp + 0x24]
xor edx, edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x18], eax
mov esi, dword [ecx]
lea eax, [esp + 0x68]
mov dword [esp + 0x48], eax
xor ebx, ebx
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x2009
mov dword [esp + 0x38], eax
inc ebx
lea eax, [esp + 0x48]
mov dword [esp + 0x4c], ebx
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x40], ebx
mov ebx, dword [edi]
add esi, edx
push eax
sub esp, 0x10
mov edi, esp
mov ecx, dword [ebx + 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [0x5352c4]
mov edi, dword [esp + 0x28]
mov ecx, edi
call dword [ebx + 0x4c]
mov esi, eax
test esi, esi
js 0x4c6969
mov esi, dword [esp + 0x70]
test esi, esi
je 0x4c6a07
mov eax, dword [esp + 0x18]
mov edi, eax
inc dword [esp + 0x14]
add eax, 0xc
mov dword [esp + 0x18], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x58]
inc eax
mov edx, dword [esp + 0xc]
add edx, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], edx
cmp eax, dword [ecx + 4]
jne 0x4c6993
push dword [esp + 0x34]
mov ebx, dword [esp + 0x28]
xor ecx, ecx
mov edx, dword [esp + 0x18]
push ebx
call fcn.004de0c7
mov esi, eax
test esi, esi
jns 0x4c6a51
test ebx, ebx
je 0x4c6a4d
push ebx
call fcn.0044e010
pop ecx
mov eax, esi
jmp 0x4c6a5e
test ebx, ebx
je 0x4c6a5c
push ebx
call fcn.0044e010
pop ecx
xor eax, eax
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0050e82a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4d5315
Capabilities:
Parse credit card information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
xor ecx, ecx
push esi
push edi
mov edi, edx
mov dword [ebp - 8], ecx
mov eax, dword [ebx + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 8], ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x14]
mov dword [edi + 4], eax
mov eax, dword [ebx + 0x1c]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ecx
mov eax, dword [ebx + 0x10]
cmp dword [ebx + 0x14], eax
jb 0x4d535f
mov dword [edi + 4], eax
mov dword [edi], 3
xor eax, eax
jmp 0x4d5429
mov esi, dword [ebx + 0x18]
mov ecx, esi
call dword [0x5352c4]
mov ecx, dword [ebp - 4]
jmp 0x4d5414
cmp ecx, 0x61
jb 0x4d537c
cmp ecx, 0x7a
jbe 0x4d53fa
lea eax, [ecx - 0x41]
cmp eax, 0x19
jbe 0x4d53fa
lea eax, [ecx - 0x30]
cmp eax, 9
jbe 0x4d53fa
cmp ecx, 0x2f
ja 0x4d53c2
cmp ecx, 0x28
jae 0x4d5400
cmp ecx, 0xa
je 0x4d5400
cmp ecx, 0xd
je 0x4d5400
cmp ecx, 0x1f
jbe 0x4d53e0
cmp ecx, 0x21
jbe 0x4d5400
cmp ecx, 0x22
jbe 0x4d53e0
cmp ecx, 0x25
jbe 0x4d5400
cmp ecx, 0x27
jne 0x4d53e0
cmp dword [ebx + 0x24], 0xa
sete al
jmp 0x4d53fc
cmp ecx, 0x3a
jb 0x4d53e0
cmp ecx, 0x3b
jbe 0x4d5400
cmp ecx, 0x3d
je 0x4d5400
cmp ecx, 0x3e
jbe 0x4d53e0
cmp ecx, 0x40
jbe 0x4d5400
cmp ecx, 0x5f
je 0x4d5400
mov eax, dword [ebp - 4]
mov dword [edi], 0xc
sub eax, dword [ebx + 0x14]
mov dword [edi + 8], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x10], eax
jmp 0x4d5358
mov al, 1
test al, al
je 0x4d53e0
mov esi, dword [ebx + 0x18]
mov ecx, esi
inc dword [ebp - 8]
mov dword [ebp - 4], edx
call dword [0x5352c4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call esi
mov ecx, eax
mov dword [ebp - 0x10], edx
cmp ecx, 0xffffffff
jne 0x4d5372
mov eax, edx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4daad9
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push edi
xor edi, edi
mov ecx, edi
cmp dword [esi + 4], edi
jbe 0x4daafe
mov edx, edi
mov eax, dword [esi + 8]
lea edx, [edx + 0x5c]
inc ecx
mov dword [eax + edx - 0x48], edi
mov dword [eax + edx - 0x54], edi
cmp ecx, dword [esi + 4]
jb 0x4daaea
push dword [esi + 8]
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esi + 0xc]
mov dword [esi + 8], edi
test ecx, ecx
je 0x4dab22
push 1
call fcn.004daad9
push esi
mov dword [esi + 0xc], edi
call fcn.0044e010
pop ecx
pop edi
mov eax, esi
pop esi
ret 4
Function at 0x4df17e
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5328d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ecx]
xor eax, eax
push esi
mov esi, dword [ecx + 8]
add ebx, esi
push edi
mov edi, edx
mov dword [ebp - 0x20c], eax
lea edx, [ebp - 0x208]
mov dword [ebp - 0x214], edi
xor ecx, ecx
mov dword [ebp - 0x21c], 0x200
mov dword [ebp - 0x220], ecx
mov eax, edx
mov dword [ebp - 0x218], eax
cmp esi, ebx
jae 0x4df360
lea eax, [ebp - 8]
mov dword [ebp - 0x224], esi
sub eax, edx
and eax, 0xfffffffe
cmp eax, 8
jl 0x4df2f4
mov al, byte [esi]
inc esi
mov byte [ebp - 0x20d], cl
mov byte [ebp - 0x20e], cl
mov byte [ebp - 0x20f], al
cmp esi, ebx
je 0x4df214
mov al, byte [esi]
mov byte [ebp - 0x20d], al
mov eax, ecx
push 2
pop ecx
jmp 0x4df21a
push 0x3d
xor ecx, ecx
pop eax
inc ecx
mov esi, dword [ebp - 0x224]
add esi, ecx
mov word [edx + 4], ax
cmp esi, ebx
je 0x4df237
mov al, byte [esi]
inc esi
mov byte [ebp - 0x20e], al
xor eax, eax
jmp 0x4df23a
push 0x3d
pop eax
movzx ecx, byte [ebp - 0x20f]
movzx edi, byte [ebp - 0x20d]
mov word [edx + 6], ax
mov eax, ecx
shr eax, 2
and ecx, 3
shl ecx, 4
movzx eax, byte [eax + 0x436770]
mov word [edx], ax
mov eax, edi
shr eax, 4
or eax, ecx
movzx ecx, byte [ebp - 0x20e]
movzx eax, byte [eax + 0x436770]
mov word [edx + 2], ax
xor eax, eax
cmp word [edx + 4], ax
jne 0x4df29c
and edi, 0xf
mov eax, ecx
shr eax, 6
shl edi, 2
or edi, eax
movzx eax, byte [edi + 0x436770]
mov word [edx + 4], ax
xor eax, eax
cmp word [edx + 6], ax
jne 0x4df2b0
and ecx, 0x3f
movzx eax, byte [ecx + 0x436770]
mov word [edx + 6], ax
mov edi, dword [ebp - 0x214]
lea eax, [ebp - 8]
add edx, 8
cmp edx, eax
jne 0x4df2e9
push edi
push fcn.004e0f10
lea edx, [ebp - 0x220]
mov dword [ebp - 0x220], 0x200
call fcn.004e18de
test eax, eax
js 0x4df366
lea edx, [ebp - 0x208]
cmp esi, ebx
jae 0x4df2f4
xor ecx, ecx
jmp 0x4df1d5
lea eax, [ebp - 0x208]
cmp edx, eax
je 0x4df360
sub edx, eax
mov dword [ebp - 0x220], edx
cmp edx, dword [ebp - 0x21c]
jbe 0x4df34b
mov esi, 0xc000042b
mov dword [ebp - 0x234], 0x435d54
push esi
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x230], 0x4360fc
mov dword [ebp - 0x22c], 0x4f5
mov dword [ebp - 0x228], 0x436114
call fcn.004de872
mov eax, esi
jmp 0x4df366
push edi
push fcn.004e0f10
lea edx, [ebp - 0x220]
call fcn.004e18de
test eax, eax
js 0x4df366
mov eax, dword [ebp - 0x20c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050e82a
leave
ret
Function at 0x4e1d4c
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, ebx
shr edi, 2
lea edx, [ecx + edi*4]
neg edi
je 0x4e1d88
imul eax, dword [edx + edi*4], 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, esi
rol eax, 0xd
imul esi, eax, 5
sub esi, 0x19ab949c
add edi, 1
jne 0x4e1d65
mov eax, ebx
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x4e1dae
sub eax, 1
je 0x4e1da5
sub eax, 1
jne 0x4e1dc4
movzx ecx, byte [edx + 2]
shl ecx, 0x10
movzx eax, byte [edx + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [edx]
xor eax, ecx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor esi, eax
xor esi, ebx
mov eax, esi
shr eax, 0x10
xor eax, esi
imul ecx, eax, 0x85ebca6b
pop edi
pop esi
pop ebx
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
pop ebp
ret 4
Function at 0x4e2413
Capabilities:
Clear file content
Write file on windows

Disassembly:
push 0x1c
mov eax, 0x5224d6
call fcn.0051d3a0
mov edi, dword [ebp + 8]
xor eax, eax
push eax
push 0x80
push 2
push eax
push 1
push 0x40000000
push edx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4e2471
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4e2456
mov eax, 0x36fd
jmp 0x4e2461
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4e2461
int3
mov dword [ebp - 0x20], 0xf6
mov dword [ebp - 0x1c], 0x41a640
jmp 0x4e24ec
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push 0
push eax
push dword [edi]
push dword [edi + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4e24b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4e249c
mov eax, 0x36fd
jmp 0x4e24a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4e24a7
int3
mov dword [ebp - 0x20], 0xff
mov dword [ebp - 0x1c], 0x438db8
jmp 0x4e24ec
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4e2528
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4e24d3
mov eax, 0x36fd
jmp 0x4e24de
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4e24de
int3
mov dword [ebp - 0x20], 0x104
mov dword [ebp - 0x1c], 0x438e30
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x438cc0
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], 0x438da8
call fcn.0044f55e
mov edi, eax
mov dword [ebp - 4], 3
test esi, esi
je 0x4e2520
cmp esi, 0xffffffff
je 0x4e2520
push esi
call dword [sym.imp.NTDLL.dll_NtClose]
or dword [ebp - 4], 0xffffffff
mov eax, edi
jmp 0x4e2540
mov dword [ebp - 4], 4
test esi, esi
je 0x4e253a
push esi
call dword [sym.imp.NTDLL.dll_NtClose]
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.0051d34a
ret 4
Function at 0x4ee46d
Capabilities:
Clear file content
Write file on windows

Disassembly:
push 0x54
mov eax, 0x5232cb
call fcn.0051d3a0
mov eax, edx
mov dword [ebp - 0x40], eax
mov ebx, ecx
xor esi, esi
lea edx, [ebp - 0x50]
mov ecx, eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
call fcn.004dcef0
xor eax, eax
mov word [ebp - 0x3c], 0xbbef
lea edi, [ebp - 0x50]
mov byte [ebp - 0x3a], 0xbf
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x30], eax
lea edi, [ebp - 0x2c]
push 3
pop edx
mov dword [ebp - 0x38], edx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x34], edx
mov esi, 0x40937c
push eax
lea eax, [ebp - 0x38]
xor ecx, ecx
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ebx
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004de0c7
mov esi, eax
test esi, esi
js 0x4ee5e9
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4ee5c2
mov edi, dword [ebp - 0x50]
lea eax, [ebp - 0x40]
and dword [ebp - 0x40], 0
push 0
push eax
push edi
push dword [ebp - 0x48]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4ee573
xor ebx, ebx
test edi, edi
je 0x4ee573
mov ecx, dword [ebp - 0x48]
mov eax, 0x4000
sub eax, ecx
mov dword [ebp - 0x44], eax
add ecx, ebx
add eax, ecx
cmp eax, edi
jae 0x4ee54c
mov eax, 0x4000
jmp 0x4ee550
mov eax, edi
sub eax, ebx
push 0
lea edx, [ebp - 0x40]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4ee593
mov eax, dword [ebp - 0x44]
add ebx, 0x4000
mov ecx, dword [ebp - 0x48]
cmp ebx, edi
jb 0x4ee53d
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4ee5a8
call fcn.004e20f1
mov esi, eax
test esi, esi
js 0x4ee58a
int3
mov dword [ebp - 0x58], 0x33c
jmp 0x4ee5ce
call fcn.004e20f1
mov esi, eax
test esi, esi
js 0x4ee59f
int3
mov dword [ebp - 0x58], 0x338
jmp 0x4ee5ce
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 5
call fcn.00442e69
xor eax, eax
jmp 0x4ee5fa
mov dword [ebp - 0x58], 0x342
mov esi, 0xc0000001
and dword [ebp - 0x54], 0
lea ecx, [ebp - 0x60]
push esi
mov dword [ebp - 0x60], 0x418fa8
mov dword [ebp - 0x5c], 0x419018
call fcn.004de872
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 4
call fcn.00442e69
mov eax, esi
call fcn.0051d34a
ret
Function at 0x4ef84f
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x424
mov eax, 0x523489
call fcn.0051d40e
mov eax, ecx
mov dword [ebp - 0x424], eax
xor ebx, ebx
mov dword [ebp - 0x430], eax
push ebx
push 1
push 3
push ebx
push ebx
push SysReAllocString
lea ecx, [eax + 0x68]
call fcn.004e7ffe
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x428], edi
cmp edi, 0xffffffff
jne 0x4ef8a0
call fcn.004edfb1
jmp 0x4ef97e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x42c], esi
lea eax, [esi + 1]
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
cmp eax, 0x400
jbe 0x4ef906
push eax
lea ecx, [ebp - 0x420]
call fcn.004f3ad8
mov eax, dword [ebp - 0x420]
jmp 0x4ef912
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x420], eax
mov dword [ebp - 4], ebx
test eax, eax
jne 0x4ef920
mov esi, 0x8007000e
jmp 0x4ef95c
push ebx
lea ecx, [ebp - 0x18]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ef93d
call fcn.004edfb1
mov esi, eax
test esi, esi
js 0x4ef95c
mov edx, dword [ebp - 0x420]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x424]
mov byte [edx + eax], bl
push dword [ebp - 0x420]
call fcn.004ef984
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x4ef97c
lea ecx, [ebp - 0x420]
call fcn.004f2a7a
mov eax, esi
call fcn.0051d35b
ret

Function at 0x4f9174
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4f91cc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4f91cc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4f91be
cmp esi, ecx
jae 0x4f91cc
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x4f91ac
cmp esi, ecx
jae 0x4f91cc
cmp word [esi], 0
je 0x4f91cc
mov eax, esi
jmp 0x4f91ce
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4fdc5e
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
mov dword [ebp - 4], esi
test edi, edi
jne 0x4fdc75
lea edi, [ebp - 4]
mov ebx, dword [ebp + 8]
push esi
push esi
push esi
push 2
push esi
mov dword [edi], esi
push ecx
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [edi], eax
test eax, eax
je 0x4fdca1
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx], eax
test eax, eax
jne 0x4fdcb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4fdcb8
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x4fdcd6
mov ecx, edi
call fcn.004fdc48
mov eax, dword [ebx]
and dword [ebx], 0
test eax, eax
je 0x4fdcd6
cmp eax, 0xffffffff
je 0x4fdcd6
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [ebp - 4]
call fcn.004fdc48
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x4fdce7
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [edi + 8]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4fdd2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x4fdd2b
jle 0x4fdd38
movzx esi, si
or esi, 0x80070000
jmp 0x4fdd36
mov eax, dword [ebp - 4]
xor esi, esi
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], eax
test esi, esi
js 0x4fdd53
mov ecx, dword [edi + 8]
lea eax, [edi + 0x18]
push eax
lea edx, [edi + 0xc]
call fcn.004fdc5e
mov esi, eax
test esi, esi
js 0x4fdd53
xor esi, esi
jmp 0x4fdd5a
mov ecx, edi
call fcn.004fdde1
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4ff35e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5328d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp eax, 4
je 0x4ff3d2
cmp eax, 8
je 0x4ff3ce
cmp eax, 0x10
je 0x4ff3ca
cmp eax, 0x20
je 0x4ff3c3
cmp eax, 0x40
je 0x4ff3bf
and dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x28]
mov esi, 0xc000000d
mov dword [ebp - 0x28], 0x43b9ec
push esi
mov dword [ebp - 0x24], 0x43c228
mov dword [ebp - 0x20], 0x41e
call fcn.004de872
mov eax, esi
jmp 0x4ff433
push 0x7c
jmp 0x4ff3d4
mov esi, 0x8c
jmp 0x4ff3d5
push 0x6c
jmp 0x4ff3d4
push 0x5c
jmp 0x4ff3d4
push 0x4c
pop esi
mov ax, word [edi + esi]
xor ecx, ecx
or dword [ebp - 0x14], 0xffffffff
or dword [ebp - 0x18], 0xffffffff
push ecx
mov word [ebp - 8], ax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 8]
mov dword [ebp - 0x10], ecx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], ecx
push eax
push ecx
push ecx
push ecx
push ebx
call dword [sym.imp.NTDLL.dll_NtWriteFile]
test eax, eax
js 0x4ff433
xor ecx, ecx
lea eax, [ebp - 0x18]
push ecx
push eax
push dword [edi + esi + 4]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ecx
push dword [edi + esi + 0xc]
mov dword [ebp - 0xc], ecx
push eax
push ecx
push ecx
push ecx
push ebx
call dword [sym.imp.NTDLL.dll_NtWriteFile]
test eax, eax
js 0x4ff433
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050e82a
leave
ret 8

Function at 0x50e939
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x50e976
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x50e96f
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x50e97b
add edx, 0x28
cmp edx, esi
jne 0x50e960
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x50e978

Function at 0x517c66
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005178e3

Function at 0x51d1f0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x51d22e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x51d226
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x51d230
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x51d216
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x51d300
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x51d331
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x51d331
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x51d331
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret