joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007f1e9
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x1021d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x230
xor edi, edi
push edi
push esi
call fcn.1019e180
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.101a2a74
push eax
call fcn.10055450
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x101d0a74]
je 0x1007f347
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x1007f35b
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1007f35b
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
je 0x1007f2a5
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x1007f299
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.1007ef9a
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x1007f2a0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1007f2a7
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.1007f49a
test eax, eax
je 0x1007f2ce
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.1007ee21
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x1007f2d2
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.1007f49a
test eax, eax
je 0x1007f2f9
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.1007ee21
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x1007f2fd
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.1007f49a
test eax, eax
je 0x1007f325
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.1007ee21
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x1007f327
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x1007f339
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x1007f347
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10055f18
leave
ret 4
xor eax, eax
jmp 0x1007f34a
Function at 0x1008b6e1
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x1008b827
mov ecx, 0x1021d5a8
call fcn.1006909e
mov esi, eax
test esi, esi
je 0x1008b81c
xor eax, eax
cmp word [esi + 8], ax
jne 0x1008b7e6
push 0x101d0ce4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x1008b7a2
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x1008b768
push 0x101d4160
call fcn.1008b865
pop ecx
test eax, eax
je 0x1008b768
mov eax, edi
neg eax
push 0xfc11
sbb eax, eax
and eax, 0xe
add eax, 0x3ee
push eax
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x1008b783
neg edi
push 5
sbb edi, edi
and edi, 0xe
add edi, 0x3ee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1008b7a2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test eax, eax
je 0x1008b7a8
push ebx
push edi
push eax
call fcn.1006a5a7
add esp, 0xc
jmp 0x1008b7a8
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 2
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.10067cf9
pop ecx
pop ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x1008b821
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.10068c1a
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x1008b7e9
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x1008b7f7
push edi
call fcn.101a2ae3
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.10055750
movzx ecx, word [esi + 8]
mov edx, 0xffff
xor eax, eax
mov word [ebx], cx
pop edi
cmp cx, dx
pop esi
setne al
pop ebx
pop ebp
ret 0xc
call fcn.10056cdf
call fcn.10056cf9
int3

Function at 0x1009b076
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call sym.Dither.dll_BwLoZQmsjY
call fcn.1005de1f
cmp dword [eax + 0x14], 0
jne 0x1009b091
mov ecx, esi
pop esi
jmp fcn.1009a8d1
pop esi
ret
Function at 0x100a6728
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x100a6741
call fcn.1005ddcb
mov esi, dword [eax + 0xc]
push 0x101d8ccc
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x100a6783
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100a6783
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x100a6783
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.100a678c
jmp 0x100a6785
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100ea402
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1021d040]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x100ea42e
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x100ea459
cmp dword [0x102254bc], 0
jne 0x100ea459
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x100ea455
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x100ea455
push edi
call fcn.101adef0
pop ecx
jmp 0x100ea4d0
mov eax, edi
jmp 0x100ea4d0
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.1019e180
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x100ea4df
push esi
call fcn.10059716
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push esi
push 1
push 2
lea ecx, [ebp - 0x108]
push ecx
lea ecx, [ebp - 0x104]
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
xor eax, eax
mov word [ebp - 0x106], ax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
movzx eax, word [ebp - 0x108]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10055f18
leave
ret 4
call fcn.10056cdf
int3
Function at 0x10106f47
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0xe4]
test ecx, ecx
je 0x101070a5
push esi
push edi
push 0x101e4598
call fcn.10067a4e
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
je 0x10106fe0
mov edi, dword [ebx + 0x168]
jmp 0x10106fcc
mov esi, dword [edi + 8]
mov edi, dword [edi]
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10106fcc
push esi
call fcn.10061e9d
push eax
push 0x1021d954
call fcn.100679af
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x10106fcc
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1a0]
mov ecx, esi
call dword [fcn.101cb988]
mov ecx, dword [ebp - 0xc]
call esi
test eax, eax
jle 0x10106fcc
push 4
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
jne 0x10106f7b
lea ecx, [ebx + 0x164]
call fcn.1005d6ee
jmp 0x101070a3
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x101070a3
lea eax, [ebx + 0xc8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.1005d488
mov edi, dword [eax]
test edi, edi
jne 0x1010700c
xor esi, esi
jmp 0x1010700f
mov esi, dword [edi + 0x20]
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10107093
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x10107093
cmp dword [ebp - 0x10], 0
jne 0x10107068
push edi
push 0x1021d954
call fcn.100679af
mov edi, eax
pop ecx
pop ecx
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1a8]
mov ecx, esi
call dword [fcn.101cb988]
mov ecx, edi
call esi
push eax
push 0x101d9c78
call fcn.100679af
pop ecx
pop ecx
test eax, eax
je 0x10107093
mov esi, dword [ebp - 4]
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea eax, [ebp - 8]
lea esi, [ebx + 0x164]
push eax
mov ecx, esi
call fcn.101060b8
test eax, eax
jne 0x10107093
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.101041ee
cmp dword [ebp - 0xc], 0
lea eax, [ebx + 0xc8]
jne 0x10106ff7
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1013f68b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1013f6b8
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x1013f6cd
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1013f6cd
or dword [esi + 0x3c], 2
or dword [esi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], edx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.10061e9d
jmp 0x1013f79e
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.10061e9d
cmp eax, edi
jne 0x1013f7a8
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x1013f73a
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1013f77e
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x1013f7a8
cmp eax, 0x205
je 0x1013f7a8
cmp eax, 0x201
je 0x1013f7a8
cmp eax, 0x204
je 0x1013f7a8
cmp eax, 0x100
jne 0x1013f766
cmp dword [ebp - 0x18], 0x1b
je 0x1013f7a8
push dword [ebp - 8]
lea eax, [esi + 0x24]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, ebx
sbb edx, dword [ebp - 4]
test edx, edx
jb 0x1013f79e
ja 0x1013f797
cmp eax, dword [0x10226910]
jbe 0x1013f79e
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x1013f6ef
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1013fb80
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x1013fbb6
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.100585a2
test eax, eax
je 0x1013fb9e
mov eax, dword [eax + 0x20]
push 1
push edi
push ebx
push esi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x1014644d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x1021d83c], 0
push esi
push edi
je 0x101464d5
cmp dword [0x1021db84], 0xfffffffe
jne 0x101464c1
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x101464d5
mov edi, 0x1022693c
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x10226954], 0
jne 0x101464d9
push 0
push 0
push 0x101464df
call fcn.101a56be
add esp, 0xc
mov dword [0x10226954], eax
test eax, eax
je 0x101464b1
cmp eax, 0xffffffff
je 0x101464b1
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x1021db84], esi
jmp 0x101464b8
and dword [0x10226954], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x101464d5
mov eax, dword [ebp + 8]
mov dword [0x1021db84], eax
cmp eax, 0xffffffff
jne 0x101464d5
and dword [0x10226954], 0
pop edi
pop esi
pop ebp
ret
call fcn.10056cdf
int3
Function at 0x1014faaf
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x1014fb4e
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x1014fb4a
mov eax, dword [eax + 0x20]
test eax, eax
je 0x1014fb4a
cmp dword [ebx], eax
jne 0x1014fb4a
mov eax, dword [ebx + 4]
sub eax, 1
je 0x1014fb24
sub eax, 1
je 0x1014faf4
sub eax, 1
jne 0x1014fb4a
mov edi, 0x428e
jmp 0x1014fb29
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1014fb29
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [fcn.101cb988]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x1014fb29
add edi, 3
jmp 0x1014fb29
mov edi, 0x3ea0
push edi
mov ecx, 0x10226998
call fcn.100575f9
test eax, eax
je 0x1014fb4e
mov eax, dword [0x10226998]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x1014fb43
call fcn.10056cdf
int3

Function at 0x10159a46
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.101ae5db
pop ecx
test eax, eax
jne 0x10159a88
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x101eccd4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.1005bd5c
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10159a4e
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret
Function at 0x10160a98
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x101be1f1
call fcn.101ba80e
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x10160b84
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x10160b84
cmp esi, 0x43
je 0x10160ada
cmp esi, 0x2d
jne 0x10160b84
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10160b84
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.10056f78
movzx eax, byte [edi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [edi + 0xe5]
push eax
movzx eax, byte [edi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push 0x101ee430
push eax
call fcn.1005a79c
mov esi, dword [ebp - 0x10]
add esp, 0x14
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
lea eax, [eax*2 + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10160b72
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x10160b72
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
call fcn.10057707
push ebx
mov ecx, edi
call fcn.1015edeb
call fcn.101ba7dc
ret 4
Function at 0x101a1878
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x101a18b7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x101a18b7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101a18b7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x101a18b7
cmp dword [ecx + 0x74], 0xe
jbe 0x101a18b7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x101b045d
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 0x101b04fa
push ebx
push esi
call fcn.101b0426
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.101b03ba
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x101b04a7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101b04f9
push edi
push eax
call fcn.101aefad
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x101b04c7
call fcn.101aef73
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101b04f8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.101b03ba
add esp, 0x20
test eax, eax
jne 0x101b04e6
push edi
call fcn.101aef73
jmp 0x101b04ee
push ebx
call fcn.101aef73
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 0x101b04fd
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x101b050e
pop esi
ret
push ebx
push edi
push esi
call fcn.101b0426
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.101aefad
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x101b0536
push ebx
push esi
push edi
call fcn.1019da40
add esp, 0xc
push 0
call fcn.101aef73
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x101b0906
Capabilities:
Set environment variable

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

Function at 0x101b0bc5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101fc860
push 0x101fc858
push 0x101fab94
push 0x1f
call fcn.101b0a44
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101b0bf9
push dword [ebp + 8]
mov ecx, esi
call dword [fcn.101cb988]
call esi
jmp 0x101b0bff
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x101b0c43
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101fc870
push 0x101fc868
push 0x101fabb8
push 0x21
call fcn.101b0a44
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101b0c7a
push dword [ebp + 8]
mov ecx, esi
call dword [fcn.101cb988]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x101b0c82
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101fc878
push 0x101fc870
push 0x101fabcc
push 0x22
call fcn.101b0a44
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101b0cbc
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [fcn.101cb988]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x101baf50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x101baf7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101baf7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x41cee0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x41cf02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41cf09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41cef8
mov eax, 1
add ebx, ebx
jne 0x41cf1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41cf10
jne 0x41cf2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cf10
xor ecx, ecx
sub eax, 3
jb 0x41cf40
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41cfb2
mov ebp, eax
add ebx, ebx
jne 0x41cf4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41cf58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41cf7c
inc ecx
add ebx, ebx
jne 0x41cf68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41cf5d
jne 0x41cf79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cf5d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41cf9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41cf8d
jmp 0x41cefe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41cf9c
add edi, ecx
jmp 0x41cefe
pop esi
mov edi, esi
mov ecx, 0x157
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41cfba
cmp byte [edi], 0
jne 0x41cfba
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 eax, ebx
loop 0x41cfbf
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x41d02e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d0b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d100]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41cfec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1d104]
or eax, eax
je 0x41d028
mov dword [ebx], eax
add ebx, 4
jmp 0x41d009
call dword [esi + 0x1d108]
popal
jmp 0x403ab4