joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4068e9
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x406912
call fcn.0040813b
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x406935
push eax
push dword [esi + 4]
call fcn.00406874
push esi
push eax
mov ecx, 0x43007c
call fcn.0040652a
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x40718d
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x4249e7
call fcn.0041268c
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0040714f
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.004049a0
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 4], eax
jne 0x4071f3
push eax
push dword [esi + 8]
call fcn.00406874
push dword [esi + 0xc]
mov ecx, 0x43007c
push eax
call fcn.0040652a
mov eax, esi
call fcn.0041272b
ret 0x18

Function at 0x408fde
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x408fe7
xor eax, eax
jmp 0x409050
cmp dword [esp + 8], 0
jne 0x408ff3
call fcn.00405e02
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.004153f3
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x40902e
push dword [esi + 0x10]
call fcn.004150f9
test eax, eax
pop ecx
jne 0x40902e
mov esi, dword [esi + 0xc]
call fcn.00412b8a
push esi
push dword [eax]
push 1
call fcn.0040afc7
push dword [esi + 0x10]
call fcn.00415128
test eax, eax
pop ecx
je 0x40904d
push dword [esi + 0x10]
call fcn.0041504d
push eax
call fcn.004045f0
pop ecx
pop ecx
jmp 0x40901c
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x409059
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x409063
call fcn.00405e02
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0041556d
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x409090
mov esi, dword [esi + 0xc]
call fcn.00412b8a
push esi
push dword [eax]
push 1
call fcn.0040afc7
pop esi
ret 8

Function at 0x41125b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42eb24]
jne 0x411265
repz ret
jmp fcn.0041838a
Function at 0x415157
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x415194
cmp dword [ebp + 0x14], edi
je 0x415194
cmp ecx, edi
jne 0x41519b
call fcn.00412b77
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004115d8
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4151af
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4151d0
cmp ebx, 0xffffffff
je 0x4151bf
push ebx
push edi
push ecx
call fcn.00412ee0
add esp, 0xc
cmp esi, edi
je 0x41517c
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x41517c
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4151ec
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4151f3
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4152e4
test word [esi + 0xc], 0x10c
je 0x415247
mov eax, dword [esi + 4]
test eax, eax
je 0x415247
jl 0x415345
cmp ebx, eax
mov edi, ebx
jb 0x415218
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4152ec
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00410ef7
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4152dc
cmp ebx, dword [ebp - 0xc]
jb 0x4152b4
cmp dword [ebp - 0xc], 0
je 0x415271
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x415266
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x41526d
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x41527c
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x41527c
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x415318
push eax
push dword [ebp - 8]
push esi
call fcn.00414dac
pop ecx
push eax
call fcn.0041ed5e
add esp, 0xc
test eax, eax
je 0x415357
cmp eax, 0xffffffff
je 0x415345
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4152dc
push esi
call fcn.0041e67d
cmp eax, 0xffffffff
pop ecx
je 0x415349
cmp dword [ebp - 4], 0
je 0x415318
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4151fb
mov eax, dword [ebp + 0x14]
jmp 0x415196
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x415303
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00412ee0
add esp, 0xc
call fcn.00412b77
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x41518c
cmp dword [ebp + 0xc], 0xffffffff
je 0x41532e
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00412ee0
add esp, 0xc
call fcn.00412b77
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x41518c
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x415196
or dword [esi + 0xc], 0x10
jmp 0x415349
Function at 0x41ab52
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x42f428]
je 0x41ab6d
inc edi
cmp edi, 0x17
jb 0x41ab5e
cmp edi, 0x17
jae 0x41aced
push ebp
push 3
call fcn.00420b18
cmp eax, 1
pop ecx
je 0x41acb9
push 3
call fcn.00420b18
test eax, eax
pop ecx
jne 0x41aba1
cmp dword [0x42eb20], 1
je 0x41acb9
cmp ebx, 0xfc
je 0x41acec
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4323b8
push ebp
call fcn.00414867
add esp, 0xc
test eax, eax
je 0x41abd7
push esi
push esi
push esi
push esi
push esi
call fcn.004114dc
add esp, 0x14
push 0x104
mov esi, 0x4323d1
push esi
push 0
mov byte [0x4324d5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41ac1b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00414867
add esp, 0xc
test eax, eax
je 0x41ac1b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004114dc
add esp, 0x14
push esi
call fcn.00412820
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41ac60
push esi
call fcn.00412820
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4326cc
push 0x4281bc
sub ecx, eax
push ecx
push eax
call fcn.0041636e
add esp, 0x14
test eax, eax
je 0x41ac60
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004114dc
add esp, 0x14
jmp 0x41ac62
xor esi, esi
push 0x4281b8
push ebx
push ebp
call fcn.004162ad
add esp, 0xc
test eax, eax
je 0x41ac82
push esi
push esi
push esi
push esi
push esi
call fcn.004114dc
add esp, 0x14
push dword [edi*8 + 0x42f42c]
push ebx
push ebp
call fcn.004162ad
add esp, 0xc
test eax, eax
je 0x41aca4
push esi
push esi
push esi
push esi
push esi
call fcn.004114dc
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042095b
add esp, 0xc
jmp 0x41acec
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41acec
cmp ebp, 0xffffffff
je 0x41acec
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x42f42c]
push dword [esi]
call fcn.00412820
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x42095b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00418568
xor ebx, ebx
cmp dword [0x432918], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x420a31
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x420b11
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x429354
push edi
call esi
cmp eax, ebx
je 0x420b11
push eax
call fcn.004184fa
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x432918], eax
call esi
push eax
call fcn.004184fa
mov dword [esp], 0x429330
push edi
mov dword [0x43291c], eax
call esi
push eax
call fcn.004184fa
mov dword [0x432920], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004164ca
test eax, eax
pop ecx
pop ecx
je 0x4209ff
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004114dc
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x420a31
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004184fa
cmp eax, ebx
pop ecx
mov dword [0x432928], eax
je 0x420a31
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004184fa
pop ecx
mov dword [0x432924], eax
mov eax, dword [0x432924]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x420ab6
cmp dword [0x432928], ecx
je 0x420ab6
push eax
call fcn.00418571
push dword [0x432928]
mov esi, eax
call fcn.00418571
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x420ab6
cmp edi, ebx
je 0x420ab6
call esi
cmp eax, ebx
je 0x420a83
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x420a83
test byte [ebp - 0x18], 1
jne 0x420ab6
lea eax, [ebp - 0x10]
push eax
call fcn.00416501
test eax, eax
pop ecx
je 0x420a9e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004114dc
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x420aad
or dword [ebp + 0x10], 0x200000
jmp 0x420af1
or dword [ebp + 0x10], 0x40000
jmp 0x420af1
mov eax, dword [0x43291c]
cmp eax, dword [ebp - 8]
je 0x420af1
push eax
call fcn.00418571
cmp eax, ebx
pop ecx
je 0x420af1
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x420af1
mov eax, dword [0x432920]
cmp eax, dword [ebp - 8]
je 0x420af1
push eax
call fcn.00418571
cmp eax, ebx
pop ecx
je 0x420af1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x432918]
call fcn.00418571
cmp eax, ebx
pop ecx
je 0x420b11
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x420b13
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4245b9
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x42eb24]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042454e
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00412ee0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x424608
cmp dword [ebp - 0x1c], 5
jb 0x424620
jmp 0x42461c
cmp dword [ebp - 0x10], 1
jne 0x424620
cmp dword [ebp - 0x1c], 4
ja 0x42461c
jne 0x424620
cmp dword [ebp - 0x18], 0
jbe 0x424620
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42941c
call fcn.00424422
test eax, eax
jge 0x424641
mov byte [0x4329b0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041125b
add ebp, 0x78
leave
ret

Function at 0x40da20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb000]
push edi
or ebp, 0xffffffff
jmp 0x40da42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40da49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40da38
mov eax, 1
add ebx, ebx
jne 0x40da5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40da50
jne 0x40da6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40da50
xor ecx, ecx
sub eax, 3
jb 0x40da80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40daf2
mov ebp, eax
add ebx, ebx
jne 0x40da8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40da98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40dabc
inc ecx
add ebx, ebx
jne 0x40daa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40da9d
jne 0x40dab9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40da9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40dadc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40dacd
jmp 0x40da3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40dadc
add edi, ecx
jmp 0x40da3e
pop esi
lea edi, [esi + 0xb000]
mov eax, dword [edi]
or eax, eax
je 0x40db3b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40daf9
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd068]
or eax, eax
je 0x40db35
mov dword [ebx], eax
add ebx, 4
jmp 0x40db16
call dword [esi + 0xd078]
mov ebp, dword [esi + 0xd06c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40db6f
sub esp, 0xffffff80
jmp 0x40b206
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x40288e
pop dword [ebp - 4]
mov eax, 0x40288e
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0xc598e482
add dword [ebp - 0x14], 0x88b960c9
mov dword [ebp - 0x10], 0x867dc485
sub dword [ebp - 0x10], 0x544a7840
mov dword [ebp - 0xc], 0x7bad52b7
sub dword [ebp - 0xc], 0x2f610e89
mov dword [ebp - 8], 0xbc5b3d97
add dword [ebp - 8], 0x43a4c269
lea eax, [ebp - 0x14]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0x8ffa1f8
add dword [ebp - 0x14], 0x6b72c75e
mov dword [ebp - 0x10], 0x64322b14
add dword [ebp - 0x10], 0xdd3a3661
mov dword [ebp - 0xc], 0xd58317f6
add dword [ebp - 0xc], 0x8dec5476
mov dword [ebp - 8], 0x944bf06c
sub dword [ebp - 8], 0x944bf06c
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x39386
push 0
call eax
mov ecx, 0x527f
mov ebx, eax
mov edx, 0x410000
add edx, dword [ebp - 4]
mov edi, 0x2fb5a543
sub edi, 0x8c0820e8
mov esi, dword [edx]
xor esi, edi
mov dword [ebx], esi
add ebx, 0x1ed319a5
add ebx, 0xe12ce65f
add edx, 4
loop 0x402995
add eax, 0x13ccf
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x2985a
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push edi
xor eax, eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
lea edi, [ecx + 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ecx + 0x18], 0
pop edi
pop ebp
ret 4
Function at 0x2a270
Capabilities:
Execute anti-debugging instructions
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
mov esi, 0x316dc
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [0x11b3c]
lea eax, [ebp + 8]
push eax
mov edi, 0x316ec
push edi
push dword [ebp + 8]
mov dword [ebp - 0x28], 5
mov dword [ebp - 0x24], 1
call esi
test eax, eax
jge 0x2a2b1
and dword [ebp + 8], 0
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
call esi
test eax, eax
jge 0x2a2c3
and dword [ebp - 4], 0
mov esi, dword [ebp + 0x10]
push ebx
mov byte [esi + 0x89], 0
mov byte [esi + 0x8a], 0
mov byte [esi + 0x8b], 0
rdtsc
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov eax, dword [0x11bb8]
mov dword [ebp + 0xc], eax
jmp 0x2a2f0
pause
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
cmp edi, dword [eax + 8]
jne 0x2a2ee
call dword [0x11bbc]
and dword [esi + 0x1c], 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], edi
rdtsc
mov edi, dword [section..rdata]
mov dword [esi + 0x28], eax
lea eax, [ebp - 0x10]
push eax
mov dword [esi + 0x2c], edx
call edi
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edx
rdtsc
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi + 0x3c], edx
pop ebx
je 0x2a376
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x10
lea edx, [ebp - 0x20]
push edx
push 0x18
lea edx, [ebp - 0x38]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x2a36d
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x44], eax
mov byte [esi + 0x89], 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
rdtsc
mov dword [esi + 0x48], eax
lea eax, [ebp - 0x10]
push eax
mov dword [esi + 0x4c], edx
call edi
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], edx
rdtsc
mov dword [esi + 0x58], eax
mov eax, dword [ebp - 4]
test eax, eax
mov dword [esi + 0x5c], edx
je 0x2a3cf
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x10
lea edx, [ebp - 0x20]
push edx
push 0x18
lea edx, [ebp - 0x38]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x2a3c6
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x60], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x64], eax
mov byte [esi + 0x8a], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
rdtsc
mov dword [esi + 0x68], eax
lea eax, [ebp - 0x10]
push eax
mov dword [esi + 0x6c], edx
call edi
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], edx
rdtsc
mov dword [esi + 0x78], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x80], eax
mov eax, dword [ebp - 0xc]
pop edi
mov dword [esi + 0x7c], edx
mov dword [esi + 0x84], eax
mov byte [esi + 0x88], 1
pop esi
leave
ret 0xc
Function at 0x37d3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.037d378f
jae 0x37d370e
xor ecx, ecx
call fcn.037d378f
jae 0x37d373d
xor eax, eax
call fcn.037d378f
jae 0x37d374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.037d378f
adc al, al
jae 0x37d372f
jne 0x37d3779
stosb byte es:[edi], al
jmp 0x37d3711
call fcn.037d379b
sub ecx, ebx
jne 0x37d3756
call fcn.037d3799
jmp 0x37d3775
lodsb al, byte [esi]
shr eax, 1
je 0x37d3783
adc ecx, ecx
jmp 0x37d3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.037d3799
cmp eax, 0x7d00
jae 0x37d3772
cmp ah, 5
jae 0x37d3773
cmp eax, 0x7f
ja 0x37d3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x37d3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x382ee11
Capabilities:
Encode data using xor

Disassembly:
mov eax, eax
add ecx, 1
lodsd eax, dword [esi]
cld
cmp dword [edx + 0x10], ecx
lea edi, [eax + ebx + 4]
lea edx, [edx]
je 0x382edf1
xor eax, eax
imul eax, eax, 0xf
push eax
xor ecx, 0
nop
movzx eax, byte [edi - 4]
neg eax
cmp esp, ecx
cld
stc
sub edi, 0xfffffff1
lea eax, [eax]
add dword [esp], eax
lea edi, [edi - 0xe]
pop eax
cmp byte [edi - 4], 0xa
ja 0x382eccf
and al, 0xff
nop
nop
mov eax, 0x6b060a11
xor dword [esp - 4], eax
mov eax, dword [esp + 4]
sub dword [esp - 4], eax
nop
lea edx, [edx]
cld
nop
jne 0x382ecb9
nop
nop
lea ebx, [ebx]
cld
mov ebx, ebx
add edx, 0x1b
inc eax
push dword [edx - 7]
dec eax
not al
not eax
adc eax, ebp
and al, 0x6b
pop edi
add edi, ebx
add ecx, ecx
add ecx, ebx
or eax, ecx
xchg al, ah
mov esi, dword [edx + 1]
mov ax, word [ecx + esi]
cwde
not edx
push dword [edi + eax*4]
jmp 0x382efcb
ret
push 0xffffffffffffffff
lea edx, [ebx + 8]
xchg ecx, eax
dec edi
push dword [edx + 0x34]
not ch
lea esi, [edx - 8]
xchg edi, edi
add dword [esp], ebx
pop ecx
add edx, dword [ecx + 0x78]
mov al, 0x78
add esi, dword [edx + 0x18]
mov edi, edi
pop ecx
jmp 0x382ecb7
and ecx, 0x34
add dword [esp], ebx
pop esi
mov eax, dword [esp]
add esp, 8
jmp eax
Function at 0x410697
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x40313c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004048bc
test esi, esi
jne 0x403173
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004049ac
jmp 0x403194
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402fd8
mov dword [esp], eax
test esi, esi
je 0x403194
cmp dword [ebx], 0
je 0x403194
dec esi
jmp 0x40317b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4038ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x545020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403944
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403924
xor eax, eax
push ebp
push 0x40391d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403960
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403924
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x545020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x545020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404738
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x54c04c], 0
je 0x404799
cmp word [0x54c220], 0xd7b2
jne 0x404761
cmp dword [0x54c228], 0
jbe 0x404761
mov eax, 0x54c21c
call dword [0x54c238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x54506c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4047c0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x545030], 0
jne 0x4047b5
push 0
push 0x545064
push 0x54506c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret