joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402574
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.IDR_BINARY
mov esi, eax
push 0x83
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x402605
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 4]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov esi, edi
and esi, 0x1ff
neg esi
sbb esi, esi
mov dword [eax], edi
mov eax, edi
neg esi
shr eax, 9
add esi, eax
shl esi, 9
push esi
call fcn.0040f5ef
push esi
mov ebx, eax
push 0
push ebx
call fcn.004100c0
push edi
push dword [ebp - 4]
push ebx
call fcn.0040fd50
add esp, 0x1c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x4028f3
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x4290a0]
xor eax, ebp
mov dword [ebp + 0x1b4], eax
push ebx
push esi
xor ebx, ebx
push ebx
push 2
mov esi, ecx
mov dword [ebp - 0x80], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
jne 0x402935
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40299c
push edi
mov edi, 0x22c
push edi
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.004100c0
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x402987
xor edi, edi
cmp dword [esi], edi
jle 0x40297b
lea ebx, [esi + 4]
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.0040f7ee
pop ecx
pop ecx
test eax, eax
je 0x4029b6
inc edi
sub ebx, 0xffffff80
cmp edi, dword [esi]
jl 0x402963
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x40295a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp + 0x1b4]
mov eax, dword [ebp - 0x80]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e3f8
add ebp, 0x1b8
leave
ret
lea eax, [ebp - 0x54]
push eax
lea eax, [esi + 0xa14]
push 0x40
push eax
mov dword [ebp - 0x80], 1
mov dword [esi + 0xa0c], edi
call fcn.0040eadc
mov eax, dword [ebp - 0x70]
mov dword [esi + 0xa10], eax
mov eax, dword [esi + 0xa0c]
shl eax, 7
lea eax, [eax + esi + 0x504]
push eax
push 0x40
add esi, 0xa98
push esi
call fcn.0040eadc
add esp, 0x18
jmp 0x402992
Function at 0x402c4d
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
xor edi, edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp + 8], ebx
je 0x402d4d
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x402d4d
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x402c76
sub eax, edx
sar eax, 1
cmp eax, 4
jb 0x402d4d
push dword [ebp + 8]
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, ebx
jne 0x402cb8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov dword [ebp - 4], eax
call esi
jmp 0x402d5c
push 4
push 0x3000
push 0x104
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
cmp esi, ebx
jne 0x402ce1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
mov dword [ebp - 4], eax
jmp 0x402d5c
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x402ce7
sub eax, edx
push ebx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x402cd2
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x402cd2
push 0x424bf4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x402cd2
push ebx
push ebx
push esi
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
cmp edi, ebx
je 0x402d72
push 0x2710
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x402d51
or dword [ebp - 4], 0xffffffff
cmp edi, ebx
je 0x402d5c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
pop edi
pop esi
pop ebx
je 0x402d6d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
leave
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
mov dword [ebp - 4], eax
jmp 0x402d51
Function at 0x4034ac
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 0x4034c3
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4034f8
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4034f4
cmp edi, eax
jae 0x4034f8
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4034e6
cmp edi, eax
jb 0x4034fc
xor eax, eax
jmp 0x403505
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x4035b3
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x44c2d0
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov ebx, 0x10000
push ebx
xor eax, eax
push edi
push 0x44c2ee
mov word [0x44c2e0], ax
mov dword [0x44c2e2], edi
mov dword [0x44c2e6], 1
mov dword [0x44c2ea], edi
call fcn.004100c0
push ebx
push edi
push 0x45c2f2
mov dword [0x45c2ee], edi
call fcn.004100c0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 0x18
push edi
push edi
push esi
push 0x403520
push edi
push edi
mov dword [0x46caf2], edi
call ebx
push edi
push edi
push esi
push 0x403575
push edi
push edi
call ebx
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x403878
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x794]
sub esp, 0x814
mov eax, dword [0x4290a0]
xor eax, ebp
mov dword [ebp + 0x790], eax
mov eax, dword [ebp + 0x79c]
push edi
mov edi, ecx
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x7c], ecx
test eax, eax
je 0x4038a9
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
xor eax, eax
and dword [ebp - 0x80], eax
mov word [ecx], ax
cmp dword [esi], eax
je 0x40392d
push ebx
call fcn.0040f5ef
push ebx
push edi
push eax
mov dword [ebp - 0x78], eax
call fcn.0040fd50
mov edi, dword [sym.imp.WS2_32.dll_send]
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 0x74], al
mov eax, ebx
sar eax, 0x10
mov byte [ebp - 0x73], al
add esp, 0x10
mov eax, ebx
sar eax, 8
push 0
mov byte [ebp - 0x72], al
push 4
lea eax, [ebp - 0x74]
push eax
push dword [esi]
mov byte [ebp - 0x71], bl
call edi
push 0
push ebx
push dword [ebp - 0x78]
push dword [esi]
call edi
cmp eax, 0xffffffff
je 0x403915
cmp eax, ebx
jne 0x403915
mov dword [ebp - 0x80], 1
jmp 0x40392d
mov edx, dword [ebp - 0x7c]
mov eax, 0x424c78
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x40391f
cmp dword [ebp - 0x78], 0
pop edi
je 0x40393d
push dword [ebp - 0x78]
call fcn.0040e3ed
pop ecx
mov ecx, dword [ebp + 0x790]
mov eax, dword [ebp - 0x80]
xor ecx, ebp
call fcn.0040e3f8
add ebp, 0x794
leave
ret 4
Function at 0x403957
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x79c]
sub esp, 0x81c
mov eax, dword [0x4290a0]
xor eax, ebp
mov dword [ebp + 0x798], eax
mov eax, dword [ebp + 0x7a4]
push edi
lea edi, [ebp - 0x68]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x78], edi
test ecx, ecx
je 0x40398e
mov dword [ebp - 0x78], ecx
mov edi, ecx
xor ecx, ecx
and dword [ebp - 0x74], ecx
mov word [edi], cx
mov eax, dword [eax]
test eax, eax
je 0x403aa3
test edx, edx
je 0x403aa3
push ecx
mov byte [ebp - 0x6c], cl
mov byte [ebp - 0x6b], cl
mov byte [ebp - 0x6a], cl
mov byte [ebp - 0x69], cl
push 4
lea ecx, [ebp - 0x6c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4039e1
mov eax, 0x424c98
sub edi, eax
movzx ecx, word [eax]
mov word [edi + eax], cx
inc eax
inc eax
test cx, cx
jne 0x4039ce
jmp 0x403aa3
test eax, eax
jne 0x4039f1
mov dword [ebp - 0x74], 1
jmp 0x403aa3
movzx eax, byte [ebp - 0x6b]
push ebx
movzx ebx, byte [ebp - 0x6c]
push dword [esi]
shl ebx, 8
add ebx, eax
movzx eax, byte [ebp - 0x6a]
shl ebx, 8
add ebx, eax
movzx eax, byte [ebp - 0x69]
shl ebx, 8
add ebx, eax
xor edi, edi
call fcn.0040f5ef
cmp dword [esi], edi
pop ecx
mov dword [ebp - 0x70], eax
jle 0x403a4d
cmp edi, ebx
jae 0x403a4d
mov eax, dword [esi]
sub eax, edi
push 0
push eax
mov eax, dword [ebp - 0x70]
add eax, edi
push eax
mov eax, dword [ebp - 0x80]
push dword [eax]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x403a63
test eax, eax
je 0x403a63
add edi, eax
cmp dword [esi], edi
jg 0x403a22
mov eax, dword [esi]
cmp eax, edi
jl 0x403a7d
push edi
push dword [ebp - 0x70]
push dword [ebp - 0x7c]
call fcn.0040fd50
mov dword [esi], edi
jmp 0x403a89
mov edx, dword [ebp - 0x78]
mov eax, 0x424c98
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x403a6d
jmp 0x403a93
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x7c]
call fcn.0040fd50
add esp, 0xc
mov dword [ebp - 0x74], 1
cmp dword [ebp - 0x70], 0
pop ebx
je 0x403aa3
push dword [ebp - 0x70]
call fcn.0040e3ed
pop ecx
mov ecx, dword [ebp + 0x798]
mov eax, dword [ebp - 0x74]
xor ecx, ebp
pop edi
call fcn.0040e3f8
add ebp, 0x79c
leave
ret 4
Function at 0x403cd3
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
push edi
mov esi, eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x403d98
cmp esi, 0xa
jb 0x403d98
shl eax, 2
mov dword [ebp - 0xc], eax
inc eax
push eax
call fcn.0040e456
pop ecx
mov ebx, eax
push ebx
push esi
push dword [ebp + 8]
lea edi, [ebp - 0xc]
call fcn.00403c65
add esp, 0xc
test eax, eax
je 0x403d8f
push 0x42489c
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.0040e674
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x403d3f
mov dword [ebp - 8], 0xfffffffe
jmp 0x403dab
push dword [ebp - 4]
push dword [ebp - 0xc]
push 1
push ebx
call fcn.0040e829
add esp, 0x10
cmp eax, dword [ebp - 0xc]
je 0x403d5e
mov dword [ebp - 8], 0xfffffffe
jmp 0x403d9c
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
xor edx, edx
mov ecx, 0x1f4
div ecx
mov edi, edx
call esi
xor edx, edx
mov ecx, 0x3e8
div ecx
push dword [ebp - 4]
push edi
push 1
add edx, ebx
push edx
call fcn.0040e829
add esp, 0x10
jmp 0x403d9c
mov dword [ebp - 8], 0xfffffffd
jmp 0x403d9c
or dword [ebp - 8], 0xffffffff
cmp dword [ebp - 4], 0
je 0x403dab
push dword [ebp - 4]
call fcn.0040e922
pop ecx
test ebx, ebx
je 0x403db6
push ebx
call fcn.0040e520
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40554a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x405555
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x405607
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4266f8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4266f8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4266f8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4266f8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4266f8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4266f8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4266f8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4266f8]
inc ecx
sub edi, 8
dec esi
jne 0x40556c
pop ebx
test edi, edi
je 0x405620
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x4266f8]
inc ecx
dec edi
jne 0x40560b
pop esi
not eax
pop edi
ret
Function at 0x405625
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x4266f8]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x4266f8]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x405c8f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x405cbf
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 2]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405cba
mov byte [esi + 6], 1
mov eax, dword [ebp + 0x10]
jmp 0x405ce7
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x405cd0
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0xc]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0040fd50
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret
Function at 0x40698e
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [ebx], 0
push esi
push edi
jne 0x406a34
cmp dword [ebx + 4], 0xffffffff
jne 0x406a34
lea esi, [ebx + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4069bb
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp ax, 0x5c
je 0x4069f2
cmp ax, 0x2f
je 0x4069f2
dec esi
dec esi
mov ax, word [esi + 2]
inc esi
inc esi
test ax, ax
jne 0x4069df
mov edi, esi
mov esi, 0x424bb0
movsd dword es:[edi], dword [esi]
push 0x18
call fcn.0040fa05
and dword [eax + 0x14], 0
and dword [eax + 7], 0
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x14]
push eax
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0xb], 0
mov dword [eax + 0x10], ecx
call fcn.00405f08
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x406a39
mov eax, 0x1000000
pop edi
pop esi
pop ecx
ret 8

Function at 0x40e3f8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4290a0]
jne 0x40e402
repz ret
jmp fcn.004113a7
Function at 0x41a33e
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.004137d7
and dword [ebp - 4], 0
cmp dword [0x42bb20], 0
mov ebx, eax
jne 0x41a3ef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41a4a0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41a4a0
push eax
call fcn.00413765
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42bb20], eax
call esi
push eax
call fcn.00413765
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42bb24], eax
call esi
push eax
call fcn.00413765
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42bb28], eax
call esi
push eax
call fcn.00413765
pop ecx
mov dword [0x42bb30], eax
test eax, eax
je 0x41a3ef
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00413765
pop ecx
mov dword [0x42bb2c], eax
mov eax, dword [0x42bb2c]
cmp eax, ebx
je 0x41a447
cmp dword [0x42bb30], ebx
je 0x41a447
push eax
call fcn.004137e0
push dword [0x42bb30]
mov esi, eax
call fcn.004137e0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41a447
test edi, edi
je 0x41a447
call esi
test eax, eax
je 0x41a43e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41a43e
test byte [ebp - 0xc], 1
jne 0x41a447
or dword [ebp + 0x10], 0x200000
jmp 0x41a480
mov eax, dword [0x42bb24]
cmp eax, ebx
je 0x41a480
push eax
call fcn.004137e0
pop ecx
test eax, eax
je 0x41a480
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41a480
mov eax, dword [0x42bb28]
cmp eax, ebx
je 0x41a480
push eax
call fcn.004137e0
pop ecx
test eax, eax
je 0x41a480
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42bb20]
call fcn.004137e0
pop ecx
test eax, eax
je 0x41a4a0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41a4a2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4403e
Capabilities:
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.00044005
pop ebp
jmp loc.00011010
Function at 0x474394
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.0045d61e
and dword [ebp - 4], 0
cmp dword [0x4d19f8], 0
mov ebx, eax
jne 0x474445
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4744f6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4744f6
push eax
call fcn.0045d5ac
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4d19f8], eax
call esi
push eax
call fcn.0045d5ac
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4d19fc], eax
call esi
push eax
call fcn.0045d5ac
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4d1a00], eax
call esi
push eax
call fcn.0045d5ac
pop ecx
mov dword [0x4d1a08], eax
test eax, eax
je 0x474445
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045d5ac
pop ecx
mov dword [0x4d1a04], eax
mov eax, dword [0x4d1a04]
cmp eax, ebx
je 0x47449d
cmp dword [0x4d1a08], ebx
je 0x47449d
push eax
call fcn.0045d627
push dword [0x4d1a08]
mov esi, eax
call fcn.0045d627
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x47449d
test edi, edi
je 0x47449d
call esi
test eax, eax
je 0x474494
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x474494
test byte [ebp - 0xc], 1
jne 0x47449d
or dword [ebp + 0x10], 0x200000
jmp 0x4744d6
mov eax, dword [0x4d19fc]
cmp eax, ebx
je 0x4744d6
push eax
call fcn.0045d627
pop ecx
test eax, eax
je 0x4744d6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4744d6
mov eax, dword [0x4d1a00]
cmp eax, ebx
je 0x4744d6
push eax
call fcn.0045d627
pop ecx
test eax, eax
je 0x4744d6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4d19f8]
call fcn.0045d627
pop ecx
test eax, eax
je 0x4744f6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4744f8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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 0x40752c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407638
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
test bl, bl
je 0x4075ac
movzx eax, bl
add ax, 0x41
dec eax
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0
lea eax, [ebp - 0x420]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov edi, eax
cmp edi, 0x104
jbe 0x4075a3
mov edx, edi
dec edx
lea eax, [ebp - 4]
call fcn.0040ca34
mov eax, dword [ebp - 4]
call fcn.0040c8a8
push eax
push edi
call sub.kernel32.dll_GetCurrentDirectoryW
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
cmp esi, 0x104
ja 0x4075dc
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x218]
mov ecx, 0x104
call fcn.0040c95c
jmp 0x4075f8
mov edx, esi
dec edx
mov eax, dword [ebp - 8]
call fcn.0040ca34
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040c8a8
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x407620
cmp edi, 0x104
jbe 0x407614
mov eax, dword [ebp - 4]
call fcn.0040c8a8
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
jmp 0x407620
lea eax, [ebp - 0x420]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40763f
lea eax, [ebp - 4]
call fcn.0040b9a4
pop eax
jmp eax

Function at 0x407c08
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040b9a4
test esi, esi
jne 0x407c3e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040bb3c
jmp 0x407c5c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407ae8
mov edi, eax
test esi, esi
je 0x407c5c
cmp dword [ebx], 0
je 0x407c5c
dec esi
jmp 0x407c45
add esp, 0x20c
pop edi
pop esi
pop ebx
ret