joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50a0ec
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407248
mov eax, dword [ebp - 8]
call fcn.00407248
mov eax, dword [ebp - 0xc]
call fcn.00407248
mov eax, dword [ebp + 0xc]
call fcn.00407248
xor eax, eax
push ebp
push 0x50a256
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov ebx, 0x14
mov dword [ebp - 0x28], 0x14
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x40], 2
mov eax, dword [ebp - 8]
call fcn.004072ec
mov esi, eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], 3
mov eax, 0x50a26c
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.004072ec
push eax
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x50a233
xor edx, edx
push ebp
push 0x50a22c
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 3
mov eax, dword [ebp + 0xc]
call fcn.004072ec
push eax
mov eax, dword [ebp - 0xc]
call fcn.004072ec
push eax
movzx eax, word [ebp + 8]
push eax
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetConnectW
test eax, eax
je 0x50a215
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x4b
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetSetOptionW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x50a20c
push 0
push 0
push 0x25
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetSetOptionW
test eax, eax
jne 0x50a210
xor eax, eax
jmp 0x50a212
mov al, 1
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50a233
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50a25d
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407258
lea eax, [ebp + 0xc]
call fcn.00407250
ret
Function at 0x50a27c
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407248
mov eax, dword [ebp - 8]
call fcn.00407248
xor eax, eax
push ebp
push 0x50a396
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov ebx, 0x14
mov dword [ebp - 0x24], 0x14
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x3c], 4
mov eax, dword [ebp - 8]
call fcn.004072ec
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x1c], 2
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.004072ec
push eax
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x50a37b
xor eax, eax
push ebp
push 0x50a374
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x24]
push eax
push 0x4b
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetSetOptionW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x50a354
push 0
push 0
push 0x25
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetSetOptionW
test eax, eax
jne 0x50a358
xor eax, eax
jmp 0x50a35a
mov al, 1
mov byte [ebp - 9], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50a37b
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50a39d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407258
ret

Function at 0x50a3a8
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
mov byte [ebp - 1], 0
mov ebx, 0x14
mov dword [ebp - 0x1c], 0x14
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x34], 2
mov eax, 0x50a470
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 3
mov eax, 0x50a474
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 1
push 0x50a470
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x50a467
xor eax, eax
push ebp
push 0x50a460
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0x4b
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionW
push 0
push 0
push 0x25
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionW
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50a467
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
movzx eax, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50bb74
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
xor edx, edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x50bda0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x24], 0x105
mov eax, dword [ebp - 0x24]
call fcn.004042b0
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x50bbf5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
test eax, eax
je 0x50bbdf
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x14]
call fcn.0040740c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50bbfc
mov eax, dword [ebp - 0x14]
call fcn.004042cc
ret

Function at 0x5112e8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov bl, 2
lea eax, [ebp - 0x14]
xor ecx, ecx
mov edx, 0x14
call fcn.00404c18
push 0x14
lea eax, [ebp - 0x14]
push eax
push 0xd
push 0x400
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
je 0x511323
cmp word [ebp - 0x14], 0x31
jne 0x511321
mov bl, 1
jmp 0x511323
xor ebx, ebx
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5138c8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
xor ebx, ebx
mov eax, esi
call fcn.004abab8
test al, al
je 0x513987
mov byte [ebp - 9], 0
xor ebx, ebx
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 8], eax
jmp 0x513965
cmp word [esi + 0x67a], 0
je 0x513919
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 9]
push eax
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [esi + 0x67c]
call dword [esi + 0x678]
movzx eax, byte [esi + 0x670]
or al, byte [ebp - 9]
jne 0x51393c
cmp dword [ebp - 4], 0
jbe 0x513938
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
ja 0x51393c
xor ebx, ebx
jmp 0x51393e
mov bl, 1
test bl, bl
jne 0x513987
mov eax, dword [0x52b71c]
mov eax, dword [eax]
cmp byte [eax + 0xa4], 0
jne 0x513987
mov eax, dword [0x52b71c]
mov eax, dword [eax]
call fcn.004d22f8
push 1
call sub.kernel32.dll_Sleep_1
test esi, esi
je 0x513987
cmp byte [esi + 0x610], 0
jne 0x513987
mov edx, 0xfffffdf3
mov eax, esi
call fcn.004daca0
cmp eax, 4
jne 0x5138f6
mov byte [esi + 0x670], 0
test bl, bl
sete al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51399c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov byte [ebp - 9], 0
xor ebx, ebx
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 8], eax
jmp 0x513a28
cmp word [esi + 0x67a], 0
je 0x5139dc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 9]
push eax
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [esi + 0x67c]
call dword [esi + 0x678]
movzx eax, byte [esi + 0x670]
or al, byte [ebp - 9]
jne 0x5139ff
cmp dword [ebp - 4], 0
jbe 0x5139fb
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
ja 0x5139ff
xor ebx, ebx
jmp 0x513a01
mov bl, 1
test bl, bl
jne 0x513a46
mov eax, dword [0x52b71c]
mov eax, dword [eax]
cmp byte [eax + 0xa4], 0
jne 0x513a46
mov eax, dword [0x52b71c]
mov eax, dword [eax]
call fcn.004d22f8
push 1
call sub.kernel32.dll_Sleep_1
cmp byte [esi + 0x610], 0
jne 0x513a46
mov edx, 0xd4
mov eax, esi
call fcn.004dac8c
test ax, ax
jne 0x5139b9
mov byte [esi + 0x670], 0
test bl, bl
sete al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x51b3e4
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x51b4a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00406d04
mov dl, 1
mov eax, dword [0x44d800]
call fcn.0044f95c
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x51b489
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, dword [ebp - 4]
call fcn.0044fa44
xor ecx, ecx
mov edx, 0x51b4c0
mov eax, dword [ebp - 4]
call fcn.0044fb8c
test al, al
je 0x51b46b
lea ecx, [ebp - 8]
mov edx, 0x51b550
mov eax, dword [ebp - 4]
call fcn.004505bc
lea eax, [ebp - 8]
mov edx, 0x51b568
call fcn.0040765c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004074c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51b490
mov eax, dword [ebp - 4]
call fcn.0044fa14
mov eax, dword [ebp - 4]
call fcn.00405378
ret
Function at 0x51d300
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x51d309
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00407248
mov eax, dword [ebp - 8]
call fcn.00407248
xor eax, eax
push ebp
push 0x51d519
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
mov edx, dword [0x52b7d0]
mov edx, dword [edx]
call fcn.00407920
je 0x51d4b4
xor eax, eax
push ebp
push 0x51d4ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xe], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.004074c4
mov edx, dword [ebp - 0x18]
mov ecx, 0x51d530
mov eax, ebx
call fcn.0051c070
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
call fcn.004074b0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
call fcn.004074c4
mov edx, dword [ebp - 0x24]
mov ecx, 0x51d530
mov eax, ebx
call fcn.0051c070
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
call fcn.004074b0
mov edx, dword [ebp - 0x1c]
mov eax, 0x51d54c
call fcn.0041adb0
mov esi, eax
test esi, esi
jle 0x51d3f1
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00407988
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0xc]
mov edx, 0x51d55c
call fcn.0040771c
cmp word [ebx + 0x37a], 0
je 0x51d440
lea edx, [ebp - 0x30]
mov eax, ebx
call fcn.004a278c
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
call fcn.004074c4
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0xe]
push eax
push 0
lea eax, [ebp - 0x34]
call fcn.0051b3e4
lea eax, [ebp - 0x34]
mov edx, 0x51d570
call fcn.00406f40
mov ecx, dword [ebp - 0x34]
mov edx, ebx
mov eax, dword [ebx + 0x37c]
call dword [ebx + 0x378]
cmp byte [ebp - 0xe], 0
jne 0x51d49f
xor eax, eax
push ebp
push 0x51d491
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004072ec
push eax
lea eax, [ebp - 0x38]
mov ecx, 0x51d594
mov edx, dword [ebp - 0xc]
call fcn.0040771c
mov eax, dword [ebp - 0x38]
call fcn.004072ec
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileW
test eax, eax
sete byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51d49f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51d4b4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51d520
lea eax, [ebp - 0x38]
call fcn.00407250
lea eax, [ebp - 0x34]
call fcn.00406d04
lea eax, [ebp - 0x30]
call fcn.00407250
lea eax, [ebp - 0x2c]
call fcn.00406d04
lea eax, [ebp - 0x28]
call fcn.00407250
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00406d1c
lea eax, [ebp - 0x1c]
call fcn.00407250
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00406d1c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407258
ret
Function at 0x51ecd0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
test byte [eax + 0x3c4], 1
je 0x51ece6
or edx, 0x10000000
jmp 0x51ecec
or edx, 0x20000000
test byte [eax + 0x3c4], 2
je 0x51ecfd
or edx, 0x40000000
jmp 0x51ed03
or edx, 0x80000000
test byte [eax + 0x3c4], 4
je 0x51ed11
or edx, 1
jmp 0x51ed14
or edx, 1
test byte [eax + 0x3c4], 8
je 0x51ed22
or edx, 2
jmp 0x51ed25
or edx, 2
test byte [eax + 0x3c4], 0x10
je 0x51ed33
or edx, 4
jmp 0x51ed36
or edx, 4
test byte [eax + 0x3c4], 0x20
je 0x51ed44
or edx, 6
jmp 0x51ed47
or edx, 6
test byte [eax + 0x3c4], 0x40
je 0x51ed55
or edx, 8
jmp 0x51ed58
or edx, 8
push edx
mov eax, dword [eax + 0x2b0]
push eax
call sub.shlwapi.dll_SHAutoComplete
pop ebp
ret
Function at 0x421370
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55eb58
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5cfd4c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x4213a9
mov eax, dword [esi]
jmp 0x4213ab
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x42144c
push 2
push ecx
push 0x5ab708
mov ecx, esi
call fcn.00421ac0
cmp eax, 0xffffffff
je 0x421425
push eax
push 0
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00421680
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x421408
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.00421370
test eax, eax
je 0x42141d
cmp dword [esi + 0x14], 8
jb 0x421410
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x421444
lea ecx, [ebp - 0x28]
call fcn.004216d0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055a1fb
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x28]
call fcn.004216d0
mov eax, 1
jmp 0x421427
Function at 0x421460
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55eb88
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5cfd4c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
cmp dword [edi + 0x14], 8
jb 0x4214a3
mov eax, dword [edi]
jmp 0x4214a5
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x421650
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4214c0
sub ecx, edx
je 0x421650
push 2
push ecx
push 0x5ab710
mov ecx, edi
call fcn.00421ac0
cmp eax, 0xffffffff
je 0x42150b
push eax
push 0
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.00421680
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.00421370
lea ecx, [ebp - 0x2c]
call fcn.004216d0
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x30], 0
jb 0x42151c
mov eax, dword [edi]
jmp 0x42151e
mov eax, edi
push 0x5ab718
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
add esp, 0xc
cmp dword [ebp - 0x30], 0
je 0x421650
call fcn.0047c340
mov ebx, eax
test ebx, ebx
je 0x421650
push esi
push 0x2712
push ebx
call fcn.0047ffb0
push 0
push 0x40
push ebx
call fcn.0047ffb0
push 0
push 0x51
push ebx
call fcn.0047ffb0
push 0
push 0x2a
push ebx
call fcn.0047ffb0
push 0x4212d0
push 0x4e2b
push ebx
call fcn.0047ffb0
push dword [ebp - 0x30]
push 0x2711
push ebx
call fcn.0047ffb0
add esp, 0x48
push 1
push 0x29
push ebx
call fcn.0047ffb0
push 1
push 0x34
push ebx
call fcn.0047ffb0
push 0
push 0x2b
push ebx
call fcn.0047ffb0
push 0x421300
push 0x4efb
push ebx
call fcn.0047ffb0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 0x2749
push ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 0x424230
call fcn.0047ffb0
push 1
push 0x2d
push ebx
call fcn.0047ffb0
add esp, 0x48
push 1
push 0x63
push ebx
call fcn.0047ffb0
push ebx
call fcn.0047c380
mov esi, eax
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0x200002
push ebx
call fcn.0047c320
push ebx
call fcn.0047c300
push dword [ebp - 0x30]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x24
test esi, esi
jne 0x421640
mov eax, dword [ebp - 0x14]
add eax, 0xffffff38
cmp eax, 0xc7
ja 0x421640
mov al, 1
jmp 0x421652
cmp dword [edi + 0x14], 8
jb 0x421648
mov edi, dword [edi]
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055a1fb
mov esp, ebp
pop ebp
ret 0x10
Function at 0x422970
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x422989
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4229c6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4229c2
nop word [eax + eax]
cmp esi, edx
jae 0x4229c6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4229b0
cmp esi, edx
jb 0x4229cd
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42b490
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x10]
sub esp, 0x5c
cmp dword [0x5da334], 8
mov dword [0x5d9f30], eax
mov eax, 0x5da320
cmovae eax, dword [0x5da320]
push esi
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x42b502
push ecx
lea ecx, [esp + 0xc]
call fcn.0042b320
mov ecx, eax
mov edx, dword [eax]
mov dword [eax + 0x18], 1
mov byte [eax + 0x14], 1
mov dword [eax + 0x28], 0
call dword [edx + 4]
lea ecx, [esp + 8]
call fcn.0042b3f0
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x42b540
Capabilities:
Get thread local storage value

Disassembly:
call fcn.00434100
jmp fcn.004342f0

Function at 0x42b830
Capabilities:
Get thread local storage value
Terminate thread

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [0x5d9fe8]
test ecx, ecx
je 0x42b84d
call fcn.00431180
mov dword [0x5d9fe8], 0
mov eax, dword [0x5da7c4]
mov dword [0x5da7c4], 0
test eax, eax
je 0x42b86b
push 4
push eax
call fcn.0055a6fc
add esp, 8
call fcn.0044e380
push dword [0x5da870]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov esi, dword [edi + 0x48]
cmp byte [esi + 0x14], 0
je 0x42b8cd
mov ecx, esi
call fcn.004350f0
mov eax, dword [esi + 8]
test eax, eax
je 0x42b8c7
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42b8b0
mov eax, dword [esi + 8]
test eax, eax
je 0x42b8c7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov word [esi + 0x14], 0
mov ecx, dword [edi + 0x48]
mov dword [edi + 0x48], 0
pop edi
pop esi
test ecx, ecx
je 0x42b8e3
mov eax, dword [ecx]
push 1
call dword [eax]
call fcn.00435450
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42b8f8
mov byte [eax + 4], 1
call fcn.00434100
jmp fcn.004342f0
Function at 0x42c420
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55fae7
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5cfd4c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], ebx
jb 0x42c465
mov eax, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push 0x20019
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x42c484
xor al, al
jmp 0x42c5e6
lea eax, [ebp - 0x18]
mov dword [ebx], 0
push eax
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
mov ecx, edi
mov dword [ebp - 0x18], 0
xor bl, bl
call fcn.00421770
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
je 0x42c4c6
test eax, eax
jne 0x42c5db
push dword [ebp - 0x18]
call fcn.0055a72d
push dword [ebp - 0x18]
mov edi, eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
add esp, 0x10
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push 0
call fcn.00421770
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42c5cc
mov eax, dword [ebp - 0x14]
cmp eax, 1
jne 0x42c53c
cmp byte [edi], 0
jne 0x42c520
xor ecx, ecx
push ecx
push edi
mov ecx, esi
call fcn.00421dc0
jmp 0x42c5c2
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42c525
sub ecx, edx
push ecx
push edi
mov ecx, esi
call fcn.00421dc0
jmp 0x42c5c2
cmp eax, 7
je 0x42c546
cmp eax, 2
jne 0x42c5c5
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x3c]
inc eax
mov dword [ebp - 0x28], 0xf
shr eax, 1
push eax
push edi
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
call fcn.00421dc0
lea eax, [ebp - 0x3c]
cmp esi, eax
je 0x42c5ac
mov edx, dword [esi + 0x14]
cmp edx, 0x10
jb 0x42c584
mov ecx, dword [esi]
inc edx
push 1
call fcn.00420d50
add esp, 4
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x42c59c
mov eax, dword [esi]
jmp 0x42c59e
mov eax, esi
mov byte [eax], 0
mov ecx, esi
lea eax, [ebp - 0x3c]
push eax
call fcn.004220d0
mov edx, dword [ebp - 0x28]
cmp edx, 0x10
jb 0x42c5c2
mov ecx, dword [ebp - 0x3c]
inc edx
push 1
call fcn.00420d50
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
mov bl, 1
mov dword [ecx], eax
test edi, edi
je 0x42c5db
push 1
push edi
call fcn.0055a6fc
add esp, 8
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055a1fb
mov esp, ebp
pop ebp
ret 0x14