joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10432fc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x104f0d78
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1072a790]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x1072a1bc]
cmp eax, 0xffffffff
jne 0x10432ff9
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x10433006
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x2c], 0
test ebp, ebp
je 0x1043306d
jmp 0x1043303c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp + 0xc]
jne 0x104330aa
test edi, edi
jne 0x104330b0
push 0x10431f80
push 0x1077b4e8
call fcn.10431cc0
mov eax, dword [0x1072a1bc]
add esp, 8
cmp eax, 0xffffffff
je 0x1043306d
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x2c], 0xffffffff
test ebp, ebp
je 0x10433096
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10433096
mov eax, dword [ebp]
mov ecx, ebp
push 0
call dword [eax]
push ebp
push 0
call esi
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
test edi, edi
je 0x104330e8
mov edi, edi
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x104330d9
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
mov ecx, esi
push 0
mov eax, dword [esi]
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebx
push edi
push 0
call esi
push eax
call ebx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x104330b0
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
mov dword [esp + 0x18], eax
mov esi, dword [ebx]
cmp esi, ebx
je 0x10433030
mov ebp, eax
mov edi, edi
cmp byte [esi + 0xd], 0
mov edi, esi
jne 0x10433147
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x1043312c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x10433147
jmp 0x10433120
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x10433120
jmp 0x10433147
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10433145
cmp esi, dword [eax + 8]
jne 0x10433145
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10433135
mov esi, eax
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x1043315b
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x1043315b
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push edi
lea eax, [esp + 0x24]
mov ecx, ebp
push eax
call fcn.100a0982
cmp esi, ebx
jne 0x10433100
mov ebp, dword [esp + 0x14]
jmp 0x10433030
Function at 0x10433180
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x18]
push eax
push 4
push edx
push 0x104331f0
push 0
push 0
call fcn.10440644
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x104331a9
pop esi
xor al, al
pop ebx
ret
mov ecx, dword [esi]
mov eax, 1
push edi
add ecx, 4
lock xadd dword [ecx], eax
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x104331cd
cmp eax, 0xffffffff
je 0x104331cd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebx
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov al, 1
pop ebx
ret

Function at 0x104349e0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x104f0fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x1072a790]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push esi
push edi
mov eax, dword [0x1072a790]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, dword [esp + 0x80]
mov esi, dword [esp + 0x84]
cmp dword [edi + 0x14], 8
jb 0x10434a29
mov eax, dword [edi]
jmp 0x10434a2b
mov eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10434a51
test esi, esi
je 0x10434a4a
mov dword [esi], 0
call fcn.104342c0
mov dword [esi + 4], eax
mov al, 1
jmp 0x10434aeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esp + 0x10], 0
call fcn.104342c0
mov dword [esp + 0x14], eax
cmp ebx, 0xb7
jne 0x10434aa4
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.10435120
add esp, 0xc
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
cmp ecx, 3
jne 0x10434aa4
test esi, esi
je 0x10434ae9
mov dword [esi], 0
call fcn.104342c0
jmp 0x10434ae6
test esi, esi
jne 0x10434adf
push str.boost::filesystem::create_directory
lea ecx, [esp + 0x24]
call fcn.10079c5c
mov dword [esp + 0x78], esi
call fcn.104342c0
push eax
push ebx
push edi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.104345a0
push 0x10725290
lea eax, [esp + 0x3c]
push eax
call fcn.1043aaeb
call fcn.104342c0
mov dword [esi], ebx
mov dword [esi + 4], eax
xor al, al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.10436e26
add esp, 0x6c
ret
Function at 0x10435120
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x104f11b0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1072a790]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1072a790]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x54]
cmp dword [edi + 0x14], 8
jb 0x10435168
mov eax, dword [edi]
jmp 0x1043516a
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x1043518a
push ebp
push edi
push ebx
call fcn.10434fc0
add esp, 0xc
jmp 0x104352a0
test eax, 0x400
je 0x10435259
cmp dword [edi + 0x14], 8
jb 0x1043519f
mov eax, dword [edi]
jmp 0x104351a1
mov eax, edi
push eax
lea ecx, [esp + 0x24]
call fcn.10094576
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
push 0
cmovae eax, dword [esp + 0x24]
push 0x2000000
push 3
push 0
push 7
push 0
push eax
mov dword [esp + 0x60], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x14], esi
cmp dword [esp + 0x34], 8
mov byte [esp + 0x44], 2
jb 0x104351f5
push dword [esp + 0x20]
call fcn.1041f321
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
cmp esi, 0xffffffff
je 0x1043517a
push edi
call fcn.10434b30
add esp, 4
test al, al
jne 0x1043524a
mov eax, dword [esp + 0x1c]
push eax
push edi
call fcn.10434c10
add esp, 8
mov dword [ebx], 9
mov dword [ebx + 4], eax
mov dword [esp + 0x44], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x104352a0
push esi
mov dword [esp + 0x48], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x1043526c
mov dword [ebp], 0
call fcn.104342c0
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 3
push eax
push edi
test al, 0x10
jne 0x10435286
mov dword [esp + 0x1c], 2
call fcn.10434c10
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [ecx]
add esp, 8
mov dword [ebx], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
mov eax, ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10436e26
add esp, 0x34
ret
Function at 0x10436210
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x104f1480
mov eax, dword fs:[0]
push eax
push ebx
push ebp
mov eax, dword [0x1072a790]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 3
lea ebx, [ebx]
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0x98]
mov ebx, dword [esp + 0x74]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x38]
cmp ebp, dword [esp + 0x54]
jne 0x10436261
cmp ecx, eax
je 0x104362dc
cmp ebx, dword [esp + 0x94]
jne 0x10436270
cmp dword [esp + 0x78], edx
je 0x104362dc
cmp dword [esp + 0x70], 8
lea eax, [esp + 0x5c]
push dword [esp + 0x6c]
cmovae eax, dword [esp + 0x60]
lea ecx, [esp + 0x20]
push eax
push dword [esp + 0x34]
push 0
call fcn.1007fa5a
test eax, eax
js 0x1043632b
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
push dword [esp + 0x2c]
cmovae eax, dword [esp + 0x20]
lea ecx, [esp + 0x60]
push eax
push dword [esp + 0x74]
push 0
call fcn.1007fa5a
test eax, eax
js 0x10436324
lea eax, [esp + 0x1c]
push eax
call fcn.104364d0
lea eax, [esp + 0x60]
push eax
call fcn.104364d0
add esp, 8
jmp 0x10436240
cmp ebp, dword [esp + 0x54]
jne 0x10436312
cmp ecx, eax
jne 0x10436312
cmp ebx, dword [esp + 0x94]
jne 0x104362f9
cmp dword [esp + 0x78], edx
jne 0x104362f9
xor ebx, ebx
jmp 0x1043632e
cmp ecx, eax
jne 0x10436312
xor ebx, ebx
mov eax, 1
test al, al
sete bl
lea ebx, [ebx*2 - 1]
jmp 0x1043632e
xor ebx, ebx
xor eax, eax
test al, al
sete bl
lea ebx, [ebx*2 - 1]
jmp 0x1043632e
mov ebx, 1
jmp 0x1043632e
or ebx, 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x10436341
push dword [esp + 0x1c]
call fcn.1041f321
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
cmp dword [esp + 0x50], 8
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
jb 0x1043636b
push dword [esp + 0x3c]
call fcn.1041f321
add esp, 4
xor eax, eax
mov dword [esp + 0x50], 7
cmp dword [esp + 0x70], 8
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
jb 0x10436395
push dword [esp + 0x5c]
call fcn.1041f321
add esp, 4
xor eax, eax
mov dword [esp + 0x70], 7
cmp dword [esp + 0x90], 8
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], ax
jb 0x104363c2
push dword [esp + 0x7c]
call fcn.1041f321
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x1044e149
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1072a790]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1043ca3a
mov dword [ebp - 0x14], eax
cmp dword [0x1077c43c], esi
jne 0x1044e23c
push 0x800
push esi
push 0x104fb4f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1044e1c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1044e31c
push esi
push esi
push 0x104fb4f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1044e31c
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1044e31c
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x1077c43c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x1077c440], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x104fb538
push edi
mov dword [0x1077c444], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1077c44c], eax
test eax, eax
je 0x1044e239
push 0x104fb554
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1077c448], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1044e261
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1044e254
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1044e276
push 4
pop eax
jmp 0x1044e31e
cmp dword [ebp - 0x14], esi
je 0x1044e276
push dword [0x1077c43c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1044e25b
mov eax, dword [0x1077c448]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1044e2d4
cmp dword [0x1077c44c], edi
je 0x1044e2d4
push eax
call ebx
push dword [0x1077c44c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1044e2d4
test eax, eax
je 0x1044e2d4
call ecx
test eax, eax
je 0x1044e2c9
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1044e2c9
test byte [ebp - 8], 1
jne 0x1044e2d4
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1044e304
mov eax, dword [0x1077c440]
cmp eax, edi
je 0x1044e301
push eax
call ebx
test eax, eax
je 0x1044e301
call eax
mov esi, eax
test esi, esi
je 0x1044e301
mov eax, dword [0x1077c444]
cmp eax, edi
je 0x1044e301
push eax
call ebx
test eax, eax
je 0x1044e301
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1077c43c]
call ebx
test eax, eax
je 0x1044e31c
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1044e31e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10436e26
mov esp, ebp
pop ebp
ret
Function at 0x403a07
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e2ad
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x469070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebx], edi
je 0x403a66
lea esi, [ebx + 4]
cmp dword [esi + 0x10], edi
jne 0x403a66
push edi
push 0x104
mov ecx, esi
call fcn.0040222b
cmp dword [esi + 0x14], 8
jb 0x403a5a
mov esi, dword [esi]
push dword [ebx + 0x14]
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
or dword [ebp - 4], 0xffffffff
cmp dword [ebx + 0x14], edi
jne 0x403a77
lea eax, [ebx + 0x1c]
jmp 0x403b8b
cmp dword [ebx + 0x18], 8
lea ecx, [ebx + 4]
mov dword [ebp - 0x20], edi
jb 0x403a86
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x20]
push eax
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ecx, eax
test ecx, ecx
je 0x403a6f
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
push ecx
push ecx
lea ecx, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00403ba5
mov ecx, dword [ebp - 0x18]
lea eax, [ebx + 4]
mov esi, dword [ebp - 0x1c]
sub ecx, esi
cmp dword [eax + 0x14], 8
jb 0x403abc
mov eax, dword [eax]
push esi
push ecx
xor edi, edi
push edi
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x403ae0
test esi, esi
je 0x403a6f
mov ecx, dword [ebp - 0x14]
sub ecx, esi
push ecx
push esi
call fcn.00403413
pop ecx
pop ecx
jmp 0x403a6f
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], edi
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], edi
push eax
push 0x460838
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x403acc
mov ecx, dword [ebp - 0x28]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x46083c
call fcn.00403c2a
add esp, 0x14
test eax, eax
je 0x403acc
inc eax
lea edi, [ebx + 0x1c]
push 0
push eax
mov ecx, edi
mov dword [ebp - 0x2c], eax
call fcn.0040222b
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x403b41
mov edx, dword [edi]
mov ecx, dword [ebp - 0x28]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x46083c
push dword [ebx + 0x2c]
push edx
call fcn.00403bfb
mov eax, dword [ebp - 0x2c]
add esp, 0x1c
dec eax
mov ecx, edi
push 0
push eax
call fcn.0040222b
test esi, esi
je 0x403b89
mov ecx, dword [ebp - 0x14]
sub ecx, esi
push ecx
push esi
call fcn.00403413
pop ecx
pop ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042a985
leave
ret
Function at 0x40552f
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
mov esi, ecx
xor cl, cl
push edi
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x4056cc
mov edx, 0x10000000
cmp eax, 0x7c
je 0x4056cc
cmp eax, 0x29
jne 0x40556c
cmp dword [esi + 0x10], 0
jne 0x4056cc
cmp eax, eax
jne 0x40556c
test dword [esi + 0x50], edx
je 0x4056d2
cmp eax, 0x2e
jne 0x405587
push 5
lea ecx, [esi + 0x24]
call fcn.004057c2
mov ecx, esi
call fcn.00405506
jmp 0x4056b6
cmp eax, 0x5c
jne 0x4055dc
mov ecx, esi
call fcn.00405506
test byte [esi + 0x50], 0x80
je 0x4055d0
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x4055b8
push 4
lea ecx, [esi + 0x24]
call fcn.004057c2
mov ecx, esi
call fcn.00405506
jmp 0x4056bd
cmp eax, 0x42
jne 0x4055d0
push 4
lea ecx, [esi + 0x24]
call fcn.004057c2
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x4055ac
mov ecx, esi
call fcn.00405805
jmp 0x4056b6
cmp eax, 0x5b
jne 0x40563f
mov ecx, esi
call fcn.00405506
lea ecx, [esi + 0x24]
call fcn.00405ec9
mov eax, dword [esi + 0x4c]
cmp eax, 0x5e
jne 0x405609
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.00405506
mov eax, dword [esi + 0x4c]
test dword [esi + 0x50], 0x20000000
je 0x405627
cmp eax, 0x5d
jne 0x405627
push eax
lea ecx, [esi + 0x24]
call fcn.00405f24
mov ecx, esi
call fcn.00405506
mov ecx, esi
call fcn.00405cd1
cmp dword [esi + 0x4c], 0x5d
je 0x40557b
push 4
jmp 0x4056d4
cmp eax, 0x28
jne 0x40565c
mov ecx, esi
call fcn.00405506
mov ecx, esi
call fcn.004058fb
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x4056d2
jmp 0x4056ab
cmp eax, 0x5e
jne 0x405668
push 2
jmp 0x4055a4
cmp eax, 0x24
jne 0x405674
push 3
jmp 0x4055a4
cmp eax, 0x2a
je 0x4056c8
cmp eax, 0x2b
je 0x4056c8
cmp eax, 0x3f
je 0x4056c8
cmp eax, 0x7b
je 0x4056c8
cmp eax, 0x7d
jne 0x405692
test dword [esi + 0x50], edx
je 0x4056c4
cmp eax, 0x5d
jne 0x40569c
test dword [esi + 0x50], edx
je 0x405638
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.00405ada
mov bl, 1
mov ecx, esi
call fcn.00405506
test bl, bl
je 0x4056bd
mov ecx, esi
call fcn.00405a00
mov cl, 1
jmp 0x405536
push 6
jmp 0x4056d4
push 0xa
jmp 0x4056d4
pop edi
pop esi
mov al, cl
pop ebx
ret
push 5
call fcn.004051e3
int3

Function at 0x445888
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00445505
Function at 0x401206
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40121d
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x40122f
xor eax, eax
jmp 0x401260
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401252
cmp edi, eax
jae 0x40122b
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401244
cmp edi, eax
jae 0x40122b
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x40157e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
shl eax, 1
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4015d7
cmp dword [ebp + 0xc], 1
je 0x4015b5
cmp dword [ebp + 0xc], 2
jne 0x4015cc
test edi, edi
mov eax, dword [ebp - 4]
je 0x4015d1
test al, 1
jne 0x4015cc
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x4015d1
push 0xd
pop eax
jmp 0x4015d7
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x4015db
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc

Function at 0x401624
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40162c
mov eax, dword [esp + 0xc]
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc
Function at 0x40165e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x41f278]
push ebx
push esi
push edi
push 0x2001f
push dword [ebp + 0x1a0]
mov ebx, ecx
push dword [ebx]
mov dword [ebp + 0x194], eax
xor esi, esi
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], esi
call fcn.0040154b
mov edi, eax
cmp edi, esi
je 0x4016ae
cmp dword [ebp - 0x70], esi
je 0x4016aa
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x401718
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4016c9
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040165e
cmp eax, esi
mov dword [ebp - 0x78], eax
jne 0x401730
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x4016b6
cmp dword [ebp - 0x70], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4016fc
push dword [ebp - 0x70]
call edi
mov dword [ebp - 0x70], esi
push dword [ebp + 0x1a0]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x70], esi
mov ebx, eax
je 0x401716
push dword [ebp - 0x70]
call edi
mov eax, ebx
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
pop ebx
call fcn.0040efeb
add ebp, 0x198
leave
ret 4
cmp dword [ebp - 0x70], esi
je 0x40173e
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x78]
jmp 0x401718
Function at 0x404da6
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x404dc8
call fcn.0040442e
jmp 0x404e1a
mov ecx, dword [ebp + 8]
push ebx
push edi
push 2
add ecx, 0x40
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
cmp ebx, esi
jne 0x404def
call fcn.0040442e
mov esi, eax
jmp 0x404e11
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x404e0e
call fcn.0040442e
mov esi, eax
push ebx
call edi
push dword [ebp - 4]
call edi
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret 8

Function at 0x404e1f
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4200d0]
push ebx
push esi
mov ecx, 0x4200d0
call dword [eax + 0xc]
push 0xf003f
xor ebx, ebx
push ebx
mov esi, eax
push ebx
add esi, 0x10
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x404e58
call fcn.0040442e
mov ebx, eax
jmp 0x404ecc
mov ecx, dword [ebp + 8]
push 0x14
add ecx, 0x40
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x404e78
call fcn.0040442e
mov ebx, eax
jmp 0x404ec3
push edi
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
pop edi
je 0x404ea4
cmp dword [ebp - 0x1c], 4
je 0x404eba
cmp dword [ebp - 0x1c], 2
je 0x404eba
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x404eba
call fcn.0040442e
mov ebx, eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [esi - 0x10]
call fcn.0040328d
pop esi
mov eax, ebx
pop ebx
leave
ret 4