joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423d0e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov dword [ebp - 0x14], ecx
xor esi, esi
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call fcn.0041ef35
push 0x13c
call fcn.00428bd9
cmp eax, esi
pop ecx
je 0x423d59
push 0x1a
lea esi, [eax + 4]
pop ecx
mov edi, esi
mov dword [eax], ecx
mov ebx, ecx
mov ecx, edi
call fcn.0041ef35
add edi, 0xc
dec ebx
jne 0x423d45
mov dword [ebp - 8], esi
xor esi, esi
jmp 0x423d5c
mov dword [ebp - 8], esi
cmp dword [ebp - 8], esi
je 0x423d7a
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
call esi
mov ebx, eax
push ebx
call fcn.00428bd9
mov edi, eax
pop ecx
test edi, edi
jne 0x423d85
inc dword [0x482748]
jmp 0x423f2b
push edi
push ebx
call esi
push str._HD_space_placeholder_
lea ecx, [ebp - 0x4c]
mov esi, edi
call fcn.0041efa5
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x4c]
push eax
call fcn.00422686
cmp byte [edi], 0
je 0x423e77
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push esi
call fcn.0041f0d8
mov ecx, dword [ebp - 4]
call fcn.0041ff07
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x423e5d
inc dword [ebp - 0xc]
push 0x431d80
lea ecx, [ebp - 0x28]
call fcn.0041f0d8
push dword [ebp - 4]
lea ecx, [ebp - 0x28]
call fcn.0041f28b
push 9
lea ecx, [ebp - 0x28]
call fcn.0041f1be
mov ecx, dword [ebp - 4]
push 1
call fcn.0041ff07
push eax
call fcn.0040f179
mov ebx, edx
pop ecx
cmp ebx, dword [0x482b14]
pop ecx
mov dword [ebp - 0x1c], eax
ja 0x423e25
jb 0x423e22
cmp eax, dword [0x482b10]
jae 0x423e25
inc dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
call fcn.0041ef35
lea eax, [ebp - 0x34]
push eax
push ebx
push dword [ebp - 0x1c]
call fcn.00420c4f
add esp, 0xc
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x28]
push eax
call fcn.0041f28b
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push eax
call fcn.00422686
lea ecx, [ebp - 0x34]
call fcn.0041f06b
add dword [ebp - 4], 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x423db3
push edi
call fcn.00428bce
pop ecx
mov ecx, dword [ebp - 8]
push 3
call fcn.0041bd53
push 0x482f24
lea ecx, [ebp - 0x28]
call fcn.0041f146
xor esi, esi
lea ecx, [ebp - 0x28]
push esi
push 0x431d7c
call fcn.0041f20d
lea ecx, [ebp - 0x40]
call fcn.0041ef35
lea eax, [ebp - 0x40]
push eax
push dword [0x482b14]
push dword [0x482b10]
call fcn.00420c4f
add esp, 0xc
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.0041f28b
push 9
lea ecx, [ebp - 0x28]
call fcn.0041f1be
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x10], eax
jne 0x423ef0
inc dword [0x482740]
push 0x482dbc
jmp 0x423ef5
push 0x482dd4
lea ecx, [ebp - 0x28]
call fcn.0041f28b
push 1
push esi
push esi
lea ecx, [ebp - 0x28]
call fcn.0041ff07
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041ff07
mov ecx, dword [ebp - 0x14]
push eax
call fcn.0041fdd7
lea ecx, [ebp - 0x40]
call fcn.0041f06b
lea ecx, [ebp - 0x4c]
call fcn.0041f06b
lea ecx, [ebp - 0x28]
call fcn.0041f06b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x423f38
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push 0x24
lea eax, [ebp - 0x30]
push 0
mov esi, ecx
push eax
call fcn.00428300
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x482fc0
lea ecx, [ebp - 0xc]
call fcn.0041f009
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push 0x431da0
push eax
call fcn.0041f62d
add esp, 0xc
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.00422686
lea ecx, [ebp - 0xc]
call fcn.0041f06b
pop esi
leave
ret
Function at 0x425ea5
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov edx, ecx
xor cl, cl
cmp byte [edx + 0x93], cl
lea eax, [edx + 0x93]
je 0x425ef5
push edi
push 0x40
mov byte [eax], cl
mov byte [ebp - 0x104], cl
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
mov ecx, edx
push eax
call fcn.00426844
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
leave
ret

Function at 0x426234
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp dword [0x4829f0], ebx
push edi
mov edi, dword [eax + 0x34]
jle 0x426274
mov esi, 0x4829e4
push ebx
mov ecx, esi
call fcn.00421fff
cmp eax, edi
je 0x426269
inc ebx
inc ebx
cmp ebx, dword [0x4829f0]
jl 0x426251
jmp 0x426274
inc ebx
mov ecx, esi
push ebx
call fcn.00421fff
mov edi, eax
xor esi, esi
cmp dword [0x4829dc], esi
jle 0x426315
push esi
mov ecx, 0x4829d0
call fcn.00421fff
cmp dword [eax], edi
je 0x42629c
inc esi
cmp esi, dword [0x4829dc]
jl 0x426282
jmp 0x426315
add eax, 4
xor esi, esi
cmp eax, esi
je 0x426315
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
mov ecx, eax
call fcn.0041ff07
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x426315
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0xc
mov dword [ebp + 8], eax
call fcn.00428bd9
cmp eax, esi
pop ecx
je 0x4262ec
mov ecx, eax
call fcn.0041ef35
mov ebx, eax
jmp 0x4262ee
xor ebx, ebx
push dword [ebp + 8]
mov ecx, ebx
call fcn.0041f822
cmp eax, esi
jne 0x42631e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
je 0x426315
mov ecx, ebx
call fcn.0041f06b
push ebx
call fcn.00428bce
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
lea ecx, [ebp - 4]
push esi
push ecx
mov dword [ebp - 4], esi
push dword [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
je 0x426303
mov eax, dword [ebp + 8]
cmp dword [ebp - 4], eax
jne 0x426303
mov eax, ebx
jmp 0x426317
Function at 0x42679a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
cmp dword [0x482a3c], 0
push edi
mov edi, ecx
jbe 0x426835
lea eax, [ebp - 4]
mov ecx, 0x482a3c
push eax
mov eax, dword [0x483760]
or eax, 0x20019
push eax
push 0
call fcn.0041ff07
push eax
push dword [0x482a38]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x426835
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
push str.Uninstaller
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42682c
lea eax, [ebp - 0x10c]
push eax
call fcn.0040f27e
test al, al
pop ecx
je 0x42682c
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov al, 1
jmp 0x42683f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 8]
mov ecx, edi
call fcn.00426844
pop edi
leave
ret 4
Function at 0x426a96
Capabilities:
Copy file
Delete directory
Delete file
Get file size
Set current directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
mov esi, ecx
push 0x432034
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test byte [0x48260c], 0x40
jne 0x426c23
test byte [0x482612], 2
jne 0x426c23
xor ebx, ebx
cmp byte [esi + 0x90], bl
je 0x426b06
lea eax, [ebp - 0x11c]
mov ecx, esi
push eax
call fcn.00426844
lea eax, [ebp - 0x11c]
mov ecx, 0x482408
push eax
push 1
call fcn.00417e29
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x426bc7
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
mov ecx, esi
call fcn.0041ff07
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push ebx
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp edi, 0xffffffff
mov dword [ebp - 8], eax
je 0x426c1a
cmp eax, ebx
je 0x426c1a
lea ecx, [ebp - 0x18]
mov byte [esi + 0x92], 1
call fcn.0041ef35
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00425ef7
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
push ebx
push eax
lea ecx, [ebp - 0x18]
push dword [ebp - 0x18]
call fcn.0041ff07
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 8]
push 4
push eax
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0041ff07
push eax
push 1
mov ecx, 0x482408
call fcn.00417e29
mov ecx, esi
call fcn.0041ff07
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x18]
call fcn.0041f06b
cmp dword [0x482b48], ebx
jbe 0x426c12
lea eax, [ebp - 0x11c]
mov ecx, esi
push eax
call fcn.0042679a
lea eax, [ebp - 0x11c]
mov esi, 0x482b48
push ebx
push eax
mov ecx, esi
call fcn.0041ff07
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, esi
call fcn.0041ff07
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x432518
mov ecx, esi
call fcn.0041f0d8
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x426c12
xor ebx, ebx
push 1
cmp byte [esi + 0x90], bl
jne 0x426c14
pop edi
push ebx
push dword [esi + 0x20]
call fcn.0040f24b
pop ecx
pop ecx
cmp eax, ebx
je 0x426c56
push eax
call fcn.0040eb61
mov eax, edi
inc edi
push eax
push dword [esi + 0x20]
call fcn.0040f24b
add esp, 0xc
jmp 0x426c3b
push 1
pop edi
push ebx
push dword [esi + 0x38]
call fcn.0040f24b
pop ecx
cmp eax, ebx
pop ecx
je 0x426c12
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, edi
inc edi
push eax
jmp 0x426c5a
Function at 0x426c75
Capabilities:
Copy file
Delete file
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
test byte [0x482612], 2
push esi
mov esi, ecx
mov dword [ebp - 4], esi
je 0x426c9d
test byte [0x48260c], 0x40
jne 0x426c9d
mov al, 1
jmp 0x426dda
lea eax, [ebp - 0x11c]
mov ecx, esi
push eax
call fcn.00426844
lea eax, [ebp - 0x11c]
push eax
call fcn.0040f27e
test al, al
pop ecx
je 0x426ccc
lea eax, [ebp - 0x11c]
mov ecx, esi
push eax
call fcn.00425cc1
jmp 0x426cd5
test byte [0x48260c], 0x40
je 0x426ce1
mov ecx, esi
call fcn.00426ddf
jmp 0x426dda
push ebx
push edi
lea ecx, [ebp - 0x18]
call fcn.0041ef35
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00425ef7
xor ebx, ebx
lea eax, [ebp - 0x11c]
push ebx
push eax
mov ecx, esi
call fcn.0041ff07
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, esi
call fcn.0041ff07
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x11c]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp edi, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x426da5
cmp eax, ebx
je 0x426da5
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 8]
push ebx
push eax
lea ecx, [ebp - 0x18]
push dword [ebp - 0x18]
call fcn.0041ff07
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push edi
call esi
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0xc]
push 4
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x11c]
push eax
mov byte [ecx + 0x90], 1
call fcn.00425cc1
mov bl, 1
jmp 0x426dce
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x11c]
push eax
call esi
push ebx
mov ecx, 0x483410
call fcn.0041ff07
push eax
mov ecx, 0x482408
push dword [ebp + 8]
call fcn.0041e1f3
lea ecx, [ebp - 0x18]
call fcn.0041f06b
mov al, bl
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x42aadd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x432330
cmp edx, dword [eax]
je 0x42aaff
add eax, 8
inc ecx
cmp eax, 0x4323c0
jl 0x42aaf0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x432330]
jne 0x42ac2d
mov eax, dword [0x48395c]
cmp eax, 1
je 0x42ac07
test eax, eax
jne 0x42ab30
cmp dword [0x432078], 1
je 0x42ac07
cmp edx, 0xfc
je 0x42ac2d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42ab67
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00429080
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00428770
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42abaa
lea eax, [ebp - 0x1a4]
push eax
call fcn.00428770
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42cb64
push edi
call fcn.0042b560
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00429080
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00429090
lea eax, [ebp - 0xa0]
push 0x42cb44
push eax
call fcn.00429090
push dword [esi + 0x432334]
lea eax, [ebp - 0xa0]
push eax
call fcn.00429090
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042b4d0
add esp, 0x2c
pop edi
jmp 0x42ac2d
lea eax, [ebp + 8]
lea esi, [esi + 0x432334]
push 0
push eax
push dword [esi]
call fcn.00428770
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
pushal
mov eax, section..rsrc
nop
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x17853ff1
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x735b0d80
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401030
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x408670]
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0x88]
test eax, eax
je 0x401194
mov dword [0x408670], esi
mov eax, dword [ebp + 0x8c]
dec eax
cmp eax, 0x20
ja case.0x40106a.16
xor ecx, ecx
mov cl, byte [eax + 0x4011d8]
jmp dword [ecx*4 + 0x401198]
mov esi, 0x4034b0
jmp case.0x40106a.16
mov esi, 0x4035e0
jmp case.0x40106a.16
mov esi, 0x403710
jmp case.0x40106a.16
mov esi, 0x403390
jmp case.0x40106a.16
mov esi, 0x403770
jmp case.0x40106a.16
mov esi, 0x403800
jmp case.0x40106a.16
cmp dword [0x408554], 1
jne case.0x40106a.2
mov esi, 0x4040a0
jmp case.0x40106a.16
mov esi, 0x403280
jmp case.0x40106a.16
mov eax, dword [0x408554]
mov esi, 0x404730
cmp eax, 1
je 0x401160
mov esi, 0x403280
jmp 0x401160
mov eax, dword [0x408554]
mov esi, 0x404c20
cmp eax, 1
je 0x401160
mov esi, 0x403280
jmp 0x401160
mov eax, dword [0x408554]
mov esi, 0x4044c0
cmp eax, 1
je 0x401160
mov esi, 0x403280
jmp 0x401160
mov eax, dword [0x408554]
mov esi, 0x4040a0
cmp eax, 1
je 0x401160
jmp 0x40115b
mov eax, dword [0x408554]
mov esi, 0x404730
cmp eax, 1
je 0x401160
jmp 0x40115b
mov edx, dword [0x408554]
mov esi, 0x4034b0
dec edx
neg edx
sbb edx, edx
and edx, 0xffffffd4
add edx, 0x40
add edi, edx
jmp case.0x40106a.16
mov eax, dword [0x408554]
mov esi, 0x4044c0
cmp eax, 1
je 0x401160
mov esi, 0x4034b0
add edi, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
test edi, edi
jbe 0x40117d
push 0
push 0
push ebp
push esi
push 0
push 0
call ebx
dec edi
jne 0x40116e
mov eax, dword [ebp + 0x84]
push 0
push 0
push eax
push section..text
push 0
push 0
call ebx
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x401200
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x408670]
push ebp
push esi
push edi
mov edi, dword [esp + 0x10]
xor ebp, ebp
xor esi, esi
mov ecx, dword [edi + 0x108]
test eax, eax
je 0x4012b3
mov dword [0x408670], esi
mov eax, dword [edi + 0x114]
add eax, 0xfffffffb
cmp eax, 3
ja case.default.0x401232
jmp dword [eax*4 + 0x4012b8]
mov esi, dword [edi + 0x10c]
mov ebp, 0x4039f0
dec esi
neg esi
sbb esi, esi
not esi
and esi, 0x403d20
jmp case.default.0x401232
mov ebp, 0x403d20
jmp case.default.0x401232
mov ebp, 0x403b20
jmp case.default.0x401232
mov ebp, 0x403fb0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
test ecx, ecx
jbe 0x40129c
mov dword [esp + 0x14], ecx
test esi, esi
je 0x401285
push 0
push 0
push edi
push esi
push 0
push 0
call ebx
push 0
push 0
push edi
push ebp
push 0
push 0
call ebx
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x401275
mov eax, dword [edi + 0x104]
push 0
push 0
push eax
push section..text
push 0
push 0
call ebx
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x4012d0
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x408670]
push ebp
push esi
mov esi, dword [esp + 0xc]
xor ebp, ebp
push edi
mov edi, dword [esi + 0x288]
test eax, eax
je 0x401339
mov dword [0x408670], ebp
mov eax, dword [esi + 0x28c]
sub eax, 0x15
je 0x401303
dec eax
jne 0x401308
mov ebp, 0x405050
jmp 0x401308
mov ebp, 0x404f80
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
test edi, edi
jbe 0x401322
push 0
push 0
push esi
push ebp
push 0
push 0
call ebx
dec edi
jne 0x401313
mov eax, dword [esi + 0x284]
push 0
push 0
push eax
push section..text
push 0
push 0
call ebx
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x401450
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4061e0
push 0x405870
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9f0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov byte [ebp - 0x868], bl
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x867]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x8ec], bl
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x8eb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 4], ebx
push 0x7d0
lea eax, [ebp - 0x7e8]
push eax
push 0x4082b4
call fcn.00401340
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x86c], esi
push 0x408434
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
je 0x4015b7
mov byte [ebp - 0xa00], bl
mov byte [ebp - 0x980], bl
push 0x3a
push esi
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrA]
call edi
mov ecx, 1
sub ecx, esi
add eax, ecx
push eax
push esi
lea edx, [ebp - 0x868]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x3a
push esi
call edi
inc eax
mov dword [ebp - 0x86c], eax
push eax
lea eax, [ebp - 0x8ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov word [ebp - 0x900], 2
lea ecx, [ebp - 0x8ec]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x8fe], ax
lea edx, [ebp - 0x868]
push edx
call fcn.00403180
add esp, 4
mov dword [ebp - 0x8fc], eax
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [ebp - 0x8f0], esi
push 0x10
lea eax, [ebp - 0x900]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
or edi, 0xffffffff
cmp eax, edi
jne 0x401598
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4015ba
mov dword [ebp - 4], edi
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or edi, 0xffffffff
mov dword [ebp - 4], edi
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4016e0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x104
push esi
push edi
mov edi, dword [esp + 0x118]
xor esi, esi
test edi, edi
jne 0x401703
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret
push ebx
mov ebx, dword [esp + 0x114]
push ebp
mov ebp, dword [esp + 0x11c]
mov eax, dword [0x408fc8]
push 0
mov dword [esp + 0x18], eax
push 0
lea ecx, [esp + 0x18]
push 0
lea eax, [ebx + 1]
push ecx
push eax
mov dword [esp + 0x24], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x401772
test eax, eax
je 0x401713
lea edx, [esp + 0x10]
push edx
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x401713
mov eax, edi
push 0
sub eax, esi
lea ecx, [esi + ebp]
push eax
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x401772
cmp eax, 0xffffffff
je 0x401772
add esi, eax
cmp esi, edi
jb 0x401713
xor eax, eax
pop ebp
cmp esi, edi
pop ebx
pop edi
pop esi
sete al
add esp, 0x104
ret

Function at 0x401790
Capabilities:
Delete file

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push esi
push 0x20
push str.hra_u.dll
push eax
xor ebx, ebx
call dword [0x408e14]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40180f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.StartWork
push esi
call edi
push str.StopWork
push esi
mov dword [0x409288], eax
call edi
test eax, eax
mov dword [0x40928c], eax
pop edi
je 0x4017fd
mov eax, dword [0x409288]
test eax, eax
je 0x4017fd
pop esi
mov eax, 1
pop ebx
add esp, 0x104
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, ebx
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x402030
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, 0xfe
and eax, 0xff
push esi
cdq
idiv ecx
mov esi, dword [esp + 0xc]
inc dl
test esi, esi
jbe 0x40205c
mov eax, dword [esp + 8]
mov cl, byte [eax]
sub cl, dl
xor cl, dl
mov byte [eax], cl
inc eax
dec esi
jne 0x402050
pop esi
ret
Function at 0x402060
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Resume thread
Self delete

Disassembly:
sub esp, 0x360
lea eax, [esp + 0x54]
push ebx
push ebp
push esi
push edi
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4021cd
lea ecx, [esp + 0x64]
push 0x104
lea edx, [esp + 0x68]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x4021cd
lea eax, [esp + 0x26c]
push 0x104
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4021cd
lea ecx, [esp + 0x168]
push str.__c_del
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x64]
lea eax, [esp + 0x168]
push edx
push eax
call esi
lea ecx, [esp + 0x168]
push str.___nul
push ecx
call esi
lea edx, [esp + 0x168]
lea eax, [esp + 0x26c]
push edx
push eax
call esi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
xor ecx, ecx
mov word [esp + 0x50], bx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
push 0x100
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x50], 1
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push 0xf
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push eax
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push 0
push 0xc
push 0
push 0
lea ecx, [esp + 0x288]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4021bf
mov edx, dword [esp + 0x10]
push 0x40
push edx
call esi
mov eax, dword [esp + 0x14]
push 0xfffffffffffffff1
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x360
ret
push 0x20
call ebx
push eax
call esi
push 0
call ebp
push eax
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x360
ret