joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30049655
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x300930a4]
mov dword [ebp - 0x10], eax
push esi
push edi
cmp dword [0x300a029c], 0
je 0x3004967b
mov eax, 1
jmp 0x300497e4
push 0x30003368
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x300496a0
push 0x30006498
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [ebp - 4], 0
jne 0x300496ad
xor eax, eax
jmp 0x300497e4
mov eax, dword [ebp - 4]
push eax
call fcn.30049620
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x300496d0
push 0x30006498
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0x30007864
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xe4], eax
cmp dword [ebp - 0xe4], 0
jne 0x300496f5
xor eax, eax
jmp 0x300497e4
mov edx, dword [ebp - 0xe4]
cmp edx, dword [ebp - 4]
jb 0x3004970e
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
cmp dword [ebp - 0xe4], eax
jbe 0x3004971d
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ecx + 1]
mov dword [ebp - 0xe4], edx
mov eax, dword [ebp - 0xe4]
cmp eax, dword [ebp - 4]
jb 0x30049736
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
cmp dword [ebp - 0xe4], ecx
jbe 0x3004973d
xor eax, eax
jmp 0x300497e4
mov ecx, 0x32
mov esi, dword [ebp - 0xe4]
lea edi, [ebp - 0xd8]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 8], 0
jmp 0x30049762
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 2
jae 0x300497cb
lea eax, [ebp - 0xe0]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*8 + 0x30062ba4]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax*8 + 0x30062ba0]
push ecx
mov edx, dword [ebp - 0xe4]
push edx
lea eax, [ebp - 0xd8]
push eax
call fcn.300495b9
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
je 0x30049759
mov ecx, dword [ebp - 0xe0]
cmp ecx, dword [ebp - 4]
jbe 0x30049759
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0xc]
cmp dword [ebp - 0xe0], edx
jae 0x30049759
mov eax, dword [ebp - 0xe0]
mov dword [0x300a029c], eax
cmp dword [ebp - 0xdc], 0
jne 0x300497de
mov dword [0x300a029c], 0
mov eax, dword [ebp - 0xdc]
mov ecx, dword [ebp - 0x10]
call fcn.3005f839
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x30049883
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x3005fe00
push 0x3005fbc2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
cmp dword [0x300a029c], 0
jne 0x300498c3
push 0x30006498
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.30049854
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x300498dd
xor eax, eax
jmp 0x3004992f
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.30049867
push eax
call dword [0x300a029c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x3004991f
cmp dword [ebp - 0x20], 0xffffffff
jne 0x3004992c
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x30049947
Capabilities:
Create thread
Resume thread
Suspend thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x3005fe10
push 0x3005fbc2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffa40
mov eax, dword [0x300930a4]
mov dword [ebp - 0x28], eax
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x30049942
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x300499b7
xor eax, eax
jmp 0x30049af4
mov ecx, dword [ebp - 0x24]
push ecx
push 0
push 0x1f03ff
mov edx, dword [ebp + 8]
push edx
call fcn.30049883
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x300499e3
mov dword [ebp - 0x300], 0
jmp 0x30049aac
mov dword [ebp - 0x300], 1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [ebp - 0x2fc], eax
cmp dword [ebp - 0x2fc], 0xffffffff
jne 0x30049a19
mov dword [ebp - 0x300], 0
jmp 0x30049a89
mov dword [ebp - 0x5d0], 0x10007
lea ecx, [ebp - 0x5d0]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov dword [ebp - 0x300], eax
cmp dword [ebp - 0x300], 0
jne 0x30049a45
jmp 0x30049a89
mov dword [ebp - 0x2f8], 0x10007
lea eax, [ebp - 0x2f8]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov dword [ebp - 0x300], eax
cmp dword [ebp - 0x300], 0
jne 0x30049a71
jmp 0x30049a89
mov edx, dword [ebp - 0x518]
cmp edx, dword [ebp - 0x240]
je 0x30049a89
mov dword [ebp - 0x300], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x30049aac
cmp dword [ebp - 0x2fc], 0
jle 0x30049abf
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xdead
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp dword [ebp - 0x20], 0
je 0x30049ade
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x30049aee
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x300]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x28]
call fcn.3005f839
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x3004b73a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, 3
je 0x3004b76e
cmp byte [eax], 0
je 0x3004b7b2
lea eax, [eax + 1]
test eax, 3
je 0x3004b76e
cmp byte [eax], 0
je 0x3004b7b2
lea eax, [eax + 1]
test eax, 3
je 0x3004b76e
cmp byte [eax], 0
je 0x3004b7b2
lea eax, [eax + 1]
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x1010101
xor edx, ecx
and edx, 0x80808080
je 0x3004b76e
test cl, cl
lea eax, [eax - 4]
je 0x3004b7b2
test ecx, 0xff00
lea eax, [eax + 1]
je 0x3004b7b2
test ecx, 0xff0000
lea eax, [eax + 1]
je 0x3004b7b2
test ecx, 0xff000000
lea eax, [eax + 1]
je 0x3004b7b2
lea eax, [eax + 1]
jmp 0x3004b76e
sub eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x3004b7c1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, 3
je 0x3004b7e8
cmp word [eax], 0
je 0x3004b7e1
lea eax, [eax + 2]
test eax, 3
je 0x3004b7e8
jmp 0x3004b7cf
sub eax, dword [ebp + 8]
shr eax, 1
jmp 0x3004b823
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x10001
xor edx, ecx
and edx, 0x80008000
je 0x3004b7e8
sub eax, dword [ebp + 8]
shr eax, 1
test cx, cx
lea eax, [eax - 2]
je 0x3004b823
test ecx, 0xffff0000
lea eax, [eax + 1]
je 0x3004b823
lea eax, [eax*2 + 2]
add eax, dword [ebp + 8]
jmp 0x3004b7e8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x3004fc1e
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov ecx, dword [0x30062bb8]
mov eax, dword [esp + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
add edi, 1
push ecx
and edi, 0xfffffffe
mov dword [eax], 0
call sub.KERNEL32.dll_TlsGetValue
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x3004fcb1
push 1
push 0x2000
push 0x10000
push 0
call ebp
mov esi, eax
test esi, esi
je 0x3004fc83
push 4
push 0x1000
push 0x1000
push esi
call ebp
test eax, eax
jne 0x3004fc96
push 0x8000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe004000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebp
ret 8
mov edx, dword [0x30062bb8]
push esi
push edx
call sub.KERNEL32.dll_TlsSetValue
lea eax, [esi + 0x1000]
lea ecx, [esi + 8]
mov dword [esi + 4], eax
mov dword [esi], ecx
mov edx, dword [esi]
mov eax, dword [esi + 4]
add edx, edi
cmp edx, eax
push ebx
jbe 0x3004fcf0
mov ecx, eax
sub ecx, esi
lea ebx, [ecx + edi + 0xfff]
and ebx, 0xfffff000
cmp ebx, 0x10000
jg 0x3004fd08
push 4
mov edx, ebx
sub edx, eax
push 0x1000
add edx, esi
push edx
push eax
call ebp
test eax, eax
je 0x3004fd08
add ebx, esi
mov dword [esi + 4], ebx
mov eax, dword [esi]
mov ecx, dword [esp + 0x14]
pop ebx
mov dword [ecx], eax
add eax, edi
pop edi
mov dword [esi], eax
pop esi
mov eax, 1
pop ebp
ret 8
push 0xe004000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
ret 8

Function at 0x3004fe7a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
movzx eax, word [esi]
add eax, esi
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
xor edi, edi
cmp eax, esi
mov ebp, esi
je 0x3004fef5
mov edx, dword [0x300b8940]
cmp eax, ebp
jne 0x3004feb1
movzx ecx, byte [pe_dos_header]
test ecx, ecx
je 0x3004fef5
test dl, 1
je 0x3004fecb
mov ecx, eax
and cl, 7
neg cl
mov ebx, edx
sbb ecx, ecx
add ecx, 1
and ebx, 2
xor ecx, ebx
je 0x3004fed5
movzx ecx, word [eax + 2]
cmp ecx, dword [esp + 0x1c]
jge 0x3004ff27
mov dword [esp + 0x18], eax
movzx eax, word [eax]
xor ecx, ecx
add eax, esi
test edi, edi
sete cl
mov edi, ecx
test edi, edi
je 0x3004fef1
movzx ebp, word [ebp]
add ebp, esi
cmp eax, esi
jne 0x3004fea2
mov ax, word [esi + 6]
cmp ax, 0xfffe
je 0x3004ff1e
movzx eax, ax
cmp word [eax*2 + 0x300a0938], 5
jne 0x3004ff1e
push eax
call fcn.30056776
add esp, 4
test eax, eax
jne 0x3004fe90
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x3005002a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test byte [0x300b8940], 1
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
jne 0x30050059
mov cx, word [eax]
test cx, cx
je 0x30050059
movzx ecx, cx
add ecx, eax
movzx ecx, word [ecx + 2]
push esi
lea esi, [edx + 4]
cmp ecx, esi
pop esi
jae 0x30050066
cmp ecx, edx
je 0x30050066
mov dword [esp + 8], edx
mov dword [esp + 4], eax
jmp fcn.3004fe7a
ret
Function at 0x30051c66
Capabilities:
Set file attributes

Disassembly:
push ebp
mov eax, 0x1084
lea ebp, [esp - 0x1004]
call fcn.3005f846
mov eax, dword [0x300930a4]
push ebx
push edi
xor edi, edi
inc edi
push edi
mov dword [ebp + 0x1000], eax
mov ebx, 0x824
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.30051953
add esp, 0xc
test eax, eax
jne 0x30051ca7
or eax, 0xffffffff
jmp 0x30051e18
cmp word [ebp - 0x68], 0
push esi
lea esi, [ebp - 0x68]
mov dword [ebp - 0x74], esi
je 0x30051cc0
inc esi
inc esi
cmp word [esi], 0
jne 0x30051cb5
mov dword [ebp - 0x74], esi
push edi
call fcn.3005176f
push 4
pop eax
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push eax
push 0x30014a28
push 0x30014a30
push SysReAllocString
mov dword [ebp - 0x7c], eax
call fcn.30052d89
add esp, 0x1c
test eax, eax
jne 0x30051cf3
mov dword [ebp - 0x6c], edi
mov eax, dword [ebp - 0x6c]
cmp eax, 0x64
mov dword [ebp - 0x80], eax
jbe 0x30051d03
mov eax, edi
mov dword [ebp - 0x6c], eax
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
lea ecx, [ebp - 0x68]
sub esi, ecx
sar esi, 1
mov dword [ebp - 0x70], ebx
sub dword [ebp - 0x70], esi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, 0x80
push eax
push 0x300149c0
lea eax, [ebp + 0xfe0]
push 0x1f
push eax
call edi
add esp, 0x10
push dword [ebp - 0x70]
lea eax, [ebp + 0xfe0]
push dword [ebp - 0x74]
push eax
call fcn.3004b8f6
push 0
push esi
push 1
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x68]
push eax
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 0x78], eax
jne 0x30051dbe
mov eax, dword [ebp - 0x6c]
cmp eax, 0x64
jb 0x30051d6d
xor eax, eax
inc eax
cmp eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], eax
jne 0x30051d21
push eax
push 0x300149c0
lea eax, [ebp + 0xfe0]
push 0x1f
push eax
call edi
add esp, 0x10
push dword [ebp - 0x70]
lea eax, [ebp + 0xfe0]
push dword [ebp - 0x74]
push eax
call fcn.3004b8f6
push esi
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push esi
push 2
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x68]
push eax
call ebx
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x6c], 0x64
pop esi
jb 0x30051dc9
and dword [ebp - 0x6c], 0
inc dword [ebp - 0x6c]
push 4
lea eax, [ebp - 0x6c]
push eax
push 4
push 0x30014a28
push 0x30014a30
push SysReAllocString
call fcn.30052e3f
add esp, 0x18
push dword [0x30062bc0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp + 0x100c], 0
je 0x30051e15
push dword [ebp + 0x1010]
lea eax, [ebp - 0x68]
push dword [ebp + 0x100c]
push eax
call fcn.3004cae8
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp + 0x1000]
pop edi
pop ebx
call fcn.3005f839
add ebp, 0x1004
leave
ret

Function at 0x30051e2d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x30051e74
push esi
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x30051e73
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret
Function at 0x30051e76
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0xffffffff
jne 0x30051e86
xor eax, eax
leave
ret
push ebx
lea eax, [ebp - 0xc]
push esi
push eax
xor ebx, ebx
call fcn.30051a0f
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 8], ebx
call fcn.3004fc1e
test eax, eax
jne 0x30051ebe
push 0x11a
push esi
mov dword [ebp - 8], 1
call fcn.30050f47
pop ecx
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
je 0x30051f22
push edi
mov edi, 0x300b8948
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push esi
push dword [ebp - 4]
call fcn.30051aa2
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x30051f1a
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x30051f09
cmp dword [ebp - 0xc], esi
jne 0x30051f09
xor ebx, ebx
inc ebx
jmp 0x30051f0b
xor ebx, ebx
push esi
push dword [ebp - 4]
push dword [ebp + 0x10]
call fcn.30051e2d
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x30051f47
cmp dword [ebp - 8], 0
push dword [ebp - 4]
je 0x30051f42
call fcn.30050e86
pop ecx
jmp 0x30051f47
call fcn.3004fd1c
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x30052b1c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2094
call fcn.3005f846
mov eax, dword [0x300930a4]
push ebx
push esi
xor ebx, ebx
inc ebx
push ebx
mov dword [ebp - 4], eax
mov esi, 0x824
lea eax, [ebp - 0x2094]
push esi
push eax
call fcn.30051953
add esp, 0xc
test eax, eax
je 0x30052c26
push edi
push 0x300149d0
call fcn.3004b931
mov edi, eax
test edi, edi
je 0x30052c25
push esi
lea eax, [ebp - 0x2094]
push eax
push edi
call fcn.3004cb2a
push edi
call fcn.3004fd1c
call fcn.30052b09
test eax, eax
je 0x30052c23
call fcn.300520db
test eax, eax
je 0x30052c23
lea eax, [ebp - 0x104c]
push esi
push eax
call fcn.30051c66
lea ecx, [ebp - 0x2094]
push ecx
push 1
push eax
call fcn.30051e76
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x30052bcb
lea eax, [ebp - 0x104c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x30052c23
mov eax, dword [0x300b89c0]
test eax, eax
je 0x30052be8
push eax
call fcn.30050db4
and dword [0x300b89c0], 0
and dword [0x300b89c4], 0
lea eax, [ebp - 0x104c]
push eax
call fcn.3004b7c1
inc eax
mov dword [0x300b89c4], eax
push 0x11a
add eax, eax
push eax
call fcn.30050e9f
test eax, eax
mov dword [0x300b89c0], eax
je 0x30052c23
push dword [0x300b89c4]
push eax
lea eax, [ebp - 0x104c]
push eax
call fcn.3004cae8
mov eax, ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.3005f839
leave
ret
Function at 0x30052d89
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor ebx, ebx
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 0x30014a80
mov edi, 0x20019
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push edi
push ebx
push dword [eax]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x30052dff
lea eax, [ebp - 8]
push eax
push edi
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x30052dff
push dword [ebp + 0x1c]
lea eax, [ebp - 0x14]
push dword [ebp + 0x18]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x30052dff
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x14]
jne 0x30052dff
mov dword [ebp - 0x10], 1
cmp dword [ebp - 4], ebx
je 0x30052e10
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
je 0x30052e21
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], ebx
cmp dword [ebp - 0x10], ebx
jne 0x30052e37
add dword [ebp - 0xc], 4
cmp dword [ebp - 0xc], 0x30014a88
jl 0x30052daf
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x30052e3f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
xor esi, esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push esi
mov ebx, 0x20006
push ebx
push esi
push esi
push esi
push 0x30014a88
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call edi
test eax, eax
jne 0x30052eb3
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
push ebx
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call edi
test eax, eax
jne 0x30052eb3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x30052eb3
mov dword [ebp - 0xc], 1
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x30052ec3
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], esi
je 0x30052ecd
push dword [ebp - 8]
call edi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x30052f41
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x300930a4]
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], eax
push esi
je 0x30053077
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x30053077
push edi
mov edi, dword [ebp + 0x20]
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x400
push eax
mov dword [ebp - 0x40c], 1
mov dword [esi], ebx
call fcn.30056634
mov dword [ebp - 0x408], eax
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
cmp dword [ebp - 0x408], ebx
je 0x30052fbf
push dword [ebp - 0x408]
mov eax, edi
shr eax, 0x17
and eax, 1
push eax
push 0x120001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [esi], eax
cmp dword [esi], ebx
jne 0x30053036
mov eax, edi
shr eax, 0x1a
not eax
test al, 1
je 0x30053036
lea eax, [ebp + 0x1c]
push eax
push edi
call fcn.30056505
test eax, eax
je 0x30053021
push dword [ebp - 0x408]
mov eax, edi
shr eax, 0x19
and eax, 1
push eax
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp + 0x1c]
push eax
push edi
call fcn.300565f8
cmp ebx, 5
jne 0x30053021
cmp dword [ebp + 8], 0
jne 0x30053021
mov dword [ebp + 8], 1
xor ebx, ebx
jmp 0x30052f9b
cmp dword [esi], 0
je 0x30053034
xor eax, eax
cmp ebx, 0xb7
setne al
mov dword [ebp + 0xc], eax
xor ebx, ebx
mov eax, dword [esi]
cmp eax, ebx
pop edi
je 0x30053042
cmp eax, 0xffffffff
jne 0x3005304d
mov dword [esi], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x40c], ebx
cmp dword [ebp + 0x10], ebx
je 0x30053063
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x408]
call fcn.3004cb0a
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x3005306f
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0x40c]
jmp 0x30053079
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.3005f839
leave
ret 0x1c

Function at 0x30053397
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x300b89f8], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x300533db
call ebx
test eax, eax
jns 0x300533d1
push 0x30014b74
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x30014b68
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x300b89f4], eax
mov dword [0x300b89f8], 1
mov eax, dword [0x300b89f4]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x300533f7
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x30053427
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x3005341d
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x30053411
push dword [eax + 8]
call dword [eax]
jmp 0x30053417
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x30053426
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
Function at 0x30055862
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, dword [ebp + 8]
cmp si, 0xffff
push edi
je 0x300558e7
test si, 0x3ff
je 0x300558e7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.300557e3
add esp, 0xc
test eax, eax
jne 0x300558f3
xor ebx, ebx
push ebx
push ebx
movzx edi, si
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0x58
push edi
call esi
test eax, eax
je 0x300558da
push 0x20
lea eax, [ebp - 0x20]
push eax
push 0x58
push edi
call esi
push 3
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0xc], ebx
call fcn.3005575c
add esp, 0xc
test eax, eax
je 0x300558da
mov al, byte [ebp - 0x40]
mov ecx, dword [ebp + 0xc]
mov byte [ecx], al
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x300558f3
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
jmp 0x300558f3
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [ebp + 0x10]
and dword [eax], 0
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push dword [esp + 4]
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x300568c6
test al, 0x10
je 0x300568c6
xor eax, eax
inc eax
jmp 0x300568c8
xor eax, eax
ret 4

Function at 0x300568cb
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x300930a4]
push esi
push edi
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.3004cae8
mov edi, eax
lea eax, [edi - 2]
cmp word [eax], 0x5c
jne 0x30056903
mov edi, eax
and word [edi], 0
lea eax, [ebp - 0x20c]
cmp edi, eax
mov esi, edi
jbe 0x3005693e
cmp word [esi], 0x5c
jne 0x30056929
and word [esi], 0
lea eax, [ebp - 0x20c]
push eax
call fcn.300568af
test eax, eax
jne 0x30056937
dec esi
dec esi
lea eax, [ebp - 0x20c]
cmp esi, eax
ja 0x3005690f
jmp 0x3005695d
mov word [esi], 0x5c
jmp 0x3005695d
cmp word [esi], 0
jne 0x3005695b
push 0
lea eax, [ebp - 0x20c]
push eax
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x30056972
mov word [esi], 0x5c
inc esi
inc esi
cmp esi, edi
jbe 0x3005693e
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.3005f839
leave
ret 4
xor eax, eax
jmp 0x30056964