joyce8/EMBER2024-capa huggingface dataset:
Function at 0xbc664d8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], 4
cmp dword [esi + 0xcc], edi
jne 0xbc665b1
lea ecx, [esi + 0xa8]
call fcn.0bc65a4d
test eax, eax
je 0xbc665b1
cmp dword [esi + 0xcc], edi
jne 0xbc665a6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov dword [esi + 0xc4], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push dword [0xbc6d338]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xbc665a6
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 4]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0xbc6659d
cmp dword [ebp - 0xc], 4
jne 0xbc6659d
mov edx, dword [ebp - 0x10]
push edx
mov ecx, esi
call fcn.0bc65ea3
test eax, eax
jl 0xbc6659d
mov eax, edx
and eax, 0xf
mov dword [esi + 0xc4], eax
xor eax, eax
inc eax
shr edx, 0x13
and edx, eax
mov dword [esi + 0xc8], edx
mov dword [esi + 0xcc], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi + 0xa8]
call fcn.0bc65a66
mov eax, dword [esi + 0xc4]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0xbc665cb
mov ecx, dword [esi + 0xc8]
mov dword [eax], ecx
pop edi
xor eax, eax
pop esi
leave
ret 8
Function at 0xbc665d8
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0xbc6d328]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x418], 0x80004005
mov dword [ebp - 0x42c], 0xbc469c8
mov dword [ebp - 0x428], 0xbc469b0
mov dword [ebp - 0x420], ebx
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [esi + 4]
or eax, 1
push eax
mov eax, dword [ebp - 0x420]
push ebx
push dword [ebp + eax*4 - 0x42c]
mov dword [ebp - 0x41c], ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xbc666fd
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push 0x10000002
push 0xbc4698c
push ebx
push dword [ebp - 0x41c]
mov dword [ebp - 0x418], 0x208
call sub.SHLWAPI.dll_SHRegGetValueW
mov edi, eax
cmp edi, ebx
jne 0xbc666b0
cmp word [ebp - 0x20c], bx
jne 0xbc666da
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push 2
push ebx
push ebx
push dword [ebp - 0x41c]
mov dword [ebp - 0x418], 0x208
call sub.SHLWAPI.dll_SHRegGetValueW
mov edi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
jne 0xbc666f3
cmp word [ebp - 0x20c], bx
jne 0xbc66712
mov dword [ebp - 0x418], 0x80004005
inc dword [ebp - 0x420]
cmp dword [ebp - 0x420], 2
jb 0xbc66622
jmp 0xbc66791
cmp word [ebp - 0x20c], 0x22
mov dword [ebp - 0x418], ebx
lea edi, [ebp - 0x20c]
jne 0xbc6673d
lea edi, [ebp - 0x20a]
mov eax, edi
push 0xbc4143c
push eax
call sub.msvcrt.dll_wcstok
pop ecx
pop ecx
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
push esi
push dword [ebp - 0x424]
cmp eax, 0x102
ja 0xbc66769
lea eax, [ebp - 0x414]
push eax
jmp 0xbc6676a
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, esi
jbe 0xbc66780
mov dword [ebp - 0x418], 8
jmp 0xbc66791
cmp eax, ebx
jne 0xbc66791
push edi
push esi
push dword [ebp - 0x424]
call fcn.0bc47085
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0bc64d0f
leave
ret 8
Function at 0xbc667ad
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0xbc6d328]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x270]
push ecx
lea ecx, [ebp - 0x54]
push ecx
xor esi, esi
push esi
push esi
push 0xbc46a64
push dword [eax]
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x260], 0x80004005
mov dword [ebp - 0x270], 0x4e
call edi
cmp eax, 2
jne 0xbc6680a
mov dword [ebp - 0x260], esi
cmp eax, esi
jne 0xbc66949
push ebx
push 0xbc46a54
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x25c]
push eax
call fcn.0bc47085
cmp eax, esi
mov dword [ebp - 0x260], eax
jl 0xbc66948
lea eax, [ebp - 0x54]
push eax
push ebx
lea eax, [ebp - 0x25c]
push eax
call fcn.0bc470bf
cmp eax, esi
mov dword [ebp - 0x260], eax
jl 0xbc66948
lea eax, [ebp - 0x264]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x25c]
push eax
push 0x80000000
mov dword [ebp - 0x260], 0x80004005
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0xbc6693d
lea eax, [ebp - 0x268]
push eax
push esi
push esi
push esi
mov ebx, 0xbc46a48
push ebx
push dword [ebp - 0x264]
mov dword [ebp - 0x268], esi
call edi
push esi
push esi
push esi
push esi
test eax, eax
jne 0xbc66917
push 0xbc46a24
push dword [ebp - 0x264]
call edi
cmp eax, 2
jne 0xbc6692f
push dword [ebp - 0x268]
call fcn.0bc4a105
pop ecx
mov dword [ebp - 0x26c], eax
cmp eax, esi
je 0xbc6692f
lea ecx, [ebp - 0x268]
push ecx
push eax
push esi
push esi
push ebx
push dword [ebp - 0x264]
call edi
test eax, eax
jne 0xbc66909
push 0xbc46a00
push dword [ebp - 0x26c]
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0xbc66909
mov dword [ebp - 0x260], esi
push dword [ebp - 0x26c]
call fcn.0bc4a123
pop ecx
jmp 0xbc6692f
push 0xbc469e4
push dword [ebp - 0x264]
call edi
cmp eax, 2
jne 0xbc6692f
mov dword [ebp - 0x260], esi
push dword [ebp - 0x264]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0xbc66948
cmp eax, 2
jne 0xbc66948
mov dword [ebp - 0x260], esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x260]
pop edi
xor ecx, ebp
pop esi
call fcn.0bc64d0f
leave
ret 4
Function at 0xbc673e4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0xbc6d328]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x2c
mov dword [ebp - 0x210], ecx
call fcn.0bc4a105
pop ecx
test eax, eax
je 0xbc6741b
mov ecx, eax
call fcn.0bc65b89
mov esi, eax
jmp 0xbc6741d
xor esi, esi
test esi, esi
je 0xbc674c3
mov eax, dword [ebp + 8]
mov dword [esi + 0x20], eax
mov eax, dword [edi]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 4]
push ebx
test eax, eax
je 0xbc6748a
push eax
call sub.SHLWAPI.dll_StrDupW
mov dword [esi + 4], eax
test eax, eax
je 0xbc674b2
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0xbc674b2
cmp edi, ebx
ja 0xbc674b2
lea eax, [ebp - 0x20c]
push eax
dec edi
call sub.SHLWAPI.dll_StrDupW
mov dword [esi], eax
test eax, eax
je 0xbc674b2
push 0x5c
lea eax, [eax + edi*2]
pop ecx
cmp cx, word [eax]
jne 0xbc6749e
xor ecx, ecx
mov word [eax], cx
jmp 0xbc6749e
push dword [edi + 8]
call sub.SHLWAPI.dll_StrDupW
test eax, eax
mov dword [esi + 8], eax
setne al
test al, al
je 0xbc674b2
mov ecx, dword [ebp - 0x210]
push esi
lea eax, [ecx + 4]
push eax
call fcn.0bc65db4
test eax, eax
jne 0xbc674c2
mov ecx, esi
call fcn.0bc65e34
push 1
mov ecx, esi
call fcn.0bc66262
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0bc64d0f
leave
ret 8
Function at 0xbc67cbf
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0xbc6d328]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x83c]
push ecx
xor ebx, ebx
push eax
mov dword [ebp - 0x834], esi
mov dword [ebp - 0x83c], ebx
mov dword [ebp - 0x830], ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 0x83c], ebx
je 0xbc67e76
push dword [ebp - 0x83c]
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x840], eax
cmp eax, ebx
je 0xbc67e76
push edi
push dword [ebp + 0xc]
push esi
push eax
call fcn.0bc67c50
test eax, eax
je 0xbc67e4d
xor eax, eax
mov word [ebp - 0x82c], ax
lea eax, [ebp - 0x82c]
push eax
push 0x207
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0xbc67e4d
mov esi, 0xbc46b84
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [ebp - 0x82c]
xor edi, edi
mov dword [ebp - 0x838], ebx
mov esi, 0x104
mov ax, word [ebx]
mov word [ebp - 0xc], ax
push esi
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0xbc67e2e
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
cmp ebx, esi
jae 0xbc67e28
push ebx
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x834]
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
mov edi, eax
neg edi
sbb edi, edi
inc edi
je 0xbc67e28
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.0bc47085
mov eax, dword [ebp - 0x834]
lea eax, [eax + ebx*2]
push eax
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.0bc470bf
push dword [ebp + 0xc]
lea eax, [ebp - 0x214]
push dword [ebp - 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0xbc67e28
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x834]
call fcn.0bc47085
mov ebx, dword [ebp - 0x838]
mov ax, word [ebx]
inc ebx
inc ebx
test ax, ax
jne 0xbc67e2e
mov dword [ebp - 0x838], ebx
test edi, edi
jne 0xbc67e67
cmp word [ebx], di
jne 0xbc67d7e
jmp 0xbc67e67
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0xbc67e61
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x830], eax
push dword [ebp - 0x840]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
jmp 0xbc67e90
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0xbc67e8a
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x830], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x830]
pop esi
xor ecx, ebp
pop ebx
call fcn.0bc64d0f
leave
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push eax
push 1
lea eax, [ebp - 1]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x14
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x407262
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, eax
push esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffc
jbe 0x4072a6
rol eax, 5
xor eax, dword [edx + esi]
add edx, 4
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, 4
imul eax, eax, 0x9e3779b9
cmp edx, ecx
jb 0x407275
jmp 0x4072a6
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x407296
pop esi
pop ebp
ret

Function at 0x407d34
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x407d69
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x407d93
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x407d93
test edi, edi
je 0x407d60
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x407d60
test edi, edi
je 0x407d9b
mov eax, edi
jmp 0x407d62
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x407d62
int3
Function at 0x40a2c5
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestBlockingProcess.exe_gMozillaPoisonSize], eax
call fcn.00407d34
pop ecx
mov ecx, dword [sym.TestBlockingProcess.exe_gMozillaPoisonSize]
mov dword [sym.TestBlockingProcess.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40a2fd
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestBlockingProcess.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x100088b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x100088bf
pop dword [ebp - 0x4c]
mov eax, 0x100088bf
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x5ce58c1c
add dword [ebp - 0x5c], 0xf16cb92f
mov dword [ebp - 0x58], 0xafa533da
add dword [ebp - 0x58], 0x828e186b
mov dword [ebp - 0x54], 0xe0d68581
add dword [ebp - 0x54], 0x6b75bead
mov dword [ebp - 0x50], 0x59373851
sub dword [ebp - 0x50], 0x59373851
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xf7aa2f6d
add dword [ebp - 0x5c], 0x7cc839e9
mov dword [ebp - 0x58], 0xf47c72e5
sub dword [ebp - 0x58], 0xb3101170
mov dword [ebp - 0x54], 0xef400075
add dword [ebp - 0x54], 0x742f6bf7
mov dword [ebp - 0x50], 0xcfe982e3
add dword [ebp - 0x50], 0x30167d1d
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3e794
push 0
call eax
mov ecx, 0x8a560f33
sub ecx, 0x8a55bb5d
mov edx, eax
mov ebx, 0x10028800
add ebx, dword [ebp - 0x4c]
mov edi, 0x25811836
add edi, 0x1134c0a4
xor dword [ebp - 0x18], 0xaffd109d
mov esi, dword [ebx]
xor dword [ebp - 4], eax
sub esi, edi
sub dword [ebp - 0x40], eax
mov dword [edx], esi
xor dword [ebp - 8], 0x9cf7daa6
add edx, 0xc99e5af5
sub edx, 0xc99e5af1
add ebx, 4
loop 0x100089cc
add eax, 0x5c9134ee
add eax, 0xa3700d3d
xor ebx, ebx
add ebx, eax
add eax, 0xe18cbe9
sub eax, 0xe18cbe4
mov ecx, 0x10000000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x40f4ea
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x9570c0]
test eax, eax
jne 0x40f520
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
sub esp, 0xc
mov dword [0x9570c0], eax
jmp 0x40f533
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
push eax
leave
ret

Function at 0x40f535
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x2c
call fcn.0040f4ea
cmp ebx, 0x38
mov eax, 0x38
mov edi, dword [0x9570b8]
cmovb ebx, eax
add ebx, 0xf
and ebx, 0xfffffff8
test edi, edi
je 0x40f5a4
mov edx, dword [edi + 0x10]
cmp edx, ebx
jb 0x40f59f
lea eax, [ebx + 0x40]
cmp edx, eax
jbe 0x40f581
mov eax, edx
sub eax, ebx
lea esi, [edi + eax]
mov dword [edi + 0x10], eax
mov dword [esi + 4], eax
mov dword [edi + edx + 4], ebx
jmp 0x40f592
mov eax, edi
mov dword [ebp - 0x1c], edx
mov esi, edi
call fcn.0040d7ed
mov edx, dword [ebp - 0x1c]
mov ebx, edx
add dword [0x9570b4], ebx
mov dword [esi], ebx
jmp 0x40f64f
mov edi, dword [edi + 8]
jmp 0x40f55c
lea eax, [ebx + 0x10007]
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov dword [esp], 0
xor ax, ax
mov edi, eax
mov dword [esp + 4], edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
sub esp, 0x10
test eax, eax
mov esi, eax
jne 0x40f5e2
call fcn.0040e105
xor eax, eax
jmp 0x40f657
lea eax, [edi - 8]
lea edi, [ebx + 0x40]
add dword [0x9570b0], eax
mov dword [esi + 4], 0
mov edx, dword [0x9570b4]
cmp edi, eax
lea ecx, [esi + eax]
jae 0x40f63c
add edx, ebx
mov dword [esi], ebx
sub eax, ebx
mov dword [0x9570b4], edx
lea edx, [esi + ebx]
mov dword [edx + 4], ebx
mov ebx, dword [0x9570b8]
mov dword [edx], 0
mov dword [edx + 0x10], eax
mov dword [edx + 0xc], 0
test ebx, ebx
mov dword [edx + 8], ebx
je 0x40f634
mov dword [ebx + 0xc], edx
mov dword [0x9570b8], edx
jmp 0x40f646
add edx, eax
mov dword [esi], eax
mov dword [0x9570b4], edx
mov dword [ecx], 1
mov dword [ecx + 4], eax
call fcn.0040e105
lea eax, [esi + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x42dbe2
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test esi, esi
je 0x42dbf9
test eax, eax
jne 0x42dc00
xor edi, edi
jmp 0x42dd01
cmp esi, eax
mov dword [esp], 0x10
cmova esi, eax
add eax, 0x1fff
and eax, 0xffffe000
add esi, 0x1fff
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x10]
and esi, 0xffffe000
mov dword [esp + 4], eax
call fcn.0040d222
test eax, eax
mov edi, eax
je 0x42dbf9
cmp esi, dword [ebp - 0x4c]
ja 0x42dcf5
test esi, esi
je 0x42dcf5
cmp dword [0x9570bc], 0
jne 0x42dc67
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push eax
mov eax, dword [ebp - 0x38]
dec eax
mov dword [0x9570bc], eax
mov edx, edi
mov eax, 0x10
call fcn.0040d7c4
test eax, eax
mov ebx, eax
je 0x42dcf5
mov eax, dword [0x9570bc]
mov edx, dword [ebp - 0x4c]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x2000
mov dword [esp], 0
add edx, eax
not eax
and edx, eax
mov dword [esp + 4], edx
mov dword [ebp - 0x4c], edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
sub esp, 0x10
test eax, eax
mov edx, dword [ebp - 0x4c]
je 0x42dcec
add edx, eax
mov dword [ebx + 0xc], eax
mov ecx, ebx
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
sub edx, esi
call fcn.0040e153
test eax, eax
jne 0x42dcf9
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
sub esp, 0xc
mov edx, edi
mov eax, ebx
call fcn.0040d7d8
xor ebx, ebx
jmp 0x42dcfe
mov eax, dword [ebx + 4]
mov dword [ebx], eax
mov dword [edi + 0xc], ebx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x447330
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x957460]
test esi, esi
jle 0x447440
mov edi, dword [0x957464]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x447364
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x4473e5
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x447350
mov dword [esp], eax
mov ebx, eax
call fcn.00447c20
test eax, eax
mov edi, eax
je 0x447467
mov eax, dword [0x957464]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00447d20
add eax, dword [edi + 0xc]
mov edx, dword [0x957464]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x447447
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4473de
sub eax, 4
and eax, 0xfffffffb
jne 0x4473f0
add dword [0x957460], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x957464]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4473de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00721690
lea esi, [esi]
xor esi, esi
jmp 0x44736e
mov eax, dword [0x957464]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00721690
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00721690
mov esi, esi
lea edi, [edi]

Function at 0x4478a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x957478
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x957470]
sub esp, 4
test ebx, ebx
je 0x4478f5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4478ee
test esi, esi
je 0x4478ee
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4478d0
mov dword [esp], 0x957478
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x452c40
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
lea ebx, [ecx - 1]
mov ecx, 0x66666667
sub esp, 0x2c
mov dword [esp + 0x1c], eax
mov eax, ebx
mov dword [esp + 0x10], ebx
sar eax, 0x1f
mov esi, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, ebx
sar ebx, 0x1f
imul ecx
mov ecx, edx
sar ecx, 2
sub ecx, ebx
mov ebx, 1
je 0x452c93
mov ebp, 0x66666667
mov eax, ecx
sar ecx, 0x1f
add ebx, 1
imul ebp
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x452c80
mov edx, dword [esi + 0x28]
cmp edx, 0xffffffff
je 0x452d10
mov ecx, dword [esi + 8]
cmp ebx, edx
cmovl ebx, edx
lea edx, [ebx + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, 1
mov edx, edi
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
add ebx, 1
mov dword [esp], esi
call fcn.004524f0
mov eax, dword [esi + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
mov edx, eax
and eax, 0x20
or edx, 0x1c0
or eax, 0x45
mov dword [esi + 4], edx
mov edx, esi
call fcn.004520c0
add dword [esi + 8], ebx
mov eax, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [esp + 0x14]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00452930
mov eax, dword [0x739170]
cmp eax, 0xffffffff
je 0x452d45
test eax, eax
je 0x452d35
mov edx, 2
mov dword [esi + 0x28], edx
jmp 0x452c9b
mov dword [0x739170], 0
call fcn.00457e40
test al, 1
mov edx, 3
jne 0x452d1e
jmp 0x452d23
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x452d2b
movsx eax, byte [eax]
sub eax, 0x30
cmp eax, 2
ja 0x452d2b
mov dword [0x739170], 1
jmp 0x452d1e
Function at 0x459d00
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x7391b8], eax
je 0x459d17
add esp, 0xc
ret
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x45a210
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x45a240
push edi
push esi
push ebx
mov ebx, eax
add esp, 0xffffff80
mov dword [esp], eax
call fcn.00459bc0
cmp eax, 1
je 0x45a242
mov dword [ebx], 0xffffffff
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
ret
repz ret
lea ebx, [esp + 0x15]
mov esi, str.Error_cleaning_up_spin_keys_for_thread
mov ecx, 0xa
xor eax, eax
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x3d]
mov ecx, 0x43
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
mov eax, 0x27
jne 0x45a295
jmp 0x45a2b2
cmp eax, 0x6a
je 0x45a2a3
add eax, 1
cmp byte [ebx + eax], 0
jne 0x45a290
cmp eax, 0x6a
jne 0x45a2b2
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push eax
call sub.msvcrt.dll_abort
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + eax + 0x16], 0
jmp 0x45a2a3