joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f20
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov edx, eax
shr edx, 0x10
mov ecx, eax
push 0
shr ecx, 0x18
mov byte [esp + 0x1d], dl
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x20], cl
mov ecx, eax
mov byte [esp + 0x23], al
push 4
lea eax, [esp + 0x24]
push eax
shr ecx, 8
push edi
mov byte [esp + 0x2e], cl
call ebx
mov eax, dword [esi]
mov edx, eax
shr edx, 0x10
mov ecx, eax
push 0
shr ecx, 0x18
mov byte [esp + 0x1d], dl
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x20], cl
mov ecx, eax
mov byte [esp + 0x23], al
push 4
lea eax, [esp + 0x24]
push eax
shr ecx, 8
push edi
mov byte [esp + 0x2e], cl
call ebx
mov edx, dword [esi]
mov eax, dword [esi + 4]
push 0
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
push edi
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 8

Function at 0x4021d0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xa64
push ebx
push edi
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402208
pop edi
xor eax, eax
pop ebx
add esp, 0xa64
ret 4
mov edx, dword [ebx]
mov eax, edx
push ebp
xor ecx, ecx
test eax, eax
push esi
je 0x402221
mov esi, dword [eax]
mov eax, dword [eax + 0x10]
test eax, eax
lea ecx, [ecx + esi + 8]
jne 0x402214
lea ebp, [ecx + 5]
mov eax, edx
xor cl, cl
test eax, eax
je 0x402239
lea esp, [esp]
mov eax, dword [eax + 0x10]
inc cl
test eax, eax
jne 0x402230
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
mov byte [esp + 0x17], cl
lea ecx, [esp + 0x18]
push ecx
push 4
push str.FLCS
push edi
call esi
push 0
lea edx, [esp + 0x18]
push edx
push 1
lea eax, [esp + 0x1f]
push eax
push edi
call esi
mov esi, dword [ebx]
test esi, esi
je 0x402280
jmp 0x402270
push esi
push edi
mov ecx, ebx
call fcn.00401f20
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x402270
mov edx, dword [0x407450]
push 0x12c
lea ecx, [esp + 0x20]
push ecx
push 0x9c47
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
test ebp, ebp
mov dword [esp + 0x18], ebp
fild dword [esp + 0x18]
jge 0x4022ae
fadd dword [0x4053a0]
fmul dword [0x40539c]
mov eax, dword [esp + 0xa78]
sub esp, 8
lea ecx, [esp + 0x24]
fstp qword [esp]
push eax
push ecx
lea edx, [esp + 0x284]
push edx
call dword [sym.imp.MSVCR71.dll_swprintf]
mov ecx, dword [0x407458]
mov eax, dword [ecx]
add esp, 0x14
lea edx, [esp + 0x274]
push edx
call dword [eax]
mov edx, dword [eax]
push 0x4053c0
mov ecx, eax
call dword [edx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
add esp, 0xa64
ret 4
Function at 0x4028b3
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
push 0x5000
mov dword [esi], 0x4053cc
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
mov dword [esi + 0xc], eax
mov word [eax], 0
push 4
mov dword [esi + 0x10], 0
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 8
test eax, eax
je 0x4028f9
mov dword [eax], 0
jmp 0x4028fb
xor eax, eax
push 0
mov dword [esi + 8], eax
mov eax, dword [0x40744c]
mov ecx, dword [0x407450]
push 0x4024d0
push eax
push 0x65
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamW]
lea edx, [esp + 4]
mov dword [esi + 4], eax
mov eax, dword [0x40744c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [0x407034]
mov edx, dword [0x407030]
mov eax, dword [esp + 8]
push 0
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esi + 4]
push eax
inc ecx
push ecx
push edx
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esi + 4]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push ecx
push 0
push 0xc
push 0x3e8
push edx
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x4042a5
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x405688
call fcn.004044ec
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4042e5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4042e5
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4042fd
cmp eax, 0x20b
je 0x4042ea
mov dword [ebp - 0x1c], ebx
jmp 0x404311
cmp dword [ecx + 0x84], 0xe
jbe 0x4042e5
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x40430b
cmp dword [ecx + 0x74], 0xe
jbe 0x4042e5
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x4074c4], 0xffffffff
or dword [0x4074c8], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x4074bc]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x4074b8]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4074c0], eax
call fcn.0040454a
call fcn.004045ea
cmp dword [0x407044], ebx
jne 0x404371
push fcn.004045ea
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.004045d8
push 0x407014
push 0x407010
call sub.MSVCR71.dll__initterm
push 0x40458e
call fcn.00404293
mov eax, dword [0x4074b4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4074b0]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x4043c5
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x40700c
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x404443
cmp al, bl
je 0x4043ef
cmp dword [ebp - 0x20], ebx
jne 0x404443
mov al, byte [esi]
cmp al, bl
je 0x4043ff
cmp al, 0x20
ja 0x4043ff
inc esi
mov dword [ebp - 0x24], esi
jmp 0x4043ef
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x40441b
movzx eax, word [ebp - 0x54]
jmp 0x40441e
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00402f00
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x40443b
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x404498
cmp al, 0x22
jne 0x404452
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x404465
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x4043dd
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00404527
ret
Function at 0x405b23
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405dee
test bl, 8
mov dword [ebp - 8], eax
je 0x405b62
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x434fa8], eax
jmp 0x405cdf
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405b7c
test eax, eax
je 0x405c8d
test bl, 2
je 0x405c8d
mov esi, str.C:UsersADMINI1AppDataLocalTemp_nsr77AC.tmpdownload.exe
push edi
push esi
call fcn.00406411
cmp dword [ebp + 8], 0
je 0x405b9b
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405ba1
push edi
call fcn.00405d32
cmp word [edi], 0
jne 0x405bb1
cmp word [str.C:UsersADMINI1AppDataLocalTemp_nsr77AC.tmpdownload.exe], 0x5c
jne 0x405bbc
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405c82
cmp word [ebp - 0x22c], 0x2e
jne 0x405c06
cmp word [ebp - 0x22a], 0
je 0x405c65
cmp word [ebp - 0x22a], 0x2e
jne 0x405c06
cmp word [ebp - 0x228], 0
je 0x405c65
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406411
test byte [ebp - 0x258], 0x10
je 0x405c31
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405c65
push dword [ebp + 0xc]
push edi
call fcn.00405b23
jmp 0x405c65
push dword [ebp - 4]
push edi
call fcn.00405adb
test eax, eax
jne 0x405c5d
cmp dword [ebp - 4], eax
je 0x405c55
push edi
push 0xfffffffffffffff1
call fcn.00405479
push 0
push edi
call fcn.004061d7
jmp 0x405c65
inc dword [0x434fa8]
jmp 0x405c65
push edi
push 0xfffffffffffffff2
call fcn.00405479
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405bde
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405c8d
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405cdf
cmp dword [ebp - 8], esi
jne 0x405ca1
inc dword [0x434fa8]
jmp 0x405cdf
push edi
call fcn.0040676f
test eax, eax
je 0x405cdf
push edi
call fcn.00405ce6
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405adb
test eax, eax
jne 0x405cd7
cmp dword [ebp - 4], esi
je 0x405c99
push edi
push 0xfffffffffffffff1
call fcn.00405479
push esi
push edi
call fcn.004061d7
jmp 0x405cdf
push edi
push 0xffffffffffffffe5
call fcn.00405479
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x406796
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4067ba
xor eax, eax
test eax, eax
je 0x4067cd
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4067cd
xor ecx, ecx
jmp 0x4067d0
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x40692a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406904
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x4068ff
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40695b
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x40693d
pop edi
not eax
pop esi
ret 0xc

Function at 0x432002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x510a665d
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
mov eax, section..data_1
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x1fca5368
nop
nop
nop
nop
test eax, eax
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x100040b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov ecx, 0x401000
call fcn.100042e0
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.10004640
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call edi
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1000410d
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
call edi
cmp esi, 0x53ec8b55
jne 0x10004120
mov eax, 0x3e9
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x401000
call fcn.100042e0
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.10004640
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call edi
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1000416f
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
call edi
cmp esi, 0x16197be9
jne 0x10004182
mov eax, 0x3ea
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8245bc
call fcn.100045e0
cmp eax, 0x94bf
jne 0x1000419e
mov eax, 0x3f3
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8252fc
call fcn.100045e0
cmp eax, 0x94bf
jne 0x100041ba
mov eax, 0x44d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x82533c
call fcn.100045e0
cmp eax, 0x94bf
jne 0x100041d6
mov eax, 0x457
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858d51
call fcn.100045e0
cmp eax, 0x3539f633
jne 0x100041f2
mov eax, 0xc80
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858c61
call fcn.100045e0
xor ecx, ecx
mov edx, 0xc8a
cmp eax, 0x3539f633
pop edi
cmove ecx, edx
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100045e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
call fcn.100042e0
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.10004640
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x10004639
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 4], ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100046c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 1
push esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 8]
mov bl, byte [esi]
test eax, eax
je 0x10004707
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x10]
mov dword [ebp - 4], ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10008576
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100085b5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100085b5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100085b5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100085b5
cmp dword [ecx + 0x74], 0xe
jbe 0x100085b5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000b851
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 0x1000b8ee
push ebx
push esi
call fcn.1000b81a
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.1000b7ae
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000b89b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b8ed
push edi
push eax
call fcn.1000c117
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000b8bb
call fcn.1000a579
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b8ec
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000b7ae
add esp, 0x20
test eax, eax
jne 0x1000b8da
push edi
call fcn.1000a579
jmp 0x1000b8e2
push ebx
call fcn.1000a579
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 0x1000bb5b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014740
push 0x10014738
push str.FlsAlloc
push 0x1f
call fcn.1000ba77
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000bb8f
push dword [ebp + 8]
mov ecx, esi
call dword [0x10012120]
call esi
jmp 0x1000bb95
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000bbd9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014750
push 0x10014748
push str.FlsGetValue
push 0x21
call fcn.1000ba77
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000bc10
push dword [ebp + 8]
mov ecx, esi
call dword [0x10012120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000bc18
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014758
push 0x10014750
push str.FlsSetValue
push 0x22
call fcn.1000ba77
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000bc52
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10012120]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10010ed0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10010efd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10010efd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401f9a
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov eax, 0x6b
mov word [ebp - 0x24], ax
mov ecx, 0x65
mov word [ebp - 0x22], cx
mov edx, 0x72
mov word [ebp - 0x20], dx
mov eax, 0x6e
mov word [ebp - 0x1e], ax
mov ecx, 0x65
mov word [ebp - 0x1c], cx
mov edx, 0x6c
mov word [ebp - 0x1a], dx
mov eax, 0x33
mov word [ebp - 0x18], ax
mov ecx, 0x32
mov word [ebp - 0x16], cx
mov edx, 0x2e
mov word [ebp - 0x14], dx
mov eax, 0x64
mov word [ebp - 0x12], ax
mov ecx, 0x6c
mov word [ebp - 0x10], cx
mov edx, 0x6c
mov word [ebp - 0xe], dx
xor eax, eax
mov word [ebp - 0xc], ax
mov dword [ebp - 4], 0
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x40204e
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00401f2a
add esp, 8
cmp eax, 0
mov eax, dword [ebx + 0x10]
mov ebx, dword [ebx]
jne 0x402027
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40205a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
push ebp
push edi
mov edi, ecx
mov ebp, edx
test edi, edi
je 0x402075
test ebp, ebp
je 0x402075
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
jne 0x40207d
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
mov eax, dword [eax + edi + 0x78]
add eax, edi
push ebx
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov ebx, dword [eax + 0x14]
add ecx, edi
mov dword [esp + 0x10], ecx
push esi
mov esi, dword [eax + 0x1c]
mov ecx, ebp
sub ecx, dword [eax + 0x10]
add esi, edi
add edx, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ebx
cmp ecx, ebx
ja 0x4020bd
mov eax, dword [esi + ecx*4]
pop esi
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0x14
ret
mov eax, dword [eax + 0x18]
xor esi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x402119
mov ecx, ebx
movzx ebx, word [edx + esi*2]
cmp ebx, ecx
ja 0x402114
mov eax, dword [esp + 0x14]
mov ecx, ebp
mov eax, dword [eax + esi*4]
add eax, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4020ff
test dl, dl
je 0x4020fb
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4020ff
add ecx, 2
add eax, 2
test dl, dl
jne 0x4020df
xor eax, eax
jmp 0x402104
sbb eax, eax
or eax, 1
test eax, eax
je 0x402123
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, eax
jb 0x4020cc
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
mov eax, dword [esp + 0x20]
pop esi
mov eax, dword [eax + ebx*4]
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0x14
ret
Function at 0x40213a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
push ebx
push edi
mov edi, edx
mov ebx, ecx
call fcn.00401f9a
test eax, eax
jne 0x402152
pop edi
pop ebx
add esp, 0x10
ret
push esi
lea edx, [esp + 0xc]
mov ecx, eax
mov dword [esp + 0xc], 0x74726956
mov dword [esp + 0x10], 0x416c6175
mov dword [esp + 0x14], 0x636f6c6c
mov byte [esp + 0x18], 0
call fcn.0040205a
mov esi, eax
test esi, esi
jne 0x402188
pop esi
pop edi
pop ebx
add esp, 0x10
ret
push 0x40
push 0x3000
push edi
push ebx
call esi
test eax, eax
jne 0x4021a2
push 0x40
push 0x3000
push edi
push eax
call esi
pop esi
pop edi
pop ebx
add esp, 0x10
ret