joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4172ce
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5b6390]
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.0041063b
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.0041063b
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 0x417345
cmp word [ecx], dx
je 0x417345
mov eax, dword [0x55efac]
push edi
dec eax
push eax
push 0x55ee98
call fcn.0041726d
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4173b8
cmp word [eax], dx
je 0x4173b8
mov eax, dword [edi]
test eax, eax
je 0x417369
cmp word [eax], dx
je 0x417369
lea eax, [ebp - 0x10]
push eax
call fcn.00416c50
jmp 0x417372
lea eax, [ebp - 0x10]
push eax
call fcn.00416ceb
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4173e2
mov eax, dword [0x55ee94]
push dword [ebp - 0x14]
dec eax
push eax
push 0x55eb88
call fcn.0041726d
add esp, 0xc
test al, al
je 0x4173e2
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4173ad
cmp word [eax], di
je 0x4173ad
lea eax, [ebp - 0x10]
push eax
call fcn.00416c50
pop ecx
jmp 0x4173e4
lea eax, [ebp - 0x10]
push eax
call fcn.00416ceb
jmp 0x4173aa
mov eax, dword [edi]
test eax, eax
je 0x4173cf
cmp word [eax], dx
je 0x4173cf
lea eax, [ebp - 0x10]
push eax
call fcn.00416be7
pop ecx
jmp 0x4173e2
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 0x4174ad
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004170f2
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4174ad
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4174ad
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4174ad
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41743a
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00411fe6
test ebx, ebx
je 0x4174a8
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00411fe6
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4174ad
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 0x4174ad
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041de28
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4174af
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bd5f
leave
ret
Function at 0x41813a
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 0x4181d7
push ebx
push esi
call fcn.004180f6
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.0041836c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x418184
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4181d6
push edi
push eax
call fcn.00410e4b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4181a4
call fcn.0040fe80
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4181d5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041836c
add esp, 0x20
test eax, eax
jne 0x4181c3
push edi
call fcn.0040fe80
jmp 0x4181cb
push ebx
call fcn.0040fe80
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 0x4181da
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4181eb
pop esi
ret
push ebx
push edi
push esi
call fcn.004180f6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00410e4b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x418213
push ebx
push esi
push edi
call fcn.00424ca0
add esp, 0xc
push 0
call fcn.0040fe80
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x418b41
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418638
Function at 0x41fd04
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x5bca18]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41fd44
cmp byte [ebx], 0xa
jne 0x41fd44
or byte [edi + eax + 0x28], 4
jmp 0x41fd49
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41fe48
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41fe2b
inc eax
cmp dl, 0xd
je 0x41fd75
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41fd9b
cmp eax, ecx
jae 0x41fda9
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41fd5d
jmp 0x41fe48
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41fe26
cmp dword [ebp - 0x10], 0
je 0x41fe26
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5bca18]
test byte [eax + edi + 0x28], 0x48
je 0x41fe00
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41fdeb
mov byte [esi], dl
jmp 0x41fdfc
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5bca18]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41fe48
cmp byte [ebp - 1], 0xa
jne 0x41fe0f
cmp esi, ebx
jne 0x41fe0f
mov byte [esi], 0xa
jmp 0x41fe47
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00420dfd
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41fe48
mov byte [esi], 0xd
jmp 0x41fe47
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5bca18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41fe45
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41fe48
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41fe51
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 + 0x5bca18]
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 0x41fe97
cmp word [ebx], dx
jne 0x41fe97
or byte [eax + edi + 0x28], 4
jmp 0x41fe9c
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 0x41ffff
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 0x41ffdf
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41fedd
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ff13
cmp eax, edx
jae 0x41ff21
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 0x41feb8
jmp 0x41ffff
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 0x41ffda
cmp dword [ebp - 0x18], 0
je 0x41ffda
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5bca18]
test byte [eax + edi + 0x28], 0x48
je 0x41ffb0
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 0x41ff74
mov word [esi], cx
jmp 0x41ffab
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5bca18]
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 + 0x5bca18]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5bca18]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41ffff
pop eax
cmp word [ebp - 4], ax
jne 0x41ffc0
cmp esi, ebx
jne 0x41ffc0
mov word [esi], ax
jmp 0x41fffc
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00420dfd
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41ffff
push 0xd
pop eax
jmp 0x41ffbb
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5bca18]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41fff9
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41ffff
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 0x42dfc9
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
push edi
xor edi, edi
test eax, eax
je 0x42e196
cmp word [eax], di
je 0x42e196
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
je 0x42e192
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x42e188
push ebx
push ebp
call fcn.0042f988
mov ebx, eax
test ebx, ebx
je 0x42e187
push esi
push 2
pop eax
cmp ebp, 0xffffffff
cmovne eax, ebp
push eax
push dword [esp + 0x20]
call fcn.0042e2c5
mov esi, eax
test esi, esi
je 0x42e17d
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
mov dword [esi + 0x2c], ebx
cmove eax, esi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x24]
add eax, 8
mov dword [esi + 0x40], edi
push eax
push edi
mov dword [esi + 0x14], edi
push dword [0x5bb8a0]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x28], eax
test eax, eax
je 0x42e0a3
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x28]
mov dword [eax], edi
mov eax, dword [esi + 0x28]
add eax, 8
mov dword [esi + 0x44], eax
cmp ebp, 0xffffffff
je 0x42e0af
mov dword [esi + 0x34], 1
push esi
push ebx
call fcn.00472ed0
mov edx, dword [esp + 0x2c]
mov ebp, 0x4000
pop ecx
pop ecx
mov ecx, edi
mov dword [esp + 0x1c], ecx
lea eax, [ecx + ebp]
cmp eax, edx
jle 0x42e0d2
mov ebp, edx
sub ebp, ecx
push ebp
push ebx
call fcn.00472790
mov dword [esp + 0x1c], eax
pop ecx
pop ecx
test eax, eax
je 0x42e16c
push edi
lea ecx, [esp + 0x24]
push ecx
push ebp
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x20]
cmp ecx, ebp
jne 0x42e15c
mov eax, dword [esp + 0x1c]
add eax, ecx
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x14], edi
jne 0x42e125
push ecx
push dword [esp + 0x18]
call fcn.0042fa33
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x24]
jl 0x42e12f
push 1
jmp 0x42e130
push edi
push ecx
push ebx
call fcn.00472ac0
add esp, 0xc
test eax, eax
je 0x42e150
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
cmp ecx, edx
jl 0x42e0c7
jmp 0x42e17a
push ebx
call fcn.00472aa0
pop ecx
mov dword [esi + 0x18], eax
jmp 0x42e173
mov dword [esi + 0x18], 0x100
mov dword [esi + 0x24], str.file_read_error
jmp 0x42e17a
mov dword [esi + 0x18], 1
push ebx
push esi
call fcn.0042fadf
mov dword [esi + 0x2c], edi
push ebx
call fcn.00472c00
pop ecx
mov edi, esi
pop esi
pop ebx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x42e198
xor eax, eax
pop edi
pop ebp
pop ecx
pop ecx
ret 0xc
Function at 0x42f534
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push edi
push 0
push eax
mov edi, 0x1000
mov eax, edi
sub eax, dword [esi + 4]
push eax
push dword [esi + 0x10]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, edi
sub eax, dword [esi + 4]
cmp dword [ebp + 8], eax
jne 0x42f570
mov eax, dword [esi + 0x10]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], edi
inc eax
jmp 0x42f572
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x430b26
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x430bc1
push edi
push 0x5bdfc4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x5bcd7c]
test edi, edi
je 0x430b94
push ebp
push esi
lea ebp, [edi + 8]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x430b8d
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebp
push 0x5bcd7c
call fcn.0046b962
pop ecx
pop ecx
jmp 0x430b8f
mov edi, dword [edi]
test edi, edi
jne 0x430b62
pop ebp
mov esi, dword [0x5b6c10]
push 0x10
push 0x5bcd7c
lea eax, [esi + 1]
mov dword [0x5b6c10], eax
call fcn.0046b9a2
pop ecx
pop ecx
push 0x5bdfc4
mov dword [eax], ebx
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 8

Function at 0x43497a
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x4349cf
push dword [esp + 0x10]
push 0x4348f9
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [0x5bcd84]
test edi, edi
je 0x434a28
xor esi, esi
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x4349c7
cmp byte [edi + 0x10], 0
je 0x4349c7
push 3
push esi
push esi
push esi
push esi
push 0xfffffffffffffffe
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, ebx
test ebx, ebx
jne 0x4349a3
jmp 0x434a28
mov edi, dword [0x5bcd84]
test edi, edi
je 0x434a28
xor esi, esi
push ebp
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x434a21
cmp byte [edi + 0x11], 0
je 0x4349fa
push 1
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [edi + 0x10], 0
je 0x434a11
push 3
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [edi + 8]
push eax
push 0x5bcd84
call fcn.0046b962
pop ecx
pop ecx
mov edi, ebp
test ebp, ebp
jne 0x4349dc
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x450069
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push dword [0x5bdff4]
call fcn.0046b017
mov esi, eax
or ebx, 0xffffffff
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebp, dword [esp + 0x28]
mov edx, eax
movzx ecx, word [edx]
test cx, cx
je 0x4501a6
mov eax, dword [esi]
mov edi, ecx
mov esi, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x20
push 0x22
pop ecx
movzx eax, di
cmp di, word [esp + 0x18]
jne 0x4500cf
push 0x20
pop edi
add edx, 2
movzx eax, word [edx]
cmp ax, di
je 0x4500c4
mov dword [esp + 0x14], 1
cmp ax, cx
jne 0x450109
add edx, 2
mov edi, edx
movzx eax, word [edx]
mov ebx, eax
test ax, ax
je 0x450163
push 0x22
mov ecx, eax
pop esi
movzx ebx, cx
cmp cx, si
je 0x450163
add edx, 2
movzx eax, word [edx]
mov ecx, eax
mov ebx, eax
test ax, ax
jne 0x4500f0
jmp 0x450163
test ax, ax
je 0x450176
push 0x20
mov edi, edx
movzx eax, ax
pop ebp
movzx ebx, ax
cmp ax, bp
je 0x45015f
add edx, 2
push 0x22
pop ebx
movzx eax, word [edx]
mov ecx, eax
cmp ax, bx
jne 0x450154
add edx, 2
movzx eax, word [edx]
mov ecx, eax
test ax, ax
je 0x450154
mov esi, eax
movzx ecx, si
cmp si, bx
je 0x450154
add edx, 2
movzx eax, word [edx]
mov esi, eax
mov ecx, eax
test ax, ax
jne 0x45013d
movzx eax, cx
movzx ebx, cx
test cx, cx
jne 0x450116
mov ebp, dword [esp + 0x28]
test bx, bx
lea eax, [edx + 2]
mov ebx, dword [esp + 0x10]
mov esi, edx
cmove eax, edx
mov edx, eax
jmp 0x45017d
and dword [esp + 0x14], 0
xor edi, edi
cmp dword [esp + 0x1c], ebx
jne 0x450187
test ebp, ebp
jne 0x4501ae
cmp dword [esp + 0x14], 0
lea eax, [ebx + 1]
movzx ecx, word [edx]
cmove eax, ebx
mov edi, ecx
mov ebx, eax
mov dword [esp + 0x10], ebx
test cx, cx
jne 0x4500b4
test ebp, ebp
jne 0x4501c3
mov eax, ebx
jmp 0x4501c9
test edi, edi
je 0x4501c3
mov eax, dword [esp + 0x20]
sub esi, edi
sar esi, 1
mov dword [ebp], esi
inc dword [eax]
mov eax, edi
jmp 0x4501c9
and dword [ebp], 0
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x45110d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x5be014]
call fcn.0046b017
mov edi, dword [eax + 0x24]
test edi, edi
je 0x4511cb
cmp dword [edi + 8], 1
je 0x4511cb
mov edi, dword [edi + 0xc]
test edi, edi
je 0x4511cb
mov al, byte [edi]
cmp al, 0x20
je 0x451146
cmp al, 9
jne 0x451149
inc edi
jmp 0x45113c
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push edi
push eax
push 0xfde9
call esi
push dword [esp + 0x14]
mov ebx, eax
lea ecx, [ebx - 1]
push ecx
call fcn.0046bd10
push ebx
mov ebp, eax
push ebp
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
test ebx, ebx
jle 0x45119a
push 9
pop edx
lea eax, [ebp - 2]
lea eax, [eax + ebx*2]
movzx ecx, word [eax]
push 0x20
pop esi
cmp cx, si
je 0x4511b6
cmp cx, dx
je 0x4511b6
pop edi
pop esi
pop ebp
pop ebx
ret 4
movzx ecx, word [eax]
cmp cx, si
je 0x4511ae
cmp cx, dx
jne 0x4511ba
xor ecx, ecx
mov word [eax], cx
sub eax, 2
cmp eax, ebp
jae 0x4511a1
push ebp
call fcn.0041674d
pop ecx
sub ebx, eax
push ebx
call fcn.0046bda0
jmp 0x45119a
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.0046bea0
Function at 0x4533d6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [0x5be030]
xor esi, esi
call fcn.0046b017
mov ebx, eax
cmp dword [ebp + 8], esi
je 0x45348d
cmp dword [ebp + 0xc], esi
je 0x45348d
push edi
push 0x60
push 8
push dword [0x5bb8a0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov edi, eax
or dword [edi + 4], 0xffffffff
mov dword [edi], esi
call fcn.005401dd
push dword [ebp + 0xc]
mov dword [edi + 8], eax
call fcn.005401dd
push dword [ebp + 0x14]
mov dword [edi + 0xc], eax
call fcn.005401dd
mov dword [edi + 0x40], eax
add esp, 0xc
mov eax, dword [ebx]
mov dword [edi + 0x28], eax
mov eax, dword [ebx + 4]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x24], eax
test al, 1
je 0x45347c
lea eax, [ebp + 8]
push eax
push esi
push edi
push 0x45363a
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x453474
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, edi
jmp 0x45348c
push edi
call fcn.004536fc
jmp 0x45348b
push edi
call fcn.004534a7
push edi
mov esi, eax
call fcn.004536fc
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4534a7
Capabilities:
Delete file

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov eax, dword [edi + 0xc]
push dword [edi + 8]
mov dword [esp + 0x20], eax
call fcn.0051d0e0
push dword [edi + 0x40]
mov ebp, eax
mov dword [esp + 0x14], ebp
call fcn.0051d0e0
mov dword [esp + 0x14], eax
call fcn.004d2970
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x453606
push ebx
push pe_nt_image_headers32
push 2
push ebx
push eax
push 0xc0000000
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4535f8
test byte [edi + 0x24], 2
mov dword [edi + 0x10], ebp
jne 0x453520
push 1
push 0x34
push esi
call fcn.004d5b50
add esp, 0xc
mov eax, dword [0x5bcdd0]
test eax, eax
je 0x453538
push eax
push 0x2714
push esi
call fcn.004d5b50
add esp, 0xc
mov eax, dword [0x5bcdd4]
test eax, eax
je 0x453569
cmp dword [0x5bcdd8], ebx
je 0x453569
push eax
push 0x27bf
push esi
call fcn.004d5b50
push dword [0x5bcdd8]
push 0x27c0
push esi
call fcn.004d5b50
add esp, 0x18
push dword [esp + 0x10]
push 0x2712
push esi
call fcn.004d5b50
push dword [esp + 0x20]
push 0x2722
push esi
call fcn.004d5b50
push 0x453649
push 0x4e2b
push esi
call fcn.004d5b50
push edi
push 0x2711
push esi
call fcn.004d5b50
push dword [edi + 0x28]
push 0x9c
push esi
call fcn.004d5b50
push dword [edi + 0x2c]
push 0x9b
push esi
call fcn.004d5b50
add esp, 0x48
push 1
push 0x63
push esi
call fcn.004d5b50
push esi
call fcn.004d2a10
add esp, 0x10
test eax, eax
jne 0x4535e3
cmp dword [edi + 4], 0xfffffffb
push 1
pop eax
cmovne ebx, eax
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x4535f8
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.004d2930
mov ebp, dword [esp + 0x14]
xor eax, eax
pop ecx
inc eax
cmp ebx, eax
jne 0x453613
mov dword [edi + 4], 0xfffffffe
jmp 0x453622
xor ecx, ecx
cmp dword [edi + 4], 0xfffffffb
setne cl
add ecx, 0xfffffffc
mov dword [edi + 4], ecx
push ebp
call fcn.0051d0d0
push dword [esp + 0x14]
call fcn.0051d0d0
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
pop ecx
ret