joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47d4b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a3b70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0047d060
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0047d0e0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0047d0e0
lea ecx, [esi + 0xc]
call fcn.00491b59
lea ecx, [esi + 0x10]
call fcn.00491b59
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0047f780
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0047f780
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0047f780
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00491bce
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00491bce
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x47e158
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a3d98
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x47e168
call fcn.0047e680
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x47e24b
cmp byte [edi], 0
je 0x47e24b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x47e18d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0047ce80
test eax, eax
jne 0x47e1ad
push 0xbba1f0
lea ecx, [esi + 0x38]
call fcn.00491d0b
jmp 0x47e24b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0047ced0
test eax, eax
jne 0x47e1dc
mov ecx, esi
call fcn.0047cfd0
push edi
add esi, 0x38
push 0xbba1cc
push esi
call fcn.0048f557
add esp, 0xc
jmp 0x47e24b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0047ef00
test eax, eax
je 0x47e244
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0047e320
test eax, eax
jne 0x47e260
push edi
lea eax, [esi + 0x38]
push 0xbba1a8
push eax
call fcn.0048f557
add esp, 0xc
mov ecx, esi
call fcn.0047e680
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x47e308
mov ecx, dword [0xbba460]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0048f557
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0047cf80
test eax, eax
jne 0x47e2ca
push 0xbba18c
lea ecx, [esi + 0x38]
call fcn.00491d0b
jmp 0x47e2da
push 0xfa
mov ecx, esi
call fcn.0047ef00
test eax, eax
jne 0x47e2f7
mov ecx, esi
call fcn.0047e680
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00491bce
jmp 0x47e24b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00491bce
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x49299e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4929c0
cmp dword [edi + 0x3c], 0
jne 0x4929c0
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0049bce3
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004929ed
pop edi
pop esi
pop ebx
ret 8

Function at 0x494051
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x494089
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00492029
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00492001
jmp 0x494095
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49579f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4957e1
call fcn.0049bce3
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4957e1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4957d8
xor eax, eax
jmp 0x4957e9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004957ef
pop edi
pop esi
pop ebx
ret 4

Function at 0x49c213
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49c241
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49c25f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049c179
jmp 0x49c25f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49c25f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049c179
test edi, edi
mov eax, edi
jne 0x49c249
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x468b3c
Capabilities:
Get common file path
Set current directory

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

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x405fe0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x42401c], esi
push edi
jne 0x40601a
mov ecx, 0x424018
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x405ff6
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x424418
jl 0x405ff1
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x40604f
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x424018]
xor eax, esi
inc ecx
dec edx
jne 0x406032
pop edi
pop esi
not eax
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40a5aa
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x420069], 0
push ebx
mov ebx, eax
jne 0x40a5e6
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.00409aa3
push dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call sub.MSVCR90.dll_free
pop ecx
test esi, esi
pop esi
je 0x40a5f4
mov al, 1
jmp 0x40a5f6
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jmp 0x40a5e0
xor al, al
pop ebx
leave
ret 4

Function at 0x40a5fb
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x420069], 0
push ebx
mov ebx, eax
jne 0x40a633
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.00409aa3
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call sub.MSVCR90.dll_free
pop ecx
test esi, esi
pop esi
je 0x40a63e
mov al, 1
jmp 0x40a640
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jmp 0x40a62d
xor al, al
pop ebx
leave
ret

Function at 0x40a643
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x420069], 0
push ebx
mov ebx, eax
jne 0x40a67e
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.00409aa3
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call sub.MSVCR90.dll_free
pop ecx
test esi, esi
pop esi
je 0x40a68b
mov al, 1
jmp 0x40a68d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x40a678
xor al, al
pop ebx
leave
ret

Function at 0x40a690
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x417af5
call fcn.00416aac
mov ebx, ecx
cmp byte [0x420069], 0
jne 0x40a6d2
lea eax, [ebp - 0x18]
push eax
call fcn.00409aa3
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call sub.MSVCR90.dll_free
pop ecx
test esi, esi
je 0x40a6df
mov al, 1
call fcn.00416b4b
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x40a6c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40a6f0
xor al, al
jmp 0x40a6cc
lea eax, [ebp - 0x50]
call fcn.0040b214
lea esi, [ebp - 0x28]
call fcn.004095be
and dword [ebp - 4], 0
push ebx
lea ecx, [ebp - 0x50]
call fcn.0040b27c
test al, al
jne 0x40a720
xor bl, bl
push dword [ebp - 0x28]
call sub.MSVCR90.dll_free
pop ecx
mov al, bl
jmp 0x40a6cc
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
jmp 0x40a713
Function at 0x40a8b1
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, eax
call fcn.0040b237
cmp eax, 0xffffffff
je 0x40a8db
test al, 0x10
jne 0x40a8db
test al, 1
je 0x40a8db
and eax, 0xfffffffe
push eax
mov eax, ebx
call fcn.0040a5aa
test al, al
je 0x40a915
cmp byte [0x420069], 0
jne 0x40a90a
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.00409aa3
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call sub.MSVCR90.dll_free
pop ecx
test esi, esi
pop esi
je 0x40a915
mov al, 1
jmp 0x40a917
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jmp 0x40a904
xor al, al
pop ebx
leave
ret

Function at 0x40aac5
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x420069], 0
push ebx
mov ebx, eax
jne 0x40aafc
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.00409aa3
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call sub.MSVCR90.dll_free
test esi, esi
pop ecx
setne al
pop esi
jmp 0x40ab09
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
pop ebx
leave
ret

Function at 0x40ab0c
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x314
lea ebp, [esp - 4]
mov eax, dword [0x41f018]
xor eax, ebp
mov dword [ebp + 0x314], eax
push 0x10
mov eax, 0x417608
call fcn.00416aac
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
xor ecx, ecx
mov dword [esi + 4], ebx
mov word [eax], cx
cmp byte [0x420069], bl
jne 0x40ab85
lea eax, [ebp + 0x20c]
push eax
push 0x105
mov byte [ebp + 0x20c], bl
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, eax
lea eax, [ebp + 0x20c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00409aeb
mov dword [ebp - 4], ebx
mov ebx, eax
call fcn.004096c4
push dword [ebp - 0x1c]
call sub.MSVCR90.dll_free
pop ecx
jmp 0x40abaa
xor eax, eax
mov word [ebp], ax
lea eax, [ebp]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ebx, [ebp]
mov edi, esi
mov dword [ebp - 0x10], eax
call fcn.00409668
mov edi, dword [ebp - 0x10]
dec edi
mov eax, 0x103
cmp eax, edi
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x314]
xor ecx, ebp
call fcn.00416087
add ebp, 0x318
leave
ret
Function at 0x40ac2b
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x314
lea ebp, [esp - 4]
mov eax, dword [0x41f018]
xor eax, ebp
mov dword [ebp + 0x314], eax
push 0x10
mov eax, 0x417608
call fcn.00416aac
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
xor ecx, ecx
mov dword [esi + 4], ebx
mov word [eax], cx
cmp byte [0x420069], bl
jne 0x40aca4
lea eax, [ebp + 0x20c]
push eax
push 0x105
mov byte [ebp + 0x20c], bl
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, eax
lea eax, [ebp + 0x20c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00409aeb
mov dword [ebp - 4], ebx
mov ebx, eax
call fcn.004096c4
push dword [ebp - 0x1c]
call sub.MSVCR90.dll_free
pop ecx
jmp 0x40acc9
xor eax, eax
mov word [ebp], ax
lea eax, [ebp]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ebx, [ebp]
mov edi, esi
mov dword [ebp - 0x10], eax
call fcn.00409668
mov edi, dword [ebp - 0x10]
dec edi
mov eax, 0x103
cmp eax, edi
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x314]
xor ecx, ebp
call fcn.00416087
add ebp, 0x318
leave
ret

Function at 0x40b237
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x420069], 0
push ebx
mov ebx, eax
jne 0x40b26b
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.00409aa3
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call sub.MSVCR90.dll_free
pop ecx
mov eax, esi
pop esi
jmp 0x40b279
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40b279
or eax, eax
pop ebx
leave
ret

Function at 0x40b85f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b887
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40b887
xor al, al
jmp 0x40b8a2
push 1
push 0
push 0
push dword [ebp + 8]
call fcn.00416b70
xor ecx, ecx
add eax, edi
adc edx, ecx
mov dword [esi], eax
mov dword [esi + 4], edx
mov al, 1
pop edi
pop ebp
ret 4
Function at 0x411abb
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x2e8]
sub esp, 0x368
mov eax, dword [0x41f018]
xor eax, ebp
mov dword [ebp + 0x2e4], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x411af7
cmp dword [ebp - 0x7c], 6
jne 0x411af7
cmp dword [ebp - 0x78], 0
je 0x411b1d
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x411b1d
push 0xc00
call eax
test eax, eax
jne 0x411b9c
push 0x106
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x411b9c
cmp eax, 0x104
ja 0x411b9c
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 + 0x12], 0x5c
je 0x411b52
push 0x5c
pop ecx
mov word [ebp + eax*2 + 0x14], cx
inc eax
cmp byte [str.UXTHEME], 0
push esi
mov esi, str.UXTHEME
je 0x411b9b
push edi
lea edi, [ebp + eax*2 + 0x14]
mov ecx, edi
mov al, byte [esi]
movsx dx, al
inc esi
mov word [ecx], dx
inc ecx
inc ecx
test al, al
jne 0x411b68
push str..dll
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 8
push 0
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x411b66
pop edi
pop esi
mov ecx, dword [ebp + 0x2e4]
xor ecx, ebp
call fcn.00416087
add ebp, 0x2e8
leave
ret

Function at 0x4142ed
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.MSVCR90.dll__beginthreadex]
mov ecx, dword [ebp + 8]
add esp, 0x18
push eax
mov dword [ecx], eax
call fcn.004142b2
pop ebp
ret 0xc
Function at 0x414c71
Capabilities:
Hide graphical window

Disassembly:
push 0xc
mov eax, 0x417d65
call fcn.00416aac
lea esi, [edi + 0x74]
call fcn.004096c4
lea eax, [edi + 0x68]
push eax
push 0x61
pop ecx
call fcn.0040c751
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.004142de
push 0xce4
lea eax, [ebp - 0x18]
call fcn.0040df0b
and dword [ebp - 4], 0
push dword [edi + 0x6c]
mov ecx, dword [eax]
call fcn.0040c59f
push dword [ebp - 0x18]
call sub.MSVCR90.dll_free
pop ecx
push 1
push dword [edi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
call fcn.00416b4b
ret 4
Function at 0x416087
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f018]
jne 0x416091
repz ret
jmp fcn.00416530
Function at 0x4415dd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x44160b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x441629
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00441547
jmp 0x441629
mov eax, dword [esi + 0x14]
test eax, eax
je 0x441629
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00441547
test edi, edi
mov eax, edi
jne 0x441613
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x56b45c]
test ecx, ecx
je 0x4416dc
jmp 0x4415dc
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401f02
Capabilities:
Read file on windows

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor esi, esi
push ebp
xor edi, edi
cmp dword [esp + 0x18], esi
je 0x401f69
push esi
mov eax, dword [0x412b2c]
push esi
push eax
push dword [0x412b44]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x401f31
mov esi, 1
call fcn.00401da1
test eax, eax
je 0x401f80
call fcn.00401e35
test eax, eax
je 0x401f80
xor ebx, ebx
push 0x24
push ebx
mov dword [0x413004], ebx
push 0x412fd0
mov byte [0x40a780], bl
call fcn.004059a0
add esp, 0xc
mov dword [0x40a88c], ebx
jmp 0x401f85
push 0
mov eax, dword [0x412b44]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x401f85
mov esi, 1
test esi, esi
jne 0x402136
cmp dword [0x413134], 0
je 0x402136
cmp dword [0x40a888], 0
je 0x402136
test esi, esi
jne 0x402136
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, word [0x412b26]
cmp eax, dword [0x40a88c]
jle 0x402136
lea eax, [esp + 0x10]
push 0
push eax
push 0x2e
push 0x40a740
push dword [0x412b44]
call ebx
mov ecx, dword [0x412eac]
cmp eax, 1
jne 0x402129
cmp dword [esp + 0x10], 0x2e
jne 0x402129
cmp dword [0x40a740], 0x2014b50
jne 0x402109
movsx edx, word [0x40a75c]
movsx eax, word [0x40a75e]
add edx, eax
push 2
movsx eax, word [0x40a760]
lea ebp, [edx + eax]
mov eax, dword [0x413134]
lea ecx, [ebp + ecx + 0x2e]
push ecx
mov dword [0x412eac], ecx
push eax
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
test eax, eax
je 0x402102
push eax
mov dword [0x413134], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [0x413008], eax
test eax, eax
je 0x4020fb
mov eax, dword [0x40a88c]
push eax
push dword [0x40a888]
call fcn.00401a8d
add esp, 8
mov ecx, dword [0x413008]
add ecx, eax
push 0x2e
push 0x40a740
mov dword [0x413008], ecx
push ecx
call fcn.00405d34
lea ecx, [esp + 0x1c]
add esp, 0xc
mov eax, dword [0x413008]
push 0
add eax, 0x2e
push ecx
push ebp
mov dword [0x413008], eax
push eax
push dword [0x412b44]
call ebx
test eax, eax
je 0x4020d9
cmp dword [esp + 0x10], ebp
jne 0x4020d9
inc edi
mov eax, dword [0x412eac]
push eax
inc dword [0x40a88c]
push dword [0x40a88c]
push dword [0x40a888]
call fcn.00401ab7
add esp, 0xc
jmp 0x4020e3
mov edi, 0xffffffff
mov esi, 1
mov eax, dword [0x413134]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x413008], 0
jmp 0x40212e
mov edi, 0xffffffff
jmp 0x402129
mov edi, 0xffffffff
jmp 0x402129
cmp dword [0x40a740], 0x4034b50
jne 0x402129
cmp word [0x412b26], 0x7fff
jne 0x402129
mov word [0x412b26], 0
mov esi, 1
test esi, esi
je 0x401fb5
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret