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

Disassembly:
push 0xffffffffffffffff
push 0x4c9e88
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x509354]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push edi
mov eax, dword [0x509354]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
push 1
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x68], ebx
mov byte [esp + 0x1c], 0x2f
call fcn.00444390
lea ebp, [ebx + 0x10]
cmp eax, 0xffffffff
je 0x482212
mov edi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x68]
cmp edi, ebp
jae 0x48212d
lea ecx, [esp + 0x68]
cmp byte [ecx + eax + 1], 0x2f
jne 0x482212
mov edx, dword [esp + 0x78]
add eax, 2
cmp eax, edx
jae 0x48215a
mov ecx, dword [esp + 0x68]
cmp edi, ebp
jae 0x48214f
lea ecx, [esp + 0x68]
cmp byte [ecx + eax], 0x2f
je 0x48215a
inc eax
cmp eax, edx
jb 0x482143
push eax
push ebx
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x70]
call fcn.00444d70
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x5c]
mov edi, 0xf
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push edx
mov byte [esp + 0x88], 1
mov byte [ecx + 4], bl
call fcn.00401b3f
lea ecx, [esp + 0x38]
call fcn.00481620
add esp, 0x20
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 2
call fcn.00401b3f
mov byte [esp + 0x5c], 1
cmp dword [esp + 0x30], ebp
jb 0x4821ce
mov eax, dword [esp + 0x1c]
push eax
call fcn.0048e006
add esp, 4
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x3c]
push ecx
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00401b3f
cmp dword [esp + 0x4c], ebp
jb 0x4821f9
mov edx, dword [esp + 0x38]
push edx
call fcn.0048e006
add esp, 4
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
cmp dword [esp + 0x7c], ebp
jb 0x48223f
mov eax, dword [esp + 0x68]
push eax
jmp 0x482237
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x4ce43d
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00401bd1
cmp dword [esp + 0x7c], ebp
jb 0x48223f
mov ecx, dword [esp + 0x68]
push ecx
call fcn.0048e006
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0048e25d
add esp, 0x50
ret
Function at 0x482260
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4c9ec8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x509354]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x509354]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, dword [esp + 0x68]
xor ebx, ebx
mov dword [esp + 0x18], ebx
push 1
push ebx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x78]
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x20], 0x2f
call fcn.00444390
cmp eax, 0xffffffff
je 0x4823ef
mov esi, dword [esp + 0x84]
mov ebp, dword [esp + 0x70]
mov ecx, ebp
cmp esi, 0x10
jae 0x4822d5
lea ecx, [esp + 0x70]
cmp byte [ecx + eax + 1], 0x2f
jne 0x4823ef
add eax, 2
mov ecx, eax
cmp eax, dword [esp + 0x80]
jae 0x48232d
mov edi, edi
mov edx, ebp
cmp esi, 0x10
jae 0x4822fb
lea edx, [esp + 0x70]
cmp byte [edx + ecx], 0x3a
je 0x48232d
mov edx, ebp
cmp esi, 0x10
jae 0x48230c
lea edx, [esp + 0x70]
cmp byte [edx + ecx], 0x2f
je 0x48232d
mov edx, ebp
cmp esi, 0x10
jae 0x48231d
lea edx, [esp + 0x70]
cmp byte [edx + ecx], 0x3f
je 0x48232d
inc ecx
cmp ecx, dword [esp + 0x80]
jb 0x4822f0
sub ecx, eax
push ecx
push eax
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x78]
call fcn.00444d70
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x60]
mov esi, 0xf
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push edx
mov byte [esp + 0x8c], 1
mov byte [ecx + 4], bl
call fcn.00401b3f
lea ecx, [esp + 0x3c]
call fcn.00481620
add esp, 0x20
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x6c], 2
call fcn.00401b3f
mov ebp, 0x10
mov byte [esp + 0x60], 1
cmp dword [esp + 0x34], ebp
jb 0x4823a8
mov eax, dword [esp + 0x20]
push eax
call fcn.0048e006
add esp, 4
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x40]
push ecx
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
mov ecx, edi
mov byte [edi + 4], bl
call fcn.00401b3f
cmp dword [esp + 0x50], ebp
jb 0x4823d3
mov edx, dword [esp + 0x3c]
push edx
call fcn.0048e006
add esp, 4
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
cmp dword [esp + 0x84], ebp
jb 0x482420
mov eax, dword [esp + 0x70]
push eax
jmp 0x482418
push ebx
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
push 0x4ce43d
mov ecx, edi
mov byte [edi + 4], bl
call fcn.00401bd1
cmp dword [esp + 0x84], 0x10
jb 0x482420
mov ecx, dword [esp + 0x70]
push ecx
call fcn.0048e006
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0048e25d
add esp, 0x50
ret
Function at 0x484ff0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
call fcn.00484c40
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 5
push edi
push esi
mov dword [esp + 0x20], 0
call ebx
mov ebp, eax
test ebp, ebp
je 0x4850cf
push 0xf0
push edi
push esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
test eax, eax
je 0x485044
push eax
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebp
push esi
mov dword [esp + 0x18], 0
call edi
test eax, eax
je 0x4850a8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4850a8
push ebx
push edi
call fcn.00479ac0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
add esp, 8
mov ebx, eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
push edx
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov esi, eax
test esi, esi
jne 0x485094
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp ebx, edi
je 0x4850b6
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4850b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4850c5
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x487120
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x4ca4b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x509354]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0xf4], 0
mov edi, dword [esp + 0x40]
mov eax, 2
mov dword [esi + 0x114], eax
mov dword [esi + 0xfc], edi
je 0x487252
push esi
lea eax, [esi + 8]
push eax
push 0x50e0b0
call fcn.0047ae30
mov ecx, dword [0x50e074]
push 0
push 0x47b9c0
push edi
push 0x71
push ecx
call fcn.00484ff0
add esp, 0x14
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x487216
mov edx, dword [esi + 4]
push 5
push edx
mov byte [esi + 0x110], 1
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
je 0x48720c
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageW]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0047a400
test eax, eax
jne 0x4871f2
lea edx, [esp + 0x14]
push edx
call ebx
lea eax, [esp + 0x14]
push eax
call ebp
cmp byte [esi + 0x110], 0
je 0x48720c
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
call edi
test eax, eax
jne 0x4871d4
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00485400
mov ecx, dword [esp + 0x44]
push 0xffffffffffffffff
push 0
push eax
mov dword [esp + 0x44], 0
call fcn.00401c43
cmp dword [esp + 0x2c], 8
jb 0x48724c
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0048e006
add esp, 4
mov eax, dword [esi + 0x114]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
Function at 0x487f60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4ca619
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x509354]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x509354]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
mov esi, dword [esp + 0x78]
xor ebp, ebp
push ebp
mov ecx, ebx
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebp
call fcn.00487720
push ebp
push 0x4ce43d
lea ecx, [esp + 0x48]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x28], 1
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebp
mov byte [esp + 0x4c], 0
call fcn.00401bd1
mov eax, dword [edi + 0x14]
mov dword [esp + 0x68], 1
test eax, eax
jbe 0x488142
jmp 0x488008
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x14]
push eax
push ebp
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call fcn.00444d70
mov edi, dword [esi + 0x14]
mov ebx, 0x10
cmp dword [esi + 0x18], ebx
jb 0x48802e
mov edx, dword [esi + 4]
lea ecx, [esi + 4]
jmp 0x488031
lea edx, [esi + 4]
mov esi, dword [eax + 0x14]
mov ecx, esi
cmp ecx, esi
jae 0x48803a
mov ecx, esi
cmp esi, edi
jb 0x488042
mov ecx, edi
cmp dword [eax + 0x18], ebx
jb 0x48804c
mov eax, dword [eax + 4]
jmp 0x48804f
add eax, 4
push ecx
push edx
push eax
call fcn.00403f89
add esp, 0xc
test eax, eax
jne 0x488070
cmp esi, edi
jae 0x488067
or eax, 0xffffffff
jmp 0x48806e
xor eax, eax
cmp esi, edi
setne al
test eax, eax
mov esi, 0x10
sete bl
mov byte [esp + 0x68], 1
cmp dword [esp + 0x3c], esi
jb 0x488090
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0048e006
add esp, 4
test bl, bl
je 0x4880fd
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x40]
push edx
call fcn.00445770
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x44]
mov eax, edi
cmp edx, esi
jae 0x4880b4
lea eax, [esp + 0x44]
mov ecx, dword [esp + 0x54]
add ecx, eax
cmp edx, esi
mov esi, edi
jae 0x4880c4
lea esi, [esp + 0x44]
cmp edx, 0x10
mov edx, edi
jae 0x4880cf
lea edx, [esp + 0x44]
test esi, esi
jne 0x4880d7
xor eax, eax
jmp 0x4880db
mov eax, esi
sub eax, edx
test ecx, ecx
je 0x4880e1
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x48]
call fcn.00401671
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x14]
mov edi, dword [esp + 0x14]
lea ebp, [eax + ebp - 1]
jmp 0x488134
mov edi, dword [esp + 0x14]
cmp dword [edi + 0x18], esi
jb 0x48810b
mov eax, dword [edi + 4]
jmp 0x48810e
lea eax, [edi + 4]
movzx eax, byte [eax + ebp]
push eax
push 1
lea ecx, [esp + 0x48]
call fcn.00408b12
mov eax, dword [edi + 0x14]
dec eax
cmp ebp, eax
jne 0x488134
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00445770
inc ebp
cmp ebp, dword [edi + 0x14]
jb 0x488000
mov ebx, dword [esp + 0x18]
cmp dword [esp + 0x58], 0x10
jb 0x488156
mov edx, dword [esp + 0x44]
push edx
call fcn.0048e006
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0048e25d
add esp, 0x58
ret
Function at 0x48bdb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0xc0]
xor ebx, ebx
mov dword [esi], vtable.SimpleMAPIObject.0
cmp eax, ebx
je 0x48bdd0
push eax
call fcn.0049042c
add esp, 4
mov eax, dword [esi + 0xc4]
cmp eax, ebx
je 0x48bde3
push eax
call fcn.0049042c
add esp, 4
push edi
xor edi, edi
cmp dword [esi + 0xe4], ebx
jbe 0x48be13
xor ebp, ebp
mov eax, dword [esi + 0xe8]
mov eax, dword [eax + ebp + 0xc]
cmp eax, ebx
je 0x48be07
push eax
call fcn.0049042c
add esp, 4
inc edi
add ebp, 0x18
cmp edi, dword [esi + 0xe4]
jb 0x48bdf0
mov eax, dword [esi + 0xe8]
cmp eax, ebx
je 0x48be26
push eax
call fcn.0049042c
add esp, 4
xor ebp, ebp
cmp dword [esi + 0xdc], ebx
jbe 0x48be83
xor edi, edi
mov ecx, dword [esi + 0xe0]
mov eax, dword [ecx + edi + 8]
cmp eax, ebx
je 0x48be49
push eax
call fcn.0049042c
add esp, 4
mov edx, dword [esi + 0xe0]
mov eax, dword [edx + edi + 0xc]
cmp eax, ebx
je 0x48be60
push eax
call fcn.0049042c
add esp, 4
mov eax, dword [esi + 0xe0]
mov eax, dword [eax + edi + 0x14]
cmp eax, ebx
je 0x48be77
push eax
call fcn.0049042c
add esp, 4
inc ebp
add edi, 0x18
cmp ebp, dword [esi + 0xdc]
jb 0x48be32
mov eax, dword [esi + 0xe0]
cmp eax, ebx
je 0x48be96
push eax
call fcn.0049042c
add esp, 4
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebp, 0x10
cmp dword [esi + 0xb0], ebp
jb 0x48bebc
mov edx, dword [esi + 0x9c]
push edx
call fcn.0048e006
add esp, 4
mov edi, 0xf
mov dword [esi + 0xb0], edi
mov dword [esi + 0xac], ebx
mov byte [esi + 0x9c], bl
cmp dword [esi + 0x94], ebp
jb 0x48beea
mov eax, dword [esi + 0x80]
push eax
call fcn.0048e006
add esp, 4
mov dword [esi + 0x94], edi
mov dword [esi + 0x90], ebx
mov byte [esi + 0x80], bl
cmp dword [esi + 0x78], ebp
jb 0x48bf0d
mov ecx, dword [esi + 0x64]
push ecx
call fcn.0048e006
add esp, 4
mov dword [esi + 0x78], edi
mov dword [esi + 0x74], ebx
mov edi, 8
mov byte [esi + 0x64], bl
cmp dword [esi + 0x5c], edi
jb 0x48bf2c
mov edx, dword [esi + 0x48]
push edx
call fcn.0048e006
add esp, 4
mov ebp, 7
xor eax, eax
mov dword [esi + 0x5c], ebp
mov dword [esi + 0x58], ebx
mov word [esi + 0x48], ax
cmp dword [esi + 0x40], edi
jb 0x48bf4e
mov ecx, dword [esi + 0x2c]
push ecx
call fcn.0048e006
add esp, 4
xor edx, edx
mov dword [esi + 0x40], ebp
mov dword [esi + 0x3c], ebx
mov word [esi + 0x2c], dx
cmp dword [esi + 0x24], edi
pop edi
jb 0x48bf6c
mov eax, dword [esi + 0x10]
push eax
call fcn.0048e006
add esp, 4
mov dword [esi + 0x24], ebp
mov dword [esi + 0x20], ebx
xor ecx, ecx
mov word [esi + 0x10], cx
mov dword [esi], vtable.BrokerObject.0
pop esi
pop ebp
pop ebx
ret
Function at 0x48e25d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x509354]
jne 0x48e267
repz ret
jmp fcn.00499c31

Function at 0x49508f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4950c0
call fcn.00493936
mov dword [eax], esi
call fcn.00493923
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004905f1
add esp, 0x14
push 0x16
pop eax
jmp 0x495115
test dword [ebp + 0xc], 0xfffffff9
jne 0x49509c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4950ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00493949
pop ecx
call fcn.00493923
mov eax, dword [eax]
jmp 0x495115
test al, 0x10
jne 0x495113
test al, 1
je 0x495113
test byte [ebp + 0xc], 2
je 0x495113
call fcn.00493936
mov dword [eax], 5
call fcn.00493923
mov dword [eax], 0xd
jmp 0x4950e4
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4a5e83
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00499da9
and dword [ebp - 4], 0
cmp dword [0x50dff8], 0
mov ebx, eax
jne 0x4a5f34
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4a5fe5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4a5fe5
push eax
call fcn.00499d37
mov dword [esp], 0x4f68c0
push edi
mov dword [0x50dff8], eax
call esi
push eax
call fcn.00499d37
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x50dffc], eax
call esi
push eax
call fcn.00499d37
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x50e000], eax
call esi
push eax
call fcn.00499d37
pop ecx
mov dword [0x50e008], eax
test eax, eax
je 0x4a5f34
push 0x4f6878
push edi
call esi
push eax
call fcn.00499d37
pop ecx
mov dword [0x50e004], eax
mov eax, dword [0x50e004]
cmp eax, ebx
je 0x4a5f8c
cmp dword [0x50e008], ebx
je 0x4a5f8c
push eax
call fcn.00499db2
push dword [0x50e008]
mov esi, eax
call fcn.00499db2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4a5f8c
test edi, edi
je 0x4a5f8c
call esi
test eax, eax
je 0x4a5f83
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4a5f83
test byte [ebp - 0xc], 1
jne 0x4a5f8c
or dword [ebp + 0x10], 0x200000
jmp 0x4a5fc5
mov eax, dword [0x50dffc]
cmp eax, ebx
je 0x4a5fc5
push eax
call fcn.00499db2
pop ecx
test eax, eax
je 0x4a5fc5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4a5fc5
mov eax, dword [0x50e000]
cmp eax, ebx
je 0x4a5fc5
push eax
call fcn.00499db2
pop ecx
test eax, eax
je 0x4a5fc5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x50dff8]
call fcn.00499db2
pop ecx
test eax, eax
je 0x4a5fe5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4a5fe7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ad0f7
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x50e0a4], 0
push esi
jne 0x4ad06a
call fcn.004acf90
test eax, eax
je 0x4ad0ad
mov eax, dword [0x50e0a4]
cmp eax, 1
jne 0x4ad08b
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4ad0ad
pop esi
ret
push eax
call dword [0x50e0ac]
test eax, eax
jne 0x4ad0f5
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4ad0b1
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x50e0a4]
call dword [0x50e0ac]
mov edi, eax
test edi, edi
je 0x4ad0d6
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4ad0f2
mov edi, esi
add esi, 0xff0
push edi
push dword [0x50e0a4]
call dword [0x50e0a8]
add edi, 0x10
cmp edi, esi
jb 0x4ad0de
mov eax, edi
pop edi
pop esi
ret
jmp 0x4ad057

Function at 0x4b3a90
Capabilities:
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x4cad08
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x509354]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, ecx
lea edi, [ebp + 0x24]
push edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 0x20], 0
mov dword [esp + 0x2c], 0
jne 0x4b3b5e
mov dword [esp + 0x14], 3
push 0
push 0x4f6bc8
push 0x4f6bc8
push 0
push 0x4f6bc8
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4b3b34
mov edi, dword [ebp + 0x1c]
mov ecx, dword [edi + 4]
lea esi, [ebp + 0x18]
lea eax, [esp + 0x18]
push eax
push ecx
push edi
mov ecx, esi
call fcn.00462860
push 1
mov ecx, esi
mov ebx, eax
call fcn.004636e0
mov dword [edi + 4], ebx
mov edx, dword [ebx + 4]
mov edi, dword [esp + 0x1c]
mov dword [edx], ebx
sub dword [esp + 0x14], 1
jne 0x4b3ae5
cmp dword [ebp + 0x20], 0
jne 0x4b3b5e
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, eax
mov eax, dword [ecx]
cmp eax, ecx
je 0x4b3b89
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
push eax
mov dword [edx + 4], ecx
call fcn.0048e006
add esp, 4
dec dword [ebp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x4b8b60
Capabilities:
Delete file

Disassembly:
sub esp, 8
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
xor esi, esi
cmp eax, esi
je 0x4b8b7d
push eax
call dword [sym.imp.GDI32.dll_CloseEnhMetaFile]
mov dword [edi + 8], eax
mov dword [edi + 4], esi
mov eax, dword [edi + 8]
cmp eax, esi
je 0x4b8b8e
push eax
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov dword [edi + 8], esi
cmp dword [edi + 0x20], esi
je 0x4b8bf7
cmp dword [edi + 0x24], 8
lea esi, [edi + 0xc]
jb 0x4b8ba1
mov eax, dword [esi + 4]
jmp 0x4b8ba4
lea eax, [esi + 4]
push ebx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, dword [esi + 0x18]
lea ebx, [esi + 4]
cmp ebp, 8
jb 0x4b8bbc
mov eax, dword [ebx]
jmp 0x4b8bbe
mov eax, ebx
mov ecx, dword [esi + 0x14]
lea ecx, [eax + ecx*2]
mov edx, 0xfffffffc
cmp ebp, 8
jb 0x4b8bd0
mov ebx, dword [ebx]
push ecx
push edx
mov eax, edx
push ebx
push eax
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.004241a0
pop ebp
pop ebx
mov dword [edi + 0x28], 0
mov dword [edi], 0
pop edi
pop esi
add esp, 8
ret
mov dword [edi + 0x28], esi
mov dword [edi], esi
pop edi
pop esi
add esp, 8
ret
Function at 0x4b9280
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x424
mov eax, dword [0x509354]
xor eax, esp
mov dword [esp + 0x420], eax
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
xor ebp, ebp
mov dword [esi + 0x28], ebp
cmp eax, ebp
je 0x4b92b1
push eax
call dword [sym.imp.GDI32.dll_CloseEnhMetaFile]
mov dword [esi + 8], eax
mov dword [esi + 4], ebp
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x4b92c2
push eax
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov dword [esi + 8], ebp
cmp dword [esi + 0x20], ebp
je 0x4b9318
cmp dword [esi + 0x24], 8
push ebx
push edi
lea edi, [esi + 0xc]
jb 0x4b92d7
mov eax, dword [edi + 4]
jmp 0x4b92da
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [edi + 0x18]
lea edx, [edi + 4]
cmp eax, 8
jb 0x4b92f0
mov ecx, dword [edx]
jmp 0x4b92f2
mov ecx, edx
mov ebx, dword [edi + 0x14]
lea ecx, [ecx + ebx*2]
mov ebx, 0xfffffffc
cmp eax, 8
jb 0x4b9304
mov edx, dword [edx]
push ecx
push ebx
push edx
mov eax, ebx
push eax
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.004241a0
pop edi
pop ebx
lea ecx, [esp + 0x220]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4b93bb
lea edx, [esp + 0x18]
push edx
push ebp
push 0x4f6ca4
lea eax, [esp + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4b93bb
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebp
lea edx, [esp + 0xc]
push edx
push ebp
push ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 0x5456
mov dword [esp + 0x24], 0x6d24
call dword [sym.imp.GDI32.dll_CreateEnhMetaFileW]
mov dword [esi + 4], eax
lea eax, [esp + 0x18]
mov dword [esi + 8], ebp
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4b9390
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esi + 0xc]
call fcn.00401cd6
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 4]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetPolyFillMode]
mov ecx, dword [esp + 0x428]
mov dword [esi + 0x2c], ebp
pop esi
pop ebp
xor ecx, esp
call fcn.0048e25d
add esp, 0x424
ret