joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30025ab9
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp - 4], edi
jne 0x30025adb
push edi
push 0x36717370
call fcn.30022f03
jmp 0x30025c18
push esi
mov esi, dword [ebp + 0x10]
cmp esi, edi
jne 0x30025aee
push edi
push 0x36717371
jmp 0x30025bed
cmp dword [ebp + 8], 2
je 0x30025b0b
cmp dword [ebp + 8], 8
je 0x30025b0b
cmp dword [ebp + 8], 3
je 0x30025b0b
push edi
push 0x36717372
jmp 0x30025bed
cmp dword [ebx], edi
je 0x30025b1a
push edi
push 0x36717373
call fcn.30022f03
cmp dword [esi], edi
je 0x30025b29
push edi
push 0x37667270
call fcn.30022f03
push esi
push edi
push dword [ebp + 8]
mov dword [esi], edi
call sub.Secur32.dll_GetUserNameExW
movzx edi, al
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x30025bf4
cmp eax, 0xea
jne 0x30025bf4
mov eax, dword [esi]
push 2
xor ecx, ecx
pop edx
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call fcn.30020360
test eax, eax
mov dword [ebx], eax
jne 0x30025b78
push eax
push 0x36717375
jmp 0x30025bfb
mov ecx, dword [esi]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
push eax
push edi
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x30025b98
push 0
push 0x36717376
jmp 0x30025bfb
mov eax, dword [esi]
dec eax
cmp dword [ebp - 4], eax
je 0x30025bac
push 0
push 0x36717377
call fcn.30022f03
cmp edi, 2
jne 0x30025bc8
push dword [esi]
push dword [ebx]
call fcn.300253a3
test eax, eax
pop ecx
pop ecx
jne 0x30025c17
push eax
push 0x36717378
jmp 0x30025bfb
cmp edi, 8
jne 0x30025be1
push dword [ebx]
call fcn.30025412
test eax, eax
pop ecx
jne 0x30025c17
push eax
push 0x36717379
jmp 0x30025bfb
cmp edi, 3
je 0x30025c17
push 0
push 0x3671737a
call fcn.30022f03
jmp 0x30025c17
push 0
push 0x36717374
call fcn.30022f03
mov eax, dword [ebx]
xor edi, edi
cmp eax, edi
je 0x30025c11
push eax
call fcn.3001e8ac
pop ecx
mov dword [ebx], edi
cmp dword [esi], edi
je 0x30025c17
mov dword [esi], edi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x3002638b
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1084
call fcn.30041a29
mov eax, dword [0x3001dedc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x107c], eax
mov ebx, 0x824
lea eax, [ebp - 0x106c]
push ebx
push eax
call fcn.300260b2
test eax, eax
pop ecx
pop ecx
jne 0x300263cc
or eax, 0xffffffff
jmp 0x3002655d
cmp word [ebp - 0x106c], 0
push esi
lea esi, [ebp - 0x106c]
push edi
mov dword [ebp - 0x1078], esi
je 0x300263f2
inc esi
inc esi
cmp word [esi], 0
jne 0x300263e4
mov dword [ebp - 0x1078], esi
xor edi, edi
inc edi
push edi
call fcn.300251a7
pop ecx
call fcn.3002533b
push eax
call fcn.3002479e
cmp eax, 0x64
mov dword [ebp - 0x1070], eax
mov dword [ebp - 0x1084], eax
jbe 0x3002641e
mov dword [ebp - 0x1070], edi
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
lea eax, [ebp - 0x106c]
sub esi, eax
sar esi, 1
mov dword [ebp - 0x1074], ebx
sub dword [ebp - 0x1074], esi
mov esi, 0x80
mov ebx, 0xc0000000
push dword [ebp - 0x1070]
lea eax, [ebp - 0x24]
push 0x30001ad4
push 0x1f
push eax
call edi
add esp, 0x10
push dword [ebp - 0x1074]
lea eax, [ebp - 0x24]
push dword [ebp - 0x1078]
push eax
call fcn.30031557
xor eax, eax
push eax
push eax
push esi
push 1
push eax
push 1
push ebx
lea eax, [ebp - 0x106c]
push eax
call fcn.30036d83
cmp eax, 0xffffffff
mov dword [ebp - 0x1080], eax
jne 0x30026508
cmp dword [ebp - 0x1070], 0x64
jb 0x300264a1
and dword [ebp - 0x1070], 0
inc dword [ebp - 0x1070]
mov eax, dword [ebp - 0x1070]
cmp eax, dword [ebp - 0x1084]
jne 0x30026444
push eax
push 0x30001ad4
lea eax, [ebp - 0x24]
push 0x1f
push eax
call edi
add esp, 0x10
push dword [ebp - 0x1074]
lea eax, [ebp - 0x24]
push dword [ebp - 0x1078]
push eax
call fcn.30031557
push esi
lea eax, [ebp - 0x106c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor edi, edi
push edi
push edi
push esi
push 2
push edi
push 1
push ebx
lea eax, [ebp - 0x106c]
push eax
call fcn.30036d83
mov dword [ebp - 0x1080], eax
jmp 0x3002650a
xor edi, edi
cmp dword [ebp - 0x1070], 0x64
jb 0x30026519
mov dword [ebp - 0x1070], edi
mov eax, dword [ebp - 0x1070]
inc eax
push eax
call fcn.3002533b
push eax
call fcn.300247c6
push dword [0x3004660c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x107c], edi
pop edi
pop esi
je 0x30026557
push dword [ebp + 0xc]
lea eax, [ebp - 0x106c]
push dword [ebp - 0x107c]
push eax
call fcn.300327f0
mov eax, dword [ebp - 0x1080]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.30040fc0
leave
ret
Function at 0x30027303
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0xffffffff
jne 0x30027313
xor eax, eax
leave
ret
push esi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
inc edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call fcn.30025794
add esp, 0x10
test eax, eax
je 0x3002744a
cmp dword [ebp - 4], esi
je 0x3002744a
push ebx
mov ebx, 0x3007aab8
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call fcn.30026c8d
test eax, eax
pop ecx
jne 0x3002736e
xor edi, edi
jmp 0x30027442
cmp dword [0x3007c444], esi
je 0x30027381
push esi
push 0x72766c72
call fcn.30022f03
lea eax, [ebp - 0x14]
push eax
mov dword [0x3007c444], 1
mov dword [ebp - 0x14], esi
call fcn.300256b5
cmp eax, dword [ebp - 8]
pop ecx
jne 0x300273a5
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
je 0x300273e0
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.300257e0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.30025794
add esp, 0x18
test eax, eax
je 0x300273d1
cmp dword [ebp - 4], esi
jne 0x300273e0
push esi
push 0x72766c73
call fcn.30022f03
xor edi, edi
jmp 0x300273f6
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.30026145
add esp, 0x10
mov edi, eax
cmp edi, esi
mov dword [0x3007c444], esi
push esi
je 0x30027438
mov edi, dword [ebp - 8]
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x30027423
cmp dword [ebp - 0x14], edi
jne 0x30027423
xor edi, edi
inc edi
jmp 0x30027425
xor edi, edi
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 0x10]
call fcn.3002574b
add esp, 0xc
jmp 0x30027442
push 0x74697970
call fcn.30022f03
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
je 0x3002746e
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.300257e0
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x30027474
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2094
call fcn.30041a29
mov eax, dword [0x3001dedc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x824
lea eax, [ebp - 0x104c]
push esi
xor edi, edi
push eax
inc edi
call fcn.300260b2
test eax, eax
pop ecx
pop ecx
je 0x3002752f
push ebx
push 0x30001ae4
call fcn.30032cd0
mov ebx, eax
test ebx, ebx
je 0x3002752e
push esi
lea eax, [ebp - 0x104c]
push eax
push ebx
call fcn.30032872
push ebx
call fcn.3002054a
call fcn.300272f0
test eax, eax
je 0x3002752c
call fcn.30027249
test eax, eax
je 0x3002752c
call fcn.30027208
lea eax, [ebp - 0x2094]
push esi
push eax
call fcn.3002638b
lea ecx, [ebp - 0x104c]
push ecx
push 1
push eax
call fcn.30027303
mov edi, eax
add esp, 0x14
test edi, edi
lea eax, [ebp - 0x2094]
jne 0x3002751c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x3002752c
push 0x104
push 0x3007c224
push eax
call fcn.300327f0
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.30040fc0
leave
ret
Function at 0x3002d587
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x3001dedc]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x41c], ecx
mov ecx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 0x424], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x414], ecx
jne 0x3002d5c7
xor eax, eax
jmp 0x3002d734
and dword [esi], 0
push ebx
push edi
mov edi, dword [ebp + 0x20]
xor ebx, ebx
inc ebx
push ebx
push edi
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
mov dword [ebp - 0x420], ebx
call fcn.30030e62
and dword [ebp - 0x410], 0
and dword [ebp - 0x418], 0
shr edi, 0x1a
not edi
mov dword [ebp - 0x408], eax
and edi, ebx
cmp dword [ebp - 0x408], 0
je 0x3002d62c
mov eax, dword [ebp + 0x20]
push dword [ebp - 0x408]
shr eax, 0x17
and eax, ebx
push eax
push 0x120001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [esi], eax
cmp dword [esi], 0
jne 0x3002d6c8
test edi, edi
je 0x3002d6c8
and dword [ebp - 0x40c], 0
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0x20]
call fcn.30030ce0
test eax, eax
je 0x3002d6ae
mov eax, dword [ebp + 0x20]
push dword [ebp - 0x408]
shr eax, 0x19
and eax, ebx
push eax
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0x20]
call fcn.30030e1a
cmp dword [ebp - 0x40c], 5
jne 0x3002d6ae
cmp dword [ebp - 0x418], 0
jne 0x3002d6ae
mov dword [ebp - 0x418], ebx
jmp 0x3002d607
cmp dword [esi], 0
je 0x3002d6c8
xor eax, eax
cmp dword [ebp - 0x40c], 0xb7
setne al
mov dword [ebp - 0x410], eax
mov eax, dword [esi]
xor ecx, ecx
cmp eax, ecx
je 0x3002d6d5
cmp eax, 0xffffffff
jne 0x3002d6f4
cmp edi, ecx
je 0x3002d6e4
push ecx
push 0x787a6c65
call fcn.30022f03
xor ecx, ecx
mov dword [esi], ecx
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x420], ecx
cmp dword [ebp - 0x41c], ecx
pop edi
pop ebx
je 0x3002d71c
mov eax, dword [ebp - 0x408]
cmp eax, ecx
jne 0x3002d70d
mov eax, 0x30001ad3
push dword [ebp + 0x14]
push dword [ebp - 0x41c]
push eax
call fcn.30032812
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x3002d72e
mov ecx, dword [ebp - 0x410]
mov dword [eax], ecx
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.30040fc0
leave
ret 0x1c
Function at 0x3002fb3c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
lea eax, [ebp - 0x30]
push eax
call fcn.3002d4f8
test eax, eax
jne 0x3002fb59
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x30]
push ebx
push esi
push edi
push eax
push 0x11
call fcn.30025472
push dword [ebp - 0x1c]
push 0x12
call fcn.30025472
push 0x3000e1ec
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x3002fc5b
push 0x3000e1cc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x3002fc5b
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x3002fc5b
push dword [ebp - 4]
call fcn.30020360
mov edi, eax
test edi, edi
mov dword [ebp - 0xc], edi
je 0x3002fc53
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
je 0x3002fc53
mov eax, dword [ebp - 4]
push 0x18
xor edx, edx
pop ecx
div ecx
xor ebx, ebx
and dword [ebp - 8], ebx
xor esi, esi
test eax, eax
jbe 0x3002fc53
mov edx, edi
mov edi, eax
mov eax, dword [edx + 4]
sub eax, 0
je 0x3002fc0b
dec eax
dec eax
jne 0x3002fc1c
push dword [edx]
call fcn.3002f449
cmp ebx, eax
pop ecx
ja 0x3002fc1c
mov ebx, eax
jmp 0x3002fc1c
push dword [edx]
inc dword [ebp - 8]
call fcn.3002f449
cmp esi, eax
pop ecx
ja 0x3002fc1c
mov esi, eax
add edx, 0x18
dec edi
jne 0x3002fbef
test esi, esi
je 0x3002fc31
push esi
push 0x19e1
call fcn.30025472
test ebx, ebx
je 0x3002fc40
push ebx
push 0x19e2
call fcn.30025472
cmp dword [ebp - 8], 0
je 0x3002fc53
push dword [ebp - 8]
push 0x19e0
call fcn.30025472
push dword [ebp - 0xc]
call fcn.300203bd
xor esi, esi
cmp dword [ebp - 0x1c], esi
ja 0x3002fc76
push esi
push 0x72766c74
call fcn.30022f03
cmp dword [ebp - 0x1c], esi
jbe 0x3002fd09
push 0x3000e1b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
jne 0x3002fc8f
push esi
push 0x3366646b
jmp 0x3002fca7
push 0x3000e198
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x3002fcae
push eax
push 0x3366646c
call fcn.30022f03
jmp 0x3002fcfe
mov eax, dword [ebp - 0x1c]
push 0x18
xor ecx, ecx
pop edx
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call fcn.30020360
mov esi, eax
test esi, esi
je 0x3002fcfe
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x18
push eax
push esi
push 0
push 0
push 0xb
call edi
test eax, eax
je 0x3002fced
push 0
push 0x72766c76
call fcn.30022f03
jmp 0x3002fcf7
push dword [esi + 4]
push 0x10
call fcn.30025472
push esi
call fcn.3001e8ac
pop ecx
test ebx, ebx
je 0x3002fd09
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x3002fd71
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x3001dedc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x214], esi
xor ebx, ebx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x218], esi
mov word [ebp - 0x20c], si
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x3002fe26
push esi
push 0x33753467
call fcn.30022f03
mov edi, 0x3a98
push edi
push 0xfa1
call fcn.30025472
push edi
push 0xfa2
call fcn.30025472
push edi
push 0xfa3
call fcn.30025472
push edi
push 0xfa4
call fcn.30025472
cmp ebx, esi
je 0x3002fe17
push ebx
call fcn.3001e8ac
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30040fc0
leave
ret
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
je 0x3002fddb
push edi
call fcn.30020360
mov ebx, eax
cmp ebx, esi
jne 0x3002fe53
push esi
push 0x33753468
jmp 0x3002fdd6
push ebx
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x3002fe71
push esi
push 0x33753469
jmp 0x3002fdd6
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x30001684
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x3002fe99
push esi
push 0x3375346a
jmp 0x3002fdd6
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 0xa]
push eax
push 0xfa1
call fcn.30025472
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 8]
push eax
push 0xfa2
call fcn.30025472
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 0xe]
push eax
push 0xfa3
call fcn.30025472
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 0xc]
push eax
jmp 0x3002fe02

Function at 0x30030083
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x300300f3
push esi
lea eax, [ebp - 4]
push eax
call fcn.30020615
test eax, eax
je 0x300300f3
push dword [ebp - 4]
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x300300eb
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x30001684
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x300300eb
cmp dword [ebp - 8], ebx
je 0x300300eb
mov esi, dword [ebp - 0xc]
push edi
mov edi, dword [ebp + 0xc]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
mov bl, 1
pop edi
push dword [ebp - 4]
call fcn.3002054a
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x300313ca
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [ebp + 8], eax
mov dword [ebp - 4], eax
je 0x30031455
mov eax, dword [ebp + 8]
test eax, 3
je 0x30031408
cmp byte [eax], 0
je 0x3003144c
lea eax, [eax + 1]
test eax, 3
je 0x30031408
cmp byte [eax], 0
je 0x3003144c
lea eax, [eax + 1]
test eax, 3
je 0x30031408
cmp byte [eax], 0
je 0x3003144c
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 0x30031408
test cl, cl
lea eax, [eax - 4]
je 0x3003144c
test ecx, 0xff00
lea eax, [eax + 1]
je 0x3003144c
test ecx, 0xff0000
lea eax, [eax + 1]
je 0x3003144c
test ecx, 0xff000000
lea eax, [eax + 1]
je 0x3003144c
lea eax, [eax + 1]
jmp 0x30031408
sub eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x3003145b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [ebp + 8], eax
mov dword [ebp - 4], eax
je 0x300314cd
mov eax, dword [ebp + 8]
test eax, 3
je 0x3003148c
cmp word [eax], 0
je 0x30031485
lea eax, [eax + 2]
test eax, 3
je 0x3003148c
jmp 0x30031473
sub eax, dword [ebp + 8]
shr eax, 1
jmp 0x300314c7
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x10001
xor edx, ecx
and edx, 0x80008000
je 0x3003148c
sub eax, dword [ebp + 8]
shr eax, 1
test cx, cx
lea eax, [eax - 2]
je 0x300314c7
test ecx, 0xffff0000
lea eax, [eax + 1]
je 0x300314c7
lea eax, [eax*2 + 2]
add eax, dword [ebp + 8]
jmp 0x3003148c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x30036cfb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x30036d15
test al, 0x10
je 0x30036d15
xor eax, eax
inc eax
jmp 0x30036d17
xor eax, eax
pop ebp
ret 4

Function at 0x30037cc0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x3001dedc]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x7ff
push eax
call dword [sym.imp.MSVCR80.dll__vsnprintf]
add esp, 0x10
lea eax, [ebp - 0x804]
push eax
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.30040fc0
leave
ret

Function at 0x3003b44d
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, ecx
xor ecx, ecx
mov eax, 0x3007ce04
inc ecx
lock xadd dword [eax], ecx
inc ecx
cmp ecx, 1
jne 0x3003b49e
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x28]
mov dword [0x3007ce08], eax
mov ax, word [ebp - 0x30]
mov word [0x3007ce0c], ax
mov eax, dword [ebp - 0x18]
mov dword [0x3007ce10], eax
mov eax, dword [ebp - 0x40]
mov dword [0x3007ce14], eax
mov eax, esi
pop esi
leave
ret

Function at 0x3003e191
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x3001dedc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x3007ced4], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
jne 0x3003e1ba
mov edi, 0x8ff000ff
jmp 0x3003e1ff
test ebx, ebx
je 0x3003e1fa
call fcn.3003d9f0
mov edi, eax
test edi, edi
jl 0x3003e1ff
push esi
call fcn.3003c967
mov esi, eax
test esi, esi
je 0x3003e1fa
test byte [esi + 0x1f], 4
jne 0x3003e1f1
push esi
call fcn.3003d58d
mov edi, eax
test edi, edi
jge 0x3003e1f1
cmp edi, 0x8007000e
je 0x3003e1ff
xor edi, edi
mov eax, dword [ebp + 0xc]
dec eax
je 0x3003e212
dec eax
je 0x3003e22a
mov edi, 0x80004005
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30040fc0
leave
ret 0xc
mov eax, dword [esi + 0x18]
test eax, eax
je 0x3003e22a
cmp byte [esi + 0x1e], 0
jbe 0x3003e22a
mov eax, dword [eax]
and eax, 0xff
mov dword [ebx], eax
jmp 0x3003e1ff
cmp dword [esi + 8], 0x1000
jne 0x3003e251
call fcn.30040b45
test al, al
je 0x3003e251
push 3
lea eax, [ebp - 0xc]
push eax
push 0x1009
push dword [esi + 4]
call fcn.30040ae7
jmp 0x3003e265
push 3
lea eax, [ebp - 0xc]
push eax
push 0x1009
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x3003e1fa
lea eax, [ebp - 0xc]
push eax
call fcn.3003c94f
push ebx
push eax
call fcn.3003d93c
mov edi, eax
jmp 0x3003e1ff
Function at 0x3003e27d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x3001dedc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x3007cebc
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x220], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [esi + 0x1f], 2
jne 0x3003e492
mov eax, dword [esi + 0x14]
cmp eax, ebx
push edi
mov edi, 0x3007cef8
je 0x3003e2d3
push eax
mov ecx, edi
call fcn.30040947
mov dword [esi + 0x14], ebx
mov byte [esi + 0x1d], bl
push 8
lea eax, [ebp - 0x14]
push eax
push 0x1004
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x3003e3d4
lea eax, [ebp - 0x23c]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push 0x3001de0c
push ebx
call fcn.3003f7d3
cmp eax, ebx
mov dword [ebp - 0x218], eax
jl 0x3003e3d4
mov eax, dword [ebp - 0x238]
push 4
xor ecx, ecx
pop edx
mul edx
seto cl
mov dword [ebp - 0x220], 1
neg ecx
or eax, ecx
push eax
mov ecx, edi
call fcn.3004091d
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x3003e3e4
cmp dword [ebp - 0x238], ebx
mov dword [ebp - 0x21c], ebx
jbe 0x3003e3a8
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebp - 0x23c]
push dword [eax + ecx*4]
call fcn.3003dc79
cmp eax, ebx
mov dword [ebp - 0x218], eax
jl 0x3003e38d
movzx eax, byte [esi + 0x1d]
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x224]
mov dword [ecx + eax*4], edx
inc byte [esi + 0x1d]
jmp 0x3003e394
cmp eax, 0x8007000e
je 0x3003e3bf
inc dword [ebp - 0x21c]
mov eax, dword [ebp - 0x21c]
cmp eax, dword [ebp - 0x238]
jb 0x3003e353
cmp byte [esi + 0x1d], bl
jne 0x3003e47e
mov eax, dword [esi + 0x14]
mov byte [esi + 0x1d], 1
mov dword [eax], ebx
jmp 0x3003e47e
push dword [esi + 0x14]
mov ecx, edi
call fcn.30040947
mov dword [esi + 0x14], ebx
mov byte [esi + 0x1d], bl
jmp 0x3003e491
push 4
mov ecx, edi
call fcn.3004091d
cmp eax, ebx
mov dword [esi + 0x14], eax
jne 0x3003e3f3
mov dword [ebp - 0x218], 0x8007000e
jmp 0x3003e491
mov byte [esi + 0x1d], 1
mov dword [eax], ebx
call fcn.30040b45
test al, al
je 0x3003e423
cmp dword [esi + 8], 0x1000
jne 0x3003e423
push 0x100
lea eax, [ebp - 0x214]
push eax
push 4
push dword [esi + 4]
call fcn.30040ae7
jmp 0x3003e43a
push 0x100
lea eax, [ebp - 0x214]
push eax
push 4
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, ebx
je 0x3003e47e
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
mov dword [ebp - 0x21c], ebx
call fcn.3003c9cd
test eax, eax
je 0x3003e472
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call fcn.3003fc34
mov ecx, dword [esi + 0x14]
mov dword [ecx], eax
cmp dword [ebp - 0x218], 0x8007000e
je 0x3003e491
cmp dword [esi + 8], 0xc00
je 0x3003e48b
or byte [esi + 0x1f], 2
mov dword [ebp - 0x218], ebx
pop edi
push 0x3007cebc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x220], ebx
pop esi
pop ebx
je 0x3003e4b3
lea eax, [ebp - 0x23c]
push eax
call fcn.3003f840
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
xor ecx, ebp
call fcn.30040fc0
leave
ret 4