joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59806afc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x59806b98
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.598041b0
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.598040d8
lea edx, [ebp + 0x30]
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x59806b24
cmp byte [esp], 0
je 0x59806b69
mov eax, edi
call fcn.598040d8
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x59806ba4
mov eax, edi
call fcn.598040d8
push eax
mov eax, edi
call fcn.598040d8
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.5980271c
mov edx, ebx
mov eax, edi
call fcn.598041b0
jmp 0x59806ba4
mov eax, edi
mov edx, 0x59806bb4
call fcn.59803c44
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5980733c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.59804070
xor eax, eax
push ebp
push 0x5980739e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.59803c44
mov eax, ebx
call fcn.598040d0
mov eax, dword [ebx]
call fcn.59803e88
test eax, eax
jle 0x59807388
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x5980737d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x598073a5
lea eax, [ebp - 4]
call fcn.59803bf0
ret

Function at 0x59807ce0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.59804070
xor eax, eax
push ebp
push 0x59807db4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.59804080
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x59807d96
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
call fcn.598041b0
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.59804080
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x59807d96
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x59807dc8
mov eax, dword [ebp - 0x1c]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x59807d96
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59807dbb
lea eax, [ebp - 0x1c]
call fcn.59803bf0
lea eax, [ebp - 4]
call fcn.59803bf0
ret
Function at 0x59807f24
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x59807f6c
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
mov edi, esi
push edi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x59807f62
cmp word [edi], 0x5a4d
jne 0x59807f62
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x59807f62
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x59807f78
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x59808108
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x5980814e
push 0x20a
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov ebx, eax
push 0x104
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileW
mov esi, eax
jmp 0x5980817f
push 0x105
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov ebx, eax
push 0x104
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameA_1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileA
mov esi, eax
push ebx
call sub.kernel32.dll_LocalFree_2
cmp esi, 0xffffffff
je 0x598081dc
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x598081aa
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x598081bc
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x598081d6
push 0
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.kernel32.dll_CloseHandle
push esi
call sub.kernel32.dll_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x5980b370
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffedc
mov ebp, ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
push 0x1c
lea eax, [esp + 4]
push eax
push edi
call sub.kernel32.dll_VirtualQuery
cmp eax, 0x1c
jne 0x5980b3ec
cmp dword [esp + 0x10], 0x1000
jne 0x5980b3ec
cmp dword [esp + 4], 0
je 0x5980b3ec
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
test eax, eax
je 0x5980b3ec
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x5980b3ec
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x5980b3ec
mov edx, dword [esi]
add edx, dword [eax + 0x78]
mov dword [ebp], edx
cmp dword [ebp], 0
setne bl
mov eax, ebx
add esp, 0x124
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5980e3cc
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x5980e483
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
mov eax, 0x5980e49c
call fcn.5980733c
push dword [ebp - 0xc]
push 0x5980e4b0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov cl, byte [ebp - 1]
mov eax, 0x5980e4bc
call fcn.5980e290
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 3
call fcn.59803f48
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.59804080
push eax
call fcn.5980e1a0
mov esi, eax
test esi, esi
je 0x5980e468
push 0
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
test eax, eax
je 0x5980e462
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov ecx, dword [eax]
mov dword [edx], ecx
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5980e48a
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.59803c14
ret

Function at 0x5980e714
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov edi, eax
xor esi, esi
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x5980e785
mov ebx, 0x5f040000
jmp 0x5980e773
cmp dword [esp + 0x10], 0x10000
jne 0x5980e751
push 0x40
push 0x2000
push edi
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
jmp 0x5980e785
cmp dword [esp + 0xc], 0x10000
jae 0x5980e765
mov dword [esp + 0xc], 0x10000
jmp 0x5980e76d
and dword [esp + 0xc], 0xffff0000
mov eax, dword [esp + 0xc]
add ebx, eax
push 0x1c
lea eax, [esp + 4]
push eax
push ebx
call sub.kernel32.dll_VirtualQuery
cmp eax, 0x1c
je 0x5980e731
push 0x40
push 0x1000
push edi
push esi
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, esi
add esp, 0x1c
pop edi
pop esi
pop ebx
ret

Function at 0x5980ea50
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
pushfd
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [0x5983bb74]
cmp eax, 0x1c
jne 0x5980eacb
cmp dword [ebp - 0xc], 0x1000
jne 0x5980eac6
cmp dword [ebp - 0x18], 0
je 0x5980eac6
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
je 0x5980eac6
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0
jne 0x5980eaa5
mov eax, dword [ebp - 0x18]
cmp eax, 0x80000000
jae 0x5980eacb
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x5983bb44]
cmp eax, 0
je 0x5980eac6
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x5983bb9c]
add ebx, dword [ebp - 0x10]
jmp 0x5980ea67
popfd
popal
add esp, 0x20
pop ebp
ret 0xc
Function at 0x598126a4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5981288b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor edx, edx
mov eax, 0x598128a4
call fcn.5980b1d8
mov dword [0x5983d9a0], eax
xor edx, edx
mov eax, 0x598128c8
call fcn.5980b1d8
mov dword [0x5983d9a4], eax
lea eax, [ebp - 8]
mov edx, 5
call fcn.598041b0
lea eax, [ebp - 8]
call fcn.598040d8
mov byte [eax], 0x72
lea eax, [ebp - 8]
call fcn.598040d8
mov byte [eax + 1], 0x64
lea eax, [ebp - 8]
call fcn.598040d8
mov byte [eax + 2], 0x65
lea eax, [ebp - 8]
call fcn.598040d8
mov byte [eax + 3], 0x63
lea eax, [ebp - 8]
call fcn.598040d8
mov byte [eax + 4], 0x20
lea edx, [ebp - 0xc]
mov eax, 0x598128f0
call fcn.5980733c
push dword [ebp - 0xc]
push 0x59812900
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.59806e90
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 4
call fcn.59803f48
mov eax, dword [ebp - 8]
call fcn.59804080
push eax
push 0
push 0
call fcn.598056dc
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x59812870
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov dword [0x5983d994], esi
mov dword [0x5983d998], edi
cmp dword [0x5983d9a0], 0
je 0x598127c0
cmp dword [0x5983d9a4], 0
jne 0x59812842
mov dl, 1
mov eax, 0x5981290c
call fcn.5980b2d4
mov esi, eax
cmp dword [esi], 0x4244c8b
jne 0x59812854
lea eax, [esi + 4]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x241c8b
jne 0x59812854
lea eax, [esi + 7]
cmp byte [eax], 0x51
jne 0x59812854
lea eax, [esi + 8]
cmp byte [eax], 0x53
jne 0x59812854
lea eax, [esi + 9]
cmp byte [eax], 0xe8
jne 0x59812854
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea eax, [esi + 0xa]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x59812854
lea edx, [esi + 0xe]
lea eax, [esi + 0xa]
add edx, dword [eax]
mov dword [0x5983d99c], edx
mov edx, 0x59812654
sub edx, esi
sub edx, 0xe
mov dword [eax], edx
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp - 4]
push edx
push 4
push eax
call sub.kernel32.dll_VirtualProtect
mov bl, 1
jmp 0x59812854
push 0x59812600
push 1
call dword [0x5983d9a0]
test eax, eax
setne bl
test bl, bl
jne 0x59812870
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59812892
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.59803c14
ret
Function at 0x59812928
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
cmp dword [0x5983d9a0], 0
je 0x59812940
cmp dword [0x5983d9a4], 0
jne 0x59812999
mov dl, 1
mov eax, 0x598129b4
call fcn.5980b2d4
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea esi, [ebx + 0xa]
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x5981297f
mov eax, dword [0x5983d99c]
sub eax, ebx
sub eax, 0xe
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
push 4
push esi
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x598129a4
push 0x59812600
call dword [0x5983d9a4]
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x59815550
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x59815726
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x5981570b
xor eax, eax
push ebp
push 0x59815704
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 3
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_GetTokenInformation
cmp dword [ebp - 8], 0
je 0x598156ed
mov eax, dword [ebp - 8]
add eax, eax
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
add eax, eax
push eax
push ebx
push 3
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
je 0x598156e7
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x24]
mov eax, 0x5981573c
call fcn.5980733c
mov eax, dword [ebp - 0x24]
call fcn.59804080
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x5981561b
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x28]
mov eax, 0x59815758
call fcn.5980733c
mov eax, dword [ebp - 0x28]
call fcn.59804080
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x5981564e
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x2c]
mov eax, 0x59815774
call fcn.5980733c
mov eax, dword [ebp - 0x2c]
call fcn.59804080
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x59815681
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov esi, dword [ebx]
dec esi
test esi, esi
jl 0x598156d3
inc esi
xor ecx, ecx
lea edi, [ecx + ecx*2]
mov eax, dword [ebx + edi*4 + 4]
mov edx, dword [ebx + edi*4 + 8]
cmp edx, dword [ebp - 0xc]
jne 0x5981569e
cmp eax, dword [ebp - 0x10]
je 0x598156cf
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x14]
jne 0x598156b3
cmp eax, dword [ebp - 0x18]
je 0x598156cf
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x1c]
jne 0x598156c8
cmp eax, dword [ebp - 0x20]
je 0x598156cf
or dword [ebx + edi*4 + 0xc], 2
inc ecx
dec esi
jne 0x5981568b
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push ebx
call sub.kernel32.dll_LocalFree_2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5981570b
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5981572d
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.59803c14
ret
Function at 0x59816038
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x59816116
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5983bca8], 0
jne 0x598160f2
push 0x59816154
push 0x4000
push 0
push 2
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingW
mov dword [0x5983bca4], eax
cmp dword [0x5983bca4], 0
jne 0x59816091
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5981614b
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
je 0x598160b5
mov eax, dword [0x5983bca4]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5981614b
push 0
push 0
push 0
push 4
mov eax, dword [0x5983bca4]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x5983bca8], eax
cmp dword [0x5983bca8], 0
jne 0x598160f2
mov eax, dword [0x5983bca4]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [0x5983bca4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5981614b
cmp dword [0x5983bca8], 0
je 0x5981610c
mov eax, dword [0x5983bca8]
mov dword [0x5983bca0], eax
mov dword [ebp - 4], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5981614b
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x59816284
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 3
add esp, 0xfffff004
push eax
dec eax
jne 0x5981628d
mov eax, dword [ebp - 4]
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.59804070
xor eax, eax
push ebp
push 0x59816345
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.59803c44
push 0x10
push 1
push esi
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
je 0x5981632f
push ebx
push esi
call sub.kernel32.dll_LoadResource
mov edi, eax
test edi, edi
je 0x5981632f
push ebx
push esi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
cmp ebx, 0x3000
ja 0x5981632f
push edi
call sub.kernel32.dll_LockResource
test eax, eax
je 0x5981632f
lea edx, [ebp - 0x3009]
mov ecx, ebx
xchg edx, eax
call fcn.59805cc8
mov byte [ebp + ebx - 0x3009], 0
push 0x11
mov eax, dword [ebp - 8]
push eax
mov ecx, 0x59816354
lea eax, [ebp - 0x3009]
mov edx, ebx
call fcn.598161f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5981634c
lea eax, [ebp - 4]
call fcn.59803bf0
ret

Function at 0x59817c30
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x59817c69
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.59803ce0
jmp 0x59817c72
mov eax, ebx
mov edx, esi
call fcn.59803c44
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x59817c7c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x59817c9d
mov al, byte [esp]
jmp 0x59817c9f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x59818324
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x5981819c
mov eax, dword [0x5983c9c8]
cmp byte [eax], 0
je 0x59818391
mov eax, dword [0x5983c918]
call fcn.598027c0
call fcn.598026cc
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.59817044
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x598183d8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x598183c7
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x5983c8f8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5983d710]
call fcn.59804d84
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x59818d58
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x59818dbc
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.59803e40
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.59816e9c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59818dc3
lea eax, [ebp - 0xc]
call fcn.59803bf0
ret
Function at 0x5981cfb4
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], ebx
mov esi, ecx
mov edi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5981d156
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [edi + 0x10], 0
je 0x5981d128
cmp word [edi + 0x1e], 2
jb 0x5981d128
movzx edx, word [edi + 0x1e]
sub edx, 2
sar edx, 1
jns 0x5981d014
adc edx, 0
mov eax, esi
call fcn.5980447c
lea eax, [ebp - 8]
push eax
movzx eax, word [edi + 0x1e]
sub eax, 2
push eax
mov eax, dword [esi]
push eax
mov eax, dword [edi + 0x20]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x5981d049
mov eax, dword [ebp - 8]
add eax, 2
movzx edx, word [edi + 0x1e]
cmp eax, edx
je 0x5981d04d
xor ebx, ebx
jmp 0x5981d04f
mov bl, 1
test bl, bl
je 0x5981d128
mov eax, dword [esi]
call fcn.59804320
mov edx, eax
mov eax, esi
call fcn.598042c8
lea eax, [ebp - 0x218]
mov edx, dword [esi]
call fcn.59803e74
mov edx, dword [ebp - 0x218]
mov eax, 0x5981d170
call fcn.598065d0
test al, al
je 0x5981d09e
mov eax, esi
mov ecx, 4
mov edx, 1
call fcn.598043ec
jmp 0x5981d128
lea eax, [ebp - 0x21c]
mov edx, dword [esi]
call fcn.59803e74
mov edx, dword [ebp - 0x21c]
mov eax, 0x5981d180
call fcn.59806640
test al, al
je 0x5981d115
push 0x104
lea eax, [ebp - 0x212]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
lea eax, [ebp - 0x220]
push eax
mov eax, dword [esi]
mov ecx, 0x7fffffff
mov edx, 0x15
call fcn.598043a0
mov eax, dword [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.59804304
mov edx, dword [ebp - 0x224]
mov eax, esi
pop ecx
call fcn.5980433c
jmp 0x5981d128
mov eax, dword [esi]
call fcn.59804320
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5981d15d
lea eax, [ebp - 0x224]
mov edx, 2
call fcn.5980425c
lea eax, [ebp - 0x21c]
mov edx, 2
call fcn.59803c14
ret