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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x444034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
mov dword [edi + 4], 0
test eax, eax
je 0x40a57a
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov eax, dword [edi + 8]
mov ecx, dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x40a564
push eax
call ecx
push dword [edi + 8]
call esi
mov ecx, dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [edi + 8], 0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40a57a
push eax
call ecx
push dword [edi + 0xc]
call esi
mov dword [edi + 0xc], 0
call fcn.004095c0
mov esi, eax
test esi, esi
je 0x40a6a4
push 0x230
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.00417c20
lea ecx, [ebp - 0x234]
add esp, 0xc
sub ecx, esi
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x40a5b0
test ebx, ebx
je 0x40a5d9
push 0x104
lea eax, [ebp - 0x234]
push ebx
push eax
call fcn.00419cb7
add esp, 0xc
call fcn.00403330
push eax
push 0
push 0x8000
push 0x8000
push 1
push 0
push 0x40000003
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x40a615
mov dword [edi + 4], 0
jmp 0x40a6a4
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
mov dword [edi + 0x18], 0
call esi
push 0
push 0
push 1
push 0
mov dword [edi + 8], eax
call esi
cmp dword [edi + 8], 0
mov dword [edi + 0xc], eax
je 0x40a69d
test eax, eax
je 0x40a69d
lea ecx, [edi + 0x1c]
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov eax, dword [edi + 8]
push ecx
push dword [edi + 4]
mov dword [edi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40a67e
cmp eax, 0x3e5
je 0x40a67e
cmp eax, 0x217
jne 0x40a6a4
mov dword [edi + 0x10], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004143be
mov esp, ebp
pop ebp
ret 8
mov ecx, edi
call fcn.0040a6c0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004143be
mov esp, ebp
pop ebp
ret 8
Function at 0x40a7f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x444034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x24], eax
mov esi, dword [edi + 4]
test esi, esi
je 0x40a940
cmp dword [edi + 8], 0
je 0x40a940
push ecx
call fcn.0040a720
test eax, eax
je 0x40a947
push ebx
push dword [edi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_ResetEvent]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x1c], xmm0
call ebx
mov eax, dword [edi + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x40a891
cmp dword [ebp - 8], 0
je 0x40a891
push dword [edi + 8]
call ebx
mov eax, dword [ebp - 8]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004143be
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x24], 0
jne 0x40a8cb
test eax, eax
je 0x40a8cb
cmp eax, 0x3e5
je 0x40a8cb
cmp eax, 0x217
je 0x40a8cb
mov dword [edi + 0x14], 0xf0000001
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004143be
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test ebx, ebx
je 0x40a8fb
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
xor ecx, ecx
cmp ebx, 0x102
sete cl
lea ecx, [ecx*2 - 0xfffffff]
mov dword [edi + 0x14], ecx
jmp 0x40a8b6
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push dword [edi + 8]
mov esi, eax
mov dword [edi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor eax, eax
test esi, esi
pop ebx
cmovne eax, dword [ebp - 0xc]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004143be
mov esp, ebp
pop ebp
ret 0xc
mov dword [edi + 0x14], 0xf0000001
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004143be
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a960
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x444034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x24], eax
mov esi, dword [edi + 4]
test esi, esi
je 0x40aab0
cmp dword [edi + 0xc], 0
je 0x40aab0
push ecx
call fcn.0040a720
test eax, eax
je 0x40aab7
push ebx
push dword [edi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_ResetEvent]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x1c], xmm0
call ebx
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x40aa01
cmp dword [ebp - 8], 0
jbe 0x40aa01
push dword [edi + 0xc]
call ebx
mov eax, dword [ebp - 8]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004143be
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x24], 0
jne 0x40aa3b
test eax, eax
je 0x40aa3b
cmp eax, 0x3e5
je 0x40aa3b
cmp eax, 0x217
je 0x40aa3b
mov dword [edi + 0x14], 0xf0000001
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004143be
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test ebx, ebx
je 0x40aa6b
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
xor ecx, ecx
cmp ebx, 0x102
sete cl
lea ecx, [ecx*2 - 0xfffffff]
mov dword [edi + 0x14], ecx
jmp 0x40aa26
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push dword [edi + 0xc]
mov esi, eax
mov dword [edi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor eax, eax
test esi, esi
pop ebx
cmovne eax, dword [ebp - 0xc]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004143be
mov esp, ebp
pop ebp
ret 0xc
mov dword [edi + 0x14], 0xf0000001
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004143be
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e740
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c9ce
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x444034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
test esi, esi
je 0x40e877
cmp dword [ebp + 0xc], 4
jbe 0x40e877
cmp dword [esi], 1
jne 0x40e877
cmp dword [0x448280], edi
je 0x40e7af
lea eax, [esi + 8]
push eax
push str.CSCDTSecurityDomain::DealSciterCallback_1___s_
push str.SCDT
push 0xffffffffffffffff
push 0x4481f4
call fcn.00406390
add esp, 0x14
push ecx
push dword [esi + 4]
lea edx, [esi + 8]
lea ecx, [ebp - 0x20]
call fcn.0040d640
add esp, 8
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.0040e0d0
mov edi, 1
mov dword [ebp - 4], edi
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x448dbc]
cmp eax, dword [ecx + 4]
jle 0x40e85f
push 0x448dbc
call fcn.004149dc
add esp, 4
cmp dword [0x448dbc], 0xffffffff
jne 0x40e85f
mov eax, dword [0x448db8]
test eax, eax
jne 0x40e84d
push 0x43430c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40e83d
push str.SciterAPI
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e836
call eax
mov dword [0x448db8], eax
jmp 0x40e842
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x448db8]
test eax, eax
jne 0x40e84d
push 0xffffffffffffffff
call fcn.00419f6d
push 0x448dbc
mov dword [0x448dc0], eax
call fcn.0041499d
add esp, 4
lea eax, [ebp - 0x20]
push eax
mov eax, dword [0x448dc0]
mov eax, dword [eax + 0x208]
call eax
mov dword [ebp - 4], 0xffffffff
cmp dword [0x448280], 0
je 0x40e89a
push edi
push str.CSCDTSecurityDomain::DealSciterCallback____d_
push str.SCDT
push 0xffffffffffffffff
push 0x4481f4
call fcn.00406390
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004143be
mov esp, ebp
pop ebp
ret 8
Function at 0x40f910
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cb38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x444034]
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 eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x448dd8]
cmp eax, dword [ecx + 4]
jle 0x40f97d
push 0x448dd8
call fcn.004149dc
add esp, 4
cmp dword [0x448dd8], 0xffffffff
jne 0x40f97d
push 0x42d210
call fcn.00414622
push 0x448dd8
call fcn.0041499d
add esp, 8
mov ecx, dword [0x448de0]
mov eax, 0x2aaaaaab
sub ecx, dword [0x448ddc]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x40fa31
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x40fa31
xor esi, esi
cmp dword [ebp - 0x14], esi
jle 0x40fa2a
mov edx, dword [edi + esi*4]
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp word [edx], ax
je 0x40f9f1
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f9e2
sub eax, ebx
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040ef60
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
call fcn.0040fa90
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x40fa24
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.0040f060
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x40f9c1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 0x448ddc
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.004143be
mov esp, ebp
pop ebp
ret
Function at 0x4101b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cbc5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x444034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], 0
call fcn.004100f0
mov dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
cmp edi, esi
je 0x4102cf
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
nop dword [eax]
mov eax, dword [0x448dbc]
cmp eax, dword [ecx + 4]
jle 0x4102a6
push 0x448dbc
call fcn.004149dc
add esp, 4
cmp dword [0x448dbc], 0xffffffff
jne 0x4102a6
mov dword [ebp - 4], 1
mov eax, dword [0x448db8]
test eax, eax
jne 0x410290
push 0x43430c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x410284
push str.SciterAPI
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41027d
call eax
mov dword [0x448db8], eax
jmp 0x410289
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x448db8]
test eax, eax
je 0x4102c8
mov esi, dword [ebp - 0x18]
push 0x448dbc
mov dword [0x448dc0], eax
mov byte [ebp - 4], 0
call fcn.0041499d
add esp, 4
lea eax, [edi + 0x10]
push eax
mov eax, dword [0x448dc0]
push edi
push ebx
mov eax, dword [eax + 0x258]
call eax
add edi, 0x20
cmp edi, esi
je 0x4102cf
mov ecx, dword [ebp - 0x10]
jmp 0x410220
push 0xffffffffffffffff
call fcn.00419f6d
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410e80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x444034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
mov dword [ebp - 0x214], eax
push edi
mov edi, ecx
test esi, esi
je 0x410fad
cmp word [esi], 0
je 0x410fad
push 4
push 0x434d28
push esi
call fcn.00419ae8
add esp, 0xc
test eax, eax
jne 0x410ecf
add esi, 8
push 2
push 0x434d34
push esi
call fcn.00419ae8
add esp, 0xc
test eax, eax
jne 0x410ee6
add esi, 4
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00417c20
push 0x104
push esi
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0041a27a
lea eax, [ebp - 0x210]
push 0x2e
push eax
call fcn.004165e3
mov esi, eax
add esp, 0x24
test esi, esi
je 0x410f58
xor eax, eax
mov word [esi], ax
add esi, 2
je 0x410f58
push str.HTML
push esi
call fcn.00419b42
add esp, 8
test eax, eax
je 0x410f58
push 0x434d48
push esi
call fcn.00419b42
add esp, 8
test eax, eax
je 0x410f58
push esi
jmp 0x410f5a
push 0x17
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x410fad
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x410fad
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebx], eax
test eax, eax
je 0x410fad
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x214]
test eax, eax
pop edi
pop esi
pop ebx
mov dword [ecx], eax
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004143be
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004143be
mov esp, ebp
pop ebp
ret
Function at 0x413610
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x444034]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
test edi, edi
je 0x41380f
test esi, esi
je 0x41380f
mov edx, dword [0x448280]
test edx, edx
je 0x413687
push dword [esi + 0x1c]
push eax
push dword [esi + 0x18]
movzx eax, word [esi + 6]
push dword [esi + 0x14]
push dword [esi + 0x10]
push eax
movzx eax, word [esi + 4]
push eax
push str.CUITcpHelper::TcpDispose_1__0x_x____lu____lu____lu____lu____p____lu_
push 0x43f580
push 0xffffffffffffffff
push 0x4481f4
call fcn.00406390
mov edx, dword [0x448280]
add esp, 0x2c
movups xmm1, xmmword [esi]
mov ecx, dword [edi + 0xb8]
movups xmm0, xmmword [esi + 0x10]
mov dword [esp + 0x1c], ecx
movd eax, xmm1
movups xmmword [esp + 0x30], xmm0
shr eax, 0x10
mov edi, eax
not edi
and edi, 1
mov dword [esp + 0x4c], edi
test edx, edx
je 0x4136dc
and eax, 1
push eax
push edi
push ecx
push str.CUITcpHelper::TcpDispose_2___d____d____d_
push 0x43f580
push 0xffffffffffffffff
push 0x4481f4
call fcn.00406390
mov edi, dword [esp + 0x68]
add esp, 0x1c
mov edx, dword [0x448280]
movzx eax, word [esi + 6]
xorps xmm0, xmm0
movzx ecx, word [esi + 4]
movaps xmmword [esp + 0x50], xmm0
mov word [esp + 0x56], ax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x5c], eax
mov eax, 0xf0e9
movaps xmmword [esp + 0x60], xmm0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0xf004
mov dword [esp + 0x6c], 0
mov word [esp + 0x54], cx
mov dword [esp + 0x50], 0x4d4f
cmp cx, ax
je 0x41373e
test edi, edi
mov edi, dword [esp + 0x14]
je 0x413795
mov dword [esp + 0x48], 0xf001
jmp 0x413795
test edx, edx
je 0x413767
mov eax, dword [esp + 0x18]
push dword [eax + 8]
movzx eax, word [esi + 6]
push eax
push str.CUITcpHelper::TcpDispose__OT_A_UIHELPER_NOTIFY____d____p_
push 0x43f580
push 0xffffffffffffffff
push 0x4481f4
call fcn.00406390
add esp, 0x18
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x413795
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x5c]
push edx
push edi
push esi
push dword [esp + 0x34]
push dword [eax + 0xc]
call ecx
push 0x20
push esi
call fcn.00414637
add esp, 8
test edi, edi
je 0x4137af
push 0
push edi
call fcn.00414637
add esp, 8
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4137c9
or word [esp + 0x52], 2
mov dword [esp + 0x58], eax
mov dword [esp + 0x68], 0
cmp dword [esp + 0x4c], 0
je 0x4137e4
push dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x54]
call fcn.0040c7e0
add esp, 4
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4137f7
push 0
push eax
call fcn.00414637
add esp, 8
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.004143be
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x7c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004143be
mov esp, ebp
pop ebp
ret 0xc
Function at 0x6a5a3a
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [ecx]
mov edx, dword [eax]
push esi
xor esi, esi
sub edx, esi
je 0x6a5a9a
dec edx
je 0x6a5a76
dec edx
jne 0x6a5abc
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
mov dword [eax + 0x20], esi
mov dword [eax + 0x24], esi
jmp 0x6a5abc
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], esi
mov dword [eax + 0x1c], esi
jmp 0x6a5abc
mov dword [eax + 0x10], 0x67452301
mov dword [eax + 0x14], 0xefcdab89
mov dword [eax + 0x18], 0x98badcfe
mov dword [eax + 0x1c], 0x10325476
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov ecx, dword [ecx]
add ecx, 0xa0
pop esi
jmp 0x3a4d73
Function at 0x6c5e07
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6d7f29
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x86f370]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ecx, esi
call fcn.0038cc21
mov edi, eax
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.0038d3db
and dword [esp + 0x30], 0
mov ecx, edi
call 0x43abb4
movzx eax, al
push eax
lea ecx, [esp + 0x18]
call fcn.003b1f13
or edi, 0xffffffff
push edi
push 0x84d4f8
mov byte [esp + 0x38], 1
call fcn.00393fd4
pop ecx
pop ecx
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 0x24]
mov byte [esp + 0x38], 2
call fcn.003883c7
mov ecx, eax
call fcn.00381b63
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.00385a22
pop ecx
pop ecx
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x6c5ebe
push dword [esp + 0xc]
call fcn.00390faa
pop ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.003b1234
push esi
call fcn.006c5b8e
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x10]
lock xadd dword [eax], edi
jne 0x6c5eea
push dword [esp + 0x10]
call fcn.00390faa
pop ecx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4252d5
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.0041e31f
and dword [ebp - 4], 0
cmp dword [0x44f1f0], 0
mov ebx, eax
jne 0x425386
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x425437
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x425437
push eax
call fcn.0041e2ad
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44f1f0], eax
call esi
push eax
call fcn.0041e2ad
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44f1f4], eax
call esi
push eax
call fcn.0041e2ad
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44f1f8], eax
call esi
push eax
call fcn.0041e2ad
pop ecx
mov dword [0x44f200], eax
test eax, eax
je 0x425386
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041e2ad
pop ecx
mov dword [0x44f1fc], eax
mov eax, dword [0x44f1fc]
cmp eax, ebx
je 0x4253de
cmp dword [0x44f200], ebx
je 0x4253de
push eax
call fcn.0041e328
push dword [0x44f200]
mov esi, eax
call fcn.0041e328
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4253de
test edi, edi
je 0x4253de
call esi
test eax, eax
je 0x4253d5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4253d5
test byte [ebp - 0xc], 1
jne 0x4253de
or dword [ebp + 0x10], 0x200000
jmp 0x425417
mov eax, dword [0x44f1f4]
cmp eax, ebx
je 0x425417
push eax
call fcn.0041e328
pop ecx
test eax, eax
je 0x425417
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x425417
mov eax, dword [0x44f1f8]
cmp eax, ebx
je 0x425417
push eax
call fcn.0041e328
pop ecx
test eax, eax
je 0x425417
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44f1f0]
call fcn.0041e328
pop ecx
test eax, eax
je 0x425437
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x425439
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219