joyce8/EMBER2024-capa huggingface dataset:
Function at 0x104fdcb0
Capabilities:
Execute anti-debugging instructions
Packed with generic packer

Disassembly:
mov byte [esp], bh
mov word [esp + 4], sp
mov word [esp + 9], bp
mov word [esp + 1], si
call fcn.104fdcc8
dec eax
popal
jo 0x104fdce7
jae 0x104fdd1a
jb 0x104fdd17
jns 0x104fdcaa
or eax, 0xe1f6ef9c
and bl, ch
jmp 0x104fdc87
invalid
je 0x104fdcd9
jmp 0x104fdc87
pop ss
and al, 5
je 0x104fdd7a
jb 0x104fdd8f
je 0x104fdd91
jne 0x104fdd8d
jo 0x104fdd67
dec ecx
outsb dx, byte [esi]
outsw dx, word [esi]
inc ecx
add byte [edx + 0x924648d], ah
enter 0xb16, 0xffffffffffffffa4
mov dword [esp + 1], esp
and al, 1

Function at 0x104fdd54
Capabilities:
Execute anti-debugging instructions
Packed with generic packer

Disassembly:
pop dword [esp + 2]
pop dword [esp + 3]
call fcn.104fdc85

Function at 0x10514671
Capabilities:
Execute anti-debugging instructions
Parse pe header

Disassembly:
call fcn.10500f75
lea esp, [esp + 2]
lea esp, [esp + 0x20]
popfd
jmp 0x10514675
stc
cld
jmp 0x1051465b
lea esp, [esp + 4]
jmp 0x10514725
call 0x105146b8
push dx
mov byte [esp], bh
lea esp, [esp + 2]
mov dword [esp + 4], ebp
mov dword [esp], esi
push edi
jmp 0x10514789
mov eax, dword [eax]
jmp 0x10514767
mov eax, dword [eax + 8]
push eax
jmp 0x10500f70
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x1051473d

Function at 0x105146b8
Capabilities:
Execute anti-debugging instructions
Parse pe header

Disassembly:
pop dword [esp + 0xd]
jmp 0x1051468e
pop dword [esp]
mov dword [esp + 0xb], esi
sub esp, 0
push word [esp + 0xa]
call fcn.10514671
pop dword [esp]
push word [esp + 2]
mov dword [esp], eax
call fcn.105146f1
pop ebp
lodsb al, byte [esi]
mov edi, 0xe8303186
in eax, 0xff
invalid

Function at 0x105146f1
Capabilities:
Access peb ldr_data
Execute anti-debugging instructions
Parse pe header

Disassembly:
mov word [esp + 7], bx
lea esp, [esp + 0x12]
lea esp, [esp + 2]
jmp 0x105146fb
push ax
lea esp, [esp + 1]
push ebx
lea esp, [esp + 1]
mov dword [esp + 4], ecx
pushal
jmp 0x105146bd
lea esp, [esp + 2]
mov dword [esp + 4], eax
jmp 0x105146d3
mov dword [esp + 0xc], edx
push si
lea esp, [esp + 2]
mov dword [esp + 8], ebx
push ebx
mov dword [esp + 8], esp
jmp 0x1051472a
Function at 0x401e56
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x4a3e10
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x4d10d8], 1
jge 0x4a3e7f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x4a3e55
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x4a3e55
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x4a3e32
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x4a3e6b
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x4a3e72
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x4a3f6f
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x4a3f40
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x4a3f35
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x4a3f29
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x4a3f30
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x4a3f6f
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x4a3f6a
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x4a3f53
mov eax, dword [ebx + 8]
jmp 0x4a3f6f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x4a3f61
xor eax, eax
jmp 0x4a3f6f
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x4a3e9f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x403445
Capabilities:
Query environment variable

Disassembly:
jmp 0x47d021
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x47d035
xor edi, edi
jmp 0x47d079
push ebx
push esi
call fcn.0047cf1b
push 0x40
mov ebx, eax
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
sub ebx, esi
and ebx, 0xfffffffe
push 2
push ebx
call fcn.004039ae
mov edi, eax
add esp, 0x14
test edi, edi
je 0x47d066
push ebx
push esi
push edi
call fcn.00403553
add esp, 0xc
push 2
push 0
call fcn.00403e54
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x40a430
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x394
push ebx
push esi
push edi
lea edi, [ebp - 0x394]
mov ecx, 0xe5
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x4d5041
call fcn.00403062
mov esi, esp
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, esp
call fcn.0040311b
mov dword [ebp - 8], eax
mov esi, esp
push 5
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
cmp esi, esp
call fcn.0040311b
mov dword [ebp - 8], eax
push 0x200
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.00401d7f
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x40a524
push 0x200
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.00401d7f
add esp, 0xc
mov esi, esp
push 0x200
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp esi, esp
call fcn.0040311b
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.00401ebf
add esp, 8
test eax, eax
je 0x40a507
mov esi, esp
push 0
push 0
push 0x10
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
cmp esi, esp
call fcn.0040311b
mov esi, esp
push 2
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
cmp esi, esp
call fcn.0040311b
mov dword [ebp - 8], eax
jmp 0x40a498
push edx
mov ecx, ebp
push eax
lea edx, [0x40a54c]
call fcn.004032a6
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x394
cmp ebp, esp
call fcn.0040311b
mov esp, ebp
pop ebp
ret
Function at 0x40fe60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
lea edi, [ebp - 0x144]
mov ecx, 0x51
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x4d517b
call fcn.00403062
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x50]
mov dword [ebp - 0x20], ecx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
add eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0x2c], eax
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx + 0x7c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x80], 0
jmp 0x40ff13
mov eax, dword [ebp - 0x80]
add eax, 1
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
cmp eax, dword [ebp - 0x44]
jae 0x40ff69
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + eax*4]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx + 0xdc]
cmp dword [ebp - 0x20], ecx
ja 0x40ff35
jmp 0x40ff0a
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.00403a67
add esp, 4
cmp eax, dword [ebp + 0xc]
jne 0x40ff67
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x5c]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x74], ecx
jmp 0x40ff69
jmp 0x40ff0a
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x2c]
jb 0x40ff83
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x38]
cmp dword [ebp - 0x74], eax
jae 0x40ff83
mov dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x74]
pop edi
pop esi
pop ebx
add esp, 0x144
cmp ebp, esp
call fcn.0040311b
mov esp, ebp
pop ebp
ret
Function at 0x425393
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x52ac9d
call fcn.0050d769
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x4253b8
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42540a
call fcn.0041b551
push eax
lea ecx, [ebp - 0x10]
call fcn.0040dcd0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0050d29d
push eax
call fcn.00401010
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004012b0
mov eax, esi
call fcn.0050d841
ret 8

Function at 0x428e7a
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x58a6d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x428eaf
xor eax, eax
jmp 0x428f02
lea eax, [ebp - 0x210]
push eax
call fcn.0050d36a
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x428ee0
push 0x55e2ac
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0050f8cc
add esp, 0xc
test eax, eax
jne 0x428eab
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0050f8cc
add esp, 0xc
test eax, eax
jne 0x428eab
lea eax, [ebp - 0x210]
push eax
call fcn.004160b6
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0050c1b3
leave
ret

Function at 0x4324fb
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 0x432536
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x43251d
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x43252e
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x432538
inc edi
add eax, 0x28
cmp edi, esi
jb 0x432513
xor eax, eax
pop edi
pop esi
ret

Function at 0x432924
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jne 0x43292e
call fcn.00432480
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004324bb
fst st(7)
lodsb al, byte [esi]
invalid
Function at 0x432bd6
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x432b92
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x432bb0
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 0x432c0e
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
add byte [eax], al
add byte [eax - 0x77], al
jge 0x432bed
add byte [eax], al
add byte [eax - 0x77], al
jge 0x432bed
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x432bf5
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x432bfe
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x432c08
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x432bea
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x432b74
mov dword [ebp + 8], esi
xor edi, edi
Function at 0x432d9d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.004324cb
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00432480
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.004324cb
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00432480
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.004324bb
adc dword [ebp + 0x6e], esp
jo 0x3dfbd7
inc dword [eax]
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
mov byte [ebp - 0x52f], 0xfb
mov byte [ebp - 0x52e], 0xf8
mov byte [ebp - 0x52d], 0xe4
mov byte [ebp - 0x52c], 0xf2
mov byte [ebp - 0x52b], 0xdf
mov byte [ebp - 0x52a], 0xf6
mov byte [ebp - 0x529], 0xf9
mov byte [ebp - 0x528], 0xf3
mov byte [ebp - 0x527], 0xfb
mov byte [ebp - 0x526], 0xf2
mov byte [ebp - 0x525], 0x97
lea eax, [ebp - 0x534]
push eax
call fcn.004324cb
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
jne 0x432fc5
Function at 0x454353
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x45436d
call fcn.004210b9
mov esi, dword [eax + 0xc]
push dword [0x58eeb8]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x45438b
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x454383
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4543b8
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x454385
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00454281
mov esi, eax
jmp 0x4543aa

Function at 0x487c82
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004191a8
call fcn.0041613c
cmp eax, esi
pop esi
jne 0x487c9e
mov ecx, 0x58de78
jmp fcn.00429a94
ret

Function at 0x4f006d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4f0085
mov edi, dword [esi + 0xc]
jmp 0x4f00c5
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4f009e
call fcn.00423e54
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4f00b3
call fcn.00423e54
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4f00c5
call fcn.00423e54
call fcn.004210b9
cmp dword [eax + 0x3c], 0
je 0x4f00da
push edi
mov ecx, ebx
call fcn.004eee97
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004eff87
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4f00f8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4f0104
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x50c1b3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x58a6d0]
jne 0x50c1bd
repz ret
jmp fcn.005140a3
Function at 0x10c21058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.10c211a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10c2107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10c2106a
add dl, dl
jne 0x10c21089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10c210dc
xor eax, eax
add dl, dl
jne 0x10c21096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10c2117d
add dl, dl
jne 0x10c210a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c210b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c210bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c210c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10c210d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10c21075
mov eax, 1
add dl, dl
jne 0x10c210ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c210f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10c210e1
sub eax, ebx
mov ebx, 1
jne 0x10c21128
mov ecx, 1
add dl, dl
jne 0x10c2110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10c21119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10c21105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10c21075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10c2113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10c2114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10c21136
cmp eax, 0x7d00
jae 0x10c2116d
cmp eax, 0x500
jb 0x10c21168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10c21075
cmp eax, 0x7f
ja 0x10c21170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10c21075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10c2119e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10c21075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x729a9c
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
mov edi, eax
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [edi + 0x914]
cmp eax, 0xc8
jne 0x729be4
lea eax, [ebp - 0x10c]
push eax
push 0
push 0x7c0528
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x729b11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [edi + 0x928]
mov ebx, eax
push ebx
push str.BackgroundDownloader:_Could_not_get_tempFileName___d__r_n
push bind
call fcn.0072062c
mov eax, ebx
jmp 0x729bff
mov esi, dword [edi + 0x928]
lea eax, [ebp - 0x10c]
push eax
push str.BackgroundDownloader:_Saving_tempFile___s__r_n
mov ebx, bind
push ebx
call fcn.0072062c
add esp, 0xc
xor esi, esi
push esi
push 0x80
push 2
push esi
push esi
push 0xc0000000
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x729b83
mov esi, dword [edi + 0x68]
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push dword [edi + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x729b74
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 4], 0
jmp 0x729b93
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x729bc7
mov esi, dword [ebp + 8]
cmp dword [ebp - 8], esi
je 0x729bc7
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [edi + 0x928]
lea eax, [ebp - 0x10c]
push eax
push str.BackgroundDownloader:_Could_not_save_tempFile___s__r_n
push ebx
call fcn.0072062c
add esp, 0xc
mov dword [ebp - 4], 0x1d
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x200
push eax
xor ebx, ebx
call fcn.00720cf8
mov eax, dword [ebp - 4]
pop ecx
pop ecx
jmp 0x729c02
mov esi, dword [edi + 0x928]
push eax
push str.BackgroundDownloader:_Download_failed_with_HTTP_status_code__d_r_n
push bind
call fcn.0072062c
mov eax, 0x490
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret 4