joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4392d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x481813
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00473af0
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047ae2f
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047c7ac
test eax, eax
je 0x4393ec
mov ecx, dword [esp + 0x3c]
call fcn.0047ae5c
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4393b0
push edi
mov ecx, esi
call fcn.00477710
mov ecx, esi
call fcn.00439590
cmp dword [esp + 0x38], 1
jne 0x4393e5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0047784b
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x444d60
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x481d18
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x444d99
inc eax
mov dword [esi + 0x10], eax
jmp 0x444eac
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x444dad
mov eax, 0xffffffc7
jmp 0x444eae
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x444dbe
cmp dword [esi + 8], eax
jne 0x444dad
cmp dword [esi + 8], eax
jne 0x444dd7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x444dd7
mov eax, 0xffffffc7
jmp 0x444eae
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x444deb
push eax
mov ecx, ebx
call fcn.00444590
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00403ec0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x444e1c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00403ee0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00443d00
test eax, eax
mov dword [esp + 0x38], eax
je 0x444e4f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x48c61c
call fcn.004040c0
mov eax, dword [esp + 0x38]
jmp 0x444eae
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00444bc0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x444e93
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00444be0
mov esi, eax
test esi, esi
jne 0x444ec3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00444bc0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x444e65
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x48c61c
call fcn.004040c0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x48c61c
call fcn.004040c0
mov eax, esi
jmp 0x444eae
Function at 0x447bf0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x447c23
push esi
call fcn.00455d30
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x447c1c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x447ca9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x447c92
mov eax, dword [esi + 8]
test eax, eax
je 0x447c47
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x447c8e
cmp eax, 2
je 0x447c92
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x447c3a
cmp eax, 3
je 0x447c6d
cmp eax, 1
jne 0x447c3a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x447c3a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x447c3a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00447cd0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x447cb8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00447cd0
add esp, 4
pop esi
ret

Function at 0x448540
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x448561
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x448561
mov eax, dword [eax + 0x44]
test eax, eax
je 0x448561
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4748e6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47491e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004774cf
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004774a7
jmp 0x47492a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x475fd7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x476019
call fcn.0047d53f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x476019
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x476010
xor eax, eax
jmp 0x476021
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00476027
pop edi
pop esi
pop ebx
ret 4
Function at 0x47dbfd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47dc2b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47dc49
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047db63
jmp 0x47dc49
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47dc49
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047db63
test edi, edi
mov eax, edi
jne 0x47dc33
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x43b64d
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop ecx
dec eax
dec eax
call fcn.0043b687
and eax, esi
sub esp, 4
mov dword [esp], esi
pop esi
inc esi
xor dword [edi], ecx
sub eax, 0x8d7a61d4
inc edi
dec esi
dec esi
add esi, 0x140957a3
cmp edi, ebx
jne fcn.0043b64d
sub esi, 0x5c822eab
mov eax, 0xd6b91ed8
inc esi
ret
Function at 0x70d01ee3
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
push esi
jne 0x70d13739
mov eax, 0x94
call fcn.70d147bc
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x70d1376e
mov ecx, dword [esi + 0x10]
mov dword [0x70e7b1d4], ecx
mov eax, dword [esi + 4]
mov dword [0x70e7b1e0], eax
mov edx, dword [esi + 8]
mov dword [0x70e7b1e4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x70e7b1d8], esi
jne 0x70d82dac
shl eax, 8
add eax, edx
push 0
mov dword [0x70e7b1dc], eax
call fcn.70d147d5
test eax, eax
pop ecx
je 0x70d1376e
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x70e7b56c], eax
call fcn.70d1482a
mov dword [0x70e7b1d0], eax
call fcn.70d13fc9
test eax, eax
jl 0x70d82dbd
call fcn.70d1494e
test eax, eax
jl 0x70d13775
call fcn.70d14543
test eax, eax
jl 0x70d13775
call fcn.70d1414a
test eax, eax
jne 0x70d13775
inc dword [0x70e7a500]
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
xor eax, eax
cmp dword [ebp + 0xc], eax
jne 0x70d01fad
cmp dword [0x70e7a500], eax
jle 0x70d1376e
dec dword [0x70e7a500]
cmp dword [0x70e7a670], eax
jne 0x70d1375f
call fcn.70d13f1d
call fcn.70d1377f
call fcn.70d133e6
jmp 0x70d01fad
xor eax, eax
jmp 0x70d01fb0
call fcn.70d1377f
jmp 0x70d82dbd
or esi, 0x8000
mov dword [0x70e7b1d8], esi
jmp 0x70d01f44
call fcn.70d133e6
jmp 0x70d1376e
Function at 0x70d07c42
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
je 0x70d07cc8
inc eax
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x70d07c6c
mov ecx, dword [esi + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x70d07c78
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 0xc
mov eax, dword [esi + 0x14]
cmp eax, edi
je 0x70d07d89
cmp dword [0x70e7a018], edi
je 0x70d7777c
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0xffffffff
je 0x70d07d89
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x70d07d80
mov eax, dword [ebp - 0xc]
cmp eax, dword [esi]
jne 0x70d07d80
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 4]
jne 0x70d07d80
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
je 0x70d07d7f
push edi
push edi
push edi
push 2
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [ebp + 0x10], eax
je 0x70d07d7f
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x70d07d76
xor ecx, ecx
inc ecx
mov dword [esi + 0xc], eax
mov eax, dword [ebx]
mov dword [ebp - 4], ecx
mov dword [esi + 0x10], eax
mov dword [esi + 8], ecx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x70d07c7b
push eax
lea ecx, [ebp - 0x118]
call fcn.70d28ece
cmp dword [ebp - 0x118], 0x55464131
jne 0x70d777b5
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x70d07cf6
or dword [ebp + 8], 0xffffffff
jmp 0x70d07cf9
Function at 0x70d08c93
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
cmp dword [0x70e7a070], 0
je 0x70d7e503
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x70d08cd6
cmp dword [ebp + 0xc], 1
jne 0x70d7e552
leave
ret 0x10
push dword [ebp + 0xc]
lea ecx, [ebp - 0x110]
call fcn.70d28ece
cmp dword [ebp - 0x110], 0x55464131
jne 0x70d7e552
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp - 0x10c]
mov dword [ebp - 4], 0x104
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x70d08cd6
cmp dword [ebp + 0xc], 1
je 0x70d7e55a
push 0xd
pop eax
jmp 0x70d08cd6
mov eax, dword [ebp + 0x14]
shr eax, 1
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
call fcn.70d9b4fb
neg eax
sbb eax, eax
and eax, 0xfffffff3
add eax, 0xd
jmp 0x70d08cd6

Function at 0x70d08eb9
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
cmp dword [0x70e7a018], esi
push 1
push esi
je 0x70d751ee
push dword [0x70e7a190]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x70d08f12
push dword [ebp + 8]
lea eax, [ebp - 8]
push esi
push esi
push esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x70d08f09
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 4
push dword [0x70e7cdb4]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x70d08ee5
Function at 0x70d0aa02
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call fcn.70d01944
inc eax
push 0x18
mov dword [ebp - 4], eax
call fcn.70d0152c
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x70d0aaa3
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 8], edi
mov dword [esi + 0x14], ebx
cmp dword [0x70e7a018], edi
je 0x70d777be
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x70d0aa9d
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
mov dword [esi + 0x10], eax
je 0x70d0aa9d
push esi
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x70d0aa9d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.70d0aaa7
pop edi
pop esi
pop ebx
leave
ret 4
push esi
call fcn.70d015b0
xor eax, eax
jmp 0x70d0aa96
push ebx
lea ecx, [ebp - 0x110]
call fcn.70d28ece
cmp dword [ebp - 0x110], 0x55464131
jne 0x70d777f7
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x70d0aa5e
or ebx, 0xffffffff
jmp 0x70d0aa60

Function at 0x70d0c370
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov cx, word [ebp + 0x14]
or word [eax + 0x84], 0xffff
push ebx
push esi
push edi
mov word [eax + 0x32], cx
mov cx, word [ebp + 0x10]
xor edx, edx
mov word [eax + 0x20], cx
push 9
pop ecx
mov ebx, 0x70d62a34
mov esi, ebx
lea edi, [eax + 0x44]
rep movsd dword es:[edi], dword [esi]
movzx ecx, word [ebp + 0x14]
mov esi, dword [ebp + 0xc]
imul ecx, ecx, 0x38
mov byte [eax], 0x47
mov byte [eax + 1], 0x44
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x1c], 3
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x6c], edx
mov dword [eax + 0x70], edx
mov dword [eax + 0x68], edx
mov word [eax + 0x22], 0x7fff
mov word [eax + 0x24], 0x7fff
mov word [eax + 0x26], 0x8000
mov word [eax + 0x28], 0x8000
mov word [eax + 0x86], dx
mov dword [eax + 0x88], edx
mov word [eax + 0x2a], dx
mov word [eax + 0x2e], dx
mov dword [eax + 0x34], 2
mov dword [eax + 0x38], edx
mov word [eax + 0x3c], dx
mov word [eax + 0x3e], dx
mov word [eax + 0x40], dx
mov word [eax + 0x42], dx
mov dword [eax + 0x74], edx
mov dword [eax + 0x78], edx
mov dword [eax + 0x7c], edx
mov dword [eax + 0x80], edx
mov esi, dword [esi + 8]
add ecx, esi
push 9
mov dword [eax + 0x8c], ecx
mov word [ecx + 0x28], dx
pop ecx
mov esi, ebx
lea edi, [eax + 0x90]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov dword [eax + 0xb4], 1
pop ebx
pop ebp
ret 0x10
Function at 0x70d1482a
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x70e7b300]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebx, ebx
xor esi, esi
cmp eax, ebx
push 2
pop ebp
jne 0x70d148d4
call edi
mov esi, eax
cmp esi, ebx
je 0x70d8303b
mov dword [0x70e7b300], 1
cmp esi, ebx
je 0x70d8305c
cmp word [esi], bx
mov eax, esi
je 0x70d1487d
add eax, ebp
cmp word [eax], bx
jne 0x70d1486f
add eax, ebp
cmp word [eax], bx
jne 0x70d1486f
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x70d148c4
push ebp
call fcn.70d148df
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x70d148c4
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
je 0x70d83069
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
cmp eax, 1
jne 0x70d8307c
jmp 0x70d14860
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x70d83052
mov eax, ebp
mov dword [0x70e7b300], eax
jmp 0x70d148d4
mov eax, dword [0x70e7b300]
jmp 0x70d148d4
call edi
mov esi, eax
cmp esi, ebx
je 0x70d83084
jmp 0x70d14868
push dword [esp + 0x10]
call fcn.70d01fb8
pop ecx
mov dword [esp + 0x10], ebx
jmp 0x70d148c0
cmp eax, ebp
je 0x70d8308b
cmp eax, ebx
je 0x70d8308b
xor eax, eax
jmp 0x70d148cd
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x70d83084
cmp byte [ebp], bl
je 0x70d830a6
inc eax
cmp byte [eax], bl
jne 0x70d8309c
inc eax
cmp byte [eax], bl
jne 0x70d8309c
sub eax, ebp
inc eax
mov esi, eax
push esi
call fcn.70d148df
cmp eax, ebx
pop ecx
je 0x70d830cc
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov esi, ebp
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, eax
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x70d148cb

Function at 0x70d15608
Capabilities:
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xb8
lea eax, [ebp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp + 0x70]
mov dword [0x70e7a06c], eax
mov eax, dword [ebp + 0x58]
mov dword [0x70e7b584], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x70d15660
xor eax, eax
cmp dword [ebp - 0x30], 2
sete al
mov dword [0x70e7a070], eax
mov eax, dword [ebp - 0x3c]
mov dword [0x70e7b580], eax
mov eax, dword [ebp - 0x38]
mov dword [0x70e7b57c], eax
call fcn.70d1566f
mov dword [0x70e7a114], eax
add ebp, 0x78
leave
ret
Function at 0x70d15944
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb58
push edi
xor edi, edi
cmp dword [0x70e7a4a4], edi
mov dword [ebp - 4], 1
jne 0x70d15a62
cmp dword [0x70e7a018], edi
push ebx
push esi
push 0x104
je 0x70d6f760
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
cmp esi, edi
jbe 0x70d159b5
lea eax, [esi - 1]
cmp eax, edi
jl 0x70d159a2
cmp word [ebp + eax*2 - 0x424], 0x5c
je 0x70d15a68
dec eax
jns 0x70d15990
cmp esi, edi
jbe 0x70d159b5
cmp word [ebp + esi*2 - 0x426], 0x5c
je 0x70d6f798
mov word [ebp + esi*2 - 0x424], di
lea edi, [esi + 8]
lea eax, [edi + edi]
push eax
lea ebx, [esi + 7]
call fcn.70d0152c
push edi
mov dword [0x70e7a4a4], eax
call fcn.70d0152c
mov dword [0x70e7a4a0], eax
lea eax, [ebx + ebx]
push eax
call fcn.70d0152c
push ebx
mov dword [0x70e7a14c], eax
call fcn.70d0152c
mov ecx, dword [0x70e7a4a4]
xor edi, edi
cmp ecx, edi
mov dword [0x70e7a49c], eax
je 0x70d15a6f
cmp dword [0x70e7a4a0], edi
je 0x70d15a6f
cmp dword [0x70e7a14c], edi
je 0x70d15a6f
cmp eax, edi
je 0x70d15a6f
lea eax, [ebp - 0x424]
push eax
push ecx
call fcn.70d08a5a
lea eax, [ebp - 0x424]
push eax
push dword [0x70e7a14c]
call fcn.70d08a5a
cmp dword [0x70e7a018], edi
je 0x70d6f79e
push 0x70d635e4
push dword [0x70e7a4a4]
call fcn.70d15919
push 0x70d635f4
push dword [0x70e7a14c]
call fcn.70d15919
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret
mov esi, eax
jmp 0x70d159a2
mov dword [ebp - 4], edi
jmp 0x70d15a60
lea eax, [ebp - 0x528]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, eax
lea eax, [ebp - 0x528]
push eax
lea ecx, [ebp - 0x738]
call fcn.70d9f8ac
push dword [ebp - 0x734]
lea eax, [ebp - 0x424]
push eax
call fcn.70d08a5a
jmp 0x70d159a2
dec esi
jmp 0x70d159b5
push dword [0x70e7a4a4]
lea ecx, [ebp - 0x21c]
call fcn.70d28ece
push dword [0x70e7a14c]
lea ecx, [ebp - 0x110]
call fcn.70d28ece
xor eax, eax
mov ecx, 0x104
cmp eax, ecx
jae 0x70d6f7e2
mov edx, dword [ebp - 0x218]
mov bl, byte [eax + 0x70d8a578]
add edx, eax
inc eax
cmp eax, 8
mov byte [edx + esi], bl
jb 0x70d6f7c2
xor eax, eax
cmp eax, ecx
jae 0x70d6f7ff
mov edx, dword [ebp - 0x10c]
mov bl, byte [eax + 0x70d8a580]
add edx, eax
inc eax
cmp eax, 7
mov byte [edx + esi], bl
jb 0x70d6f7e4
push dword [ebp - 0x218]
lea ecx, [ebp - 0x948]
call fcn.70d9f8ac
push dword [ebp - 0x10c]
lea ecx, [ebp - 0xb58]
call fcn.70d9f8ac
push dword [ebp - 0x944]
push dword [0x70e7a4a4]
call fcn.70d08a5a
push dword [ebp - 0xb54]
push dword [0x70e7a14c]
call fcn.70d08a5a
mov esi, dword [ebp - 0x218]
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x70d6f84e
mov edi, dword [0x70e7a4a0]
sub eax, ecx
lea ecx, [eax + 1]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x10c]
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x70d6f879
mov edi, dword [0x70e7a49c]
sub eax, ecx
lea ecx, [eax + 1]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x70d15a60
Function at 0x70d292d1
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.70d28d5c
xor ebx, ebx
cmp eax, ebx
mov dword [esi + 0x20], eax
je 0x70d7e5c5
push 0x80
push 3
push 1
push 0x80000000
push dword [ebp + 8]
call fcn.70d28f65
cmp eax, 0xffffffff
mov dword [esi + 0x1c], eax
jne 0x70d7e5cf
call fcn.70d2931e
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, 0x8007000e
jmp 0x70d29317
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x70d29312
cmp dword [ebp - 4], ebx
jne 0x70d29312
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x70d29312
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x70d29312
mov eax, dword [ebp - 8]
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 4
xor eax, eax
jmp 0x70d29317