joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e4d0
Capabilities:
Create pipe

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x80]
test eax, eax
je 0x40e4e1
xor al, al
pop esi
ret
push 0
push 1
push 0
mov dword [esi + 0x80], 2
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x5c], eax
test eax, eax
je 0x40e4dd
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x98], eax
test eax, eax
je 0x40e4dd
push 4
push 0xffffffffffffffff
push esi
push 0x40e4c0
push eax
lea ecx, [esi + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x40e4dd
cmp dword [esi + 0x4c], 8
jb 0x40e53a
mov eax, dword [esi + 0x38]
jmp 0x40e53d
lea eax, [esi + 0x38]
mov edx, dword [esi + 0x50]
push edx
push 0
push 0x40
push 0x40
push 1
push 6
push 0x40080003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x54], eax
cmp eax, 0xffffffff
je 0x40e4dd
mov ecx, esi
call fcn.0040d510
mov eax, dword [esi + 0x80]
xor ecx, ecx
cmp eax, 1
setne cl
mov al, cl
pop esi
ret

Function at 0x40f9d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x4d2714]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0
je 0x40fb36
cmp byte [0x4d488f], 0
je 0x40fb36
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x20c]
push 0x5c
push ecx
call fcn.00425c28
add esp, 8
test eax, eax
je 0x40fa2d
xor edx, edx
mov word [eax + 2], dx
push str.debug_message.exe
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0042676c
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x40fa57
mov ecx, dword [esi + 4]
mov dword [ebp - 0x230], ecx
jmp 0x40fa60
lea edx, [esi + 4]
mov dword [ebp - 0x230], edx
mov eax, dword [esi + 0x14]
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x228]
push edx
mov dword [ebp - 0x22c], eax
call fcn.00417d50
add esp, 8
cmp dword [ebp - 0x214], 0
je 0x40fb2b
push 0x44
lea eax, [ebp - 0x284]
push 0
push eax
call fcn.004231d0
add esp, 0xc
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x284]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x284], 0x44
call fcn.00409e10
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40fb0b
mov ecx, dword [ebp - 0x240]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x23c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x240]
push eax
call esi
jmp 0x40fb2b
push 0x40010
push 0x492f9c
push 0
lea ecx, [ebp - 0x228]
call fcn.00409e10
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x228]
call fcn.004446d0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004235d5
mov esp, ebp
pop ebp
ret
Function at 0x4117a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.004190a0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x4117c7
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop ebp
ret
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
call fcn.004190a0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x4117f6
mov eax, dword [eax + 4]
jmp 0x4117f9
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41180d
shr eax, 4
and eax, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x411aa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d2714]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.004190a0
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x411b4f
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x22c]
call fcn.00402950
lea edx, [ebp - 0x248]
push edx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x264]
call fcn.00405a60
mov ecx, eax
call fcn.004127e0
push eax
mov ecx, esi
call fcn.00412660
lea ecx, [ebp - 0x248]
call fcn.004446d0
lea ecx, [ebp - 0x264]
call fcn.004446d0
cmp dword [ebp - 0x214], 8
jb 0x411b3e
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.0042305c
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004235d5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.004235d5
mov esp, ebp
pop ebp
ret

Function at 0x411c40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x4d2714]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.004190a0
lea ecx, [ebp - 0x20c]
push ecx
xor eax, eax
push 0x104
mov word [ebp - 0x20c], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x411cff
cmp eax, 0x104
ja 0x411cff
lea edx, [ebp - 0x20c]
push edx
lea ecx, [ebp - 0x228]
call fcn.00402950
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x260]
call fcn.00405a60
mov ecx, eax
call fcn.004127e0
push eax
mov ecx, esi
call fcn.00412660
lea ecx, [ebp - 0x244]
call fcn.004446d0
lea ecx, [ebp - 0x260]
call fcn.004446d0
cmp dword [ebp - 0x210], 8
jb 0x411cee
mov edx, dword [ebp - 0x224]
push edx
call fcn.0042305c
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004235d5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.004235d5
mov esp, ebp
pop ebp
ret
Function at 0x411d10
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d2714]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x24], 0
call fcn.004190a0
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x411d3f
mov ebx, dword [edi]
jmp 0x411d41
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x411d63
pop edi
shr al, 4
pop esi
and al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004235d5
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.00412680
cmp dword [esi + 0x18], 8
mov eax, dword [esi + 0x14]
jb 0x411d79
mov edi, dword [edi]
mov ecx, dword [ebp - 0xc]
push eax
push edi
push ecx
push 0
lea ecx, [ebp - 0x20]
call fcn.004043f0
test eax, eax
jne 0x411da8
lea ecx, [ebp - 0x20]
call fcn.004446d0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004235d5
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x20]
push edx
call fcn.00411d10
add esp, 4
test al, al
je 0x411d8d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x411ddf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x411d8d
push esi
call fcn.004117e0
add esp, 4
test al, al
je 0x411d8d
lea ecx, [ebp - 0x20]
call fcn.004446d0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.004235d5
mov esp, ebp
pop ebp
ret

Function at 0x415d40
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d2714]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea edx, [ebp - 0x20]
push edx
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x24], esi
xor ecx, ecx
push 3
push eax
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], esi
mov word [ebp - 0x1c], cx
call fcn.0041a3e0
add esp, 0xc
cmp dword [ebp - 0xc], esi
je 0x415daf
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], esi
jae 0x415d8f
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [ebp - 0x24]
mov esi, eax
push esi
push edx
mov ecx, edi
call fcn.00415c50
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], 8
jb 0x415dc1
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0042305c
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004235d5
mov esp, ebp
pop ebp
ret 4
Function at 0x415de0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [0x4d48b0], 0
je 0x415df5
xor al, al
mov esp, ebp
pop ebp
ret
push esi
push 0x3c
call fcn.0042315c
mov esi, eax
add esp, 4
test esi, esi
je 0x415e2e
push 1
mov ecx, esi
call fcn.00415590
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 1]
push ecx
lea ecx, [esi + 0x18]
call fcn.004146e0
mov dword [esi + 0x38], 1
mov dword [0x4d48b0], esi
jmp 0x415e38
mov dword [0x4d48b0], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor edx, edx
mov ecx, eax
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], dx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x415e57
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00402470
mov ecx, dword [0x4d48b0]
lea eax, [ebp - 0x20]
push eax
call fcn.00415d40
cmp dword [ebp - 8], 8
pop esi
jb 0x415e92
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0042305c
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x415f80
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1dc
mov eax, dword [0x4d2714]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x148], ebx
mov dword [esi], ebx
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.00415f30
push 0x118
mov dword [esi + 0x24], eax
lea eax, [ebp - 0x11c]
push ebx
push eax
mov dword [ebp - 0x120], 0x11c
call fcn.004231d0
add esp, 0x10
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp - 0x114]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
cmp eax, 5
jne 0x41601b
test ecx, ecx
jle 0x4160a0
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x4160a0
cmp eax, 6
jne 0x41604b
cmp byte [ebp - 6], 1
jne 0x416043
sub ecx, ebx
je 0x41603b
sub ecx, 1
je 0x416033
mov dword [esi], eax
jmp 0x4160a0
mov dword [esi], 5
jmp 0x4160a0
mov dword [esi], 3
jmp 0x4160a0
mov dword [esi], 4
jmp 0x4160a0
jle 0x4160a0
cmp dword [0x4d4874], 1
jne 0x41608a
call fcn.0040f180
cmp eax, 3
jg 0x41608a
push 3
push 0x39
push str..winwindows_version.cc
lea ecx, [ebp - 0x1dc]
mov ebx, 1
call fcn.00410e90
add eax, 4
push str.Check_failed:_false.
push eax
call fcn.00403c40
add esp, 8
test bl, 1
je 0x41609a
lea ecx, [ebp - 0x1dc]
call fcn.004108d0
mov dword [esi], 7
movzx ecx, word [ebp - 0xc]
movzx edx, word [ebp - 0xa]
xor eax, eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x144]
push eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov dword [ebp - 0x144], 0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x144]
test eax, eax
je 0x41611e
cmp eax, 6
je 0x416115
cmp eax, 9
jne 0x416125
mov dword [esi + 0x18], 1
jmp 0x416125
mov dword [esi + 0x18], 2
jmp 0x416125
mov dword [esi + 0x18], 0
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x128]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 4]
mov dword [esi + 0x20], edx
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004235d5
mov esp, ebp
pop ebp
ret
Function at 0x4191f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10004
call fcn.00426df0
mov eax, dword [0x4d2714]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x49369c
push eax
call fcn.00411b60
mov esi, eax
add esp, 8
test esi, esi
jne 0x419235
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004235d5
mov esp, ebp
pop ebp
ret
push esi
push 0x10000
lea eax, [ebp - 0x10004]
push 1
push eax
call fcn.00427a4f
add esp, 0x10
test eax, eax
jbe 0x41927e
test edi, edi
je 0x419263
push eax
lea ecx, [ebp - 0x10004]
push ecx
mov ecx, edi
call fcn.004021e0
push esi
push 0x10000
lea edx, [ebp - 0x10004]
push 1
push edx
call fcn.00427a4f
add esp, 0x10
test eax, eax
ja 0x419250
push esi
call fcn.00424bcf
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.004235d5
mov esp, ebp
pop ebp
ret

Function at 0x41c9e0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push ebx
push eax
xor ebx, ebx
push edx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x41ca47
call fcn.0040f180
cmp eax, 4
jg 0x41ca37
push 4
push 0x24
push str.._threading_thread_local_win.cc
lea ecx, [ebp - 0x98]
mov ebx, 1
call fcn.00410e90
add eax, 4
push str.Failed_to_TlsSetValue__.
push eax
call fcn.00403c40
add esp, 8
test bl, 1
je 0x41ca47
lea ecx, [ebp - 0x98]
call fcn.004108d0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41ca50
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ebp + 8], 0xffffffff
cmp eax, 0xffffffff
jne 0x41caa4
push str.slot_____DWORD_0xFFFFFFFF_
lea eax, [ebp + 8]
push eax
push ecx
call fcn.00410820
add esp, 0xc
test eax, eax
je 0x41caa4
push eax
push 0x12
push str.._threading_thread_local_win.cc
lea ecx, [ebp - 0x94]
call fcn.00410ee0
lea ecx, [ebp - 0x94]
call fcn.004108d0
mov esp, ebp
pop ebp
ret
Function at 0x420cc0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10a4
call fcn.00426df0
mov eax, dword [0x4d2714]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x100c], eax
mov dword [ebp - 0x1008], ebx
call fcn.004190a0
cmp dword [0x4d4874], 1
jne 0x420d3d
call fcn.0040f180
cmp eax, 3
jg 0x420d3d
cmp dword [ebp - 0x100c], ebx
jne 0x420d3d
push 3
push 0xb5
push str..win_registry.cc
lea ecx, [ebp - 0x10a4]
mov ebx, 1
call fcn.00410e90
add eax, 4
push str.Check_failed:_out_value.
push eax
call fcn.00403c40
add esp, 8
test bl, 1
je 0x420d4d
lea ecx, [ebp - 0x10a4]
call fcn.004108d0
mov dword [ebp - 0x1010], 1
mov dword [ebp - 0x1008], 0x800
call fcn.004190a0
lea ecx, [ebp - 0x1008]
push ecx
mov ecx, dword [esi]
lea edx, [ebp - 0x804]
push edx
lea eax, [ebp - 0x1010]
push eax
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x420dc3
mov eax, dword [ebp - 0x1010]
cmp eax, 1
jne 0x420dd8
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420da1
mov ecx, dword [ebp - 0x100c]
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x804]
push edx
call fcn.00402470
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004235d5
mov esp, ebp
pop ebp
ret 8
cmp eax, 2
jne 0x420e33
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1008], eax
test eax, eax
je 0x420e1b
cmp eax, 0x400
ja 0x420e1b
mov ecx, dword [ebp - 0x100c]
lea edx, [ebp - 0x1004]
push edx
call fcn.00406310
jmp 0x420dc3
pop edi
pop esi
mov eax, 0xea
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004235d5
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x3f4
pop ebx
call fcn.004235d5
mov esp, ebp
pop ebp
ret 8
Function at 0x4210f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x4d2128]
mov dword [ebp - 4], 0
cmp eax, 0xffffffff
je 0x4211fd
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x4211fc
push esi
push edi
mov ecx, 0x40
mov esi, ebx
lea edi, [ebp - 0x104]
lea eax, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4d2128]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.004233dd
add esp, 4
mov ebx, 0x40
mov esi, dword [0x4d212c]
dec esi
xor edi, edi
xor dl, dl
cmp esi, edi
jle 0x42118c
mov eax, dword [ebp + esi*4 - 0x104]
cmp eax, edi
je 0x421187
mov ecx, dword [esi*4 + 0x4d54a0]
cmp ecx, edi
je 0x421187
push eax
mov dword [ebp + esi*4 - 0x104], edi
call ecx
add esp, 4
mov dl, 1
dec esi
cmp esi, edi
jg 0x421162
dec ebx
cmp ebx, edi
jle 0x421197
test dl, dl
jne 0x421153
jmp 0x4211ec
cmp dword [0x4d4874], 1
jne 0x4211d9
call fcn.0040f180
cmp eax, 3
jg 0x4211d9
push 3
push 0xbe
push str.._threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x198]
mov ebx, 1
call fcn.00410e90
add eax, 4
push str.Check_failed:_false.
push eax
call fcn.00403c40
add esp, 8
jmp 0x4211dc
mov bl, byte [ebp - 4]
test bl, 1
je 0x4211ec
lea ecx, [ebp - 0x198]
call fcn.004108d0
mov edx, dword [0x4d2128]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x421d70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4d2714]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x421db1
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004235d5
mov esp, ebp
pop ebp
ret
xor ecx, ecx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 7
mov dword [ebp - 0x214], 0
mov word [ebp - 0x224], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421dd7
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
lea ecx, [ebp - 0x228]
call fcn.00402470
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x244]
call fcn.00405a60
push eax
mov ecx, esi
call fcn.00412660
lea ecx, [ebp - 0x244]
call fcn.004446d0
cmp dword [ebp - 0x210], 8
jb 0x421e36
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.0042305c
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.004235d5
mov esp, ebp
pop ebp
ret
Function at 0x421ed0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4d2714]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
lea ecx, [ebp - 0x20c]
push ecx
push eax
push eax
push 0x10
push eax
mov word [ebp - 0x20c], ax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x421f17
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004235d5
mov esp, ebp
pop ebp
ret
xor edx, edx
lea eax, [ebp - 0x20c]
mov word [ebp - 0x224], dx
mov dword [ebp - 0x210], 7
mov dword [ebp - 0x214], 0
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421f40
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x228]
call fcn.00402470
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x244]
call fcn.00405a60
push eax
mov ecx, esi
call fcn.00412660
lea ecx, [ebp - 0x244]
call fcn.004446d0
cmp dword [ebp - 0x210], 8
jb 0x421f9f
mov edx, dword [ebp - 0x224]
push edx
call fcn.0042305c
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.004235d5
mov esp, ebp
pop ebp
ret

Function at 0x4235d5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d2714]
jne 0x4235df
repz ret
jmp fcn.0042bff5
Function at 0x43c825
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042b6cc
and dword [ebp - 4], 0
cmp dword [0x4d6430], 0
mov ebx, eax
jne 0x43c8d6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43c987
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x43c987
push eax
call fcn.0042b65a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4d6430], eax
call esi
push eax
call fcn.0042b65a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4d6434], eax
call esi
push eax
call fcn.0042b65a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4d6438], eax
call esi
push eax
call fcn.0042b65a
pop ecx
mov dword [0x4d6440], eax
test eax, eax
je 0x43c8d6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042b65a
pop ecx
mov dword [0x4d643c], eax
mov eax, dword [0x4d643c]
cmp eax, ebx
je 0x43c92e
cmp dword [0x4d6440], ebx
je 0x43c92e
push eax
call fcn.0042b6d5
push dword [0x4d6440]
mov esi, eax
call fcn.0042b6d5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43c92e
test edi, edi
je 0x43c92e
call esi
test eax, eax
je 0x43c925
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43c925
test byte [ebp - 0xc], 1
jne 0x43c92e
or dword [ebp + 0x10], 0x200000
jmp 0x43c967
mov eax, dword [0x4d6434]
cmp eax, ebx
je 0x43c967
push eax
call fcn.0042b6d5
pop ecx
test eax, eax
je 0x43c967
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43c967
mov eax, dword [0x4d6438]
cmp eax, ebx
je 0x43c967
push eax
call fcn.0042b6d5
pop ecx
test eax, eax
je 0x43c967
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4d6430]
call fcn.0042b6d5
pop ecx
test eax, eax
je 0x43c987
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43c989
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x443920
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x44393b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x443974
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x443970
jmp 0x443960
cmp esi, eax
jae 0x443974
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x443960
cmp esi, eax
jb 0x44397b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret