joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4124f4
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push edi
push esi
push ebx
mov edi, dword [esp + 0x2c]
call sub.kernel32.dll_GetTickCount
mov esi, eax
cmp dword [0x4267f8], 0
jne 0x4125de
lea ebx, [esp + 0xc]
call sub.kernel32.dll_GetTickCount
mov edx, eax
lea eax, [edi + esi]
cmp edx, eax
jae 0x4125de
call fcn.0040170c
push 1
push 0xf
push 0xf
push 0
push ebx
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x41254d
push ebx
call sub.user32.dll_TranslateMessage
push ebx
call sub.user32.dll_DispatchMessageA
jmp 0x41252d
push 1
push 0x44
push 0x44
push 0
push ebx
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x412566
call fcn.00403848
jmp 0x41254d
call sub.kernel32.dll_GetTickCount
sub eax, dword [0x41c5b4]
cmp eax, 0x1f3
jbe 0x4125d1
mov eax, dword [0x426800]
test eax, eax
jne 0x4125a4
push eax
push 0x32
push 1
mov eax, dword [0x41e2a4]
push eax
call sub.user32.dll_SetTimer
test eax, eax
setne al
and eax, 0xff
mov dword [0x426800], eax
test eax, eax
je 0x4125d1
push 0x113
push 0x113
push 0
push ebx
call sub.user32.dll_GetMessageA
test eax, eax
je 0x4125d1
push 1
mov eax, dword [0x41e2a4]
push eax
call sub.user32.dll_KillTimer
mov dword [0x426800], 0
cmp dword [0x4267f8], 0
je 0x412516
pop ebx
pop esi
pop edi
add esp, 0x1c
ret
Function at 0x417490
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
mov eax, dword [esp + 0xc]
mov edx, eax
mov ebx, eax
xor esi, esi
and edx, 3
je 0x4174b7
jp 0x4174b2
cmp edx, 2
je 0x4174ad
cmp byte [ebx], dh
je 0x4174dd
inc ebx
cmp byte [ebx], dh
je 0x4174dd
inc ebx
cmp byte [ebx], dh
je 0x4174dd
inc ebx
mov edx, dword [ebx]
test dl, dh
jne 0x4174c5
test dl, dl
je 0x4174dd
test dh, dh
je 0x4174dc
test edx, 0xff0000
je 0x4174db
add ebx, 4
test edx, 0xff000000
jne 0x4174b7
sub ebx, 3
inc ebx
inc ebx
push esi
sub ebx, eax
push 0x41d0d0
push ebx
push eax
mov eax, dword [0x41c9ac]
push eax
call sub.kernel32.dll_WriteFile
test eax, eax
je 0x417507
cmp dword [0x41d0d0], ebx
sete al
mov esi, eax
and esi, 0xff
pop ebx
mov eax, esi
pop esi
ret

Function at 0x417510
Capabilities:
Write file on windows

Disassembly:
sub esp, 4
push ebx
mov ebx, dword [esp + 0xc]
jmp 0x417576
mov al, byte [esp + 7]
cmp al, 0x5c
je 0x417526
cmp al, 0x22
jne 0x41754c
push 0
push 0x41d0d0
push 1
push 0x41750c
mov eax, dword [0x41c9ac]
push eax
call sub.kernel32.dll_WriteFile
test eax, eax
je 0x417572
cmp dword [0x41d0d0], 1
jne 0x417572
push 0
push 0x41d0d0
push 1
lea eax, [esp + 0x13]
push eax
mov eax, dword [0x41c9ac]
push eax
call sub.kernel32.dll_WriteFile
test eax, eax
je 0x417572
cmp dword [0x41d0d0], 1
je 0x417576
xor eax, eax
jmp 0x417586
mov al, byte [ebx]
inc ebx
mov byte [esp + 7], al
test al, al
jne 0x41751a
mov eax, 1
pop ebx
add esp, 4
ret
Function at 0x419370
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 4
push ebp
push edi
push esi
push ebx
mov ebp, dword [esp + 0x18]
mov eax, dword [0x423c74]
cmp word [eax + 6], 0
jle 0x4194ee
cmp dword [0x424770], 4
je 0x4194ee
mov esi, 2
mov edx, dword [0x423c74]
mov edi, esi
cmp word [edx + 6], 0
jle 0x4193cb
mov ebx, dword [0x424770]
mov dword [esp + 0x10], edx
movsx eax, word [edx + esi*2 + 2]
cmp eax, ebx
jge 0x4193cb
mov edi, esi
mov esi, eax
cmp word [edx + esi*2 + 2], 0
jg 0x4193b2
test ebp, ebp
jne 0x4193df
push esi
call fcn.00419290
call fcn.0040d4c4
add esp, 4
jmp 0x419431
mov eax, dword [0x423c50]
cmp ebp, eax
jg 0x419476
jne 0x4193fa
mov ecx, dword [esp + 0x1c]
cmp dword [0x426924], ecx
je 0x419476
call fcn.0040d3c4
call fcn.0041393c
mov eax, dword [0x426924]
mov dword [0x422da0], eax
push esi
call fcn.004134c4
mov ebx, eax
add esp, 4
test ebx, ebx
jle 0x419476
push ebx
call fcn.00414d10
push ebx
call fcn.00413440
call fcn.0041391c
add esp, 8
push edi
call fcn.00418d04
mov dword [0x424770], esi
mov edx, dword [0x426924]
add esp, 4
cmp edx, 2
jne 0x419451
dec dword [0x423c50]
mov eax, 5
sub eax, edx
mov dword [0x426924], eax
mov eax, dword [0x423c74]
cmp word [eax + 6], 0
jle 0x419476
cmp esi, 4
je 0x419476
test ebp, ebp
jne 0x419398
push 0xf
call fcn.0041242c
add esp, 4
cmp dword [0x42500c], 0
jg 0x419493
mov dword [0x426804], 1
call fcn.00401264
mov eax, dword [0x426924]
add eax, 0xfffffffe
shl eax, 2
mov edx, dword [eax + 0x41c44c]
mov dword [eax + 0x41c468], edx
call fcn.004016c8
test ebp, ebp
jne 0x4194ce
mov ecx, dword [0x425080]
lea eax, [ecx*8]
cmp dword [eax + 0x425040], 1
jg 0x4194d5
call fcn.00401908
jmp 0x4194e4
mov eax, dword [0x426924]
add eax, 0xfffffffe
inc dword [eax*8 + 0x41c454]
call sub.kernel32.dll_GetTickCount
mov dword [0x426a3c], eax
pop ebx
pop esi
pop edi
pop ebp
add esp, 4
ret

Function at 0x4198bc
Capabilities:
Get hostname

Disassembly:
sub esp, 0x100
push esi
push ebx
push pe_nt_image_headers32
lea esi, [esp + 0x8c]
push esi
push 0x407
mov eax, dword [0x41db78]
push eax
call sub.user32.dll_LoadStringA
push pe_nt_image_headers32
lea ebx, [esp + 0xc]
push ebx
call sub.wsock32.dll_gethostname
cmp eax, 0xffffffff
je 0x419930
push ebx
push esi
push 0x41e360
call sub.user32.dll_wsprintfA
push 0xffffffffffffff81
push 0x41e360
call fcn.00401a34
push 0x400
push 0x424774
push ebx
push 0x401
mov eax, dword [0x41e2a4]
push eax
call sub.wsock32.dll_WSAAsyncGetHostByName
mov dword [0x426a48], eax
add esp, 0x14
pop ebx
pop esi
add esp, 0x100
ret
Function at 0x419a10
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x90
push ebx
cmp dword [0x426a50], 0xffffffff
jne 0x419b1f
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [0x426a50], eax
cmp eax, 0xffffffff
jne 0x419a40
push 0x417
jmp 0x419abe
xor eax, eax
mov ax, word [0x424d30]
mov word [esp + 4], 2
push eax
call sub.wsock32.dll_htons
mov word [esp + 6], ax
push 0
call sub.wsock32.dll_htonl
mov dword [esp + 8], eax
push 0x10
lea eax, [esp + 8]
push eax
mov eax, dword [0x426a50]
push eax
call sub.wsock32.dll_bind
cmp eax, 0xffffffff
jne 0x419a83
push 0x418
jmp 0x419abe
push 8
push 0x403
mov eax, dword [0x41e2a4]
push eax
mov eax, dword [0x426a50]
push eax
call sub.wsock32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
jne 0x419aa7
push 0x415
jmp 0x419abe
push 1
mov eax, dword [0x426a50]
push eax
call sub.wsock32.dll_listen
cmp eax, 0xffffffff
jne 0x419ad3
push 0x419
call sub.wsock32.dll_WSAGetLastError
push eax
call fcn.00419744
call fcn.004197ec
add esp, 8
jmp 0x419b1f
push pe_nt_image_headers32
lea ebx, [esp + 0x18]
push ebx
push 0x408
mov eax, dword [0x41db78]
push eax
call sub.user32.dll_LoadStringA
xor eax, eax
mov ax, word [esp + 6]
push eax
call sub.wsock32.dll_ntohs
and eax, 0xffff
push eax
push ebx
push 0x41e360
call sub.user32.dll_wsprintfA
push 0xffffffffffffff81
push 0x41e360
call fcn.00401a34
call fcn.004198bc
add esp, 0x14
pop ebx
add esp, 0x90
ret

Function at 0x419b28
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x90
push ebx
cmp dword [0x426a4c], 0xffffffff
jne 0x419c5b
mov dword [0x41c660], 0
mov dword [0x41c5c0], 0
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edx, eax
mov dword [0x426a4c], edx
cmp edx, 0xffffffff
jne 0x419b77
push 0x417
call sub.wsock32.dll_WSAGetLastError
jmp 0x419bf9
push 0x33
push 0x403
mov eax, dword [0x41e2a4]
push eax
push edx
call sub.wsock32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
jne 0x419b9b
push 0x415
call sub.wsock32.dll_WSAGetLastError
jmp 0x419bf9
mov word [esp + 4], 2
cmp dword [0x426a44], 0
je 0x419bb5
xor eax, eax
mov ax, word [0x426a44]
jmp 0x419bbd
xor eax, eax
mov ax, word [0x424d30]
push eax
call sub.wsock32.dll_htons
mov word [esp + 6], ax
mov eax, dword [0x424b74]
mov dword [esp + 8], eax
push 0x10
lea eax, [esp + 8]
push eax
mov eax, dword [0x426a4c]
push eax
call sub.wsock32.dll_connect
cmp eax, 0xffffffff
jne 0x419c09
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x419c09
push 0x41b
push eax
call fcn.00419744
call fcn.004197ec
add esp, 8
jmp 0x419c5b
push pe_nt_image_headers32
lea ebx, [esp + 0x18]
push ebx
push 0x40a
mov eax, dword [0x41db78]
push eax
call sub.user32.dll_LoadStringA
xor eax, eax
mov ax, word [esp + 6]
push eax
call sub.wsock32.dll_ntohs
and eax, 0xffff
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.wsock32.dll_inet_ntoa
push eax
push ebx
push 0x41e360
call sub.user32.dll_wsprintfA
push 0xffffffffffffff81
push 0x41e360
call fcn.00401a34
add esp, 0x18
pop ebx
add esp, 0x90
ret
Function at 0x419e38
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
cmp dword [0x426a4c], 0xffffffff
je 0x419f16
cmp dword [0x41c5c0], 0
jne 0x419e60
cmp dword [0x426a44], 0
je 0x419f16
mov eax, dword [0x424d38]
cmp dword [0x424f3c], eax
jl 0x419e81
mov dword [0x424d38], 0
mov dword [0x424f3c], 0
test ebx, ebx
je 0x419f0c
mov ecx, dword [0x424d38]
lea eax, [ebx + ecx]
cmp eax, 0x200
jle 0x419eeb
mov edx, dword [0x424f3c]
test edx, edx
jle 0x419ed2
mov eax, ecx
sub eax, edx
push eax
mov eax, edx
add eax, 0x424d3c
push eax
push 0x424d3c
call sub.crtdll.dll_memmove
mov eax, dword [0x424f3c]
mov dword [0x424f3c], 0
add esp, 0xc
sub dword [0x424d38], eax
mov edx, dword [0x424d38]
lea eax, [ebx + edx]
cmp eax, 0x200
jle 0x419eeb
mov eax, 0x200
mov ebx, eax
sub ebx, edx
mov edx, dword [0x424d38]
push ebx
mov eax, dword [esp + 0xc]
add edx, 0x424d3c
push eax
push edx
call sub.crtdll.dll_memcpy
add esp, 0xc
add dword [0x424d38], ebx
mov edx, dword [0x424d38]
test edx, edx
jne 0x419f1a
xor eax, eax
jmp 0x419f63
push 0
mov eax, dword [0x424f3c]
sub edx, eax
add eax, 0x424d3c
push edx
push eax
mov eax, dword [0x426a4c]
push eax
call sub.wsock32.dll_send
cmp eax, 0xffffffff
jne 0x419f5b
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x419f16
push 0x41c
push eax
call fcn.00419744
call fcn.004197ec
add esp, 8
jmp 0x419f16
add dword [0x424f3c], eax
mov eax, ebx
pop ebx
ret
Function at 0x41a6d8
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push 0x424ba0
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x41a700
push 0x413
push ebx
call fcn.00419744
xor eax, eax
add esp, 8
jmp 0x41a730
cmp word [0x424ba0], 0x101
je 0x41a71e
push 0x403
call fcn.00419708
call sub.wsock32.dll_WSACleanup
mov eax, ebx
jmp 0x41a72d
push 0x401
call fcn.00419708
mov eax, 1
add esp, 4
pop ebx
ret
Function at 0x401037
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path

Disassembly:
call 0x401037
push 0
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffbf4
push esi
push edi
push ebx
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x403030], eax
mov dword [ebp - 8], 0
push 0xa
push section..data
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
je 0x401089
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 0
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
je 0x401089
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4010c1
push 4
push 0x1000
push dword [ebp - 0xc]
push 0
call sub.kernel32.dll_VirtualAlloc
mov edi, eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push edi
call sub.kernel32.dll_RtlMoveMemory
mov dword [ebp - 8], edi
push 0xdeadbeef
push dword [ebp - 0xc]
push dword [ebp - 8]
call section..text
cmp dword [ebp - 8], 0
je 0x4010fb
lea eax, [ebp - 0x40c]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
push str.dup2patcher.dll
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_lstrcatA
push dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [ebp - 0x40c]
push eax
call fcn.00401184
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_LoadLibraryA
or eax, eax
je 0x401130
mov ebx, eax
push str.load_patcher
push ebx
call sub.kernel32.dll_GetProcAddress
or eax, eax
je 0x40111e
call eax
push ebx
call sub.kernel32.dll_FreeLibrary
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_DeleteFileA
pop ebx
pop edi
pop esi
leave
ret

Function at 0x401184
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x4011af
xor eax, eax
leave
ret 0xc
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_FlushFileBuffers
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0xde9212f
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x7f1a68d9
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0xd983089
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x377f43b2
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x18610780
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x8fb1c83
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
call 0x43200c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401860
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18c
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x24], 0
push 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 1
push eax
lea eax, [ebp - 0x14]
push eax
call sub.KERNEL32.dll_CreatePipe
test eax, eax
je 0x401a00
mov ecx, dword [ebp - 0x14]
push ebx
push 0
push 1
push ecx
call sub.KERNEL32.dll_SetHandleInformation
push edx
push edx
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
mov ebx, eax
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
add esp, 0xc
mov esi, eax
cmp ebx, 0xffffffff
je 0x4018d2
push eax
push 0
push 1
push ebx
call sub.KERNEL32.dll_SetHandleInformation
pop eax
cmp esi, 0xffffffff
je 0x4018e3
push eax
push 0
push 1
push esi
call sub.KERNEL32.dll_SetHandleInformation
pop eax
lea edi, [ebp - 0x7c]
push eax
push 0x44
push 0
push edi
call sub.msvcrt.dll_memset
mov dword [ebp - 0x7c], 0x44
mov dword [esp], 0xfffffff6
call sub.KERNEL32.dll_GetStdHandle
lea ebx, [ebp - 0x180]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
mov dword [ebp - 0x50], 0x100
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
push eax
mov dword [ebp - 0x30], 0
push eax
mov dword [ebp - 0x2c], 0
push 0x104
push ebx
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
lea esi, [ebp - 0x38]
add esp, 0xc
push esi
push edi
push 0
push 0
push 8
push 1
push 0
push 0
push str.adb_fork_server_server
push ebx
call sub.KERNEL32.dll_CreateProcessA
mov ecx, dword [ebp - 0x18]
mov ebx, eax
push esi
push ecx
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
test ebx, ebx
je 0x401a0e
sub esp, 0xc
mov edi, dword [ebp - 0x38]
push edi
call sub.KERNEL32.dll_CloseHandle
mov esi, dword [ebp - 0x34]
push esi
call sub.KERNEL32.dll_CloseHandle
lea eax, [ebp - 0x1c]
mov ebx, dword [ebp - 0x14]
push 0
push eax
lea eax, [ebp - 0xf]
push 3
push eax
push ebx
call sub.KERNEL32.dll_ReadFile
mov ecx, dword [ebp - 0x14]
mov ebx, eax
push ecx
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
test ebx, ebx
je 0x401a3a
cmp dword [ebp - 0x1c], 3
jne 0x4019cd
cmp byte [ebp - 0xf], 0x4f
je 0x4019f0
push eax
push eax
push str.ADB_server_didnt_ACK_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.004013a0
or eax, 0xffffffff
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp byte [ebp - 0xe], 0x4b
jne 0x4019cd
xor eax, eax
cmp byte [ebp - 0xd], 0xa
jne 0x4019cd
jmp 0x4019e8
call sub.KERNEL32.dll_GetLastError
push esi
push eax
push str.CreatePipe___failure__error__ld_n
jmp 0x4019d4
call sub.KERNEL32.dll_GetLastError
push edx
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
push str.CreateProcess_failure__error__ld_n
add eax, 0x40
push eax
call fcn.004013a0
pop eax
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.dll_CloseHandle
or eax, 0xffffffff
add esp, 0xc
jmp 0x4019e8
call sub.KERNEL32.dll_GetLastError
push edx
push eax
push str.could_not_read_ok_from_ADB_Server__error___ld_n
jmp 0x4019d4
Function at 0x401a50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x134
lea eax, [ebp - 0x110]
push eax
push 0xfc
call sub.KERNEL32.dll_GetTempPathA
lea ecx, [ebp - 0x110]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
xor eax, 0xffffffff
and edx, eax
and edx, 0x80808080
je 0x401a73
test edx, 0x8080
je 0x401b50
add dl, dl
mov eax, ecx
sbb eax, 3
mov dword [eax], 0x2e626461
mov dword [eax + 4], 0x676f6c
push 0x49e157
push 0x49e15a
call sub.msvcrt.dll_fopen
add esp, 0x10
mov dword [ebp - 0x120], eax
test eax, eax
je 0x401b6e
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov ecx, 8
cld
mov edi, ebx
mov esi, eax
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x110]
push eax
push eax
push 0x49e15e
push edi
call sub.msvcrt.dll_fopen
add esp, 0x10
mov dword [ebp - 0x138], eax
test eax, eax
je 0x401b60
mov edi, dword [ebp - 0x138]
push 0
push 4
push 0
push edi
call sub.msvcrt.dll_setvbuf
cld
mov eax, 8
mov esi, dword [ebp - 0x138]
lea edi, [ebx + 0x20]
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
add ebx, 0x40
mov esi, dword [ebp - 0x138]
mov edi, ebx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
call sub.msvcrt.dll__getpid
add esp, 0xc
push eax
push str.____adb_starting__pid__d______n
push ebx
call fcn.004013a0
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
shr edx, 0x10
add ecx, 2
jmp 0x401a97
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x138], eax
jmp 0x401afd
mov ebx, dword [sym.imp.msvcrt.dll__iob]
jmp 0x401add

Function at 0x402580
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
push str.ADB_TRACE
call sub.msvcrt.dll_getenv
add esp, 0x10
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40263c
mov al, byte [eax]
test al, al
je 0x40263c
push eax
push eax
push str.__:_
mov eax, dword [ebp - 0x14]
push eax
call sub.msvcrt.dll_strpbrk
add esp, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
je 0x402653
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
sub edi, ebx
mov ecx, dword [0x49e7c0]
mov dword [ebp - 0x20], edi
test ecx, ecx
je 0x402634
mov esi, dword [0x49e7c0]
xor ebx, ebx
jmp 0x4025f4
inc ebx
mov esi, dword [ebx*8 + 0x49e7c0]
test esi, esi
je 0x402634
sub esp, 0xc
push esi
call sub.msvcrt.dll_strlen
add esp, 0x10
cmp dword [ebp - 0x20], eax
jne 0x4025e8
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x14]
cld
cmp eax, eax
mov ecx, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4025e8
mov ecx, dword [ebx*8 + 0x49e7c4]
test ecx, ecx
je 0x40266f
mov eax, 1
mov edx, dword [0x4ddfd8]
shl eax, cl
or edx, eax
mov dword [0x4ddfd8], edx
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0
jne 0x402644
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
inc eax
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov al, byte [edx + 1]
jmp 0x4025a3
sub esp, 0xc
mov edi, dword [ebp - 0x14]
push edi
call sub.msvcrt.dll_strlen
mov esi, dword [ebp - 0x14]
add esp, 0x10
add eax, esi
mov dword [ebp - 0x10], eax
jmp 0x4025c9
mov dword [0x4ddfd8], 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret