joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450580
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d048
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4a5214]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
call edx
mov edi, eax
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
push ecx
push edx
push edi
mov ecx, esi
mov dword [ebp - 4], 0
call eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [edi]
mov edx, dword [edx + 0xc]
push eax
push ecx
mov ecx, edi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push edi
mov ecx, esi
call edx
mov bl, al
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call edx
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4694d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e859
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4a5214]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov ecx, dword [edi + 0x34]
sub ecx, dword [edi + 0x30]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 1
call fcn.00468c10
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x20]
push edx
push esi
mov ecx, edi
call fcn.00469020
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0xc]
push ecx
mov ecx, esi
call eax
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.004673c0
add esp, 0x10
mov edx, dword [esi]
mov edx, dword [edx + 8]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call edx
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
lea eax, [edx*4]
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 1
push esi
cmp eax, 0x10
jb 0x46959f
call fcn.0046d300
jmp 0x4695a4
call fcn.0046d310
mov edi, dword [ebp - 0x20]
add esp, 4
mov byte [ebp - 4], bl
cmp edi, ebx
je 0x4695dd
mov ebx, dword [ebp - 0x1c]
mov esi, edi
cmp edi, ebx
je 0x4695d4
lea ebx, [ebx]
lea ecx, [ebp - 0x14]
push esi
push ecx
call fcn.004676d0
add esi, 0x28
add esp, 8
cmp esi, ebx
jne 0x4695c0
push edi
call fcn.0042fdf4
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x469600
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e859
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4a5214]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebx + 0x34]
sub ecx, dword [ebx + 0x30]
mov eax, 0x66666667
imul ecx
mov ecx, dword [edi + 0x34]
sub ecx, dword [edi + 0x30]
sar edx, 3
mov esi, edx
shr esi, 0x1f
add esi, edx
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add esi, edx
add eax, esi
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 1
call fcn.00468c10
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x20]
push edx
push esi
mov ecx, edi
call fcn.00469020
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0x20]
push ecx
push esi
mov ecx, ebx
call fcn.00469020
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov eax, dword [esi]
push ebx
push edx
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004673c0
add esp, 0x10
mov edx, dword [esi]
mov edx, dword [edx + 8]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call edx
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
lea eax, [edx*4]
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 1
push esi
cmp eax, 0x10
jb 0x4696fb
call fcn.0046d300
jmp 0x469700
call fcn.0046d310
mov edi, dword [ebp - 0x20]
add esp, 4
mov byte [ebp - 4], 0
test edi, edi
je 0x469731
mov esi, edi
cmp edi, ebx
je 0x469728
lea ecx, [ebp - 0x14]
push esi
push ecx
call fcn.004676d0
add esi, 0x28
add esp, 8
cmp esi, ebx
jne 0x469714
push edi
call fcn.0042fdf4
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x46c240
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
pop ebp
ret

Function at 0x46d3e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov ecx, edi
shr ecx, 2
xor eax, eax
test ecx, ecx
je 0x46d414
mov eax, edx
sub esi, edx
mov dword [ebp - 4], ecx
push ebx
mov ebx, dword [esi + eax]
xor dword [eax], ebx
add eax, 4
dec ecx
jne 0x46d402
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
pop ebx
add eax, eax
add eax, eax
sub edi, eax
je 0x46d439
add edx, eax
add esi, eax
test edi, edi
je 0x46d439
mov ecx, esi
mov eax, edx
sub ecx, edx
mov esi, edi
lea esp, [esp]
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec esi
jne 0x46d430
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46d440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov eax, esi
shr eax, 2
xor ecx, ecx
xor edx, edx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x46d47c
mov esi, ebx
mov edx, edi
sub esi, edi
mov dword [ebp - 4], eax
mov ebx, dword [esi + edx]
xor ebx, dword [edx]
add edx, 4
or ecx, ebx
dec eax
jne 0x46d466
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 4]
lea eax, [edx*4]
sub esi, eax
jne 0x46d495
pop edi
xor eax, eax
test ecx, ecx
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
add ebx, eax
add edi, eax
mov eax, ecx
mov edx, ecx
shr edx, 0x10
shr eax, 0x18
or al, dl
mov edx, ecx
shr edx, 8
or dl, al
or dl, cl
test esi, esi
je 0x46d4c3
mov ecx, ebx
mov eax, edi
sub ecx, edi
mov bl, byte [eax + ecx]
xor bl, byte [eax]
inc eax
or dl, bl
dec esi
jne 0x46d4b8
pop edi
xor eax, eax
test dl, dl
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x478d2a
Capabilities:
Get common file path

Disassembly:
push 0xc44
mov eax, 0x481993
call fcn.00436485
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, ecx
xor edi, edi
mov dword [ebp - 0xc50], eax
cmp esi, edi
je 0x478d95
cmp word [esi], di
je 0x478d95
push edi
push esi
call fcn.00431925
pop ecx
pop ecx
test eax, eax
jne 0x478d95
mov dword [ebp - 0xc4c], edi
call fcn.0040fd53
test al, al
je 0x478d95
push esi
call fcn.00431e67
pop ecx
test eax, eax
je 0x478d95
push 0xc8
call ebx
inc dword [ebp - 0xc4c]
cmp dword [ebp - 0xc4c], 0x3e8
jl 0x478d68
mov eax, dword [ebp - 0xc50]
cmp eax, edi
je 0x478dea
cmp word [eax], di
je 0x478dea
push edi
push eax
call fcn.00431925
pop ecx
pop ecx
test eax, eax
jne 0x478dea
mov dword [ebp - 0xc4c], edi
mov esi, dword [ebp - 0xc50]
call fcn.0040fd53
test al, al
je 0x478dea
push esi
call fcn.00431e67
pop ecx
test eax, eax
je 0x478dea
push 0xc8
call ebx
inc dword [ebp - 0xc4c]
cmp dword [ebp - 0xc4c], 0x3e8
jl 0x478db7
push 7
pop eax
xor ecx, ecx
mov dword [ebp - 0xc18], eax
mov dword [ebp - 0xc1c], edi
mov word [ebp - 0xc2c], cx
mov dword [ebp - 4], edi
mov dword [ebp - 0xc34], eax
xor eax, eax
mov dword [ebp - 0xc38], edi
mov word [ebp - 0xc48], ax
lea eax, [ebp - 0xc48]
push eax
push dword [ebp - 0xc50]
lea ecx, [ebp - 0xc2c]
mov byte [ebp - 4], 1
call fcn.0040dc87
xor eax, eax
push 0x3fe
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push edi
push eax
call fcn.00432100
add esp, 0x14
lea eax, [ebp - 0x410]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
push 0x7fe
mov word [ebp - 0xc10], ax
lea eax, [ebp - 0xc0e]
push edi
push eax
call fcn.00432100
add esp, 0xc
push 0x400
lea eax, [ebp - 0xc10]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp dword [ebp - 0xc1c], edi
je 0x478f0b
cmp dword [ebp - 0xc18], 8
mov eax, dword [ebp - 0xc2c]
jae 0x478eba
lea eax, [ebp - 0xc2c]
lea ecx, [ebp - 0xc10]
push ecx
push eax
call fcn.004306d0
pop ecx
pop ecx
test eax, eax
je 0x478f0b
cmp dword [ebp - 0xc18], 8
mov eax, dword [ebp - 0xc2c]
jae 0x478ee2
lea eax, [ebp - 0xc2c]
push edi
push eax
call fcn.00431925
pop ecx
pop ecx
test eax, eax
jne 0x478f0b
cmp dword [ebp - 0xc18], 8
mov eax, dword [ebp - 0xc2c]
jae 0x478f04
lea eax, [ebp - 0xc2c]
push eax
call fcn.00431cb2
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0xc48]
call fcn.00401000
push 1
lea esi, [ebp - 0xc2c]
call fcn.00401000
call fcn.00436508
ret 4
Function at 0x4791d4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4a5214]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov esi, 0x4d1520
cmp dword [0x4d1530], edi
jne 0x479303
lea eax, [ebp - 0x804]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x479217
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x804]
call fcn.00401f58
cmp dword [0x4d1534], 8
mov eax, dword [0x4d1520]
jae 0x479241
mov eax, esi
push edi
push eax
call fcn.00431925
pop ecx
pop ecx
test eax, eax
je 0x479261
xor eax, eax
mov ecx, 0x490ba8
call fcn.00401f58
mov ecx, esi
call fcn.0041006e
cmp dword [0x4d1530], edi
je 0x479286
cmp dword [0x4d1534], 8
mov eax, dword [0x4d1520]
jae 0x479279
mov eax, esi
push edi
push eax
call fcn.00431925
pop ecx
pop ecx
test eax, eax
je 0x479298
push str.TEMP
call fcn.00431c38
pop ecx
push eax
push esi
call fcn.00401fd3
cmp dword [0x4d1530], edi
je 0x4792bd
cmp dword [0x4d1534], 8
mov eax, dword [0x4d1520]
jae 0x4792b0
mov eax, esi
push edi
push eax
call fcn.00431925
pop ecx
pop ecx
test eax, eax
je 0x4792cf
push 0x495280
call fcn.00431c38
pop ecx
push eax
push esi
call fcn.00401fd3
cmp dword [0x4d1530], edi
je 0x4792f4
cmp dword [0x4d1534], 8
mov eax, dword [0x4d1520]
jae 0x4792e7
mov eax, esi
push edi
push eax
call fcn.00431925
pop ecx
pop ecx
test eax, eax
je 0x479303
push 0xffffffffffffffff
push edi
mov eax, 0x4d14e8
mov ecx, esi
call fcn.00401cdb
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042fdff
leave
ret
Function at 0x479f6d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x481d17
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x4a5214]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push esi
push edi
mov eax, dword [0x4a5214]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040b883
mov dword [esp + 0x14], eax
lea eax, [esp + 0x2c]
call fcn.0040b7bb
xor ebx, ebx
mov dword [esp + 0x460], ebx
mov eax, dword [eax]
cmp eax, ebx
je 0x479fd4
mov eax, dword [eax]
jmp 0x479fd6
xor eax, eax
push eax
lea esi, [esp + 0x34]
call fcn.00402a60
lea edi, [esp + 0x2c]
call fcn.004019ac
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x18]
mov dword [esp + 0x30], ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x460], 3
push dword [esp + 0x28]
lea ecx, [esp + 0x1c]
call fcn.00413c79
pop ecx
cmp eax, 1
jle 0x47a0aa
xor eax, eax
push 0x3fe
mov word [esp + 0x50], ax
lea eax, [esp + 0x52]
push ebx
push eax
call fcn.00432100
mov esi, dword [esp + 0x24]
add esp, 0xc
jmp 0x47a09e
push 0x200
lea eax, [esp + 0x50]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [esp + 0x44], 8
mov ecx, dword [esp + 0x30]
jae 0x47a068
lea ecx, [esp + 0x30]
lea eax, [esp + 0x4c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47a092
cmp dx, bx
je 0x47a08e
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47a092
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x47a06c
xor eax, eax
jmp 0x47a097
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x47a0a6
add esi, 4
cmp esi, dword [esp + 0x1c]
jne 0x47a047
jmp 0x47a0c1
mov eax, dword [esi]
jmp 0x47a0bd
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
sub ecx, eax
sar ecx, 2
test ecx, ecx
je 0x47a0c1
mov eax, dword [eax]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x18], ebx
je 0x47a0d1
push dword [esp + 0x18]
call fcn.0042fdf4
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0x34]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00401000
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.0042fdff
mov esp, ebp
pop ebp
ret

Function at 0x47a112
Capabilities:
Create thread

Disassembly:
push ebx
push edi
call fcn.00430e0f
xor ebx, ebx
mov edi, eax
cmp dword [0x4d173c], ebx
jne 0x47a160
cmp word [0x4d1842], 3
push esi
mov esi, 0x4d1838
jne 0x47a146
call fcn.00402a35
test al, 1
je 0x47a146
cmp byte [0x4d15f9], bl
je 0x47a15f
push 0x4d1744
push ebx
push esi
push 0x407e78
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4d1748], eax
pop esi
mov eax, edi
pop edi
pop ebx
ret
Function at 0x78ab1d3f
Capabilities:
Accept command line arguments
Get thread local storage value

Disassembly:
push 8
push 0x78ab1de0
call fcn.78ab0950
mov eax, dword [ebp + 8]
cmp eax, 1
je 0x78abb8b1
xor edi, edi
cmp eax, edi
je 0x78ac7b31
cmp eax, 2
jne 0x78ab2967
call sym.MSVCR100.dll___set_flsgetvalue
push dword [0x78b548b4]
push dword [0x78b548b8]
call dword [sym.imp.kernel32.dll_TlsGetValue]
call eax
test eax, eax
jne 0x78ab1dd1
push 0x214
push 1
call fcn.78aebcae
pop ecx
pop ecx
mov esi, eax
cmp esi, edi
je 0x78ac7b77
push esi
push dword [0x78b548b4]
push dword [0x78b54e50]
call dword [sym.imp.kernel32.dll_DecodePointer]
call eax
test eax, eax
je 0x78ad7484
push edi
push esi
call sym.MSVCR100.dll__initptd
pop ecx
pop ecx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [esi], eax
or dword [esi + 4], 0xffffffff
call fcn.78ab1d38
xor eax, eax
inc eax
call fcn.78ab0995
ret
cmp eax, 3
jne 0x78ab1dd1
push edi
call fcn.78aebcae
pop ecx
jmp 0x78ab1dd1
call fcn.78abb359
test eax, eax
je 0x78ac7b77
call fcn.78abba14
test eax, eax
je 0x78ad7437
call fcn.78aebcae
test eax, eax
js 0x78ad7441
call fcn.78aebcae
mov dword [0x78b55428], eax
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [sym.MSVCR100.dll__acmdln], eax
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov dword [sym.MSVCR100.dll__wcmdln], eax
call fcn.78abb8a6
call fcn.78abb925
test eax, eax
js 0x78ac7b7e
push 0
call fcn.78aebcae
pop ecx
test eax, eax
jne 0x78ac7b7e
inc dword [0x78b55424]
jmp 0x78ab1dd1
cmp dword [0x78b55424], edi
jle 0x78ac7b77
dec dword [0x78b55424]
mov dword [ebp - 4], edi
cmp dword [0x78b55eac], edi
je 0x78ad7448
call fcn.78ac7ac7
cmp dword [ebp + 0xc], edi
je 0x78ad7452
mov dword [ebp - 4], 0xfffffffe
call fcn.78ac7b6d
jmp 0x78ab1dd1
xor eax, eax
jmp 0x78ab1dd9
call fcn.78b26d78
jmp 0x78ad7441
call fcn.78b266ba
jmp 0x78ac7b77
call fcn.78afc6e7
jmp 0x78ad7437
call sym.MSVCR100.dll__cexit
jmp 0x78ac7b4e
call fcn.78b26d78
call fcn.78afc6e7
call fcn.78b266ba
jmp 0x78ac7b5c
push esi
call fcn.78aebcae
pop ecx
jmp 0x78ac7b77

Function at 0x78ab23db
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x78ad7b05
test dword [ebp + 0xc], 0xfffffff9
jne 0x78ad7b05
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x78ac09bb
test al, 0x10
jne 0x78ab241d
test al, 1
je 0x78ab241d
test byte [ebp + 0xc], 2
jne 0x78ad7b22
xor eax, eax
pop esi
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.78aebcae
pop ecx
call sym.MSVCR100.dll__errno
mov eax, dword [eax]
jmp 0x78ab241f
call sym.MSVCR100.dll___doserrno
mov dword [eax], esi
call sym.MSVCR100.dll__errno
push 0x16
pop esi
mov dword [eax], esi
call sym.MSVCR100.dll__invalid_parameter_noinfo
mov eax, esi
jmp 0x78ab241f
call sym.MSVCR100.dll___doserrno
mov dword [eax], 5
call sym.MSVCR100.dll__errno
mov dword [eax], 0xd
jmp 0x78ac09c8
Function at 0x78ac235f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
mov esi, eax
xor ecx, ecx
cmp esi, ecx
je 0x78ae06f7
cmp word [esi], cx
je 0x78ac2389
add eax, 2
cmp word [eax], cx
jne 0x78ac2379
add eax, 2
cmp word [eax], cx
jne 0x78ac2379
push ebx
sub eax, esi
lea ebx, [eax + 2]
push edi
push ebx
call fcn.78aebcae
mov edi, eax
pop ecx
test edi, edi
je 0x78ac23a8
push ebx
push esi
push edi
call fcn.78aebcae
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x78ac78ec
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x78ac7928
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x78ac7928
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x78ac7928
xor eax, eax
cmp dword [ecx + 0x74], 0xe
jbe 0x78ac7927
cmp dword [ecx + 0xe8], eax
setne al
ret
xor eax, eax
ret
Function at 0x78ae87e8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x24
mov eax, 0x78b4fc38
call fcn.78b24a94
mov eax, dword [ebx + 0x30]
lea ecx, [eax + 1]
mov dword [ebx + 0x30], ecx
test eax, eax
jne 0x78ae8936
cmp dword [ebx + 0x1c], eax
setne byte [ebp - 0x29]
cmp dword [ebx + 0x18], eax
jne 0x78ae890b
mov esi, dword [ebx + 0x28]
mov edi, dword [ebx + 0x24]
mov edx, dword [ebx + 0x14]
imul edi, edi, 0x2c
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x30], esi
imul esi, esi, 0x2c
add esi, dword [eax + edi + 0x28]
mov ecx, dword [esi + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
test ecx, ecx
jne 0x78ae885b
mov ecx, dword [edx + 0x10]
add ecx, edi
inc dword [ecx + 0x1c]
inc dword [edx + 0xac]
cmp byte [esi + 0x29], 0
je 0x78ae885b
mov eax, dword [ebp - 0x30]
mov byte [esi + 0x2a], 1
call fcn.78af2d19
cmp byte [ebp - 0x29], 0
jne 0x78ae891b
inc dword [edx + 0xb4]
inc dword [esi + 0x24]
call dword [sym.imp.kernel32.dll_GetCurrentThread]
push eax
lea esi, [ebp - 0x28]
mov dword [ebp - 0x30], eax
call fcn.78aebcae
mov cx, word [eax + 4]
mov word [ebx + 0xc], cx
mov eax, dword [eax]
mov dword [ebx + 8], eax
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x14]
imul eax, eax, 0x2c
mov ecx, dword [ecx + 0x10]
mov esi, dword [eax + ecx]
movzx edi, word [eax + ecx + 0x10]
push 0xc
lea eax, [ebp - 0x1c]
push 0
push eax
call sym.MSVCR100.dll_memset
add esp, 0xc
push dword [ebp - 0x30]
mov dword [ebp - 0x1c], esi
lea esi, [ebp - 0x1c]
mov word [ebp - 0x18], di
call fcn.78aebcae
mov edi, dword [ebx + 0x14]
mov esi, ebx
call fcn.78af304f
mov esi, dword [ebx + 0x14]
lea edi, [esi + 0x20]
push edi
mov dword [ebp - 0x30], edi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
imul eax, eax, 0x2c
mov ecx, dword [ebx + 0x28]
mov edx, dword [esi + 0x10]
imul ecx, ecx, 0x2c
mov eax, dword [eax + edx + 0x28]
lea ecx, [eax + ecx + 8]
mov eax, ebx
call fcn.78af3295
push edi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x78ae891b
mov ecx, dword [ebx + 0x14]
lea ecx, [ecx + 0xc4]
mov eax, ebx
call fcn.78af3295
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x70]
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
push ebx
push esi
mov dword [ebx + 0x20], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
call fcn.78b24b03
ret
Function at 0x78aeb96a
Capabilities:
Allocate thread local storage

Disassembly:
push 0x20
mov eax, 0x78b4f893
call fcn.78abb69a
mov edi, dword [ebp + 8]
push dword [0x78b5736c]
xor esi, esi
mov dword [edi], 0x78ae3cd0
lea eax, [edi + 0x24]
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], 0x10
mov dword [edi + 0x10], esi
mov dword [edi + 0x1c], esi
push eax
mov dword [edi + 0x20], esi
call dword [sym.imp.kernel32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [ebp - 4], esi
push dword [0x78b5736c]
lea ebx, [edi + 0x68]
mov dword [edi + 0x3c], esi
mov dword [edi + 0x40], esi
mov dword [edi + 0x44], esi
mov dword [edi + 0x48], esi
mov dword [edi + 0x4c], esi
mov dword [edi + 0x50], esi
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
mov dword [edi + 0x5c], esi
lea eax, [ebx + 0xc]
mov dword [edi + 0x60], esi
mov dword [edi + 0x64], esi
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebx], esi
mov dword [ebx + 4], esi
call dword [sym.imp.kernel32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov dword [ebx + 8], eax
cmp eax, 0xffffffff
jne 0x78aeba23
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, esi
jle 0x78aeba0c
and eax, 0xffff
or eax, 0x80070000
push eax
lea ecx, [ebp - 0x2c]
call fcn.78aebcae
push 0x78b50c48
lea eax, [ebp - 0x2c]
push eax
call fcn.78aebcae
push 0x78aebae8
push 0x78ae3cb0
mov byte [ebp - 4], 2
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
cmp eax, esi
je 0x78aeba58
mov ecx, dword [0x78b555e8]
xor ecx, eax
mov dword [edi + 0x8c], ecx
mov dword [edi + 0x90], esi
jmp 0x78aebaa7
push 4
push 0x3000
push 0x1000
push esi
mov dword [edi + 0x8c], esi
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov dword [edi + 0x90], eax
cmp eax, esi
jne 0x78aebaa4
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0x78abb754
call fcn.78aebcae
mov dword [ebp - 0x1c], 0x78abc7ec
push 0x78abc888
lea eax, [ebp - 0x1c]
jmp 0x78aeba1d
mov byte [eax], 1
push 1
call fcn.78aebcae
pop ecx
call fcn.78aebcae
push esi
push esi
push esi
push esi
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0xc]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.78aebcae
mov dword [edi + 0x4c], eax
pop ecx
mov eax, edi
call fcn.78abbf60
ret 4