joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427708
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x84], 0
je 0x42773d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403cb4
jmp 0x427747
mov eax, esi
mov edx, dword [ebx + 0x6c]
call fcn.00403c68
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x428328
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x64]
test esi, esi
je 0x428360
mov eax, esi
call fcn.0042f024
test al, al
je 0x428360
mov eax, dword [ebx + 0x64]
call fcn.0042ee8c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x428360
push 0
mov eax, dword [ebx + 0x64]
call fcn.0042ee8c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x42ba78
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ebp
xchg esp, eax
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0042b6c9
push eax
push esi
push dword [ebp + 8]
jne 0x42bad2
call fcn.0042b67e
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
loopne 0x42bb54
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0042b6c9
push eax
push esi
push dword [ebp + 8]
call fcn.0042b67e
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0042b6b9
invalid
Function at 0x42bac8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ebp
xchg esp, eax
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0042b6c9
push eax
push esi
push dword [ebp + 8]
jne 0x42bad2
call fcn.0042b67e
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
loopne 0x42bb54
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0042b6c9
push eax
push esi
push dword [ebp + 8]
call fcn.0042b67e
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0042b6b9
invalid

Function at 0x42bb08
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ebp
xchg esp, eax
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0042b6c9
push eax
push esi
push dword [ebp + 8]
jne 0x42bad2
call fcn.0042b67e
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
loopne 0x42bb54
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0042b6c9
push eax
push esi
push dword [ebp + 8]
call fcn.0042b67e
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0042b6b9
invalid
Function at 0x42bd50
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x42bd6d
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x42bd68
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x42bd52
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x42bd5a
cmp edx, ebx
jne 0x42bea8
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x42bd29
add eax, dword [eax + 4]
jmp 0x42bd16
mov dword [ebp + 0xc], ebx
jmp fcn.0042bd78

Function at 0x42bdb4
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x42be0c
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x42bdf3
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x42bdfc
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x42be06
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x42bde8
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
invalid
invalid
dec edi

Function at 0x42bf4c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov esi, 0x25fffffc
lea eax, [ebp - 0x354]
cld
invalid
call dword [eax - 0x18]
insb byte es:[edi], dx
idiv edi

Function at 0x42bfa8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax], al
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
invalid
test dword [edx - 4], eax

Function at 0x4320d8
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403bd0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x432139
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x432139
cmp byte [ebp - 0x102], 0
je 0x432139
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403dfc
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4334c8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x28], 0
je 0x433549
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4334fa
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43350c
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x433518
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.00433354
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x43353d
push ebp
mov eax, dword [ebp - 4]
call fcn.00433438
pop ecx
mov ebx, eax
cmp bl, 2
je 0x433518
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43c5e4
Capabilities:
Open clipboard

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 4], 0
jne 0x43c61d
mov eax, dword [0x4c60a4]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebx + 8], eax
test eax, eax
jne 0x43c610
push ebx
push 0x43c624
call fcn.00421de8
mov dword [ebx + 8], eax
mov byte [ebx + 0xc], 1
mov eax, dword [ebx + 8]
push eax
call sub.user32.dll_OpenClipboard
mov byte [ebx + 0xd], 0
inc dword [ebx + 4]
pop ebx
ret

Function at 0x43c644
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0043c5e4
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x43c6b6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x43c68a
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.00403d84
jmp 0x43c691
mov eax, ebx
call fcn.00403bd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c6bd
cmp dword [ebp - 8], 0
je 0x43c6ad
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 4]
call fcn.0043c5b8
ret
Function at 0x300130d0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x30020490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x20c], eax
xor eax, eax
push edi
mov dword [ebp - 0x208], eax
mov ebx, 0xffff
mov edi, 0x80070000
lea ecx, [ebp - 0x218]
push ecx
push eax
push eax
push eax
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x204]
push ecx
push eax
push dword [ebp - 0x20c]
mov dword [ebp - 0x210], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
jle 0x3001313c
and esi, ebx
or esi, edi
test esi, esi
jne 0x300131bc
lea eax, [ebp - 0x208]
push eax
push 0x2001f
push 0
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jle 0x3001316b
and esi, ebx
or esi, edi
test esi, esi
jl 0x300131d1
push dword [ebp - 0x208]
call fcn.300130d0
mov esi, eax
test esi, esi
jle 0x30013184
and esi, ebx
or esi, edi
test esi, esi
jl 0x300131d1
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x208], 0
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
jle 0x300131b8
and esi, ebx
or esi, edi
test esi, esi
jl 0x300131d1
jmp 0x300131c4
cmp esi, 0x80070103
je 0x300131cf
test esi, esi
jne 0x300131d1
xor eax, eax
jmp 0x30013101
xor esi, esi
cmp dword [ebp - 0x208], 0
je 0x300131e6
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.30014af0
leave
ret 4

Function at 0x30013286
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x30020490]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.30005abb
test eax, eax
jl 0x300132f6
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x30013305
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.300155bb
test eax, eax
pop ecx
pop ecx
je 0x300132e6
and word [eax], 0
cmp word [eax + 2], 0
je 0x300132c7
cmp word [ebp - 0x20c], 0
je 0x300132f4
test eax, eax
jne 0x300132b5
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.30014af0
leave
ret 8
cmp eax, 2
je 0x3001331f
cmp eax, 3
je 0x3001331f
test eax, eax
jle 0x30013321
and eax, 0xffff
or eax, 0x80070000
jmp 0x30013321
xor eax, eax
cmp eax, 1
je 0x300132b5
jmp 0x300132f6
Function at 0x30014566
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10018
call fcn.30014c94
mov eax, dword [0x30020490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10010], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x10014], eax
mov eax, dword [ebp + 0x14]
xor edi, edi
mov dword [ebp - 0x10018], eax
mov dword [ebp - 0x10008], edi
mov dword [ebp - 0x1000c], edi
call fcn.30014489
mov esi, eax
cmp esi, edi
jl 0x30014685
push ebx
lea eax, [ebp - 0x10008]
push eax
push edi
push edi
push dword [ebp + 0xc]
push dword [0x300217dc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x80070000
jmp 0x3001463a
push 0
lea eax, [ebp - 0x1000c]
push eax
push 0x10000
lea eax, [ebp - 0x10004]
push eax
push dword [ebp - 0x10010]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x30014616
call edi
mov esi, eax
test esi, esi
jle 0x30014614
and esi, 0xffff
or esi, ebx
test esi, esi
jl 0x30014684
xor esi, esi
cmp dword [ebp - 0x1000c], esi
jbe 0x30014654
push esi
push dword [ebp - 0x1000c]
lea eax, [ebp - 0x10004]
push eax
push dword [ebp - 0x10008]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x300145dd
call edi
mov esi, eax
test esi, esi
jle 0x30014650
and esi, 0xffff
or esi, ebx
test esi, esi
jge 0x300145dd
jmp 0x30014684
push 0
push dword [ebp - 0x10018]
push dword [ebp - 0x10014]
push 2
push dword [ebp - 0x10008]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x30014684
call edi
mov esi, eax
test esi, esi
jle 0x30014684
and esi, 0xffff
or esi, ebx
pop ebx
cmp dword [ebp - 0x10008], 0
je 0x3001469a
push dword [ebp - 0x10008]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.30014af0
leave
ret 0x10

Function at 0x30014714
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x20000005
push dword [ebp + 8]
mov dword [ebp - 4], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x30014759
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x30014757
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jl 0x30014765
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
and dword [eax + 4], 0
mov dword [eax], ecx
mov eax, esi
pop esi
leave
ret 8

Function at 0x30014ae6
Capabilities:
Encode data using xor

Disassembly:
pushal
bswap esi
bt ebp, 0xf4
mov al, 0x1c
invalid
Function at 0x401f17
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
cmp dword [0x5f4c95], 0
jne 0x40214e
push 0x80000301
push 0
push 0x40
push 1
mov ebx, 0x184
call fcn.00528420
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x401f69
push ebx
call fcn.00526a1c
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop
nop
cmp dword [ebp - 8], esp
je 0x401f96
push 0xb8
push 0x4017ac3
push 6
call fcn.00526a28
add esp, 0xc
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.005280e0
add esp, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push str.__processStrMap_
mov ecx, 2
call fcn.00401b06
add esp, 8
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x401fdb
push ebx
call fcn.00526a1c
add esp, 4
mov dword [ebp - 0x18], esp
push 0x40
push dword [ebp - 4]
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40200f
push 0xb8
push 0x4017ac3
push 6
call fcn.00526a28
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40201f
push ebx
call fcn.00526a1c
add esp, 4
push VariantClear
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x402032
mov eax, 0x54d2f5
push eax
push 1
mov ebx, 0x164
call fcn.00528460
add esp, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
fld qword [ebp - 0x14]
call fcn.0040105b
mov dword [0x5f4c95], eax
cmp dword [0x5f4c95], 0
jne 0x40214e
call fcn.0040216e
mov dword [0x5f4c95], eax
mov dword [ebp - 8], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop
nop
cmp dword [ebp - 8], esp
je 0x402098
push 0x1c1
push 0x4017ac3
push 6
call fcn.00526a28
add esp, 0xc
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.005280e0
add esp, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push str.__processStrMap_
mov ecx, 2
call fcn.00401b06
add esp, 8
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4020dd
push ebx
call fcn.00526a1c
add esp, 4
push 0x80000301
push 0
push dword [0x5f4c95]
push 1
mov ebx, 0x168
call fcn.005280e0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x18]
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40212e
push 0x1d6
push 0x4017ac3
push 6
call fcn.00526a28
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40213e
push ebx
call fcn.00526a1c
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40214e
push ebx
call fcn.00526a1c
add esp, 4
mov eax, dword [0x5f4c95]
jmp 0x402158
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402169
push ebx
call fcn.00526a1c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x402f3d
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x5f4c99], 0
jne 0x402fe8
mov eax, str._dbg.g_threadCallStack_tls
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.0040306a
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402f7e
push ebx
call fcn.00526a1c
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [0x5f4c99], eax
cmp dword [0x5f4c99], 0
jne 0x402fe8
mov dword [ebp - 8], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
nop
nop
cmp dword [ebp - 8], esp
je 0x402fbc
push 0xd2
push 0x4017b32
push 6
call fcn.00526a28
add esp, 0xc
mov dword [0x5f4c99], eax
push dword [0x5f4c99]
mov eax, str._dbg.g_threadCallStack_tls
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.004034b0
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402fe8
push ebx
call fcn.00526a1c
add esp, 4
mov dword [ebp - 8], esp
push dword [0x5f4c99]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
nop
nop
cmp dword [ebp - 8], esp
je 0x403017
push 0x163
push 0x4017b32
push 6
call fcn.00526a28
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40305e
call fcn.004035ab
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push dword [0x5f4c99]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
nop
cmp dword [ebp - 8], esp
je 0x40305e
push 0x1e1
push 0x4017b32
push 6
call fcn.00526a28
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x403066
mov esp, ebp
pop ebp
ret
Function at 0x403098
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
cmp dword [0x5f4c9d], 0
jne 0x4032cf
push 0x80000301
push 0
push 0x40
push 1
mov ebx, 0x184
call fcn.00528420
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4030ea
push ebx
call fcn.00526a1c
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop
nop
cmp dword [ebp - 8], esp
je 0x403117
push 0xb8
push 0x4017b4f
push 6
call fcn.00526a28
add esp, 0xc
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.005280e0
add esp, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push str.__processStrMap_
mov ecx, 2
call fcn.00401b06
add esp, 8
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40315c
push ebx
call fcn.00526a1c
add esp, 4
mov dword [ebp - 0x18], esp
push 0x40
push dword [ebp - 4]
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x403190
push 0xb8
push 0x4017b4f
push 6
call fcn.00526a28
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4031a0
push ebx
call fcn.00526a1c
add esp, 4
push VariantClear
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4031b3
mov eax, 0x54d2f5
push eax
push 1
mov ebx, 0x164
call fcn.00528460
add esp, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
fld qword [ebp - 0x14]
call fcn.0040105b
mov dword [0x5f4c9d], eax
cmp dword [0x5f4c9d], 0
jne 0x4032cf
call fcn.004032ef
mov dword [0x5f4c9d], eax
mov dword [ebp - 8], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop
nop
cmp dword [ebp - 8], esp
je 0x403219
push 0x1c1
push 0x4017b4f
push 6
call fcn.00526a28
add esp, 0xc
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.005280e0
add esp, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push str.__processStrMap_
mov ecx, 2
call fcn.00401b06
add esp, 8
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40325e
push ebx
call fcn.00526a1c
add esp, 4
push 0x80000301
push 0
push dword [0x5f4c9d]
push 1
mov ebx, 0x168
call fcn.005280e0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x18]
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4032af
push 0x1d6
push 0x4017b4f
push 6
call fcn.00526a28
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4032bf
push ebx
call fcn.00526a1c
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4032cf
push ebx
call fcn.00526a1c
add esp, 4
mov eax, dword [0x5f4c9d]
jmp 0x4032d9
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4032ea
push ebx
call fcn.00526a1c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x40399d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push 0x40
push 0x1000
push dword [ebp + 8]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 4], esp
je 0x4039e1
push 0x12
push 0x4017b42
push 6
call fcn.00526a28
add esp, 0xc
jmp 0x4039e6
mov esp, ebp
pop ebp
ret 4

Function at 0x4042ad
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push 0x40
push 0x1000
push dword [ebp + 8]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 4], esp
je 0x4042f1
push 0x12
push 0x4017aa0
push 6
call fcn.00526a28
add esp, 0xc
jmp 0x4042f6
mov esp, ebp
pop ebp
ret 4