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

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x100510ac
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x1005124e
cmp edi, dword [ebp + 0x10]
jb 0x1005124e
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.10050b76
inc edi
jmp 0x10051135
jmp 0x10051142
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.10050b76
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.10050b76
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x10051196
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x1005117a
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.100511c4
add dword [eax], 0x39
jle 0x100511a0
sub al, 0xf5
mov ch, al
call fcn.100511d9
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x10052eb1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x10052ec7
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x10052ed8
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.10052f19
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx
Function at 0x10055285
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x100551ce
add ebx, 0
push ecx
call 0x100551e3
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x100a621c
sub ebx, dword [0x100c5a5b]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x100c5a4b
call fcn.10050cad
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.100501bb
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x10055341
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x10055341
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x100552f8
mov eax, 1
lock xchg dword [0x100c5a57], eax
push 0x3dd1fc71
call 0x10055285
push esi
add esp, 8
cmp eax, 0
jne 0x1005526e
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x10055294
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x100552a9
cmp ecx, edx
cmp eax, 0
je 0x100552ce
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x100552b8
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.100552e7
dec eax
loope 0x100552ea
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x100c5a57], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x1005531e
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x10055333
jmp 0x1005533e
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x1005522c
Function at 0x1005c3a6
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x1005c67c
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x100b26cf
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x100a9695
push 0xffffffffffffffff
call fcn.100535a6
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x1005c410
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.1005c428
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x1005c670
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x1005c644
Function at 0x1006be76
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x1006be98
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1006be98
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1006be98
ret
cmp word [ebx + 4], 0x14c
jne 0x1006be98
test word [ebx + 0x16], 2
je 0x1006be98
test word [ebx + 0x16], 0x100
je 0x1006be98
cmp word [ebx + 0x18], 0x10b
jne 0x1006be98
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1006be98
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1006bf24
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1006beb8
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10052e03
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1006be98
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x1006bf24
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x1006be98
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1006be98
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1006be98
ret
cmp word [ebx + 4], 0x14c
jne 0x1006be98
test word [ebx + 0x16], 2
je 0x1006be98
test word [ebx + 0x16], 0x100
je 0x1006be98
cmp word [ebx + 0x18], 0x10b
jne 0x1006be98
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1006be98
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1006bf24
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1006beb8
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10052e03
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1006be98
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x1006bfdb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1006c034
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1006bfdb
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1006bfea
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x10471c8d
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1006c03b
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10052eb1
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1006c0da
add edi, 4
add eax, 2
dec ecx
jne 0x1006c020
call 0x1006c087
loope 0x1006c07d
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1006c0d7
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1006c0e8
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1006c09b
cmp eax, ecx
ja 0x1006c09b
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1006c125
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1006c11b
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.10053390
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1006bfea
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1006c034
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1006bfdb
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1006bfea
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x10471c8d
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1006c03b
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10052eb1
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1006c0da
add edi, 4
add eax, 2
dec ecx
jne 0x1006c020
call 0x1006c087
loope 0x1006c07d
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1006c0d7
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1006c0e8
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1006c09b
cmp eax, ecx
ja 0x1006c09b
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1006c125
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1006c11b
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.10053390
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x418b58
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x418b67
pop dword [ebp - 0x18]
mov eax, 0xaa4e6a50
add eax, 0x55f32117
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x3fa7a
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x7a202331
add ecx, 0x85e031c2
mov edx, eax
mov ebx, 0x98599de3
sub ebx, 0x98166fe3
add ebx, dword [ebp - 0x18]
mov esi, 0xa30bad36
add dword [ebp - 0x14], 0xb38e3840
mov edi, dword [ebx]
xor dword [ebp - 4], 0x51a6190
sub edi, esi
sub dword [ebp - 0x14], 0x3e489130
mov dword [edx], edi
add edx, 4
add ebx, 0xcd0de4a8
add ebx, 0x32f21b5c
loop 0x418bbb
add eax, 0x1eac7b63
add eax, 0xe154cb3c
mov ebx, eax
add eax, 5
mov ecx, 0xa3ec9005
sub ecx, 0xa3ac9005
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x78ab07a7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x78b53610]
jne sym.MSVCR100.dll___report_gsfailure
repz ret

Function at 0x78ab203f
Capabilities:
Accept command line arguments
Get thread local storage value

Disassembly:
push 8
push 0x78ab20e0
call fcn.78ab0c80
mov eax, dword [ebp + 8]
cmp eax, 1
je 0x78abb235
xor edi, edi
cmp eax, edi
je 0x78ac8065
cmp eax, 2
jne 0x78ab25a7
call sym.MSVCR100.dll___set_flsgetvalue
push dword [0x78b538b4]
push dword [0x78b538b8]
call dword [sym.imp.kernel32.dll_TlsGetValue]
call eax
test eax, eax
jne 0x78ab20d1
push 0x214
push 1
call sym.MSVCR100.dll__wasctime_s
pop ecx
pop ecx
mov esi, eax
cmp esi, edi
je 0x78ac80ab
push esi
push dword [0x78b538b4]
push dword [0x78b53e58]
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.78ab2038
xor eax, eax
inc eax
call fcn.78ab0cc5
ret
cmp eax, 3
jne 0x78ab20d1
push edi
call sym.MSVCR100.dll__wasctime_s
pop ecx
jmp 0x78ab20d1
call fcn.78abad05
test eax, eax
je 0x78ac80ab
call fcn.78abb398
test eax, eax
je 0x78ad7437
call sym.MSVCR100.dll__wasctime_s
test eax, eax
js 0x78ad7441
call sym.MSVCR100.dll__wasctime_s
mov dword [0x78b54470], 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.78abb22a
call fcn.78abb2a9
test eax, eax
js 0x78ac80b2
push 0
call sym.MSVCR100.dll__wasctime_s
pop ecx
test eax, eax
jne 0x78ac80b2
inc dword [0x78b5446c]
jmp 0x78ab20d1
cmp dword [0x78b5446c], edi
jle 0x78ac80ab
dec dword [0x78b5446c]
mov dword [ebp - 4], edi
cmp dword [0x78b54eb4], edi
je 0x78ad7448
call fcn.78ac7ffb
cmp dword [ebp + 0xc], edi
je 0x78ad7452
mov dword [ebp - 4], 0xfffffffe
call fcn.78ac80a1
jmp 0x78ab20d1
xor eax, eax
jmp 0x78ab20d9
call fcn.78b26ca8
jmp 0x78ad7441
call fcn.78b265ea
jmp 0x78ac80ab
call fcn.78afc86f
jmp 0x78ad7437
call sym.MSVCR100.dll__cexit
jmp 0x78ac8082
call fcn.78b26ca8
call fcn.78afc86f
call fcn.78b265ea
jmp 0x78ac8090
push esi
call sym.MSVCR100.dll__wasctime_s
pop ecx
jmp 0x78ac80ab
Function at 0x78ab27b6
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 0x78abfa08
test al, 0x10
jne 0x78ab27f8
test al, 1
je 0x78ab27f8
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 sym.MSVCR100.dll__wasctime_s
pop ecx
call sym.MSVCR100.dll__errno
mov eax, dword [eax]
jmp 0x78ab27fa
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 0x78ab27fa
call sym.MSVCR100.dll___doserrno
mov dword [eax], 5
call sym.MSVCR100.dll__errno
mov dword [eax], 0xd
jmp 0x78abfa15

Function at 0x78ac1201
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 0x78ae06ff
cmp word [esi], cx
je 0x78ac122b
add eax, 2
cmp word [eax], cx
jne 0x78ac121b
add eax, 2
cmp word [eax], cx
jne 0x78ac121b
push ebx
sub eax, esi
lea ebx, [eax + 2]
push edi
push ebx
call sym.MSVCR100.dll__wasctime_s
mov edi, eax
pop ecx
test edi, edi
je 0x78ac124a
push ebx
push esi
push edi
call sym.MSVCR100.dll__wasctime_s
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 0x78ac7e18
Capabilities:
Parse pe header

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

Disassembly:
push 0x28
mov eax, 0x78b4ee00
call fcn.78b2499c
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
lea ecx, [eax + 1]
mov dword [ebx + 0x30], ecx
test eax, eax
jne 0x78ae8926
cmp dword [ebx + 0x1c], eax
setne byte [ebp - 0x29]
cmp dword [ebx + 0x18], eax
jne 0x78ae88fb
cmp byte [ebp - 0x29], al
mov edi, dword [ebx + 0x14]
sete al
movzx eax, al
push eax
push dword [ebx + 0x28]
mov eax, dword [ebx + 0x24]
call sym.MSVCR100.dll__wasctime_s
cmp byte [ebp - 0x29], 0
jne 0x78ae890b
call dword [sym.imp.kernel32.dll_GetCurrentThread]
push eax
lea esi, [ebp - 0x28]
mov dword [ebp - 0x30], eax
call sym.MSVCR100.dll__wasctime_s
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 sym.MSVCR100.dll__wasctime_s
mov edi, dword [ebx + 0x14]
mov esi, ebx
call fcn.78af314f
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.78af3395
push edi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x78ae890b
mov ecx, dword [ebx + 0x14]
lea ecx, [ecx + 0xc4]
mov eax, ebx
call fcn.78af3395
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.78b24a0b
ret 4
Function at 0x78aebae2
Capabilities:
Allocate thread local storage

Disassembly:
push 0x20
mov eax, 0x78b4ea57
call fcn.78abb046
mov edi, dword [ebp + 8]
push dword [0x78b5636c]
xor esi, esi
mov dword [edi], 0x78ae3cd8
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 [0x78b5636c]
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 0x78aebb9b
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, esi
jle 0x78aebb84
and eax, 0xffff
or eax, 0x80070000
push eax
lea ecx, [ebp - 0x2c]
call sym.MSVCR100.dll__wasctime_s
push 0x78b4feb4
lea eax, [ebp - 0x2c]
push eax
call sym.MSVCR100.dll__wasctime_s
push 0x78aebc60
push 0x78ae3cb8
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 0x78aebbd0
mov ecx, dword [0x78b54630]
xor ecx, eax
mov dword [edi + 0x8c], ecx
mov dword [edi + 0x90], esi
jmp 0x78aebc1f
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 0x78aebc1c
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0x78abb0d8
call sym.MSVCR100.dll__wasctime_s
mov dword [ebp - 0x1c], 0x78abbd3c
push 0x78abbdd8
lea eax, [ebp - 0x1c]
jmp 0x78aebb95
mov byte [eax], 1
push 1
call sym.MSVCR100.dll__wasctime_s
pop ecx
call sym.MSVCR100.dll__wasctime_s
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 sym.MSVCR100.dll__wasctime_s
mov dword [edi + 0x4c], eax
pop ecx
mov eax, edi
call fcn.78abb658
ret 4
Function at 0x78aef174
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xc
mov eax, 0x78b4f1e0
call fcn.78abb046
mov edi, ecx
mov ebx, dword [sym.imp.kernel32.dll_GetTickCount]
push 0x64
pop esi
call ebx
sub eax, 0x1f4
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x20]
cmp eax, 2
je 0x78aef263
lea eax, [edi + 0x24]
mov dword [ebp - 0x14], eax
push esi
push dword [edi + 0x48]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
mov eax, dword [edi + 0x20]
sub eax, 0
je 0x78aef237
dec eax
jne 0x78aef24a
cmp dword [ebp - 0x18], 0x102
jne 0x78aef1f2
call sym.MSVCR100.dll__wasctime_s
cmp dword [edi + 0x10], 0
jbe 0x78aef1e8
push 0
push edi
call sym.MSVCR100.dll__wasctime_s
call ebx
push 0x64
mov dword [ebp - 0x10], eax
pop esi
jmp 0x78aef24a
call ebx
sub eax, dword [ebp - 0x10]
push 0x64
pop esi
mov dword [ebp - 0x18], eax
cmp eax, esi
jbe 0x78aef224
cmp eax, 0x82
jbe 0x78aef20f
call sym.MSVCR100.dll__wasctime_s
jmp 0x78aef21d
cmp dword [edi + 0x10], 0
jbe 0x78aef21d
push 0
push edi
call sym.MSVCR100.dll__wasctime_s
call ebx
mov dword [ebp - 0x10], eax
jmp 0x78aef24a
cmp dword [edi + 0x10], 0
jbe 0x78aef232
push 0
push edi
call sym.MSVCR100.dll__wasctime_s
sub esi, dword [ebp - 0x18]
jmp 0x78aef24a
push edi
call sym.MSVCR100.dll__wasctime_s
movzx esi, al
neg esi
sbb esi, esi
and esi, 0xffffff9b
add esi, 0x64
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0x20]
cmp eax, 2
jne 0x78aef1a7
call fcn.78abb658
ret