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

Disassembly:
xchg esp, eax
push edi
add ah, byte [edx + 0x77]
xor esp, dword [eax - 0x7a]
dec esi
dec edi
pop edi
mov ecx, 0xb3836184
test eax, 0xe72e7653
sub al, byte [edx + 0x5fa6f342]
mov byte [0x548821fd], al
hlt
and al, ah
pop ebx
xor ebp, eax
wait
mov ebx, 0x8bd5a5ec
je 0x41171a
js 0x411737
mov ah, 0x99
jge 0x4116c2
inc ebp
mov ebp, 0x196bf046
invalid
xor eax, 0xa654de7a
push esp
xor al, 0x49
invalid
insd dword es:[edi], dx
jno 0x4117b0
jmp 0x1e813416
js 0x4117a1
sub al, byte [bx + si + 0x5d]
sub eax, 0xc3f6234c
popfd
cmp al, 0x69
scasb al, byte es:[edi]
loope 0x41170f
aaa
mov dh, 0xdd
ja 0x41174c
jo 0x4117b7
invalid
inc esp
test eax, 0xb23fac7c
mov dl, 0x94
mov dl, 0x94
sub eax, 0x584aa62c
cld
jb 0x4117fa
sar byte [ebp + 0x79fc261e], 0x49
cld
jns 0x4117ee
inc esp
xchg ebx, eax
mov ebx, 0xa89a500c
mov ah, 0x18
daa
inc esp
bound esi, qword [eax]
retf
retf 0x3844
mov bh, 3
cmpsb byte [esi], byte es:[edi]
mov dh, 0xd5
wait
wait
sub dl, ah
jbe 0x411771
and dword [edx + 0x7b534605], esi
xchg ebp, eax
invalid
jge 0x41178e
mov ebp, 0x500679ff
dec esp
mov dword [0x8d4d0628], edi
dec esp
stosb byte es:[edi], al
xchg esp, eax
dec ebp
lea ecx, [edx + ebp*4 - 0x6c]
xor eax, 0x1d5d0aef
jnp 0x4117cb
cvtps2pd xmm4, qword [ebx + 0x16]
jno 0x4117af
fadd st(0)
pop ebx
and dword [ebx + edi*2 - 0x756256e5], ebx
fst dword [edx - 0x54734db2]
and dl, dl
mov eax, dword [0x9effabc9]
push es
sal dword [ebx], 0x2e
mov dh, 0x9d
jns 0x4117c5
add dh, byte [eax - 0x296a87f5]
xor dword [edi - 3], edi
retf

Function at 0x41483d
Capabilities:
Encode data using xor

Disassembly:
cmp al, 0x8b
push cs
insb byte es:[edi], dx
inc eax
aam 0x7c
pop ebx
inc edx
sbb eax, 0xebe67e8e
pop edx
sub eax, 0x5eab8f48
fisttp word [esi + 0x60]
or byte [ebx], ch
xor byte [edi], bl
scasd eax, dword es:[edi]
dec edi
push edi
sbb bl, dh
fisub dword [edx - 0x53]
clc
insb byte es:[edi], dx
add eax, edi
pop ebx
sub byte [esi], ah
imul esi, dword [edx + 0x42], 0x8e0f746e
scasd eax, dword es:[edi]
jae 0x414840
cld
in al, dx
push esi
xor esp, eax
insb byte es:[edi], dx
pushal
xchg ebx, eax
cmpsb byte [esi], byte es:[edi]
ret 0xba3
Function at 0x423cbc
Capabilities:
Encode data using xor

Disassembly:
push esi
std
push esi
loopne 0x423cc4
cmp al, 0xd6
pop ebx
sahf
insb byte es:[edi], dx
sub ah, bh
movsb byte es:[edi], byte [esi]
inc esi
loopne 0x423d08
sub al, 0x47
sub al, 0xc0
sub eax, ecx
stosb byte es:[edi], al
invalid
mov byte [edi + eax*2 + 0x71ac14ff], al
mov esi, 0x3016354
mov al, 0x15
mov al, byte [0x7c51870a]
mov byte [0xfa251177], al
popfd
inc esi
mov ecx, 0xd934b605
pushal
insd dword es:[edi], dx
not byte [esi + edi*4]
salc
xor al, 0xd1
sub al, 0x54
jo 0x423cc6
fsubr dword [ecx + 0x10]
xor eax, 0xc22702bc
outsd dx, dword [esi]
dec ecx
jb 0x423d34
loope 0x423db7
adc ch, ah
xor esi, dword [ebx]
lea esp, [ebx]
mov al, byte [0x45e6dfe]
jmp 0x423d5f
add ebx, dword [esi - 0x3a]
lds esi, [edi - 0x1b]
imul esp, ebx, 0x3d46c5c3
and ah, 0x26
xchg ebx, eax
or ch, byte [edx - 0x280d09e7]
inc ebx
nop
inc edx
mov edi, 0x81bd61c4
inc esp
invalid
xor byte [edx + edi*4], bh
or eax, 0xd9d8513
xchg ebx, eax
add esi, ebx
insd dword es:[edi], dx
aaa
loopne 0x423df5
ret
adc al, 0
scasw ax, word es:[edi]
xchg ebx, eax
invalid

Function at 0x43c5a2
Capabilities:
Encode data using xor

Disassembly:
jle 0x43c5d0
cmp ah, ah
xor dword [edx + edx*8 - 0x444c9168], esi
in al, 0x31
mov ah, 0xd2
cwde
outsb dx, byte [esi]
mov bl, 0xbb
and byte [edi - 0xaabcfe1], bh
hlt
pop ds
xor byte [ebp + esi*8 - 0xc], dl
stosb byte es:[edi], al
js 0x43c5a8
je 0x43c597
test al, 0x9b
mov ecx, 0x5b566e3c
push esp
dec edi
sbb bh, byte [edi + 0x42cb2203]
mov ah, 0x96
scasb al, byte es:[edi]
jb 0x43c596
pushfd
pop ebx
push es
mov ebx, 0x66b666f5
mov edx, 0xba6c87bb
mov al, byte [edi]
pop es
pop edx
cmp ecx, esp
sub eax, 0x8fae6e50
in al, dx
insd dword es:[edi], dx
movsd dword es:[edi], dword [esi]
pcmpeqw mm3, mm4
dec ebx
push ebp
stc
adc al, al
jb 0x43c64f
sub ebx, esp
out dx, eax
add byte [esi], dh
push edx
xchg dword [ecx + 0x357ffa27], edi
out dx, al
fcmovnbe st(0), st(1)
daa
int 0x15
dec ebx
adc dh, byte [eax + 0x32ba888b]
mov byte [0x29b52460], al
fnstsw word [ebx]
sub edx, dword [eax + edx]
cmp al, 0xe1
add eax, 0xd1e1da87
add esi, dword [esi + 0x4f]
dec ebx
das
std
or al, 0x47
jmp esp
xchg ebx, eax
mov ch, 0xce
scasd eax, dword es:[edi]
cmp al, 0x86
push edi
dec edi
ror dword [edx + 0x59], 0x75
test eax, 0x4abbb0db
inc esp
rcl al, 0x82
adc al, 0x95
cdq
push edi
or dh, bh
push ebx
ret 0xe23f
Function at 0x46d853
Capabilities:
Encode data using xor

Disassembly:
fstp xword [esp + edx*8 - 0x2a313e8d]
popal
mov ebp, 0x755731b2
mov dl, 0x31
push edi
jne 0x46d801
add bl, byte [ebx + ecx]
lea esi, ds:[esi + 0x24]
jb 0x46d89a
xor al, 0x27
bound ebx, qword [ebp + 0x20]
xor eax, 0xf675f850
invalid
and dword [edx - 0x528d9a3], ebx
push 0xa1624595
leave
push esi
or ebx, dword [esp + eax*2 - 4]
cld
push edx
sub byte [edx + 0x1396539a], ah
dec esp
mov dh, pe_nt_image_headers32
in eax, dx
pop edx
and dword [0x83e92454], esi
pop ebp
push ds
test byte [ebp + 0x6443884b], 0x56
and ebp, dword [ebx + 0x65f30cb2]
popal
stosd dword es:[edi], eax
mov dl, 0xc
popal
pop ecx
in eax, 0xc5
cmp eax, 0xaa7b052a
dec ebp
add byte [ebp - 0x4e], dl
or dword [edi + eax], ebx
and eax, 0x73527e20
push 0x95506c98
jae 0x46d889
pushfd
push esp
jnp 0x46d8b8
mov ebp, 0xebb82474
and eax, 0xb6e06275
xchg esp, eax
add ah, byte [ebx + 0x62]
pop edi
pop edx
mov bl, 0xe1
popal
clc
dec edi
sahf
out dx, al
leave
mov eax, dword [0x66708fef]
cmp al, byte [ebx]
fistp word [ebp + edi*2 - 0x69]
in al, 0x98
and al, 0x1b
xor ebp, 0x5dd28dd3
imul ebp, dword [edi - 0x5a], 0x70d55587
sbb ebx, dword [edx + 0x7dd7fd4f]
das
and edx, dword [edi + 0x77]
inc ecx
jae 0x46d97a
jae 0x46d972
popfd
push ds
popal
xchg al, ch
xor eax, 0xa459a477
imul esp, edi, 0xb3f26b7d
xchg ebx, eax
pop eax
aad 0x4c
push edx
cli
invalid
xchg edx, eax
xlatb
pop esp
mov dword [ebx], eax
pop edx
xchg ebx, eax
pop ds
ret

Function at 0x4bb7bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c43d0
cmp edx, dword [eax]
je 0x4bb7df
add eax, 8
inc ecx
cmp eax, 0x4c4460
jl 0x4bb7d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c43d0]
jne 0x4bb90d
mov eax, dword [0x4c8d64]
cmp eax, 1
je 0x4bb8e7
test eax, eax
jne 0x4bb810
cmp dword [0x4c42fc], 1
je 0x4bb8e7
cmp edx, 0xfc
je 0x4bb90d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb847
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bc1a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc630
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb88a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc630
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c0b2c
push edi
call fcn.004be500
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bc1a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bc1b0
lea eax, [ebp - 0xa0]
push 0x4c0b0c
push eax
call fcn.004bc1b0
push dword [esi + 0x4c43d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bc1b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004be474
add esp, 0x2c
pop edi
jmp 0x4bb90d
lea eax, [ebp + 8]
lea esi, [esi + 0x4c43d4]
push 0
push eax
push dword [esi]
call fcn.004bc630
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x524d10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xdd000]
push edi
or ebp, 0xffffffff
jmp 0x524d32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x524d39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x524d28
mov eax, 1
add ebx, ebx
jne 0x524d4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x524d5c
jne 0x524d7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x524d7b
dec eax
add ebx, ebx
jne 0x524d68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x524d40
add ebx, ebx
jne 0x524d77
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x524dcd
xor ecx, ecx
sub eax, 3
jb 0x524d93
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x524e02
sar eax, 1
mov ebp, eax
jmp 0x524d9e
add ebx, ebx
jne 0x524d9e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x524d6c
inc ecx
add ebx, ebx
jne 0x524dac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x524d6c
add ebx, ebx
jne 0x524db9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x524dae
jne 0x524dca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x524dae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x524dec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x524dde
jmp 0x524d2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x524dec
add edi, ecx
jmp 0x524d2e
pop esi
mov edi, esi
mov ecx, 0x2716
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x524e0a
cmp byte [edi], 0x13
jne 0x524e0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x524e0f
lea edi, [esi + 0x121000]
mov eax, dword [edi]
or eax, eax
je 0x524e87
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x13cf1c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x13d020]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x524e3c
mov ecx, edi
jns 0x524e6b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x13d024]
or eax, eax
je 0x524e81
mov dword [ebx], eax
add ebx, 4
jmp 0x524e59
call dword [esi + 0x13d034]
mov ebp, dword [esi + 0x13d028]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x524ebb
sub esp, 0xffffff80
jmp 0x448b60
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..00cfg
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x666b5696
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x28574fdf
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x421740
Capabilities:
Encode data using xor

Disassembly:
xor dl, dl
mov dl, byte [edi]
xor dl, bl
mov byte [edi], dl
inc edi
cmp edi, ecx
jne fcn.00421740
ret
Function at 0x46878c
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00468603

Function at 0x40147d
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
lea eax, [ebp - 0x11c]
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x116]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10c]
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [ebp - 0x11c], 0xa
mov byte [ebp - 0x10c], 0
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
movsx eax, byte [ebp - 0x116]
sub esp, 0x14
leave
sub eax, 0x41
ret

Function at 0x4014d9
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xa0
mov dword [ebp - 0x88], 0
call fcn.0040147d
mov dword [esp], 0x4015b0
mov dword [ebp - 0x8c], 0
mov ebx, eax
lea eax, [ebp - 0x8c]
mov dword [esp + 0xc], eax
mov eax, ebx
or eax, 0x40
mov dword [esp + 8], eax
mov eax, 0x402012
sub eax, 0x4015b0
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x40157a
mov dword [esp], ebx
lea esi, [ebp - 0x88]
call fcn.004013a1
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.00401404
lea eax, [ebx + 0x1b800]
test ebx, ebx
lea edx, [eax + eax]
mov ecx, 0x40300c
mov dword [esp + 8], esi
cmovne eax, edx
sar ebx, cl
sub ecx, ebx
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00401d15
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
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.78b30249
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.78b30249
pop ecx
jmp 0x78ab1dd1
call fcn.78abb359
test eax, eax
je 0x78ac7b77
call fcn.78abba14
test eax, eax
je 0x78ad7437
call fcn.78b30249
test eax, eax
js 0x78ad7441
call fcn.78b30249
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.78b30249
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.78b30249
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.78b30249
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.78b30249
mov edi, eax
pop ecx
test edi, edi
je 0x78ac23a8
push ebx
push esi
push edi
call fcn.78b30249
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.78b30249
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.78b30249
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.78b30249
push 0x78b50c48
lea eax, [ebp - 0x2c]
push eax
call fcn.78b30249
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.78b30249
mov dword [ebp - 0x1c], 0x78abc7ec
push 0x78abc888
lea eax, [ebp - 0x1c]
jmp 0x78aeba1d
mov byte [eax], 1
push 1
call fcn.78b30249
pop ecx
call fcn.78b30249
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.78b30249
mov dword [edi + 0x4c], eax
pop ecx
mov eax, edi
call fcn.78abbf60
ret 4
Function at 0x78aeefb6
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xc
mov eax, 0x78b4ffc4
call fcn.78abb69a
mov ebx, ecx
mov esi, dword [sym.imp.kernel32.dll_GetTickCount]
push 0x64
pop edi
call esi
sub eax, 0x1f4
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x20]
cmp eax, 2
je 0x78aef093
lea eax, [ebx + 0x24]
mov dword [ebp - 0x14], eax
push edi
push dword [ebx + 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 [ebx + 0x20]
sub eax, 0
je 0x78aef066
dec eax
jne 0x78aef07a
cmp dword [ebp - 0x18], 0x102
jne 0x78aef035
mov eax, ebx
call fcn.78b30249
cmp dword [ebx + 0x10], 0
jbe 0x78aef02b
push 0
call fcn.78b30249
call esi
push 0x64
mov dword [ebp - 0x10], eax
pop edi
jmp 0x78aef07a
call esi
sub eax, dword [ebp - 0x10]
push 0x64
pop edi
mov dword [ebp - 0x18], eax
cmp eax, edi
jbe 0x78aef054
cmp eax, 0x82
jbe 0x78aef01e
mov edi, ebx
call fcn.78b30249
jmp 0x78aef02b
cmp dword [ebx + 0x10], 0
jbe 0x78aef061
push 0
call fcn.78b30249
sub edi, dword [ebp - 0x18]
jmp 0x78aef07a
mov edi, ebx
call fcn.78b30249
movzx edi, al
neg edi
sbb edi, edi
and edi, 0xffffff9b
add edi, 0x64
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 0x20]
cmp eax, 2
jne 0x78aeefe9
call fcn.78abbf60
ret