joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57d61e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x645bf8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x57d664
cmp word [ebx], dx
jne 0x57d664
or byte [eax + edi + 0x28], 4
jmp 0x57d669
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x57d7cc
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x57d7ac
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x57d6aa
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x57d6e0
cmp eax, edx
jae 0x57d6ee
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x57d685
jmp 0x57d7cc
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x57d7a7
cmp dword [ebp - 0x18], 0
je 0x57d7a7
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x645bf8]
test byte [eax + edi + 0x28], 0x48
je 0x57d77d
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x57d741
mov word [esi], cx
jmp 0x57d778
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x645bf8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x645bf8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x645bf8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x57d7cc
pop eax
cmp word [ebp - 4], ax
jne 0x57d78d
cmp esi, ebx
jne 0x57d78d
mov word [esi], ax
jmp 0x57d7c9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00573e5a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x57d7cc
push 0xd
pop eax
jmp 0x57d788
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x645bf8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x57d7c6
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x57d7cc
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x57e001
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x639034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x57e044
call fcn.005674c4
mov dword [eax], 0xf
call fcn.005674d7
mov dword [eax], 0xd
call fcn.0056263f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00546623
leave
ret
test eax, eax
jne 0x57e04b
inc eax
jmp 0x57e038
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x57e036
xor eax, eax
cmp ecx, 1
setne al
jmp 0x57e038
Function at 0x582b6c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x582c09
push ebx
push esi
call fcn.00582b35
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0057e1ee
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x582bb6
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x582c08
push edi
push eax
call fcn.0057a3c6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x582bd6
call fcn.00579b7a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x582c07
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0057e1ee
add esp, 0x20
test eax, eax
jne 0x582bf5
push edi
call fcn.00579b7a
jmp 0x582bfd
push ebx
call fcn.00579b7a
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x582c0c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x582c1d
pop esi
ret
push ebx
push edi
push esi
call fcn.00582b35
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0057a3c6
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x582c45
push ebx
push esi
push edi
call fcn.0055f020
add esp, 0xc
push 0
call fcn.00579b7a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x58339f
Capabilities:
Set environment variable

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

Function at 0x58530b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00579832
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x58537a
cmp esi, dword [ebp - 4]
je 0x585375
cmp dword [ebp + 0xc], 0
je 0x585375
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x585352
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00584e5d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x58537c
xor eax, eax
inc eax
jmp 0x58537c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x5853e1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x639034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00579832
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00579832
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x585458
cmp word [ecx], dx
je 0x585458
mov eax, dword [0x61303c]
push edi
dec eax
push eax
push 0x612f28
call fcn.00585380
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x5854cb
cmp word [eax], dx
je 0x5854cb
mov eax, dword [edi]
test eax, eax
je 0x58547c
cmp word [eax], dx
je 0x58547c
lea eax, [ebp - 0x10]
push eax
call fcn.00584d63
jmp 0x585485
lea eax, [ebp - 0x10]
push eax
call fcn.00584dfe
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x5854f5
mov eax, dword [0x612f24]
push dword [ebp - 0x14]
dec eax
push eax
push 0x612c18
call fcn.00585380
add esp, 0xc
test al, al
je 0x5854f5
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x5854c0
cmp word [eax], di
je 0x5854c0
lea eax, [ebp - 0x10]
push eax
call fcn.00584d63
pop ecx
jmp 0x5854f7
lea eax, [ebp - 0x10]
push eax
call fcn.00584dfe
jmp 0x5854bd
mov eax, dword [edi]
test eax, eax
je 0x5854e2
cmp word [eax], dx
je 0x5854e2
lea eax, [ebp - 0x10]
push eax
call fcn.00584d18
pop ecx
jmp 0x5854f5
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x5855c0
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00585205
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5855c0
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x5855c0
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x5855c0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x58554d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0057be73
test ebx, ebx
je 0x5855bb
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0057be73
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5855c0
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5855c0
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00589355
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5855c2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00546623
leave
ret
Function at 0x589982
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.005898fe
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x589af1
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x589af1
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x589aa6
jg 0x5899de
test eax, eax
je 0x589a9c
push 1
push 0x1000
call fcn.00579b1d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x589a01
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x589a93
push 0x8000
push ebx
call fcn.005715f7
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x589a2a
jg 0x589a25
cmp ecx, 0x1000
jb 0x589a2a
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0057cec3
add esp, 0x10
cmp eax, 0xffffffff
je 0x589a6f
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x589a25
jl 0x589a56
test ecx, ecx
jne 0x589a17
push dword [ebp - 0xc]
push ebx
call fcn.005715f7
push esi
call fcn.00579b7a
add esp, 0xc
xor ebx, ebx
jmp 0x589aff
cmp byte [edi + 0x24], 0
je 0x589a86
cmp dword [edi + 0x20], 5
jne 0x589a86
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x589a91
mov ebx, dword [edi + 0x18]
jmp 0x589a93
xor ebx, ebx
push esi
call fcn.00579b7a
pop ecx
jmp 0x589aff
test ecx, ecx
jg 0x589a68
jl 0x589aa6
test eax, eax
jae 0x589a68
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00573e5a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x589ac6
cmp byte [edi + 0x1c], 0
je 0x589a68
jmp 0x589af7
push ebx
call fcn.0056e79b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x589a68
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x589aff
cmp byte [edi + 0x1c], 0
je 0x589afc
mov ebx, dword [edi + 0x18]
jmp 0x589aff
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00573e5a
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x58e457
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0058e460

Function at 0x58e711
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 4
pop edx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x61c4a0]
sub edx, 1
jne 0x58e71a
pop ebp
ret
Function at 0x10002560
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x10002591
jmp 0x100025c4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0x4550
je 0x100025aa
jmp 0x100025c4
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x100025bb
jmp 0x100025c4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x1001a950
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10033cdd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x64
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x74]
call fcn.100016e0
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x44]
call fcn.1001b4e0
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
mov ecx, 1
test ecx, ecx
je 0x1001aa9a
lea ecx, [ebp - 0x5c]
call fcn.100016e0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x44]
call fcn.1001b540
push 0x100342b0
lea eax, [ebp - 0x5c]
push eax
call fcn.1001a180
add esp, 8
mov byte [ebp - 0x11], al
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
je 0x1001a9f1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.10001940
jmp 0x1001aa9a
lea edx, [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x74]
call fcn.10001ad0
lea ecx, [ebp - 0x44]
call fcn.1001b580
mov byte [ebp - 0x12], al
mov al, byte [ebp - 0x12]
mov byte [ebp - 0x13], al
movzx ecx, byte [ebp - 0x13]
cmp ecx, 0xc3
je 0x1001aa35
push str.if_c_ret_RET_
lea ecx, [ebp - 0x30]
call fcn.1001a2c0
push 0x1003cd90
lea edx, [ebp - 0x30]
push edx
call fcn.1002339c
lea ecx, [ebp - 0x44]
call fcn.1001adf0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
xor edx, edx
mov ecx, 0x10
div ecx
test edx, edx
je 0x1001aa89
lea ecx, [ebp - 0x44]
call fcn.1001b580
mov byte [ebp - 0x14], al
mov dl, byte [ebp - 0x14]
mov byte [ebp - 0x15], dl
movzx eax, byte [ebp - 0x15]
cmp eax, 0xcc
je 0x1001aa87
push str.if_c_INT3_
lea ecx, [ebp - 0x38]
call fcn.1001a2c0
push 0x1003cd90
lea ecx, [ebp - 0x38]
push ecx
call fcn.1002339c
jmp 0x1001aa35
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.10001940
jmp 0x1001a99f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.10001960
jmp 0x1001aad7
mov dword [ebp - 4], 0
jmp 0x1001aae9
jmp 0x1001aaf2
lea edx, [ebp - 0x74]
push edx
mov ecx, dword [ebp + 8]
call fcn.1001a240
mov eax, dword [ebp - 0x1c]
or eax, 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.10001940
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001ab30
Capabilities:
Rebuild import table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x10], edx
mov eax, 8
shl eax, 0
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + eax + 0x78], 0
jne 0x1001ab67
mov eax, 1
jmp 0x1001acbc
mov edx, 8
shl edx, 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + edx + 0x78]
add ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov edx, 8
imul eax, edx, 0xc
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + eax + 0x78], 0
je 0x1001ab97
mov dword [ebp - 0x18], 0xc
jmp 0x1001ab9e
mov dword [ebp - 0x18], 1
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax*8 + 0x78]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax*8 + 0x7c]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x38]
push ecx
push 4
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0xc], 0
je 0x1001acb7
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
add eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
add edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
add ecx, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
cmp dword [edx], 0
je 0x1001ac28
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
jmp 0x1001ac34
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
add eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx], 0
je 0x1001aca9
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
and eax, 0x80000000
je 0x1001ac73
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
and edx, 0xffff
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
jmp 0x1001ac95
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
lea edx, [eax + ecx + 2]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
add ecx, 4
mov dword [ebp - 0xc], ecx
jmp 0x1001ac34
mov edx, dword [ebp - 8]
add edx, 0x14
mov dword [ebp - 8], edx
jmp 0x1001abdb
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x1001ae70
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 8]
call fcn.10002300
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.10027699
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
call fcn.100021e0
push eax
mov edx, dword [ebp - 0x1c]
push edx
call fcn.10022c40
add esp, 0xc
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x1001aece
xor eax, eax
jmp 0x1001afe7
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
add ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp dword [edx], 0x4550
je 0x1001aeec
xor eax, eax
jmp 0x1001afe7
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 4]
cmp ecx, 0x14c
je 0x1001af06
xor edx, edx
jne 0x1001aefb
xor eax, eax
jmp 0x1001afe7
mov eax, 8
imul ecx, eax, 0xe
mov edx, dword [ebp - 4]
cmp dword [edx + ecx + 0x78], 0
je 0x1001af1f
xor eax, eax
jmp 0x1001afe7
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 8]
lea eax, [ecx + edx + 0xf8]
mov dword [ebp - 0x10], eax
push 0x40
push 0x3000
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x50]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1001af73
xor edx, edx
jne 0x1001af56
push 0x40
push 0x3000
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x50]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1001af81
xor edx, edx
jne 0x1001af79
xor eax, eax
jmp 0x1001afe7
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.10022c40
add esp, 0xc
mov dword [ebp - 0x14], 0
jmp 0x1001afaa
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 4]
movzx eax, word [edx + 6]
cmp dword [ebp - 0x14], eax
jge 0x1001afe4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x14]
add ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
add eax, dword [ebp - 0xc]
push eax
call fcn.10022c40
add esp, 0xc
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
mov dword [ebp - 0x10], ecx
jmp 0x1001afa1
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x10028f7a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10038690
push 0x10038688
push str.FlsAlloc
push 0x1e
call fcn.10028e98
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10028fae
push dword [ebp + 8]
mov ecx, esi
call dword [0x10034118]
call esi
jmp 0x10028fb4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10028ff9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100386a0
push 0x10038698
push str.FlsGetValue
push 0x20
call fcn.10028e98
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10029030
push dword [ebp + 8]
mov ecx, esi
call dword [0x10034118]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1002c361
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1002c3fe
push ebx
push esi
call fcn.1002c32a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1002c273
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002c3ab
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002c3fd
push edi
push eax
call fcn.1002972e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002c3cb
call fcn.10028d45
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002c3fc
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1002c273
add esp, 0x20
test eax, eax
jne 0x1002c3ea
push edi
call fcn.10028d45
jmp 0x1002c3f2
push ebx
call fcn.10028d45
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret