joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f970
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f480
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4620f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [edi + 0xc], 0x200
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push eax
mov dword [ebp - 4], eax
lea ecx, [edi - 0x28]
push 0x450adc
lea eax, [ebp - 0x28]
push eax
call fcn.0041f5c0
test al, al
je 0x41faed
mov eax, dword [ebp - 0x18]
lea ecx, [eax - 1]
cmp ecx, eax
ja 0x41f9f4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x41fa01
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403be0
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x38]
call fcn.0042c470
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 2
test eax, eax
je 0x41fa31
cmp dword [eax + 4], 0
jne 0x41fab2
lea ecx, [ebp - 0x40]
call fcn.00436e20
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
push ecx
push ecx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x41faa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x90
jne 0x41faa6
lea eax, [ebp - 0x28]
push eax
lea ecx, [edi - 0x28]
call fcn.0041f800
test al, al
je 0x41faa6
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
push ecx
push ecx
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x41faa6
mov eax, dword [ebp - 0x34]
mov dword [edi + 0xc], eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00436eb0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0042c690
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x41faed
lea esp, [esp]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x41faed
mov eax, dword [ecx + 0xc]
mov esi, dword [ecx + 8]
push ecx
mov eax, dword [eax]
call eax
add esp, 4
mov ecx, esi
test esi, esi
jne 0x41fad0
cmp dword [ebp - 0x14], 8
mov esi, dword [edi + 0xc]
jb 0x41fb01
push dword [ebp - 0x28]
call fcn.00404a15
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004051a4
mov esp, ebp
pop ebp
ret
Function at 0x422530
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f94c
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4620f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
cmp eax, 0x95
je 0x422574
push eax
call fcn.00418e90
jmp 0x42275e
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x422616
push str.Error_occurred_while_opening_the_file.
call fcn.004029e0
add esp, 4
push eax
mov eax, dword [ebp - 0x234]
push 0x40007
push 0x45030c
sub esp, 0x18
mov ecx, esp
mov dword [ecx], 0x3b21feb8
mov dword [ecx + 4], 0xf35f747b
mov dword [ecx + 8], 0x450348
mov dword [ecx + 0xc], 0x4501d4
mov dword [ecx + 0x10], 0x7af
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x24c]
push eax
call fcn.00416a40
add esp, 0x28
push eax
mov eax, dword [esi + 4]
lea ecx, [esi + 8]
mov dword [ebp - 4], 0
mov eax, dword [eax + 4]
add ecx, eax
call fcn.004030c0
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 0xffffffff
call fcn.00402f20
xor eax, eax
jmp 0x42275e
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
push 0x45023c
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 1
call fcn.00401480
push 0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00419e20
add esp, 0x10
mov byte [ebp - 4], 1
test al, al
sete bl
cmp dword [ebp - 0x234], 8
jb 0x42268d
push dword [ebp - 0x248]
call fcn.00404a15
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
test bl, bl
je 0x422724
push str.Error_occurred_while_opening_the_file.
call fcn.004029e0
add esp, 4
push eax
mov eax, dword [ebp - 0x234]
push 0x40007
sub esp, 0x18
mov ecx, esp
mov dword [ecx], 0x3b21febe
mov dword [ecx + 4], 0xf35f747b
mov dword [ecx + 8], 0x450400
mov dword [ecx + 0xc], str.winnt_dir::OpenSpecialDir
mov dword [ecx + 0x10], 0x7b5
mov dword [ecx + 0x14], eax
lea ecx, [ebp - 0x250]
call fcn.00412b70
push eax
mov eax, dword [esi + 4]
lea ecx, [esi + 8]
mov byte [ebp - 4], 3
mov eax, dword [eax + 4]
add ecx, eax
call fcn.004030c0
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 1
call fcn.00402f20
xor esi, esi
jmp 0x422745
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
mov eax, dword [esi]
cmovae ecx, dword [ebp - 0x230]
push ecx
mov ecx, esi
call dword [eax + 0x88]
mov esi, eax
cmp dword [ebp - 0x21c], 8
jb 0x42275c
push dword [ebp - 0x230]
call fcn.00404a15
add esp, 4
mov eax, esi
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.004051a4
mov esp, ebp
pop ebp
ret 4
Function at 0x423310
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fb88
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4620f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], cx
push ecx
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ecx
push eax
lea ecx, [esi - 8]
call fcn.0041f5c0
test al, al
jne 0x4233fa
push str.Error_occurred_while_deleting_the_file.
call fcn.004029e0
add esp, 4
push eax
mov eax, dword [ebp - 0x14]
push 0x40008
sub esp, 0x18
mov ecx, esp
mov dword [ecx], 0x3b21fabe
mov dword [ecx + 4], 0xf35f747b
mov dword [ecx + 8], 0x450038
mov dword [ecx + 0xc], 0x45000c
mov dword [ecx + 0x10], 0x3b5
mov dword [ecx + 0x14], eax
lea ecx, [ebp - 0x2c]
call fcn.00412b70
push eax
mov eax, dword [esi - 4]
mov byte [ebp - 4], 1
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.004030c0
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
test eax, eax
je 0x4234eb
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4234eb
mov ecx, dword [eax + 0xc]
mov esi, dword [eax + 8]
push eax
mov eax, dword [ecx]
call eax
add esp, 4
mov eax, esi
test esi, esi
jne 0x4233d4
jmp 0x4234eb
mov eax, dword [esi - 4]
lea ecx, [ebp - 0x30]
mov eax, dword [eax + 4]
add eax, esi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042c470
mov eax, dword [esi - 4]
mov byte [ebp - 4], 2
mov eax, dword [eax + 4]
mov eax, dword [eax + esi]
test eax, eax
je 0x42342a
cmp dword [eax + 4], 0
jne 0x4234df
lea ecx, [ebp - 0x38]
call fcn.00436e20
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4234c1
push str.Error_occurred_while_deleting_the_file.
call fcn.004029e0
add esp, 4
push eax
push 0x40008
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x14]
push 0x450084
sub esp, 0x18
mov ecx, esp
mov dword [ecx], 0x3b21fac9
mov dword [ecx + 4], 0xf35f747b
mov dword [ecx + 8], 0x450110
mov dword [ecx + 0xc], str.winnt_dir::RemoveDir
mov dword [ecx + 0x10], 0x3c0
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0041d0b0
add esp, 0x2c
push eax
mov eax, dword [esi - 4]
mov byte [ebp - 4], 4
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.004030c0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00402f20
jmp 0x4234d3
mov eax, dword [esi - 4]
push 0x465148
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.004030c0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00436eb0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0042c690
cmp dword [ebp - 0x14], 8
jb 0x4234fc
push dword [ebp - 0x28]
call fcn.00404a15
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004051a4
mov esp, ebp
pop ebp
ret 4
Function at 0x423e10
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fb88
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4620f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], cx
push ecx
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ecx
push eax
lea ecx, [esi - 8]
call fcn.0041f5c0
test al, al
jne 0x423efa
push str.Error_occurred_while_creating_the_file.
call fcn.004029e0
add esp, 4
push eax
mov eax, dword [ebp - 0x14]
push 0x4000a
sub esp, 0x18
mov ecx, esp
mov dword [ecx], 0x3b21fb82
mov dword [ecx + 4], 0xf35f747b
mov dword [ecx + 8], 0x4505f8
mov dword [ecx + 0xc], 0x45057c
mov dword [ecx + 0x10], 0x479
mov dword [ecx + 0x14], eax
lea ecx, [ebp - 0x2c]
call fcn.00412b70
push eax
mov eax, dword [esi - 4]
mov byte [ebp - 4], 1
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.004030c0
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
test eax, eax
je 0x423fee
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x423fee
mov ecx, dword [eax + 0xc]
mov esi, dword [eax + 8]
push eax
mov eax, dword [ecx]
call eax
add esp, 4
mov eax, esi
test esi, esi
jne 0x423ed4
jmp 0x423fee
mov eax, dword [esi - 4]
lea ecx, [ebp - 0x30]
mov eax, dword [eax + 4]
add eax, esi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042c470
mov eax, dword [esi - 4]
mov byte [ebp - 4], 2
mov eax, dword [eax + 4]
mov eax, dword [eax + esi]
test eax, eax
je 0x423f2a
cmp dword [eax + 4], 0
jne 0x423fe2
lea ecx, [ebp - 0x38]
call fcn.00436e20
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp + 0xc]
cmovae eax, dword [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x423fc4
push str.Error_occurred_while_writing_the_file.
call fcn.004029e0
add esp, 4
push eax
push 0x40003
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x14]
push 0x4505e4
sub esp, 0x18
mov ecx, esp
mov dword [ecx], 0x3b21fb8d
mov dword [ecx + 4], 0xf35f747b
mov dword [ecx + 8], 0x450660
mov dword [ecx + 0xc], str.winnt_dir::SetDOSAttributes
mov dword [ecx + 0x10], 0x484
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0041d0b0
add esp, 0x2c
push eax
mov eax, dword [esi - 4]
mov byte [ebp - 4], 4
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.004030c0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00402f20
jmp 0x423fd6
mov eax, dword [esi - 4]
push 0x465148
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.004030c0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00436eb0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0042c690
cmp dword [ebp - 0x14], 8
jb 0x423fff
push dword [ebp - 0x28]
call fcn.00404a15
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004051a4
mov esp, ebp
pop ebp
ret 8
Function at 0x425ad0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x500], 0
je 0x425af6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [esi + 0x504]
je 0x425b3e
lea ecx, [esi + 0x4f8]
pop esi
jmp fcn.00438810
cmp dword [esi + 8], 0
je 0x425b3e
cmp dword [esi + 0x4fc], 0
jne 0x425b1d
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x4fc], eax
test eax, eax
je 0x425b3e
lea eax, [esi + 0x504]
push eax
push 0
push esi
push 0x425b80
push 0
push 0
call fcn.00437162
add esp, 0x18
mov dword [esi + 0x500], eax
pop esi
ret
Function at 0x42b190
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44074b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4620f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x4653e0], 0
mov dword [ebp - 0x14], 0
jne 0x42b2ad
lea eax, [ebp - 0x10]
push eax
push 1
push 0xe
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x42b1ec
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
jmp 0x42b1f3
mov dword [ebp - 0x10], 0
push str.shfolder
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x451294
mov dword [0x465400], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push 0x15
push edi
call esi
push 2
push edi
mov dword [0x4653ec], eax
call esi
push 4
push edi
mov dword [0x4653f0], eax
call esi
push str.SHChangeNotification_Lock
push edi
mov dword [0x4653f4], eax
call esi
push str.SHChangeNotification_Unlock
push edi
mov dword [0x4653f8], eax
call esi
push 0
push 0
mov dword [0x4653fc], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp dword [0x4653e4], 0
jne 0x42b26c
push 0x4653e4
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
cmp dword [0x4653e8], 0
jne 0x42b280
push 0x4653e8
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
mov eax, dword [ebp - 0x10]
mov byte [0x4653e0], 1
test eax, eax
je 0x42b2ad
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x42b2ad
push esi
call dword [sym.imp.KERNEL32.dll_ExitThread]
xor esi, esi
cmp dword [0x4653e4], esi
je 0x42b304
cmp dword [0x4653e8], esi
je 0x42b304
push 0x68
call fcn.0040499f
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x42b2ec
push 1
push esi
push 0x45284c
push dword [0x4653e8]
mov ecx, eax
call fcn.00426300
mov esi, eax
jmp 0x42b2ee
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x42b304
mov eax, dword [0x4653e8]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42c560
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x42c59b
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x42c582
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x42c593
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x42c59d
inc edi
add eax, 0x28
cmp edi, esi
jb 0x42c578
xor eax, eax
pop edi
pop esi
ret
Function at 0x42d0a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp + 0x14]
call fcn.0042c4e5
add esp, 0xc
mov dword [ebp - 0x67c], eax
and byte [ebp - 0x524], 0
and byte [ebp - 0x523], 0
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
mov byte [ebp - 0x51f], 0x8f
mov byte [ebp - 0x51e], 0x8b
mov byte [ebp - 0x51d], 0x9a
mov byte [ebp - 0x51c], 0xac
mov byte [ebp - 0x51b], 0x98
mov byte [ebp - 0x51a], 0x8f
mov byte [ebp - 0x519], 0x8f
mov byte [ebp - 0x518], 0xea
lea eax, [ebp - 0x524]
push eax
call fcn.0042c530
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0042c4e5
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.0042c520
add dh, byte [ecx]
push es
aaa
and byte [ebp - 0x514], 0
and byte [ebp - 0x513], 0
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.0042c530
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0042c4e5
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.0042c520
pop eax
cmp cl, byte [esp + ebx*4 + 0x68]
add al, 1
add byte [eax], al
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
invalid
invalid
invalid
Function at 0x4369b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4620f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push edi
movzx edi, ax
lea eax, [ebp - 0x18]
push 0x13
push eax
push 0x59
push edi
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ecx, eax
lea edx, [ebp - 0x18]
mov eax, 0x13
add edx, ecx
sub eax, ecx
push eax
push edx
push 0x5a
push edi
mov byte [edx - 1], 0x5f
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
cmp byte [ebp - 0x18], 0
jne 0x436a19
xor ecx, ecx
jmp 0x436a29
lea ecx, [ebp - 0x18]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x436a20
sub ecx, edx
push ecx
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.00401e50
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.004051a4
mov esp, ebp
pop ebp
ret
Function at 0x4388f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
cmp esi, 3
je 0x438900
test esi, esi
jne 0x438940
cmp dword [0x465550], 0
je 0x438931
push dword [0x465554]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x438931
push eax
call dword [0x465550]
add esp, 4
push 0
push dword [0x465554]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
jne 0x438940
mov eax, dword [0x465558]
test eax, eax
je 0x438940
call eax
pop esi
pop ebp
ret 0xc
Function at 0x43d310
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x43d31c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.0043d040

Function at 0x43d330
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043d340
Function at 0x40cec0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov eax, dword [esp + 0xc]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0x148]
push ebp
mov ebp, dword [esp + 0x14]
shl edx, 4
push edi
mov edi, dword [eax + edx + 0x18]
mov al, byte [edi]
test al, al
mov dword [esp + 8], ebp
mov dword [esp + 0x18], edi
je 0x40cfd8
push ebx
push esi
movzx ebx, word [edi + 8]
xor ecx, ecx
mov cl, al
mov al, byte [edi + 2]
test al, al
je 0x40cf1f
mov edx, dword [edi + 0x10]
mov esi, dword [esp + 0x24]
test byte [esi + edx], al
je 0x40cf1a
mov byte [ebp], 0
inc ebp
jmp 0x40cfc4
mov byte [ebp], 1
inc ebp
mov eax, dword [esp + 0x24]
mov esi, dword [edi + 0xc]
add esi, eax
mov ax, word [edi + 6]
test al, 1
je 0x40cf90
cmp ecx, 7
lea eax, [esi + ebx]
je 0x40cf4d
cmp eax, esi
jbe 0x40cf5b
lea esp, [esp]
cmp byte [eax - 1], 0x20
jne 0x40cf5b
dec eax
cmp eax, esi
ja 0x40cf40
jmp 0x40cf5b
cmp esi, eax
jae 0x40cf5b
cmp byte [esi], 0x20
jne 0x40cf5b
inc esi
cmp esi, eax
jb 0x40cf51
sub eax, esi
cmp eax, 0xff
jae 0x40cf6a
mov byte [ebp], al
inc ebp
jmp 0x40cf7c
mov ecx, eax
shr ecx, 8
mov byte [ebp], 0xff
mov byte [ebp + 2], al
mov byte [ebp + 1], cl
add ebp, 3
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add ebp, eax
jmp 0x40cfbe
test al, 8
je 0x40d010
movzx eax, word [esi]
add esi, 2
cmp ebx, eax
jbe 0x40cfa0
mov ebx, eax
cmp ebx, 0xff
jae 0x40cffc
mov byte [ebp], bl
inc ebp
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add ebp, ebx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x20]
mov al, byte [edi + 0x18]
add edi, 0x18
test al, al
mov dword [esp + 0x20], edi
jne 0x40cef5
pop esi
pop ebx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push eax
push ecx
push ebp
push edx
call fcn.0040fdd0
mov ecx, dword [esp + 0x18]
add esp, 0x10
mov eax, ebp
pop edi
sub eax, ecx
pop ebp
pop ecx
ret
mov byte [ebp], 0xff
mov eax, ebx
shr eax, 8
mov byte [ebp + 2], bl
mov byte [ebp + 1], al
add ebp, 3
jmp 0x40cfac
test al, 0x20
je 0x40d02e
movzx ecx, byte [edi + 3]
push esi
push ecx
call fcn.0040b960
movzx edx, byte [edi + 3]
mov esi, dword [edx + esi]
add esp, 8
jmp 0x40cf9a
test al, 0x40
je 0x40cfac
cmp ecx, 5
jne 0x40d072
mov ecx, dword [esi]
mov dword [esp + 0x1c], ecx
fld dword [esp + 0x1c]
sub esp, 8
fstp qword [esp]
call fcn.00421048
add esp, 8
test eax, eax
je 0x40d0a5
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
add ebp, ebx
jmp 0x40cfc0
cmp ecx, 6
jne 0x40d0a5
mov ecx, dword [esi + 4]
mov eax, dword [esi]
push ecx
push eax
call fcn.00421048
add esp, 8
test eax, eax
je 0x40d0a5
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
add ebp, ebx
jmp 0x40cfc0
add esi, ebx
test ebx, ebx
je 0x40cfc4
nop
mov al, byte [esi - 1]
dec esi
mov byte [ebp], al
inc ebp
dec ebx
jne 0x40d0b0
jmp 0x40cfc4
Function at 0x419230
Capabilities:
Terminate process

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x41923f
mov edi, 1
push edi
call fcn.00421c2d
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x419293
push esi
call fcn.00420fc2
mov esi, eax
call fcn.00419640
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov esi, eax
and esi, 8
je 0x419276
mov edx, dword [fcn.0041c940]
mov dword [fcn.0041c940], edx
test al, 0x18
je 0x419287
push edi
push 0x24
push 5
call fcn.0041c9c0
add esp, 0xc
test esi, esi
pop esi
je 0x4192ae
push 1
call fcn.00420295
test byte [esp + 0x10], 0x20
je 0x4192ae
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
mov eax, ebx
pop ebx
ret

Function at 0x419af0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, edi
shl eax, 5
lea ebp, [eax + 0x445be0]
jmp 0x419b10
mov edi, dword [esp + 0x14]
lea esp, [esp]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push 0
push ecx
push edx
push edi
or esi, 0xffffffff
call fcn.004221d0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x419b53
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ebx
push eax
push edi
call fcn.00428c06
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x419b53
xor edi, edi
jmp 0x419b58
mov edi, 1
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
mov ebx, dword [esp + 0x28]
je 0x419bf9
call fcn.00420fc2
mov edi, eax
call fcn.00419640
test esi, esi
mov ecx, dword [edi]
mov dword [eax], ecx
jne 0x419b8d
call fcn.00420fc2
cmp dword [eax], 4
je 0x419b05
test bl, 0x1a
je 0x419be7
cmp esi, 0xffffffff
jne 0x419bc0
call fcn.00419640
mov edx, dword [eax]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.0041cb30
add esp, 4
push eax
push 0x24
push 2
call fcn.0041c9c0
add esp, 0x10
pop edi
or eax, esi
pop esi
pop ebp
pop ebx
ret
test bl, 6
je 0x419be7
call fcn.00419640
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.0041cb30
add esp, 4
push eax
push 0x24
push 9
call fcn.0041c9c0
add esp, 0x10
cmp esi, 0xffffffff
je 0x419bf1
test bl, 6
je 0x419bf9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
and bl, 6
neg bl
pop edi
sbb ebx, ebx
not ebx
and ebx, esi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret